Fix the checkbox on the show all for the advanced search.

This commit is contained in:
markjcrane
2016-02-23 18:09:00 -07:00
parent 7539244e49
commit 01a9438f4e
2 changed files with 12 additions and 8 deletions

View File

@@ -109,14 +109,14 @@ else {
echo " <input type='hidden' name='order_by' value='$order_by'>\n";
echo " <input type='hidden' name='order' value='$order'>\n";
}
if (permission_exists('xml_cdr_all' && $_REQUEST['showall'] == 'true')) {
echo " <input type='hidden' name='showall' value='true'>\n";
}
echo " <table cellpadding='0' cellspacing='0' border='0'>\n";
echo " <tr>\n";
echo " <td style='vertical-align: top;'>\n";
if (permission_exists('xml_cdr_all')) {
if ($_REQUEST['showall'] == 'true') {
echo " <input type='hidden' name='showall' value='true'>\n";
}
else {
if ($_REQUEST['showall'] != 'true') {
echo " <input type='button' class='btn' value='".$text['button-show_all']."' onclick=\"window.location='xml_cdr.php?showall=true';\">\n";
}
}