[ 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 require_once ('Smarty_setup.php'); 13 global $mod_strings; 14 global $app_strings; 15 global $app_list_strings; 16 17 $smarty = new vtigerCRM_Smarty; 18 //error handling 19 if(isset($_REQUEST['flag']) && $_REQUEST['flag'] != '') 20 { 21 $flag = $_REQUEST['flag']; 22 switch($flag) 23 { 24 case 1: 25 $smarty->assign("ERRORFLAG","<font color='red'><B> Logo has to be an Image of type jpeg/png</B></font>"); 26 break; 27 case 2: 28 $smarty->assign("ERRORFLAG","<font color='red'><B>Error Message<ul><li><font color='red'>Invalid file OR</font><li><font color='red'>File has no data</font></ul></B></font>"); 29 break; 30 case 3: 31 $smarty->assign("ERRORFLAG","<B><font color='red'>Sorry, the uploaded file exceeds the maximum vtiger_filesize limit. Please try a file smaller than 800000 bytes</font></B>"); 32 break; 33 case 4: 34 $smarty->assign("ERRORFLAG","<b>Problems in file upload. Please try again! </b><br>"); 35 break; 36 default: 37 $smarty->assign("ERRORFLAG",""); 38 39 } 40 } 41 global $adb; 42 global $theme; 43 $theme_path="themes/".$theme."/"; 44 $image_path=$theme_path."images/"; 45 require_once ($theme_path.'layout_utils.php'); 46 47 $sql="select * from vtiger_organizationdetails"; 48 $result = $adb->query($sql); 49 $organization_name = $adb->query_result($result,0,'organizationname'); 50 $organization_address= $adb->query_result($result,0,'address'); 51 $organization_city = $adb->query_result($result,0,'city'); 52 $organization_state = $adb->query_result($result,0,'state'); 53 $organization_code = $adb->query_result($result,0,'code'); 54 $organization_country = $adb->query_result($result,0,'country'); 55 $organization_phone = $adb->query_result($result,0,'phone'); 56 $organization_fax = $adb->query_result($result,0,'fax'); 57 $organization_website = $adb->query_result($result,0,'website'); 58 $organization_logoname = $adb->query_result($result,0,'logoname'); 59 60 61 if (isset($organization_name)) 62 $smarty->assign("ORGANIZATIONNAME",$organization_name); 63 if (isset($organization_address)) 64 $smarty->assign("ORGANIZATIONADDRESS",$organization_address); 65 if (isset($organization_city)) 66 $smarty->assign("ORGANIZATIONCITY",$organization_city); 67 if (isset($organization_state)) 68 $smarty->assign("ORGANIZATIONSTATE",$organization_state); 69 if (isset($organization_code)) 70 $smarty->assign("ORGANIZATIONCODE",$organization_code); 71 if (isset($organization_country)) 72 $smarty->assign("ORGANIZATIONCOUNTRY",$organization_country); 73 if (isset($organization_phone)) 74 $smarty->assign("ORGANIZATIONPHONE",$organization_phone); 75 if (isset($organization_fax)) 76 $smarty->assign("ORGANIZATIONFAX",$organization_fax); 77 if (isset($organization_website)) 78 $smarty->assign("ORGANIZATIONWEBSITE",$organization_website); 79 if ($organization_logoname == '') 80 $organization_logoname = $_REQUEST['prev_name']; 81 if (isset($organization_logoname)) 82 $smarty->assign("ORGANIZATIONLOGONAME",$organization_logoname); 83 84 85 $smarty->assign("MOD", return_module_language($current_language,'Settings')); 86 $smarty->assign("IMAGE_PATH",$image_path); 87 $smarty->assign("APP", $app_strings); 88 $smarty->assign("CMOD", $mod_strings); 89 $smarty->display('Settings/EditCompanyInfo.tpl'); 90 ?>
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 |