Change a POST to a GET on the advanced search for CDR.
This commit is contained in:
parent
01a9438f4e
commit
7d5382ed6d
|
|
@ -309,11 +309,11 @@ else {
|
||||||
$sql .= "rtp_audio_in_mos, ";
|
$sql .= "rtp_audio_in_mos, ";
|
||||||
}
|
}
|
||||||
$sql .= "(answer_epoch - start_epoch) as tta ";
|
$sql .= "(answer_epoch - start_epoch) as tta ";
|
||||||
if ($_GET['showall'] && permission_exists('xml_cdr_all')) {
|
if ($_REQUEST['showall'] == "true" && permission_exists('xml_cdr_all')) {
|
||||||
$sql .= ", domain_name ";
|
$sql .= ", domain_name ";
|
||||||
}
|
}
|
||||||
$sql .= "from v_xml_cdr ";
|
$sql .= "from v_xml_cdr ";
|
||||||
if ($_GET['showall'] && permission_exists('xml_cdr_all')) {
|
if ($_REQUEST['showall'] == "true" && permission_exists('xml_cdr_all')) {
|
||||||
if ($sql_where) { $sql .= "where "; }
|
if ($sql_where) { $sql .= "where "; }
|
||||||
} else {
|
} else {
|
||||||
$sql .= "where domain_uuid = '".$domain_uuid."' ";
|
$sql .= "where domain_uuid = '".$domain_uuid."' ";
|
||||||
|
|
|
||||||
|
|
@ -58,12 +58,12 @@ echo "</script>";
|
||||||
if (strlen(check_str($_GET['redirect'])) > 0) {
|
if (strlen(check_str($_GET['redirect'])) > 0) {
|
||||||
echo "<form method='get' action='" . $_GET['redirect'] . ".php'>\n";
|
echo "<form method='get' action='" . $_GET['redirect'] . ".php'>\n";
|
||||||
} else {
|
} else {
|
||||||
echo "<form method='post' action='xml_cdr.php'>\n";
|
echo "<form method='get' action='xml_cdr.php'>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "<table width='100%' cellpadding='0' cellspacing='0'>\n";
|
echo "<table width='100%' cellpadding='0' cellspacing='0'>\n";
|
||||||
echo " <tr>\n";
|
echo " <tr>\n";
|
||||||
echo " <td width='30%' nowrap valign='top'><b>Advanced Search</b></td>\n";
|
echo " <td width='30%' nowrap='nowrap' valign='top'><b>Advanced Search</b></td>\n";
|
||||||
echo " <td width='70%' align='right' valign='top'>";
|
echo " <td width='70%' align='right' valign='top'>";
|
||||||
echo " <input type='button' class='btn' name='' alt='back' onclick=\"window.location='xml_cdr.php'\" value='Back'>";
|
echo " <input type='button' class='btn' name='' alt='back' onclick=\"window.location='xml_cdr.php'\" value='Back'>";
|
||||||
echo " <input type='submit' name='submit' class='btn' value='Search'>";
|
echo " <input type='submit' name='submit' class='btn' value='Search'>";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue