[ 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/Import/ImportLead.php'); 14 require_once ('modules/Import/ImportAccount.php'); 15 require_once ('modules/Import/ImportContact.php'); 16 require_once ('modules/Import/ImportOpportunity.php'); 17 require_once ('modules/Import/ImportProduct.php'); 18 require_once ('modules/Import/ImportMap.php'); 19 require_once ('include/utils/CommonUtils.php'); 20 21 global $mod_strings; 22 global $app_strings; 23 global $app_list_strings; 24 global $current_user; 25 26 global $import_mod_strings; 27 28 $focus = 0; 29 30 global $theme; 31 $theme_path="themes/".$theme."/"; 32 $image_path=$theme_path."images/"; 33 require_once ($theme_path.'layout_utils.php'); 34 35 $log->info($mod_strings['LBL_MODULE_NAME'] . " Upload Step 1"); 36 37 $smarty = new vtigerCRM_Smarty; 38 39 $smarty->assign("MOD", $mod_strings); 40 $smarty->assign("APP", $app_strings); 41 $smarty->assign("IMP", $import_mod_strings); 42 43 $smarty->assign("CATEGORY", $_REQUEST['parenttab']); 44 45 $import_object_array = Array( 46 "Leads"=>"ImportLead", 47 "Accounts"=>"ImportAccount", 48 "Contacts"=>"ImportContact", 49 "Potentials"=>"ImportOpportunity", 50 "Products"=>"ImportProduct" 51 ); 52 53 if(isset($_REQUEST['module']) && $_REQUEST['module'] != '') 54 { 55 $object_name = $import_object_array[$_REQUEST['module']]; 56 $focus = new $object_name(); 57 } 58 else 59 { 60 echo "Sorry! Import Option is not provided for this module."; 61 exit; 62 } 63 64 if(isset($_REQUEST['return_module'])) $smarty->assign("RETURN_MODULE", $_REQUEST['return_module']); 65 if(isset($_REQUEST['return_action'])) $smarty->assign("RETURN_ACTION", $_REQUEST['return_action']); 66 67 $smarty->assign("THEME", $theme); 68 $smarty->assign("IMAGE_PATH", $image_path); 69 $smarty->assign("PRINT_URL", "phprint.php?jt=".session_id().$GLOBALS['request_string']); 70 71 $smarty->assign("HEADER", $app_strings['LBL_IMPORT']." ". $mod_strings['LBL_MODULE_NAME']); 72 $smarty->assign("HAS_HEADER_CHECKED"," CHECKED"); 73 74 $smarty->assign("MODULE", $_REQUEST['module']); 75 $smarty->assign("SOURCE", $_REQUEST['source']); 76 77 //we have set this as default. upto 4.2.3 we have Outlook, Act, SF formats. but now CUSTOM is enough to import 78 $lang_key = "CUSTOM"; 79 $smarty->assign("INSTRUCTIONS_TITLE",$mod_strings["LBL_IMPORT_{$lang_key}_TITLE"]); 80 81 for($i = 1; isset($mod_strings["LBL_{$lang_key}_NUM_$i"]);$i++) 82 { 83 $smarty->assign("STEP_NUM",$mod_strings["LBL_NUM_$i"]); 84 $smarty->assign("INSTRUCTION_STEP",$mod_strings["LBL_{$lang_key}_NUM_$i"]); 85 } 86 87 $smarty->display("ImportStep1.tpl"); 88 89 ?>
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 |