[ Index ]
 

Code source de vtiger CRM 5.0.2

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

title

Body

[fermer]

/modules/Users/ -> listwordtemplates.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  
  15     global $adb;
  16     $sql = "select templateid, module, description, filename, filesize, filetype from vtiger_wordtemplates order by filename ASC";
  17     $result = $adb->query($sql);
  18  
  19  $edit="Edit  ";
  20  $del="Del  ";
  21  $bar="  | ";
  22  $cnt=1;
  23  
  24  $return_data = Array();
  25  $num_rows = $adb->num_rows($result);
  26  
  27  
  28  for($i=0;$i < $num_rows; $i++)
  29  {    
  30    $wordtemplatearray=array();
  31    $wordtemplatearray['templateid'] = $adb->query_result($result,$i,'templateid');
  32    $wordtemplatearray['description'] = $adb->query_result($result,$i,'description');
  33    $wordtemplatearray['module'] = $adb->query_result($result,$i,'module');
  34    $wordtemplatearray['filename'] = $adb->query_result($result,$i,'filename');
  35    $wordtemplatearray['filetype'] = $adb->query_result($result,$i,'filetype');
  36    $wordtemplatearray['filesize'] = $adb->query_result($result,$i,'filesize');     
  37    $return_data []= $wordtemplatearray;    
  38  }
  39  require_once ('include/utils/UserInfoUtil.php');
  40  global $app_strings;
  41  global $mod_strings;
  42  global $theme;
  43  $theme_path="themes/".$theme."/";
  44  $image_path=$theme_path."images/";
  45  
  46  $smarty = new vtigerCRM_Smarty;
  47  global $current_language;
  48  $smod_strings = return_module_language($current_language,'Settings');
  49  $smarty->assign("MOD", $smod_strings);
  50  $smarty->assign("UMOD", $mod_strings);
  51  $smarty->assign("PARENTTAB", $_REQUEST['parenttab']);
  52  $smarty->assign("IMAGE_PATH",$image_path);
  53  
  54  
  55  $smarty->assign("WORDTEMPLATES",$return_data);
  56  $smarty->display("ListWordTemplates.tpl");
  57  
  58  ?>


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