[Vtigercrm-commits] [vtiger-commits] r7193 - /vtigercrm/trunk/modules/Import/ImportSteplast.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Fri Jun 16 11:15:36 EDT 2006
Author: saraj
Date: Fri Jun 16 09:15:32 2006
New Revision: 7193
Log:
* Added code to display the add, search, import, export, etc., buttons
Modified:
vtigercrm/trunk/modules/Import/ImportSteplast.php
Modified: vtigercrm/trunk/modules/Import/ImportSteplast.php
==============================================================================
--- vtigercrm/trunk/modules/Import/ImportSteplast.php (original)
+++ vtigercrm/trunk/modules/Import/ImportSteplast.php Fri Jun 16 09:15:32 2006
@@ -33,31 +33,49 @@
global $app_list_strings;
global $app_strings;
global $current_user;
+
+if (! isset( $_REQUEST['module']))
+{
+ $_REQUEST['module'] = 'Home';
+}
+
+if (! isset( $_REQUEST['return_id']))
+{
+ $_REQUEST['return_id'] = '';
+}
+if (! isset( $_REQUEST['return_module']))
+{
+ $_REQUEST['return_module'] = '';
+}
+
+if (! isset( $_REQUEST['return_action']))
+{
+ $_REQUEST['return_action'] = '';
+}
+
global $theme;
-if (! isset( $_REQUEST['module']))
-{
- $_REQUEST['module'] = 'Home';
-}
-
-if (! isset( $_REQUEST['return_id']))
-{
- $_REQUEST['return_id'] = '';
-}
-if (! isset( $_REQUEST['return_module']))
-{
- $_REQUEST['return_module'] = '';
-}
-
-if (! isset( $_REQUEST['return_action']))
-{
- $_REQUEST['return_action'] = '';
-}
-
$theme_path="themes/".$theme."/";
$image_path=$theme_path."images/";
require_once($theme_path.'layout_utils.php');
$log->info("Import Step last");
+
+//This Buttons_List1.tpl is is called to display the add, search, import and export buttons ie., second level tabs
+$smarty = new vtigerCRM_Smarty;
+
+$smarty->assign("MOD", $mod_strings);
+$smarty->assign("APP", $app_strings);
+$smarty->assign("IMP", $import_mod_strings);
+$smarty->assign("THEME", $theme);
+$smarty->assign("IMAGE_PATH", $image_path);
+
+$smarty->assign("MODULE", $_REQUEST['modulename']);
+$smarty->assign("SINGLE_MOD", $_REQUEST['modulename']);
+$smarty->assign("CATEGORY", $_SESSION['import_parenttab']);
+//@session_unregister("import_parenttab");
+
+$smarty->display("Buttons_List1.tpl");
+
if ( isset($_REQUEST['message']))
{
More information about the vtigercrm-commits
mailing list