[Vtigercrm-commits] [vtiger-commits] r5203 - /vtigercrm/trunk/modules/Campaigns/ListView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Fri Apr 21 03:46:29 EDT 2006
Author: saraj
Date: Fri Apr 21 01:46:25 2006
New Revision: 5203
Log:
Advance Search link added
Modified:
vtigercrm/trunk/modules/Campaigns/ListView.php
Modified: vtigercrm/trunk/modules/Campaigns/ListView.php
==============================================================================
--- vtigercrm/trunk/modules/Campaigns/ListView.php (original)
+++ vtigercrm/trunk/modules/Campaigns/ListView.php Fri Apr 21 01:46:25 2006
@@ -49,16 +49,16 @@
if(isset($_REQUEST['query']) && $_REQUEST['query'] == 'true')
{
- $where=Search($currentModule);
+ $where=getWhereCondition($currentModule);
$url_string .="&query=true";
- if (isset($_REQUEST['campaignid'])) $campaignid = $_REQUEST['campaignid'];
+/* if (isset($_REQUEST['campaignid'])) $campaignid = $_REQUEST['campaignid'];
if (isset($_REQUEST['campaignname'])) $campaignname = $_REQUEST['campaignname'];
if (isset($_REQUEST['campaigntype'])) $campaigntype = $_REQUEST['campaigntype'];
if (isset($_REQUEST['campaignstatus'])) $campaignstatus = $_REQUEST['campaignstatus'];
if (isset($_REQUEST['current_user_only'])) $current_user_only = $_REQUEST['current_user_only'];
-
+*/
}
//<<<<cutomview>>>>>>>
@@ -113,6 +113,7 @@
{
$list_query .= ' and '.$where;
}
+
//sort by "assignedto" and default sort by "ticketid"(DESC)
if(isset($order_by) && $order_by != '')
{
@@ -185,6 +186,13 @@
$smarty->assign("LISTENTITY", $listview_entries);
$smarty->assign("SELECT_SCRIPT", $view_script);
$navigationOutput = getTableHeaderNavigation($navigation_array, $url_string,"Campaigns","index",$viewid);
+$alphabetical = AlphabeticalSearch($currentModule,'index','campaignname','true','basic',"","","","",$viewid);
+$fieldnames = getAdvSearchfields($module);
+$criteria = getcriteria_options();
+$smarty->assign("CRITERIA", $criteria);
+$smarty->assign("FIELDNAMES", $fieldnames);
+$smarty->assign("ALPHABETICAL", $alphabetical);
+
$smarty->assign("NAVIGATION", $navigationOutput);
$smarty->assign("RECORD_COUNTS", $record_string);
More information about the vtigercrm-commits
mailing list