mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-02-21 18:36:31 +00:00
Add status dropdown to Fax Queue search (#6459)
* Update fax_queue.php * Update app_languages.php
This commit is contained in:
@@ -116,6 +116,10 @@
|
||||
$sql .= ") ";
|
||||
$parameters['search'] = '%'.$search.'%';
|
||||
}
|
||||
if (isset($_GET["fax_status"]) && $_GET["fax_status"] != '') {
|
||||
$sql .= "and fax_status = :fax_status ";
|
||||
$parameters['fax_status'] = $_GET["fax_status"];
|
||||
}
|
||||
$database = new database;
|
||||
$num_rows = $database->select($sql, $parameters, 'column');
|
||||
unset($sql, $parameters);
|
||||
@@ -176,6 +180,10 @@
|
||||
$sql .= ") ";
|
||||
$parameters['search'] = '%'.$search.'%';
|
||||
}
|
||||
if (isset($_GET["fax_status"]) && $_GET["fax_status"] != '') {
|
||||
$sql .= "and fax_status = :fax_status ";
|
||||
$parameters['fax_status'] = $_GET["fax_status"];
|
||||
}
|
||||
$sql .= order_by($order_by, $order, 'fax_date', 'desc');
|
||||
$sql .= limit_offset($rows_per_page, $offset);
|
||||
$parameters['time_zone'] = $time_zone;
|
||||
@@ -208,6 +216,28 @@
|
||||
echo button::create(['type'=>'button','label'=>$text['button-delete'],'icon'=>$_SESSION['theme']['button_icon_delete'],'id'=>'btn_delete','name'=>'btn_delete','style'=>'display:none;','onclick'=>"modal_open('modal-delete','btn_delete');"]);
|
||||
}
|
||||
echo "<form id='form_search' class='inline' method='get'>\n";
|
||||
echo " <select class='formfld' name='fax_status'>\n";
|
||||
echo " <option value='' selected='selected' disabled hidden>".$text['label-fax_status']."...</option>";
|
||||
echo " <option value=''></option>\n";
|
||||
if (isset($_GET["fax_status"]) && $_GET["fax_status"] == "waiting") {
|
||||
echo " <option value='waiting' selected='selected'>".$text['label-waiting']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='waiting'>".$text['label-waiting']."</option>\n";
|
||||
}
|
||||
if (isset($_GET["fax_status"]) && $_GET["fax_status"] == "failed") {
|
||||
echo " <option value='failed' selected='selected'>".$text['label-failed']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='failed'>".$text['label-failed']."</option>\n";
|
||||
}
|
||||
if (isset($_GET["fax_status"]) && $_GET["fax_status"] == "sent") {
|
||||
echo " <option value='sent' selected='selected'>".$text['label-sent']."</option>\n";
|
||||
}
|
||||
else {
|
||||
echo " <option value='sent'>".$text['label-sent']."</option>\n";
|
||||
}
|
||||
echo " </select>\n";
|
||||
if (permission_exists('fax_queue_all')) {
|
||||
if ($_GET['show'] == 'all') {
|
||||
echo " <input type='hidden' name='show' value='all'>\n";
|
||||
|
||||
Reference in New Issue
Block a user