[Vtigercrm-commits] [vtiger-commits] r9843 - in /vtigercrm/branches/5.0.3/modules: Contacts/DetailView.php Leads/CallRelatedList.php Leads/DetailView.php Webmails/CallRelatedList.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Wed Nov 15 05:13:09 EST 2006


Author: richie
Date: Wed Nov 15 03:13:02 2006
New Revision: 9843

Log:
unused smarty variable removed

Modified:
    vtigercrm/branches/5.0.3/modules/Contacts/DetailView.php
    vtigercrm/branches/5.0.3/modules/Leads/CallRelatedList.php
    vtigercrm/branches/5.0.3/modules/Leads/DetailView.php
    vtigercrm/branches/5.0.3/modules/Webmails/CallRelatedList.php

Modified: vtigercrm/branches/5.0.3/modules/Contacts/DetailView.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Contacts/DetailView.php (original)
+++ vtigercrm/branches/5.0.3/modules/Contacts/DetailView.php Wed Nov 15 03:13:02 2006
@@ -72,7 +72,6 @@
 $smarty->assign("BLOCKS", getBlocks($currentModule,"detail_view",'',$focus->column_fields));
 $smarty->assign("CUSTOMFIELD", $cust_fld);
 $smarty->assign("SINGLE_MOD", 'Contact');
-$smarty->assign("REDIR_MOD","contacts");
 
 $smarty->assign("ID", $_REQUEST['record']);
 if(isPermitted("Contacts","EditView",$_REQUEST['record']) == 'yes')

Modified: vtigercrm/branches/5.0.3/modules/Leads/CallRelatedList.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Leads/CallRelatedList.php (original)
+++ vtigercrm/branches/5.0.3/modules/Leads/CallRelatedList.php Wed Nov 15 03:13:02 2006
@@ -69,7 +69,6 @@
 $related_array = getRelatedLists($currentModule,$focus);
 $smarty->assign("RELATEDLISTS", $related_array);
 $smarty->assign("SINGLE_MOD",$app_strings['Lead']);
-$smarty->assign("REDIR_MOD","leads");
 $smarty->assign("MODULE", $currentmodule);
 $smarty->assign("UPDATEINFO",updateInfo($focus->id));
 $smarty->assign("MOD",$mod_strings);

Modified: vtigercrm/branches/5.0.3/modules/Leads/DetailView.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Leads/DetailView.php (original)
+++ vtigercrm/branches/5.0.3/modules/Leads/DetailView.php Wed Nov 15 03:13:02 2006
@@ -58,7 +58,6 @@
 $smarty->assign("PRINT_URL", "phprint.php?jt=".session_id().$GLOBALS['request_string']);
 $smarty->assign("ID", $focus->id);
 $smarty->assign("SINGLE_MOD", 'Lead');
-$smarty->assign("REDIR_MOD","leads");
 
 $smarty->assign("NAME",$focus->lastname.' '.$focus->firstname);
 

Modified: vtigercrm/branches/5.0.3/modules/Webmails/CallRelatedList.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Webmails/CallRelatedList.php (original)
+++ vtigercrm/branches/5.0.3/modules/Webmails/CallRelatedList.php Wed Nov 15 03:13:02 2006
@@ -1,4 +1,4 @@
-<?php
+<?php
 /*********************************************************************************
  ** The contents of this file are subject to the vtiger CRM Public License Version 1.0
   * ("License"); You may not use this file except in compliance with the License
@@ -9,91 +9,90 @@
   *
   ********************************************************************************/
 
-global $current_user;
-require_once('Smarty_setup.php');
-require_once('modules/Leads/Leads.php');
-require_once('include/utils/utils.php');
-require_once('include/utils/UserInfoUtil.php');
-require_once('data/Tracker.php');
-require_once('include/upload_file.php');
-require_once('include/database/PearDatabase.php');
-require_once('include/utils/utils.php');
-require_once('modules/Webmails/Webmail.php');
+global $current_user;
+require_once('Smarty_setup.php');
+require_once('modules/Leads/Leads.php');
+require_once('include/utils/utils.php');
+require_once('include/utils/UserInfoUtil.php');
+require_once('data/Tracker.php');
+require_once('include/upload_file.php');
+require_once('include/database/PearDatabase.php');
+require_once('include/utils/utils.php');
+require_once('modules/Webmails/Webmail.php');
 require_once('modules/Webmails/MailParse.php');
 
-global $log;
-global $app_strings;
-global $mod_strings;
-
-if($_REQUEST["record"]) {$mailid=$_REQUEST["record"];} else {$mailid=$_REQUEST["mailid"];}
-
-$mailInfo = getMailServerInfo($current_user);
-$temprow = $adb->fetch_array($mailInfo);
-$imapServerAddress=$temprow["mail_servername"];
-$start_message=$_REQUEST["start_message"];
-$box_refresh=$temprow["box_refresh"];
-$mails_per_page=$temprow["mails_per_page"];
+global $log;
+global $app_strings;
+global $mod_strings;
 
