[ Index ]
 

Code source de vtiger CRM 5.0.2

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

title

Body

[fermer]

/Smarty/templates/ -> CurrencyEditView.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  <script language="JAVASCRIPT" type="text/javascript" src="include/js/smoothscroll.js"></script>
  13  <script language="JavaScript" type="text/javascript" src="include/js/menu.js"></script>
  14  <br>
  15  <table align="center" border="0" cellpadding="0" cellspacing="0" width="98%">
  16  <tbody><tr>
  17          <td valign="top"><img src="{$IMAGE_PATH}showPanelTopLeft.gif"></td>
  18          <td class="showPanelBg" style="padding: 10px;" valign="top" width="100%">
  19  <br>
  20      <div align=center>
  21              {include file='SetMenu.tpl'}
  22              <!-- DISPLAY -->
  23              <table border=0 cellspacing=0 cellpadding=5 width=100% class="settingsSelUITopLine">
  24              <form action="index.php" method="post" name="index" id="form">
  25              <input type="hidden" name="module" value="Settings">
  26              <input type="hidden" name="parenttab" value="{$PARENTTAB}">
  27              <input type="hidden" name="action" value="index">
  28              <input type="hidden" name="record" value="{$ID}">
  29              <tr>
  30                  <td width=50 rowspan=2 valign=top><img src="{$IMAGE_PATH}currency.gif" alt="Users" width="48" height="48" border=0 title="Users"></td>
  31                  <td class="heading2" valign="bottom" ><b><a href="index.php?module=Settings&action=index&parenttab=Settings">{$MOD.LBL_SETTINGS}</a> > <a href="index.php?module=Settings&action=CurrencyListView&parenttab=Settings">{$MOD.LBL_CURRENCY_SETTINGS}</a> > 
  32                  {if $ID neq ''}
  33                      {$MOD.LBL_EDIT} &quot;{$CURRENCY_NAME}&quot; 
  34                  {else}
  35                      {$MOD.LBL_NEW_CURRENCY}
  36                  {/if}
  37                  </b></td>
  38              </tr>
  39              <tr>
  40                  <td valign=top class="small">{$MOD.LBL_CURRENCY_DESCRIPTION}</td>
  41              </tr>
  42              </table>
  43                  
  44                  <br>
  45                  <table border=0 cellspacing=0 cellpadding=10 width=100% >
  46                  <tr>
  47                  <td>
  48                  
  49                      <table border=0 cellspacing=0 cellpadding=5 width=100% class="tableHeading">
  50                      <tr>
  51                          {if $ID neq ''}
  52                              <td class="big"><strong>{$MOD.LBL_SETTINGS} {$APP.LBL_FOR} &quot;{$CURRENCY_NAME}&quot;  </strong></td>
  53                          {else}
  54                              <td class="big"><strong>&quot;{$MOD.LBL_NEW_CURRENCY}&quot;  </strong></td>
  55                          {/if}
  56                          <td class="small" align=right>
  57                              <input title="{$APP.LBL_SAVE_BUTTON_LABEL}" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="crmButton small save" onclick="this.form.action.value='SaveCurrencyInfo'; return validate()" type="submit" name="button" value="{$APP.LBL_SAVE_BUTTON_LABEL}" >&nbsp;&nbsp;
  58                              <input title="{$APP.LBL_CANCEL_BUTTON_LABEL}>" accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" class="crmButton small cancel" onclick="window.history.back()" type="button" name="button" value="{$APP.LBL_CANCEL_BUTTON_LABEL}">
  59                          </td>
  60                      </tr>
  61                      </table>
  62                      
  63              <table border=0 cellspacing=0 cellpadding=0 width=100% class="listRow">
  64              <tr>
  65              <td class="small" valign=top >
  66              <table width="100%"  border="0" cellspacing="0" cellpadding="5">
  67                <tr>
  68                              <td width="20%" nowrap class="small cellLabel"><font color="red">*</font><strong>{$MOD.LBL_CURRENCY_NAME}</strong></td>
  69                              <td width="80%" class="small cellText"><input type="text" class="detailedViewTextBox small" value="{$CURRENCY_NAME}" name="currency_name"></td>
  70                            </tr>
  71                            <tr valign="top">
  72                              <td nowrap class="small cellLabel"><font color="red">*</font><strong>{$MOD.LBL_CURRENCY_CODE}</strong></td>
  73                              <td class="small cellText"><input type="text" class="detailedViewTextBox small" value="{$CURRENCY_CODE}" name="currency_code"></td>
  74                            </tr>
  75                            <tr valign="top">
  76                              <td nowrap class="small cellLabel"><font color="red">*</font><strong>{$MOD.LBL_CURRENCY_SYMBOL}</strong></td>
  77                              <td class="small cellText"><input type="text" class="detailedViewTextBox small" value="{$CURRENCY_SYMBOL}" name="currency_symbol"></td>
  78                            </tr>
  79                            <tr valign="top">
  80                              <td nowrap class="small cellLabel"><font color="red">*</font><strong>{$MOD.LBL_CURRENCY_CRATE}</strong><br>({$MOD.LBL_BASE_CURRENCY}{$MASTER_CURRENCY})</td>
  81  
  82                              <td class="small cellText"><input type="text" class="detailedViewTextBox small" value="{$CONVERSION_RATE}" name="conversion_rate"></td>
  83                            </tr>
  84                            <tr>
  85                              <td nowrap class="small cellLabel"><strong>{$MOD.LBL_CURRENCY_STATUS}</strong></td>
  86                              <td class="small cellText">
  87                  <select name="currency_status" {$STATUS_DISABLE} class="importBox">
  88                      <option value="Active"  {$ACTSELECT}>{$MOD.LBL_ACTIVE}</option>
  89                              <option value="Inactive" {$INACTSELECT}>{$MOD.LBL_INACTIVE}</option>
  90                                    </select>
  91                  </td>
  92                            </tr>    
  93                          </table>
  94                          
  95                          </td>
  96                        </tr>
  97                      </table>
  98                      <table border=0 cellspacing=0 cellpadding=5 width=100% >
  99                      <tr>
 100                        <td class="small" nowrap align=right><a href="#top">{$MOD.LBL_SCROLL}</a></td>
 101                      </tr>
 102                      </table>
 103                  </td>
 104                  </tr>
 105                  </table>
 106              
 107              
 108              
 109              </td>
 110              </tr>
 111              </table>
 112          </td>
 113      </tr>
 114      </form>
 115      </table>
 116          
 117      </div>
 118  </td>
 119          <td valign="top"><img src="{$IMAGE_PATH}showPanelTopRight.gif"></td>
 120     </tr>
 121  </tbody>
 122  </table>
 123  {literal}
 124  <script>
 125          function validate() {
 126                  if (!emptyCheck("currency_name","Currency Name","text")) return false
 127                          if (!emptyCheck("currency_code","Currency Code","text")) return false
 128                                  if (!emptyCheck("currency_symbol","Currency Symbol","text")) return false
 129                                          if (!emptyCheck("conversion_rate","Conversion Rate","text")) return false
 130                                                  if (!emptyCheck("currency_status","Currency Status","text")) return false
 131                          if(isNaN(getObj("conversion_rate").value) || eval(getObj("conversion_rate")
 132  .value) == 0)
 133                                                  {
 134                                                          alert("Enter valid Conversion Rate")
 135                                                          return false
 136                                                  }
 137                                                  return true;
 138  
 139          }
 140  </script>
 141  {/literal}


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