Usability Enhancement: Click on list rows to View/Edit items.
Misc other fixes.
This commit is contained in:
parent
7f36b2d6d2
commit
09e5da60a8
|
|
@ -98,7 +98,7 @@ $order = $_GET["order"];
|
|||
$row_style["1"] = "row_style1";
|
||||
|
||||
echo "<div align='center'>\n";
|
||||
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo "<table class='tr_hover' width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo th_order_by('queue_name', $text['label-queue_name'], $order_by, $order);
|
||||
|
|
@ -116,16 +116,17 @@ $order = $_GET["order"];
|
|||
//echo th_order_by('queue_abandoned_resume_allowed', $text['label-abandoned_resume_allowed'], $order_by, $order);
|
||||
//echo th_order_by('queue_tier_rule_wait_multiply_level', $text['label-tier_rule_wait_multiply_level'], $order_by, $order);
|
||||
echo th_order_by('queue_description', $text['label-description'], $order_by, $order);
|
||||
echo "<td class='list_control_icons'>\n";
|
||||
echo "<td class='list_control_icon'>\n";
|
||||
//echo " <a href='call_center_queue_edit.php' alt='add'>$v_link_label_add</a>\n";
|
||||
echo "</td>\n";
|
||||
echo "<tr>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
if ($result_count == 0) { //no results
|
||||
}
|
||||
else { //received results
|
||||
foreach($result as $row) {
|
||||
echo "<tr >\n";
|
||||
$tr_link = "href='".PROJECT_PATH."/app/call_center_active/call_center_active.php?queue_name=".$row[queue_name]."'";
|
||||
echo "<tr ".$tr_link.">\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'><a href='".PROJECT_PATH."/app/call_center_active/call_center_active.php?queue_name=".$row[queue_name]."'>".$row[queue_name]."</a></td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row[queue_extension]."</td>\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>".$row[queue_strategy]."</td>\n";
|
||||
|
|
@ -141,7 +142,7 @@ $order = $_GET["order"];
|
|||
//echo " <td valign='top' class='".$row_style[$c]."'>".$row[queue_abandoned_resume_allowed]."</td>\n";
|
||||
//echo " <td valign='top' class='".$row_style[$c]."'>".$row[queue_tier_rule_wait_multiply_level]."</td>\n";
|
||||
echo " <td valign='top' class='row_stylebg'>".$row[queue_description]." </td>\n";
|
||||
echo " <td class='list_control_icons'>\n";
|
||||
echo " <td class='list_control_icon'>\n";
|
||||
echo " <a href='".PROJECT_PATH."/app/call_center_active/call_center_active.php?queue_name=".$row[queue_name]."' alt='".$text['button-view']."'>$v_link_label_view</a>\n";
|
||||
//echo " <a href='call_center_queue_delete.php?id=".$row[call_center_queue_uuid]."' alt='delete' onclick=\"return confirm('Do you really want to delete this?')\">$v_link_label_delete</a>\n";
|
||||
//echo " <input type='button' class='btn' name='' alt='edit' onclick=\"window.location='call_center_queue_edit.php?id=".$row[call_center_queue_uuid]."'\" value='e'>\n";
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ if ($fp) {
|
|||
echo "<th>".$text['label-caller_count']."</th>\n";
|
||||
echo "<th>".$text['label-waiting_count']."</th>\n";
|
||||
echo "<th>".$text['label-importance']."</th>\n";
|
||||
echo "<td class='list_control_icons'></td>\n";
|
||||
echo "<td class='list_control_icon'></td>\n";
|
||||
echo "</tr>\n";
|
||||
|
||||
foreach ($xml->fifo as $row) {
|
||||
|
|
@ -100,25 +100,25 @@ if ($fp) {
|
|||
|
||||
if (if_group("superadmin")) {
|
||||
//show all fifo queues
|
||||
echo "<tr>\n";
|
||||
echo "<tr >\n";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'><a href='fifo_interactive.php?c=".$name."'>".$tmp_name."</a></td>\n";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>".$consumer_count."</td>\n";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>".$caller_count."</td>\n";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>".$waiting_count."</td>\n";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>".$importance."</td>\n";
|
||||
echo "<td valign='top' class='list_control_icons'><a href='fifo_interactive.php?c=".$name."' alt='".$text['button-view']."'>$v_link_label_view</a></td>\n";
|
||||
echo "<td class='list_control_icon'><a href='fifo_interactive.php?c=".$name."' alt='".$text['button-view']."'>$v_link_label_view</a></td>\n";
|
||||
echo "</tr>\n";
|
||||
}
|
||||
else {
|
||||
//show only the fifo queues that match the domain_name
|
||||
if (stripos($name, $_SESSION['domain_name']) !== false) {
|
||||
echo "<tr>\n";
|
||||
echo "<tr >\n";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'><a href='fifo_interactive.php?c=".$name."'>".$tmp_name."</a></td>\n";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>".$consumer_count."</td>\n";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>".$caller_count."</td>\n";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>".$waiting_count."</td>\n";
|
||||
echo "<td valign='top' class='".$row_style[$c]."'>".$importance."</td>\n";
|
||||
echo "<td valign='top' class='list_control_icons'><a href='fifo_interactive.php?c=".$name."' alt='".$text['button-view']."'>$v_link_label_view</a></td>\n";
|
||||
echo "<td class='list_control_icon'><a href='fifo_interactive.php?c=".$name."' alt='".$text['button-view']."'>$v_link_label_view</a></td>\n";
|
||||
echo "</tr>\n";
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -156,6 +156,11 @@
|
|||
$text['button-back']['pt-pt'] = "Voltar";
|
||||
$text['button-back']['fr-fr'] = "Retour";
|
||||
|
||||
$text['button-download_csv']['en-us'] = "Download CSV";
|
||||
$text['button-download_csv']['es-cl'] = "Descarga CSV";
|
||||
$text['button-download_csv']['pt-pt'] = "Baixar CSV";
|
||||
$text['button-download_csv']['fr-fr'] = "Télécharger CSV";
|
||||
|
||||
$text['description-5']['en-us'] = "A detailed view of the call and all information regarding it.";
|
||||
$text['description-5']['es-cl'] = "Una vista detallada de la información de la llamada.";
|
||||
$text['description-5']['pt-pt'] = "Uma visão detalhada da chamada e de todas as informações sobre ela.";
|
||||
|
|
|
|||
|
|
@ -50,8 +50,8 @@ else {
|
|||
echo "<tr>\n";
|
||||
echo " <td width='30%' align='left' valign='top' nowrap='nowrap'><b>".$text['label-call-statistics']."</b></td>\n";
|
||||
echo " <td width='70%' align='right' valign='top'>\n";
|
||||
echo " <input type='button' class='btn' value='CSV' onclick=\"document.location.href='xml_cdr_statistics_csv.php';\">\n";
|
||||
echo " <input type='button' class='btn' name='' alt='back' onclick=\"window.location='xml_cdr.php'\" value='".$text['button-back']."'>\n";
|
||||
echo " <input type='button' class='btn' name='' alt='".$text['button-back']."' onclick=\"window.location='xml_cdr.php'\" value='".$text['button-back']."'>\n";
|
||||
echo " <input type='button' class='btn' value='".$text['button-download_csv']."' onclick=\"document.location.href='xml_cdr_statistics_csv.php';\">\n";
|
||||
echo " </td>\n";
|
||||
echo "</tr>\n";
|
||||
echo "<tr>\n";
|
||||
|
|
@ -108,7 +108,7 @@ else {
|
|||
"aloc": {
|
||||
label: "ALOC",
|
||||
data: <?php echo json_encode($graph['aloc']); ?>
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
// hard-code color indices to prevent them from shifting as
|
||||
|
|
@ -118,8 +118,8 @@ else {
|
|||
val.color = i;
|
||||
++i;
|
||||
});
|
||||
|
||||
// insert checkboxes
|
||||
|
||||
// insert checkboxes
|
||||
var choiceContainer = $("#choices");
|
||||
$.each(datasets, function(key, val) {
|
||||
choiceContainer.append('<br /><input type="checkbox" name="' + key +
|
||||
|
|
@ -129,7 +129,7 @@ else {
|
|||
});
|
||||
choiceContainer.find("input").click(plotAccordingToChoices);
|
||||
|
||||
|
||||
|
||||
function plotAccordingToChoices() {
|
||||
var data = [];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue