[Vtigercrm-commits] [vtiger-commits] r9447 - in /vtigercrm/trunk/modules: Accounts/ Campaigns/ Contacts/ HelpDesk/ Invoice/ Leads/ Potentials/ PriceBooks/ Products/ PurchaseOrder/ Quotes/ SalesOrder/ Vendors/
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue Sep 12 13:12:33 EDT 2006
Author: jerrydgeorge
Date: Tue Sep 12 11:11:57 2006
New Revision: 9447
Log:
header redirected to detailview at any case for singlepane view
Modified:
vtigercrm/trunk/modules/Accounts/CallRelatedList.php
vtigercrm/trunk/modules/Campaigns/CallRelatedList.php
vtigercrm/trunk/modules/Contacts/CallRelatedList.php
vtigercrm/trunk/modules/HelpDesk/CallRelatedList.php
vtigercrm/trunk/modules/Invoice/CallRelatedList.php
vtigercrm/trunk/modules/Leads/CallRelatedList.php
vtigercrm/trunk/modules/Potentials/CallRelatedList.php
vtigercrm/trunk/modules/PriceBooks/CallRelatedList.php
vtigercrm/trunk/modules/Products/CallRelatedList.php
vtigercrm/trunk/modules/PurchaseOrder/CallRelatedList.php
vtigercrm/trunk/modules/Quotes/CallRelatedList.php
vtigercrm/trunk/modules/SalesOrder/CallRelatedList.php
vtigercrm/trunk/modules/Vendors/CallRelatedList.php
Modified: vtigercrm/trunk/modules/Accounts/CallRelatedList.php
==============================================================================
--- vtigercrm/trunk/modules/Accounts/CallRelatedList.php (original)
+++ vtigercrm/trunk/modules/Accounts/CallRelatedList.php Tue Sep 12 11:11:57 2006
@@ -13,7 +13,15 @@
require_once('Smarty_setup.php');
require_once('modules/Accounts/Account.php');
require_once('include/utils/utils.php');
-
+//Redirecting Header for single page layout
+require_once('user_privileges/default_module_view.php');
+global $singlepane_view;
+if($singlepane_view == 'true' && $_REQUEST['action'] == 'CallRelatedList' )
+{
+ header("Location:index.php?action=DetailView&module=".$_REQUEST['module']."&record=".$_REQUEST['record']."&parenttab=".$_REQUEST['parenttab']);
+}
+else
+{
$focus = new Account();
$currentmodule = $_REQUEST['module'];
$RECORD = $_REQUEST['record'];
@@ -65,5 +73,5 @@
$smarty->assign("CHECK", $check_button);
$smarty->display("RelatedLists.tpl");
-
+}
?>
Modified: vtigercrm/trunk/modules/Campaigns/CallRelatedList.php
==============================================================================
--- vtigercrm/trunk/modules/Campaigns/CallRelatedList.php (original)
+++ vtigercrm/trunk/modules/Campaigns/CallRelatedList.php Tue Sep 12 11:11:57 2006
@@ -14,7 +14,15 @@
require_once('modules/Campaigns/Campaign.php');
require_once('modules/CustomView/CustomView.php');
require_once('include/utils/utils.php');
-
+//Redirecting Header for single page layout
+require_once('user_privileges/default_module_view.php');
+global $singlepane_view;
+if($singlepane_view == 'true' && $_REQUEST['action'] == 'CallRelatedList' )
+{
+ header("Location:index.php?action=DetailView&module=".$_REQUEST['module']."&record=".$_REQUEST['record']."&parenttab=".$_REQUEST['parenttab']);
+}
+else
+{
$focus = new Campaign();
$currentmodule = $_REQUEST['module'];
$RECORD = $_REQUEST['record'];
@@ -72,4 +80,5 @@
$smarty->assign("CHECK", $check_button);
$smarty->display("RelatedLists.tpl");
+}
?>
Modified: vtigercrm/trunk/modules/Contacts/CallRelatedList.php
==============================================================================
--- vtigercrm/trunk/modules/Contacts/CallRelatedList.php (original)
+++ vtigercrm/trunk/modules/Contacts/CallRelatedList.php Tue Sep 12 11:11:57 2006
@@ -13,6 +13,15 @@
require_once('modules/Contacts/Contact.php');
require_once('include/utils/utils.php');
+//Redirecting Header for single page layout
+require_once('user_privileges/default_module_view.php');
+global $singlepane_view;
+if($singlepane_view == 'true' && $_REQUEST['action'] == 'CallRelatedList' )
+{
+ header("Location:index.php?action=DetailView&module=".$_REQUEST['module']."&record=".$_REQUEST['record']."&parenttab=".$_REQUEST['parenttab']);
+}
+else
+{
$focus = new Contact();
$currentmodule = $_REQUEST['module'];
$RECORD = $_REQUEST['record'];
@@ -71,4 +80,5 @@
$check_button = Button_Check($module);
$smarty->assign("CHECK", $check_button);
$smarty->display("RelatedLists.tpl");
+}
?>
Modified: vtigercrm/trunk/modules/HelpDesk/CallRelatedList.php
==============================================================================
--- vtigercrm/trunk/modules/HelpDesk/CallRelatedList.php (original)
+++ vtigercrm/trunk/modules/HelpDesk/CallRelatedList.php Tue Sep 12 11:11:57 2006
@@ -14,6 +14,15 @@
require_once('modules/HelpDesk/HelpDesk.php');
require_once('include/utils/utils.php');
+//Redirecting Header for single page layout
+require_once('user_privileges/default_module_view.php');
+global $singlepane_view;
+if($singlepane_view == 'true' && $_REQUEST['action'] == 'CallRelatedList' )
+{
+ header("Location:index.php?action=DetailView&module=".$_REQUEST['module']."&record=".$_REQUEST['record']."&parenttab=".$_REQUEST['parenttab']);
+}
+else
+{
$focus = new HelpDesk();
$currentmodule = $_REQUEST['module'];
$RECORD = $_REQUEST['record'];
@@ -63,4 +72,5 @@
$smarty->assign("CHECK", $check_button);
$smarty->display("RelatedLists.tpl");
+}
?>
Modified: vtigercrm/trunk/modules/Invoice/CallRelatedList.php
==============================================================================
--- vtigercrm/trunk/modules/Invoice/CallRelatedList.php (original)
+++ vtigercrm/trunk/modules/Invoice/CallRelatedList.php Tue Sep 12 11:11:57 2006
@@ -14,6 +14,15 @@
require_once('modules/Invoice/Invoice.php');
require_once('include/utils/utils.php');
+//Redirecting Header for single page layout
+require_once('user_privileges/default_module_view.php');
+global $singlepane_view;
+if($singlepane_view == 'true' && $_REQUEST['action'] == 'CallRelatedList' )
+{
+ header("Location:index.php?action=DetailView&module=".$_REQUEST['module']."&record=".$_REQUEST['record']."&parenttab=".$_REQUEST['parenttab']);
+}
+else
+{
$focus = new Invoice();
$currentmodule = $_REQUEST['module'];
$RECORD = $_REQUEST['record'];
@@ -56,4 +65,5 @@
$check_button = Button_Check($module);
$smarty->assign("CHECK", $check_button);
$smarty->display("RelatedLists.tpl");
+}
?>
Modified: vtigercrm/trunk/modules/Leads/CallRelatedList.php
==============================================================================
--- vtigercrm/trunk/modules/Leads/CallRelatedList.php (original)
+++ vtigercrm/trunk/modules/Leads/CallRelatedList.php Tue Sep 12 11:11:57 2006
@@ -13,6 +13,15 @@
require_once('Smarty_setup.php');
require_once('modules/Leads/Lead.php');
require_once('include/utils/utils.php');
+//Redirecting Header for single page layout
+require_once('user_privileges/default_module_view.php');
+global $singlepane_view;
+if($singlepane_view == 'true' && $_REQUEST['action'] == 'CallRelatedList' )
+{
+ header("Location:index.php?action=DetailView&module=".$_REQUEST['module']."&record=".$_REQUEST['record']."&parenttab=".$_REQUEST['parenttab']);
+}
+else
+{
$focus = new Lead();
$MODULE = $_REQUEST['module'];
$RECORD = $_REQUEST['record'];
@@ -71,5 +80,5 @@
$check_button = Button_Check($module);
$smarty->assign("CHECK", $check_button);
$smarty->display("RelatedLists.tpl");
-
+}
?>
Modified: vtigercrm/trunk/modules/Potentials/CallRelatedList.php
==============================================================================
--- vtigercrm/trunk/modules/Potentials/CallRelatedList.php (original)
+++ vtigercrm/trunk/modules/Potentials/CallRelatedList.php Tue Sep 12 11:11:57 2006
@@ -12,6 +12,15 @@
require_once('Smarty_setup.php');
require_once('modules/Potentials/Opportunity.php');
+//Redirecting Header for single page layout
+require_once('user_privileges/default_module_view.php');
+global $singlepane_view;
+if($singlepane_view == 'true' && $_REQUEST['action'] == 'CallRelatedList' )
+{
+ header("Location:index.php?action=DetailView&module=".$_REQUEST['module']."&record=".$_REQUEST['record']."&parenttab=".$_REQUEST['parenttab']);
+}
+else
+{
$focus = new Potential();
$currentmodule = $_REQUEST['module'];
$RECORD = $_REQUEST['record'];
@@ -57,5 +66,5 @@
$check_button = Button_Check($module);
$smarty->assign("CHECK", $check_button);
$smarty->display("RelatedLists.tpl");
-
+}
?>
Modified: vtigercrm/trunk/modules/PriceBooks/CallRelatedList.php
==============================================================================
--- vtigercrm/trunk/modules/PriceBooks/CallRelatedList.php (original)
+++ vtigercrm/trunk/modules/PriceBooks/CallRelatedList.php Tue Sep 12 11:11:57 2006
@@ -11,7 +11,15 @@
require_once('Smarty_setup.php');
require_once('modules/PriceBooks/PriceBook.php');
-
+//Redirecting Header for single page layout
+require_once('user_privileges/default_module_view.php');
+global $singlepane_view;
+if($singlepane_view == 'true' && $_REQUEST['action'] == 'CallRelatedList' )
+{
+ header("Location:index.php?action=DetailView&module=".$_REQUEST['module']."&record=".$_REQUEST['record']."&parenttab=".$_REQUEST['parenttab']);
+}
+else
+{
global $currentModule;
$focus = new PriceBook();
@@ -66,5 +74,5 @@
$smarty->display("RelatedListContents.tpl");
else
$smarty->display("RelatedLists.tpl");
-
+}
?>
Modified: vtigercrm/trunk/modules/Products/CallRelatedList.php
==============================================================================
--- vtigercrm/trunk/modules/Products/CallRelatedList.php (original)
+++ vtigercrm/trunk/modules/Products/CallRelatedList.php Tue Sep 12 11:11:57 2006
@@ -12,6 +12,15 @@
require_once('Smarty_setup.php');
require_once('modules/Products/Product.php');
+//Redirecting Header for single page layout
+require_once('user_privileges/default_module_view.php');
+global $singlepane_view;
+if($singlepane_view == 'true' && $_REQUEST['action'] == 'CallRelatedList' )
+{
+ header("Location:index.php?action=DetailView&module=".$_REQUEST['module']."&record=".$_REQUEST['record']."&parenttab=".$_REQUEST['parenttab']);
+}
+else
+{
$focus = new Product();
$currentmodule = $_REQUEST['module'];
$RECORD = $_REQUEST['record'];
@@ -58,5 +67,5 @@
$check_button = Button_Check($module);
$smarty->assign("CHECK", $check_button);
$smarty->display("RelatedLists.tpl");
-
+}
?>
Modified: vtigercrm/trunk/modules/PurchaseOrder/CallRelatedList.php
==============================================================================
--- vtigercrm/trunk/modules/PurchaseOrder/CallRelatedList.php (original)
+++ vtigercrm/trunk/modules/PurchaseOrder/CallRelatedList.php Tue Sep 12 11:11:57 2006
@@ -12,6 +12,15 @@
require_once('Smarty_setup.php');
require_once('modules/PurchaseOrder/PurchaseOrder.php');
+//Redirecting Header for single page layout
+require_once('user_privileges/default_module_view.php');
+global $singlepane_view;
+if($singlepane_view == 'true' && $_REQUEST['action'] == 'CallRelatedList' )
+{
+ header("Location:index.php?action=DetailView&module=".$_REQUEST['module']."&record=".$_REQUEST['record']."&parenttab=".$_REQUEST['parenttab']);
+}
+else
+{
$focus = new Order();
$currentmodule = $_REQUEST['module'];
$RECORD = $_REQUEST['record'];
@@ -52,4 +61,5 @@
$check_button = Button_Check($module);
$smarty->assign("CHECK", $check_button);
$smarty->display("RelatedLists.tpl");
+}
?>
Modified: vtigercrm/trunk/modules/Quotes/CallRelatedList.php
==============================================================================
--- vtigercrm/trunk/modules/Quotes/CallRelatedList.php (original)
+++ vtigercrm/trunk/modules/Quotes/CallRelatedList.php Tue Sep 12 11:11:57 2006
@@ -12,6 +12,15 @@
require_once('Smarty_setup.php');
require_once('modules/Quotes/Quote.php');
+//Redirecting Header for single page layout
+require_once('user_privileges/default_module_view.php');
+global $singlepane_view;
+if($singlepane_view == 'true' && $_REQUEST['action'] == 'CallRelatedList' )
+{
+ header("Location:index.php?action=DetailView&module=".$_REQUEST['module']."&record=".$_REQUEST['record']."&parenttab=".$_REQUEST['parenttab']);
+}
+else
+{
$focus = new Quote();
$currentmodule = $_REQUEST['module'];
$RECORD = $_REQUEST['record'];
@@ -52,4 +61,5 @@
$check_button = Button_Check($module);
$smarty->assign("CHECK", $check_button);
$smarty->display("RelatedLists.tpl");
+}
?>
Modified: vtigercrm/trunk/modules/SalesOrder/CallRelatedList.php
==============================================================================
--- vtigercrm/trunk/modules/SalesOrder/CallRelatedList.php (original)
+++ vtigercrm/trunk/modules/SalesOrder/CallRelatedList.php Tue Sep 12 11:11:57 2006
@@ -11,6 +11,15 @@
require_once('Smarty_setup.php');
require_once('modules/SalesOrder/SalesOrder.php');
+//Redirecting Header for single page layout
+require_once('user_privileges/default_module_view.php');
+global $singlepane_view;
+if($singlepane_view == 'true' && $_REQUEST['action'] == 'CallRelatedList' )
+{
+ header("Location:index.php?action=DetailView&module=".$_REQUEST['module']."&record=".$_REQUEST['record']."&parenttab=".$_REQUEST['parenttab']);
+}
+else
+{
$focus = new SalesOrder();
$currentmodule = $_REQUEST['module'];
$RECORD = $_REQUEST['record'];
@@ -51,4 +60,5 @@
$check_button = Button_Check($module);
$smarty->assign("CHECK", $check_button);
$smarty->display("RelatedLists.tpl");
+}
?>
Modified: vtigercrm/trunk/modules/Vendors/CallRelatedList.php
==============================================================================
--- vtigercrm/trunk/modules/Vendors/CallRelatedList.php (original)
+++ vtigercrm/trunk/modules/Vendors/CallRelatedList.php Tue Sep 12 11:11:57 2006
@@ -11,7 +11,15 @@
require_once('Smarty_setup.php');
require_once('modules/Vendors/Vendor.php');
-
+//Redirecting Header for single page layout
+require_once('user_privileges/default_module_view.php');
+global $singlepane_view;
+if($singlepane_view == 'true' && $_REQUEST['action'] == 'CallRelatedList' )
+{
+ header("Location:index.php?action=DetailView&module=".$_REQUEST['module']."&record=".$_REQUEST['record']."&parenttab=".$_REQUEST['parenttab']);
+}
+else
+{
global $currentModule;
$focus = new Vendor();
@@ -63,5 +71,5 @@
$check_button = Button_Check($module);
$smarty->assign("CHECK", $check_button);
$smarty->display("RelatedLists.tpl");
-
+}
?>
More information about the vtigercrm-commits
mailing list