[ Index ]
 

Code source de vtiger CRM 5.0.2

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

title

Body

[fermer]

/modules/Users/ -> OrganizationTermsandConditions.php (source)

   1  <?php
   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 Sourcea
   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  require_once ('include/database/PearDatabase.php');
  14  require_once ('Smarty_setup.php');
  15  
  16  global $mod_strings;
  17  global $app_strings;
  18  global $app_list_strings;
  19  
  20  global $adb;
  21  global $theme;
  22  $theme_path="themes/".$theme."/";
  23  $image_path=$theme_path."images/";
  24  require_once ($theme_path.'layout_utils.php');
  25  
  26  $smarty = new vtigerCRM_Smarty;
  27  $sql="select * from vtiger_inventory_tandc";
  28  $result = $adb->query($sql);
  29  $inventory_id = $adb->query_result($result,0,'id');
  30  $inventory_type = $adb->query_result($result,0,'type');
  31  $inventory_tandc = $adb->query_result($result,0,'tandc');
  32  
  33  if(!isset($_REQUEST['inv_terms_mode']))
  34      $inventory_tandc = nl2br($inventory_tandc);
  35      
  36  if (isset($inventory_tandc))
  37          $smarty->assign("INV_TERMSANDCONDITIONS",$inventory_tandc);
  38  if(isset($_REQUEST['inv_terms_mode']) && $_REQUEST['inv_terms_mode'] != '')
  39      $smarty->assign("INV_TERMS_MODE",$_REQUEST['inv_terms_mode']);
  40  else
  41      $smarty->assign("INV_TERMS_MODE",'view');
  42      
  43  $smarty->assign("MOD", return_module_language($current_language,'Settings'));
  44  $smarty->assign("IMAGE_PATH",$image_path);
  45  $smarty->assign("APP", $app_strings);
  46  $smarty->assign("CMOD", $mod_strings);
  47  $smarty->display("Settings/InventoryTerms.tpl");
  48  ?>


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