[ 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$ 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 global $mod_strings; 24 global $app_strings; 25 global $moduleList; 26 27 require_once ('include/utils/utils.php'); 28 require_once ('include/utils/UserInfoUtil.php'); 29 30 31 $module_menu_array = Array('Contacts' => $app_strings['LNK_NEW_CONTACT'], 32 'Leads'=> $app_strings['LNK_NEW_LEAD'], 33 'Accounts' => $app_strings['LNK_NEW_ACCOUNT'], 34 'Potentials' => $app_strings['LNK_NEW_OPPORTUNITY'], 35 'HelpDesk' => $app_strings['LNK_NEW_HDESK'], 36 'Faq' => $app_strings['LNK_NEW_FAQ'], 37 'Products' => $app_strings['LNK_NEW_PRODUCT'], 38 'Notes' => $app_strings['LNK_NEW_NOTE'], 39 'Emails' => $app_strings['LNK_NEW_EMAIL'], 40 'Events' => $app_strings['LNK_NEW_EVENT'], 41 'Tasks' => $app_strings['LNK_NEW_TASK'], 42 'Vendor' => $app_strings['LNK_NEW_VENDOR'], 43 'PriceBook' => $app_strings['LNK_NEW_PRICEBOOK'], 44 'Quotes' => $app_strings['LNK_NEW_QUOTE'], 45 'PurchaseOrder' => $app_strings['LNK_NEW_PO'], 46 'SalesOrder' => $app_strings['LNK_NEW_SO'], 47 'Invoice' => $app_strings['LNK_NEW_INVOICE'] 48 ); 49 $module_menu = Array(); 50 $i= 0; 51 $add_url = ""; 52 foreach($module_menu_array as $module1 => $label) 53 { 54 $add_url=''; 55 $curr_action = 'EditView'; 56 $ret_action = 'DetailView'; 57 if($module1 == 'Events') 58 { 59 $module_display = 'Activities'; 60 $add_url = "&activity_mode=Events"; 61 $tabid = getTabid($module1); 62 } 63 elseif($module1 == 'Tasks') 64 { 65 $module_display = 'Activities'; 66 $add_url = "&activity_mode=Task"; 67 $tabid = getTabid("Activities"); 68 } 69 else 70 { 71 $module_display = $module1; 72 $tabid = getTabid($module1); 73 } 74 75 if(in_array($module_display, $moduleList)) 76 { 77 78 if(isPermitted($module_display,'EditView') == 'yes') 79 { 80 $tempArray = Array("index.php?module=".$module_display."&action=".$curr_action."&return_module=".$module_display."&return_action=".$ret_action.$add_url, $label); 81 $module_menu[$i] = $tempArray; 82 $i++; 83 } 84 } 85 elseif($module_display == 'Faq') 86 { 87 $tempArray = Array("index.php?module=".$module_display."&action=".$curr_action."&return_module=".$module_display."&return_action=".$ret_action.$add_url, $label); 88 $module_menu[$i] = $tempArray; 89 $i++; 90 } 91 92 } 93 94 95 ?>
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 |