[ Index ]
 

Code source de vtiger CRM 5.0.2

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

title

Body

[fermer]

/modules/Settings/ -> CurrencyListView.php (source)

   1  <?php
   2  
   3  /*********************************************************************************
   4  ** The contents of this file are subject to the vtiger CRM Public License Version 1.0
   5   * ("License"); You may not use this file except in compliance with the License
   6   * The Original Code is:  vtiger CRM Open Source
   7   * The Initial Developer of the Original Code is vtiger.
   8   * Portions created by vtiger are Copyright (C) vtiger.
   9   * All Rights Reserved.
  10  *
  11   ********************************************************************************/
  12  require_once ('Smarty_setup.php');
  13  require_once ('include/database/PearDatabase.php');
  14  require_once ('include/utils/UserInfoUtil.php');
  15  global $mod_strings,$adb,$theme;
  16  $theme_path="themes/".$theme."/";
  17  $image_path=$theme_path."images/";
  18  $smarty=new vtigerCRM_Smarty;
  19     $parenttab = $_REQUEST['parenttab'];
  20     $sql = "select * from vtiger_currency_info";
  21     $result = $adb->query($sql);
  22     $temprow = $adb->fetch_array($result);
  23     $cnt=1;
  24     $currency = Array();
  25  do
  26  {
  27      $currency_element = Array();
  28      $currency_element['name'] = $temprow["currency_name"];
  29      $currency_element['code'] = $temprow["currency_code"];
  30      $currency_element['symbol'] = $temprow["currency_symbol"];
  31      $currency_element['crate'] = $temprow["conversion_rate"];
  32      $currency_element['status'] = $temprow["currency_status"];
  33      if($temprow["defaultid"] != '-11')
  34      {
  35          $currency_element['name'] = '<a href=index.php?module=Settings&action=CurrencyEditView&parenttab='.$parenttab.'&record='.$temprow["id"].'&detailview=detail_view>'.$temprow["currency_name"].'</a>';
  36          $currency_element['tool']= '<a href=index.php?module=Settings&action=CurrencyEditView&parenttab='.$parenttab.'&record='.$temprow["id"].'><img src="'.$image_path.'editfield.gif" border="0" alt="Edit" title="Edit"/></a>&nbsp;|&nbsp;<img style="cursor:pointer;" onClick="fnvshobj(this,\'currencydiv\');deleteCurrency(\''.$temprow['id'].'\');" src="'.$image_path.'currencydelete.gif" border="0"  alt="Delete" title="Delete"/>';
  37      }
  38      else
  39          $currency_element['tool']= '';
  40       $currency[] = $currency_element; 
  41      $cnt++;
  42  }while($temprow = $adb->fetch_array($result));
  43  $smarty->assign("PARENTTAB",$parenttab);
  44  $smarty->assign("IMAGE_PATH",$image_path);
  45  $smarty->assign("MOD",$mod_strings);
  46  $smarty->assign("CURRENCY_LIST",$currency);
  47  if($_REQUEST['ajax'] !='')
  48          $smarty->display("CurrencyListViewEntries.tpl");
  49  else
  50          $smarty->display("CurrencyListView.tpl");
  51  ?>
  52  


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