From 1536d3590d52e56a67f3443df9aa3dfe378c3c18 Mon Sep 17 00:00:00 2001 From: marcelloc Date: Thu, 1 Dec 2011 13:36:59 -0200 Subject: postfix - package version 2.3 --- config/postfix/postfix_search.php | 66 ++++++++++++++++++++++++++------------- 1 file changed, 44 insertions(+), 22 deletions(-) (limited to 'config/postfix/postfix_search.php') diff --git a/config/postfix/postfix_search.php b/config/postfix/postfix_search.php index d11505d4..b76f0554 100755 --- a/config/postfix/postfix_search.php +++ b/config/postfix/postfix_search.php @@ -55,12 +55,15 @@ include("head.inc"); @@ -76,12 +79,12 @@ include("head.inc"); -
+
");?> -
+
@@ -91,12 +94,22 @@ include("head.inc"); -
+

+ + + + +
+ + + + +
@@ -106,7 +119,7 @@ include("head.inc"); - +
@@ -135,13 +148,16 @@ include("head.inc"); '.$matches[1]."\n" . $select_output; - } - closedir($handle); - echo ''; echo $select_output; echo '
'.gettext("Select what database files you want to use in your search.").''; }?> @@ -156,6 +172,7 @@ include("head.inc"); + @@ -168,7 +185,8 @@ include("head.inc"); - " onclick="getsearch_results(true)"> + " onclick="getsearch_results('search')"> +  " onclick="getsearch_results('export')"> @@ -196,7 +214,7 @@ function loopSelected(id) return(selectedArray); } -function getsearch_results() { +function getsearch_results(sbutton) { var $new_from=$('from').value.replace("\n", "','"); var $new_to=$('to').value.replace("\n", "','"); var $new_sid=$('sid').value.replace("\n", "','"); @@ -209,12 +227,15 @@ function getsearch_results() { alert ("Please select at least one message field to display results."); } else{ - $('search').value="Searching..."; + if (sbutton == "search"){ + $('search').value="Searching...";} + else{ + $('export').value="exporting...";} $('search_results').innerHTML=""; var $queuetype=$('queuetype').options[$('queuetype').selectedIndex].text; var $queuemax=$('queuemax').options[$('queuemax').selectedIndex].text; - var $pars="from="+$new_from+"&to="+$new_to+"&sid="+$new_sid+"&limit="+$queuemax+"&fields="+$fields+"&status="+$('status').value; - var $pars= $pars+"&subject="+$('subject').value+"&msgid="+$('msgid').value+"&files="+$files+"&queue="+$queuetype; + var $pars="from="+$new_from+"&to="+$new_to+"&sid="+$new_sid+"&limit="+$queuemax+"&fields="+$fields+"&status="+$('status').value+"&server="+$('server').value; + var $pars= $pars+"&subject="+$('subject').value+"&msgid="+$('msgid').value+"&files="+$files+"&queue="+$queuetype+"&relay="+$('relay').value+"&sbutton="+sbutton; //alert($pars); var url = "/postfix.php"; var myAjax = new Ajax.Request( @@ -228,8 +249,9 @@ function getsearch_results() { } function activitycallback_postfix_search(transport) { $('search_results').innerHTML = transport.responseText; - scroll(0,900); + scroll(0,1100); $('search').value="Search"; + $('export').value="Export"; } -- cgit v1.2.3