diff options
author | marcelloc <marcellocoutinho@gmail.com> | 2011-11-15 01:55:13 -0200 |
---|---|---|
committer | marcelloc <marcellocoutinho@gmail.com> | 2011-11-15 01:55:13 -0200 |
commit | 23baa90a7216f9159ca1569554bea064ef28a726 (patch) | |
tree | 7d4a7ac9177b9a0d67ce17c3225ccf0b881ec376 /config/postfix/postfix_search.php | |
parent | 1a900aafa3d7996900e61ee3656fbffa6c7effb2 (diff) | |
download | pfsense-packages-23baa90a7216f9159ca1569554bea064ef28a726.tar.gz pfsense-packages-23baa90a7216f9159ca1569554bea064ef28a726.tar.bz2 pfsense-packages-23baa90a7216f9159ca1569554bea064ef28a726.zip |
postfix - version 2.2 relased + widget
Diffstat (limited to 'config/postfix/postfix_search.php')
-rwxr-xr-x | config/postfix/postfix_search.php | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/config/postfix/postfix_search.php b/config/postfix/postfix_search.php index f347dbf0..d11505d4 100755 --- a/config/postfix/postfix_search.php +++ b/config/postfix/postfix_search.php @@ -91,7 +91,7 @@ include("head.inc"); <tr> <td width="22%" valign="top" class="vncell"><?=gettext("Subject: ");?></td> <td width="78%" class="vtable"><input type="text" class="formfld unknown" id="subject" size="65%"> - <br><?=gettext("");?></td> + <br><?=gettext("Subject to search, wildcard is '%'");?></td> </tr> <tr> <td width="22%" valign="top" class="vncell"><?=gettext("Message_id: ");?></td> @@ -168,7 +168,7 @@ include("head.inc"); <tr> <td width="22%" valign="top"></td> - <td width="78%"><input name="Submit" type="submit" class="formbtn" value="<?=gettext("Search");?>" onclick="getsearch_results(true)"> + <td width="78%"><input name="Submit" type="submit" class="formbtn" id="search" value="<?=gettext("Search");?>" onclick="getsearch_results(true)"> </table> </div> @@ -197,12 +197,20 @@ function loopSelected(id) } function getsearch_results() { - scroll(0,0); var $new_from=$('from').value.replace("\n", "','"); var $new_to=$('to').value.replace("\n", "','"); var $new_sid=$('sid').value.replace("\n", "','"); var $files=loopSelected('Select1'); var $fields=loopSelected('fields'); + if ($files ==""){ + alert ("Please select at least one file."); + } + if ($fields ==""){ + alert ("Please select at least one message field to display results."); + } + else{ + $('search').value="Searching..."; + $('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; @@ -217,8 +225,11 @@ function getsearch_results() { onComplete: activitycallback_postfix_search }); } + } function activitycallback_postfix_search(transport) { $('search_results').innerHTML = transport.responseText; + scroll(0,900); + $('search').value="Search"; } </script> <!-- </form> --> |