| [ Index ] |
|
Code source de vtiger CRM 5.0.2 |
1 <?php 2 /********************************************************************************* 3 * The contents of this file are subject to the SugarCRM Public License Version 1.1.2 4 * ("License"); You may not use this file except in compliance with the 5 * License. You may obtain a copy of the License at http://www.sugarcrm.com/SPL 6 * Software distributed under the License is distributed on an "AS IS" basis, 7 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for 8 * the specific language governing rights and limitations under the License. 9 * The Original Code is: SugarCRM Open Source 10 * The Initial Developer of the Original Code is SugarCRM, Inc. 11 * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.; 12 * All Rights Reserved. 13 * Contributor(s): ______________________________________. 14 ********************************************************************************/ 15 /********************************************************************************* 16 * $Header: /advent/projects/wesat/vtiger_crm/sugarcrm/modules/Potentials/DetailView.php,v 1.28 2005/04/18 10:37:49 samk Exp $ 17 * Description: TODO: To be written. 18 * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc. 19 * All Rights Reserved. 20 * Contributor(s): ______________________________________.. 21 ********************************************************************************/ 22 23 require_once ('Smarty_setup.php'); 24 require_once ('data/Tracker.php'); 25 require_once ('modules/Potentials/Potentials.php'); 26 require_once ('include/CustomFieldUtil.php'); 27 require_once ('include/utils/utils.php'); 28 require_once ('user_privileges/default_module_view.php'); 29 30 global $mod_strings; 31 global $app_strings; 32 global $currentModule, $singlepane_view; 33 34 $focus = new Potentials(); 35 $smarty = new vtigerCRM_Smarty; 36 37 if(isset($_REQUEST['record']) && $_REQUEST['record']!='') { 38 $focus->retrieve_entity_info($_REQUEST['record'],"Potentials"); 39 $focus->id = $_REQUEST['record']; 40 $focus->name=$focus->column_fields['potentialname']; 41 } 42 if(isset($_REQUEST['isDuplicate']) && $_REQUEST['isDuplicate'] == 'true') { 43 $focus->id = ""; 44 } 45 46 global $theme; 47 $theme_path="themes/".$theme."/"; 48 $image_path=$theme_path."images/"; 49 require_once ($theme_path.'layout_utils.php'); 50 51 $log->info("Potential detail view"); 52 53 $smarty->assign("MOD", $mod_strings); 54 $smarty->assign("APP", $app_strings); 55 56 $smarty->assign("THEME", $theme); 57 $smarty->assign("IMAGE_PATH", $image_path); 58 $smarty->assign("PRINT_URL", "phprint.php?jt=".session_id().$GLOBALS['request_string']); 59 $smarty->assign("ID", $focus->id); 60 $smarty->assign("UPDATEINFO",updateInfo($focus->id)); 61 62 $smarty->assign("ACCOUNTID",$focus->column_fields['account_id']); 63 64 if (isset($focus->name)) $smarty->assign("NAME", $focus->name); 65 else $smarty->assign("NAME", ""); 66 67 $smarty->assign("BLOCKS", getBlocks($currentModule,"detail_view",'',$focus->column_fields)); 68 69 $smarty->assign("CUSTOMFIELD", $cust_fld); 70 $smarty->assign("SINGLE_MOD", 'Opportunity'); 71 $category = getParentTab(); 72 $smarty->assign("CATEGORY",$category); 73 74 75 if(isPermitted("Potentials","EditView",$_REQUEST['record']) == 'yes') 76 $smarty->assign("EDIT_DUPLICATE","permitted"); 77 if(isPermitted("Invoice","EditView",$_REQUEST['record']) == 'yes') 78 $smarty->assign("CONVERTINVOICE","permitted"); 79 if(isPermitted("Potentials","Delete",$_REQUEST['record']) == 'yes') 80 $smarty->assign("DELETE","permitted"); 81 82 $tabid = getTabid("Potentials"); 83 $validationData = getDBValidationData($focus->tab_name,$tabid); 84 $data = split_validationdataArray($validationData); 85 86 $smarty->assign("VALIDATION_DATA_FIELDNAME",$data['fieldname']); 87 $smarty->assign("VALIDATION_DATA_FIELDDATATYPE",$data['datatype']); 88 $smarty->assign("VALIDATION_DATA_FIELDLABEL",$data['fieldlabel']); 89 90 $check_button = Button_Check($module); 91 $smarty->assign("CHECK", $check_button); 92 93 $smarty->assign("CONVERTMODE",'potentoinvoice'); 94 $smarty->assign("MODULE","Potentials"); 95 $smarty->assign("EDIT_PERMISSION",isPermitted($currentModule,'EditView',$_REQUEST[record])); 96 97 if($singlepane_view == 'true') 98 { 99 $related_array = getRelatedLists($currentModule,$focus); 100 $smarty->assign("RELATEDLISTS", $related_array); 101 } 102 103 $smarty->assign("SinglePane_View", $singlepane_view); 104 105 $smarty->display("DetailView.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 |