[ Index ]
 

Code source de vtiger CRM 5.0.2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/Smarty/templates/ -> DefModuleView.tpl (source)

   1  {*<!--
   2  /*********************************************************************************
   3    ** The contents of this file are subject to the vtiger CRM Public License Version 1.0
   4     * ("License"); You may not use this file except in compliance with the License
   5     * The Original Code is:  vtiger CRM Open Source
   6     * The Initial Developer of the Original Code is vtiger.
   7     * Portions created by vtiger are Copyright (C) vtiger.
   8     * All Rights Reserved.
   9    *
  10   ********************************************************************************/
  11  -->*}
  12  
  13  <script language="JAVASCRIPT" type="text/javascript" src="include/js/smoothscroll.js"></script>
  14  
  15  <br>
  16  <table align="center" border="0" cellpadding="0" cellspacing="0" width="98%">
  17  <tbody><tr>
  18          <td valign="top"><img src="{$IMAGE_PATH}showPanelTopLeft.gif"></td>
  19          <td class="showPanelBg" style="padding: 10px;" valign="top" width="100%">
  20  <form action="index.php" method="post" id="form">
  21  <input type='hidden' name='module' value='Users'>
  22  <input type='hidden' name='action' value='DefModuleView'>
  23  <input type='hidden' name='return_action' value='ListView'>
  24  <input type='hidden' name='return_module' value='Users'>
  25  <input type='hidden' name='parenttab' value='Settings'>
  26  
  27          <br>
  28  
  29      <div align=center>
  30              {include file='SetMenu.tpl'}
  31                  <!-- DISPLAY -->
  32                  <table border=0 cellspacing=0 cellpadding=5 width=100% class="settingsSelUITopLine">
  33                  <tr>
  34                      <td width=50 rowspan=2 valign=top><img src="{$IMAGE_PATH}set-IcoTwoTabConfig.gif" alt="{$MOD.LBL_DEFAULT_MODULE_VIEW}" width="48" height="48" border=0 title="{$MOD.LBL_DEFAULT_MODULE_VIEW}"></td>
  35                      <td class=heading2 valign=bottom><b><a href="index.php?module=Settings&action=index&parenttab=Settings">{$MOD.LBL_SETTINGS}</a> > {$MOD.LBL_DEFAULT_MODULE_VIEW}</b></td>
  36                  </tr>
  37                  <tr>
  38                      <td valign=top class="small">{$MOD.LBL_DEFAULT_MODULE_VIEW_DESC}</td>
  39                  </tr>
  40                  </table>
  41                  
  42                  <br>
  43                  <table border=0 cellspacing=0 cellpadding=10 width=100% >
  44                  <tr>
  45                  <td>
  46                  
  47                  <table border=0 cellspacing=0 cellpadding=5 width=100% class="tableHeading">
  48                  <tr>
  49                  <td class="big" height="40px;" width="70%"><strong>{$MOD.LBL_DEFAULT_DETAIL_VIEW}</strong></td>
  50                  <td class="small" align="center" width="30%">&nbsp;
  51                      <span id="view_info" class="crmButton small cancel" style="display:none;"></span>
  52                  </td>
  53                  </tr>
  54                  </table>
  55              
  56                              <table border=0 cellspacing=0 cellpadding=0 width=100% class="listRow">
  57              <tr>
  58                       <td class="small" valign=top ><table width="100%"  border="0" cellspacing="0" cellpadding="5">
  59                          <tr>
  60                              <td width="20%" nowrap class="small cellLabel"><strong>{$MOD.LBL_ENABLE_SINGLEPANE_VIEW}</strong></td>
  61                              <td width="80%" class="small cellText">
  62              {if $ViewStatus eq 'enabled'}
  63                  <input type="checkbox" checked name="enable_audit" onclick="viewenabled(this)"></input>
  64              {else}
  65                  <input type="checkbox" name="enable_audit" onclick="viewenabled(this)"></input>
  66              {/if}
  67              </td>
  68                          </tr>
  69                          
  70                          
  71                          </table>
  72          </td>
  73                          </tr>
  74                          </table>    
  75                  <table border=0 cellspacing=0 cellpadding=5 width=100% >
  76                  <tr>
  77                        <td class="small" nowrap align=right><a href="#top">{$MOD.LBL_SCROLL}</a></td>
  78                  </tr>
  79                  </table>
  80      
  81                  </td>
  82                  </tr>
  83                  </table>
  84              
  85              
  86              
  87              </td>
  88              </tr>
  89              </table>
  90          </td>
  91      </tr>
  92      </table>
  93          
  94      </div>
  95  
  96  </td>
  97          <td valign="top"><img src="{$IMAGE_PATH}showPanelTopRight.gif"></td>
  98     </tr>
  99  </tbody>
 100  </form>
 101  </table>
 102  
 103  {literal}
 104  <script>
 105  
 106  function viewenabled(ochkbox)
 107  {
 108      if(ochkbox.checked == true)
 109      {
 110           var status='enabled';
 111      $('view_info').innerHTML = 'Singlepane View Enabled';
 112           $('view_info').style.display = 'block';        
 113          
 114              
 115      }
 116      else
 117      {
 118          var status = 'disabled';    
 119           $('view_info').innerHTML = 'Singlepane View Disabled';
 120           $('view_info').style.display = 'block';        
 121      
 122      }
 123               $("status").style.display="block";
 124           new Ajax.Request(
 125                  'index.php',
 126                  {queue: {position: 'end', scope: 'command'},
 127                          method: 'post',
 128                          postBody: 'module=Users&action=UsersAjax&file=SaveDefModuleView&ajax=true&audit_trail='+status,
 129                          onComplete: function(response) {
 130                                  $("status").style.display="none";
 131                          }
 132                  }
 133          );
 134              
 135      setTimeout("hide('view_info')",3000);
 136  }
 137  
 138  </script>
 139  {/literal}
 140  


Généré le : Sun Feb 25 10:22:19 2007 par Balluche grâce à PHPXref 0.7