-if($_REQUEST["mailbox"] && $_REQUEST["mailbox"] != "") {$mailbox=$_REQUEST["mailbox"];} else {$mailbox="INBOX";}
+if($_REQUEST["record"]) {$mailid=$_REQUEST["record"];} else {$mailid=$_REQUEST["mailid"];}
+
+$mailInfo = getMailServerInfo($current_user);
+$temprow = $adb->fetch_array($mailInfo);
+$imapServerAddress=$temprow["mail_servername"];
+$start_message=$_REQUEST["start_message"];
+$box_refresh=$temprow["box_refresh"];
+$mails_per_page=$temprow["mails_per_page"];
+
+if($_REQUEST["mailbox"] && $_REQUEST["mailbox"] != "") {$mailbox=$_REQUEST["mailbox"];} else {$mailbox="INBOX";}
 
 global $mbox;
 $mbox = getImapMbox($mailbox,$temprow);
 
 
-$email = new Webmail($mbox, $mailid);
-$from = $email->from;
-$subject=$email->subject;
-$date=$email->date;
-$to=$email->to;
-$cc_list=$email->cc_list;
-$reply_to=$email->replyTo;
-
-
-$block["Leads"]= "";
-global $adb;
-if($email->relationship != 0 && $email->relationship["type"] == "Leads") {
-	$q = "SELECT vtiger_leaddetails.firstname, vtiger_leaddetails.lastname, vtiger_leaddetails.email, vtiger_leaddetails.company, vtiger_crmentity.smownerid from vtiger_leaddetails left join vtiger_crmentity on vtiger_crmentity.crmid=vtiger_leaddetails.leadid WHERE vtiger_leaddetails.leadid='".$email->relationship["id"]."'";
-	$rs = $adb->query($q);
-	$block["Leads"]["header"]= array("0"=>"First Name","1"=>"Last Name","2"=>"Company Name","3"=>"Email Address","4"=>"Assigned To");
-	$block["Leads"]["entries"]= array("0"=>array($adb->query_result($rs,0,'firstname'),"1"=>$adb->query_result($rs,0,'lastname'),2=>$adb->query_result($rs,0,'company'),3=>$adb->query_result($rs,0,'email'),4=>$adb->query_result($rs,0,'smownerid')));
-}
-$block["Contacts"]= "";
-if($email->relationship != 0 && $email->relationship["type"] == "Contacts") {
-	$q = "SELECT vtiger_contactdetails.firstname, vtiger_contactdetails.lastname, vtiger_contactdetails.email, vtiger_contactdetails.title, vtiger_crmentity.smownerid from vtiger_contactdetails left join vtiger_crmentity on vtiger_crmentity.crmid=vtiger_contactdetails.contactid WHERE vtiger_contactdetails.contactid='".$email->relationship["id"]."'";
-	$rs = $adb->query($q);
-	$block["Contacts"]["header"]= array("0"=>"First Name","1"=>"Last Name","2"=>"Title","3"=>"Email Address","4"=>"Assigned To");
-	$block["Contacts"]["entries"]= array("0"=>array($adb->query_result($rs,0,'firstname'),"1"=>$adb->query_result($rs,0,'lastname'),2=>$adb->query_result($rs,0,'title'),3=>$adb->query_result($rs,0,'email'),4=>$adb->query_result($rs,0,'smownerid')));
-}
-$block["Accounts"]= "";
-if($email->relationship != 0 && $email->relationship["type"] == "Accounts") {
-	$q = "SELECT acccount.accountname, vtiger_account.email1, vtiger_account.website, vtiger_account.industry, vtiger_crmentity.smownerid from vtiger_account left join vtiger_crmentity on vtiger_crmentity.crmid=vtiger_account.accountid WHERE vtiger_account.accountid='".$email->relationship["id"]."'";
-	$rs = $adb->query($q);
-	$block["Accounts"]["header"]= array("0"=>"Account Name","1"=>"Email","2"=>"Web Site","3"=>"Industry","4"=>"Assigned To");
-	$block["Accounts"]["entries"]= array("0"=>array($adb->query_result($rs,0,'accountname'),"1"=>$adb->query_result($rs,0,'email'),2=>$adb->query_result($rs,0,'website'),3=>$adb->query_result($rs,0,'industry'),4=>$adb->query_result($rs,0,'smownerid')));
-}
-
-global $mod_strings;
-global $app_strings;
-global $theme;
-$theme_path="themes/".$theme."/";
-$image_path=$theme_path."images/";
-require_once($theme_path.'layout_utils.php');
-
-$smarty = new vtigerCRM_Smarty;
-$smarty->assign("CATEGORY","My Home Page");
-$smarty->assign("id",$_REQUEST["record"]);
-$smarty->assign("NAME","From: ".$from);
-$smarty->assign("RELATEDLISTS", $block);
-$smarty->assign("SINGLE_MOD","Webmails");
-$smarty->assign("REDIR_MOD","Webmails");
-$smarty->assign("MODULE", "Webmails");
-$smarty->assign("ID",$_REQUEST["record"] );
-$smarty->assign("MOD",$mod_strings);
-$smarty->assign("APP",$app_strings);
-$smarty->assign("THEME", $theme);
-$smarty->assign("IMAGE_PATH", $image_path);
-
-$check_button = Button_Check($module);
-$smarty->assign("CHECK", $check_button);
-$smarty->display("RelatedLists.tpl");
-?>
+$email = new Webmail($mbox, $mailid);
+$from = $email->from;
+$subject=$email->subject;
+$date=$email->date;
+$to=$email->to;
+$cc_list=$email->cc_list;
+$reply_to=$email->replyTo;
+
+
+$block["Leads"]= "";
+global $adb;
+if($email->relationship != 0 && $email->relationship["type"] == "Leads") {
+	$q = "SELECT vtiger_leaddetails.firstname, vtiger_leaddetails.lastname, vtiger_leaddetails.email, vtiger_leaddetails.company, vtiger_crmentity.smownerid from vtiger_leaddetails left join vtiger_crmentity on vtiger_crmentity.crmid=vtiger_leaddetails.leadid WHERE vtiger_leaddetails.leadid='".$email->relationship["id"]."'";
+	$rs = $adb->query($q);
+	$block["Leads"]["header"]= array("0"=>"First Name","1"=>"Last Name","2"=>"Company Name","3"=>"Email Address","4"=>"Assigned To");
+	$block["Leads"]["entries"]= array("0"=>array($adb->query_result($rs,0,'firstname'),"1"=>$adb->query_result($rs,0,'lastname'),2=>$adb->query_result($rs,0,'company'),3=>$adb->query_result($rs,0,'email'),4=>$adb->query_result($rs,0,'smownerid')));
+}
+$block["Contacts"]= "";
+if($email->relationship != 0 && $email->relationship["type"] == "Contacts") {
+	$q = "SELECT vtiger_contactdetails.firstname, vtiger_contactdetails.lastname, vtiger_contactdetails.email, vtiger_contactdetails.title, vtiger_crmentity.smownerid from vtiger_contactdetails left join vtiger_crmentity on vtiger_crmentity.crmid=vtiger_contactdetails.contactid WHERE vtiger_contactdetails.contactid='".$email->relationship["id"]."'";
+	$rs = $adb->query($q);
+	$block["Contacts"]["header"]= array("0"=>"First Name","1"=>"Last Name","2"=>"Title","3"=>"Email Address","4"=>"Assigned To");
+	$block["Contacts"]["entries"]= array("0"=>array($adb->query_result($rs,0,'firstname'),"1"=>$adb->query_result($rs,0,'lastname'),2=>$adb->query_result($rs,0,'title'),3=>$adb->query_result($rs,0,'email'),4=>$adb->query_result($rs,0,'smownerid')));
+}
+$block["Accounts"]= "";
+if($email->relationship != 0 && $email->relationship["type"] == "Accounts") {
+	$q = "SELECT acccount.accountname, vtiger_account.email1, vtiger_account.website, vtiger_account.industry, vtiger_crmentity.smownerid from vtiger_account left join vtiger_crmentity on vtiger_crmentity.crmid=vtiger_account.accountid WHERE vtiger_account.accountid='".$email->relationship["id"]."'";
+	$rs = $adb->query($q);
+	$block["Accounts"]["header"]= array("0"=>"Account Name","1"=>"Email","2"=>"Web Site","3"=>"Industry","4"=>"Assigned To");
+	$block["Accounts"]["entries"]= array("0"=>array($adb->query_result($rs,0,'accountname'),"1"=>$adb->query_result($rs,0,'email'),2=>$adb->query_result($rs,0,'website'),3=>$adb->query_result($rs,0,'industry'),4=>$adb->query_result($rs,0,'smownerid')));
+}
+
+global $mod_strings;
+global $app_strings;
+global $theme;
+$theme_path="themes/".$theme."/";
+$image_path=$theme_path."images/";
+require_once($theme_path.'layout_utils.php');
+
+$smarty = new vtigerCRM_Smarty;
+$smarty->assign("CATEGORY","My Home Page");
+$smarty->assign("id",$_REQUEST["record"]);
+$smarty->assign("NAME","From: ".$from);
+$smarty->assign("RELATEDLISTS", $block);
+$smarty->assign("SINGLE_MOD","Webmails");
+$smarty->assign("MODULE", "Webmails");
+$smarty->assign("ID",$_REQUEST["record"] );
+$smarty->assign("MOD",$mod_strings);
+$smarty->assign("APP",$app_strings);
+$smarty->assign("THEME", $theme);
+$smarty->assign("IMAGE_PATH", $image_path);
+
+$check_button = Button_Check($module);
+$smarty->assign("CHECK", $check_button);
+$smarty->display("RelatedLists.tpl");
+?>





More information about the vtigercrm-commits mailing list