CDR: Hide Show All button after clicked, moved to top for consistency.

This commit is contained in:
Nate Jones 2015-04-01 00:51:09 +00:00
parent f1d0bbf44d
commit b8301a8090
1 changed files with 6 additions and 7 deletions

View File

@ -61,9 +61,7 @@ require_once "resources/require.php";
$sql .= "v_extensions "; $sql .= "v_extensions ";
$sql .= "where "; $sql .= "where ";
$sql .= "enabled = 'true' "; $sql .= "enabled = 'true' ";
if ($_GET['showall'] && permission_exists('xml_cdr_all')) { if (!($_GET['showall'] == 'true' && permission_exists('xml_cdr_all'))) {
$sql .= " ";
} else {
$sql .= "and domain_uuid = '".$_SESSION['domain_uuid']."' "; $sql .= "and domain_uuid = '".$_SESSION['domain_uuid']."' ";
} }
if (!(if_group("admin") || if_group("superadmin"))) { if (!(if_group("admin") || if_group("superadmin"))) {
@ -191,7 +189,11 @@ require_once "resources/require.php";
echo " <b>".$text['title-extension_summary']."</b><br><br>\n"; echo " <b>".$text['title-extension_summary']."</b><br><br>\n";
echo " ".$text['description-extension_summary']."<br>\n"; echo " ".$text['description-extension_summary']."<br>\n";
echo " </td>\n"; echo " </td>\n";
echo " <td align='right' width='100%' style='vertical-align: top;'>&nbsp;</td>\n"; echo " <td align='right' width='100%' style='vertical-align: top;'>";
if (permission_exists('xml_cdr_all') && $_GET['showall'] != 'true') {
echo " <input type='button' class='btn' value='".$text['button-show_all']."' onclick=\"window.location='xml_cdr_extension_summary.php?showall=true';\">\n";
}
echo " </td>\n";
echo " </tr>\n"; echo " </tr>\n";
echo "</table>\n"; echo "</table>\n";
echo "<br>\n"; echo "<br>\n";
@ -268,9 +270,6 @@ require_once "resources/require.php";
echo " </tr>"; echo " </tr>";
echo " <tr>"; echo " <tr>";
echo " <td colspan='4' style='padding-top: 8px;' align='right'>"; echo " <td colspan='4' style='padding-top: 8px;' align='right'>";
if (permission_exists('xml_cdr_all')) {
echo " <input type='button' class='btn' value='".$text['button-show_all']."' onclick=\"window.location='xml_cdr_extension_summary.php?showall=true';\">\n";
}
echo " <input type='button' class='btn' value='".$text['button-reset']."' onclick=\"document.location.href='xml_cdr_extension_summary.php';\">\n"; echo " <input type='button' class='btn' value='".$text['button-reset']."' onclick=\"document.location.href='xml_cdr_extension_summary.php';\">\n";
echo " <input type='submit' class='btn' name='submit' value='".$text['button-update']."'>\n"; echo " <input type='submit' class='btn' name='submit' value='".$text['button-update']."'>\n";
echo " </td>"; echo " </td>";