[ Index ] |
|
Code source de vtiger CRM 5.0.2 |
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 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 require_once ('Smarty_setup.php'); 14 15 global $mod_strings; 16 global $app_strings; 17 global $app_list_strings; 18 global $adb; 19 global $theme; 20 $theme_path="themes/".$theme."/"; 21 $image_path=$theme_path."images/"; 22 require_once ($theme_path.'layout_utils.php'); 23 24 global $mod_strings; 25 global $app_strings; 26 global $app_list_strings; 27 28 29 global $adb; 30 global $theme; 31 $theme_path="themes/".$theme."/"; 32 $image_path=$theme_path."images/"; 33 require_once ($theme_path.'layout_utils.php'); 34 35 36 $smarty = new vtigerCRM_Smarty; 37 38 $sql="select * from vtiger_organizationdetails"; 39 $result = $adb->query($sql); 40 $organization_name = $adb->query_result($result,0,'organizationname'); 41 $organization_address= $adb->query_result($result,0,'address'); 42 $organization_city = $adb->query_result($result,0,'city'); 43 $organization_state = $adb->query_result($result,0,'state'); 44 $organization_code = $adb->query_result($result,0,'code'); 45 $organization_country = $adb->query_result($result,0,'country'); 46 $organization_phone = $adb->query_result($result,0,'phone'); 47 $organization_fax = $adb->query_result($result,0,'fax'); 48 $organization_website = $adb->query_result($result,0,'website'); 49 $organization_logo = $adb->query_result($result,0,'logo'); 50 $organization_logoname = $adb->query_result($result,0,'logoname'); 51 52 if (isset($organization_name)) 53 $smarty->assign("ORGANIZATIONNAME",$organization_name); 54 if (isset($organization_address)) 55 $smarty->assign("ORGANIZATIONADDRESS",$organization_address); 56 if (isset($organization_city)) 57 $smarty->assign("ORGANIZATIONCITY",$organization_city); 58 if (isset($organization_state)) 59 $smarty->assign("ORGANIZATIONSTATE",$organization_state); 60 if (isset($organization_code)) 61 $smarty->assign("ORGANIZATIONCODE",$organization_code); 62 if (isset($organization_country)) 63 $smarty->assign("ORGANIZATIONCOUNTRY",$organization_country); 64 if (isset($organization_phone)) 65 $smarty->assign("ORGANIZATIONPHONE",$organization_phone); 66 if (isset($organization_fax)) 67 $smarty->assign("ORGANIZATIONFAX",$organization_fax); 68 if (isset($organization_website)) 69 $smarty->assign("ORGANIZATIONWEBSITE",$organization_website); 70 if (isset($organization_logo)) 71 $smarty->assign("ORGANIZATIONLOGO",$organization_logo); 72 73 $path = "test/logo"; 74 $dir_handle = @opendir($path) or die("Unable to open directory $path"); 75 76 while ($file = readdir($dir_handle)) 77 { 78 $filetyp =str_replace(".",'',strtolower(substr($file, -4))); 79 if($organization_logoname==$file) 80 { 81 if ($filetyp == 'jpeg' OR $filetyp == 'jpg' OR $filetyp == 'png') 82 { 83 if($file!="." && $file!="..") 84 { 85 86 $organization_logopath= $path; 87 $logo_name=$file; 88 } 89 90 } 91 } 92 } 93 94 95 if (isset($organization_logopath)) 96 $smarty->assign("ORGANIZATIONLOGOPATH",$path); 97 if (isset($organization_logoname)) 98 $smarty->assign("ORGANIZATIONLOGONAME",$logo_name); 99 closedir($dir_handle); 100 101 $smarty->assign("MOD", return_module_language($current_language,'Settings')); 102 $smarty->assign("IMAGE_PATH",$image_path); 103 $smarty->assign("APP", $app_strings); 104 $smarty->assign("CMOD", $mod_strings); 105 $smarty->display('Settings/CompanyInfo.tpl'); 106 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 10:22:19 2007 | par Balluche grâce à PHPXref 0.7 |