mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Update call_center_agent_status.php
This commit is contained in:
@@ -23,16 +23,20 @@
|
|||||||
Contributor(s):
|
Contributor(s):
|
||||||
Mark J Crane <markjcrane@fusionpbx.com>
|
Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
*/
|
*/
|
||||||
require_once "root.php";
|
|
||||||
require_once "resources/require.php";
|
//includes
|
||||||
require_once "resources/check_auth.php";
|
require_once "root.php";
|
||||||
if (permission_exists('call_center_agent_view')) {
|
require_once "resources/require.php";
|
||||||
//access granted
|
require_once "resources/check_auth.php";
|
||||||
}
|
|
||||||
else {
|
//check permissions
|
||||||
echo "access denied";
|
if (permission_exists('call_center_agent_view')) {
|
||||||
exit;
|
//access granted
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
echo "access denied";
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
$language = new text;
|
$language = new text;
|
||||||
@@ -192,7 +196,7 @@ else {
|
|||||||
$str .= "<tr>\n";
|
$str .= "<tr>\n";
|
||||||
$str .= " <td valign='middle' class='".$row_style[$c]."'>".$row['agent_name']." </td>\n";
|
$str .= " <td valign='middle' class='".$row_style[$c]."'>".$row['agent_name']." </td>\n";
|
||||||
$str .= " <td valign='middle' class='".$row_style[$c]."'>".$row['agent_status']." </td>\n";
|
$str .= " <td valign='middle' class='".$row_style[$c]."'>".$row['agent_status']." </td>\n";
|
||||||
$str .= " <td valign='middle' class='".$row_style[$c]."'>";
|
$str .= " <td valign='middle' class='".$row_style[$c]."' nowrap='nowrap'>";
|
||||||
$str .= " <input type='hidden' name='agents[".$x."][agent_name]' id='agent_".$x."_name' value='".$row['agent_name']."'>\n";
|
$str .= " <input type='hidden' name='agents[".$x."][agent_name]' id='agent_".$x."_name' value='".$row['agent_name']."'>\n";
|
||||||
$str .= " <input type='hidden' name='agents[".$x."][id]' id='agent_".$x."_name' value='".$row['call_center_agent_uuid']."'>\n";
|
$str .= " <input type='hidden' name='agents[".$x."][id]' id='agent_".$x."_name' value='".$row['call_center_agent_uuid']."'>\n";
|
||||||
$str .= " <input type='radio' name='agents[".$x."][agent_status]' id='agent_".$x."_status_no_change' value='' checked='checked'> <label for='agent_".$x."_status_no_change'>".$text['option-no_change']."</label> \n";
|
$str .= " <input type='radio' name='agents[".$x."][agent_status]' id='agent_".$x."_status_no_change' value='' checked='checked'> <label for='agent_".$x."_status_no_change'>".$text['option-no_change']."</label> \n";
|
||||||
|
|||||||
Reference in New Issue
Block a user