[ 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 require_once ('modules/Contacts/Contacts.php'); 14 require_once ('include/utils/utils.php'); 15 16 //Redirecting Header for single page layout 17 require_once ('user_privileges/default_module_view.php'); 18 global $singlepane_view; 19 if($singlepane_view == 'true' && $_REQUEST['action'] == 'CallRelatedList' ) 20 { 21 header("Location:index.php?action=DetailView&module=".$_REQUEST['module']."&record=".$_REQUEST['record']."&parenttab=".$_REQUEST['parenttab']); 22 } 23 else 24 { 25 $focus = new Contacts(); 26 $currentmodule = $_REQUEST['module']; 27 $RECORD = $_REQUEST['record']; 28 29 if(isset($_REQUEST['record']) && isset($_REQUEST['record'])) { 30 $focus->retrieve_entity_info($_REQUEST['record'],"Contacts"); 31 $focus->id = $_REQUEST['record']; 32 $focus->name=$focus->column_fields['firstname'].' '.$focus->column_fields['lastname']; 33 34 $log->debug("id is ".$focus->id); 35 36 $log->debug("name is ".$focus->name); 37 38 } 39 40 global $adb; 41 $sql = $adb->query('select accountid from vtiger_contactdetails where contactid='.$focus->id); 42 $accountid = $adb->query_result($sql,0,'accountid'); 43 if($accountid == 0) $accountid=''; 44 45 global $mod_strings; 46 global $app_strings; 47 global $theme; 48 global $currentModule; 49 $theme_path="themes/".$theme."/"; 50 $image_path=$theme_path."images/"; 51 require_once ($theme_path.'layout_utils.php'); 52 53 $smarty = new vtigerCRM_Smarty; 54 $smarty->assign("accountid",$accountid); 55 56 57 if(isset($_request['isduplicate']) && $_request['isduplicate'] == 'true') { 58 $focus->id = ""; 59 } 60 if(isset($_REQUEST['mode']) && $_REQUEST['mode'] != ' ') { 61 $smarty->assign("OP_MODE",$_REQUEST['mode']); 62 } 63 $parent_email = getEmailParentsList('Contacts',$_REQUEST['record']); 64 $smarty->assign("HIDDEN_PARENTS_LIST",$parent_email); 65 $category = getparenttab(); 66 $smarty->assign("CATEGORY",$category); 67 68 $smarty->assign("ID",$focus->id); 69 $smarty->assign("NAME",$focus->name); 70 $related_array = getRelatedLists($currentModule,$focus); 71 $smarty->assign("RELATEDLISTS", $related_array); 72 $smarty->assign("MODULE",$currentmodule); 73 $smarty->assign("SINGLE_MOD",$app_strings['Contact']); 74 $smarty->assign("UPDATEINFO",updateInfo($focus->id)); 75 $smarty->assign("MOD",$mod_strings); 76 $smarty->assign("APP",$app_strings); 77 $smarty->assign("THEME", $theme); 78 $smarty->assign("IMAGE_PATH", $image_path); 79 80 $check_button = Button_Check($module); 81 $smarty->assign("CHECK", $check_button); 82 $smarty->display("RelatedLists.tpl"); 83 } 84 ?>
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 |