[ 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 $theme; 14 $theme_path="themes/".$theme."/"; 15 $image_path=$theme_path."images/"; 16 17 global $app_strings; 18 global $mod_strings; 19 global $currentModule; 20 global $current_language; 21 $current_module_strings = return_module_language($current_language, 'Portal'); 22 global $adb; 23 24 $query="select * from vtiger_portal"; 25 $result=$adb->query($query); 26 //Getting the Default URL Value if any 27 $default_url = $adb->query_result($result,0,'portalurl'); 28 $no_of_portals=$adb->num_rows($result); 29 $portal_info=array(); 30 for($i=0 ; $i<$no_of_portals; $i++) 31 { 32 $portalname = $adb->query_result($result,$i,'portalname'); 33 $portalurl = $adb->query_result($result,$i,'portalurl'); 34 $portal_array['portalid'] = $adb->query_result($result,$i,'portalid'); 35 $portal_array['portalname'] = $portalname; 36 $portal_array['portalurl'] = $portalurl; 37 $portal_info[]=$portal_array; 38 } 39 40 $smarty = new vtigerCRM_Smarty; 41 42 $smarty->assign("IMAGE_PATH", $image_path); 43 $smarty->assign("MOD", $mod_strings); 44 $smarty->assign("DEFAULT_URL", $default_url); 45 $smarty->assign("APP", $app_strings); 46 $smarty->assign("PORTAL_COUNT", count($portal_info)); 47 $smarty->assign("PORTALS", $portal_info); 48 $smarty->assign("MODULE", $currentModule); 49 $smarty->assign("CATEGORY", getParentTab()); 50 if($_REQUEST['datamode'] == 'data') 51 $smarty->display("MySitesContents.tpl"); 52 elseif($_REQUEST['datamode'] == 'manage') 53 $smarty->display("MySitesManage.tpl"); 54 else 55 $smarty->display("MySites.tpl"); 56 57 ?>
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 |