mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Add extension to operator list
This commit is contained in:
@@ -251,7 +251,8 @@ if (isset($_GET['operator_id']))
|
|||||||
if ($display)
|
if ($display)
|
||||||
{
|
{
|
||||||
$sql = "SELECT
|
$sql = "SELECT
|
||||||
CONCAT(firstName, ' ', lastName) as name,
|
CONCAT(firstName, ' ', lastName) as name,
|
||||||
|
e.extension,
|
||||||
CONCAT('<a href=\'?winbat=winbat&operator_id=',operator_id,'\'>" . T_("Windows bat file") . "</a>') as winbat,
|
CONCAT('<a href=\'?winbat=winbat&operator_id=',operator_id,'\'>" . T_("Windows bat file") . "</a>') as winbat,
|
||||||
CONCAT('<a href=\'?sh=sh&operator_id=',operator_id,'\'>" . T_("*nix script file") . "</a>') as sh,
|
CONCAT('<a href=\'?sh=sh&operator_id=',operator_id,'\'>" . T_("*nix script file") . "</a>') as sh,
|
||||||
CASE WHEN enabled = 0 THEN
|
CASE WHEN enabled = 0 THEN
|
||||||
@@ -267,14 +268,15 @@ if ($display)
|
|||||||
END as voipenabledisable,
|
END as voipenabledisable,
|
||||||
CONCAT('<a href=\'?edit=',operator_id,'\'>" . T_("Edit") . "</a>') as edit,
|
CONCAT('<a href=\'?edit=',operator_id,'\'>" . T_("Edit") . "</a>') as edit,
|
||||||
username
|
username
|
||||||
FROM operator";
|
FROM operator
|
||||||
|
LEFT JOIN `extension` as e ON (e.current_operator_id = operator_id)";
|
||||||
|
|
||||||
$rs = $db->GetAll($sql);
|
$rs = $db->GetAll($sql);
|
||||||
|
|
||||||
xhtml_head(T_("Operator list"),true,array("../css/table.css"));
|
xhtml_head(T_("Operator list"),true,array("../css/table.css"));
|
||||||
|
|
||||||
$columns = array("name","username","enabledisable","edit");
|
$columns = array("name","username","extension","enabledisable","edit");
|
||||||
$titles = array(T_("Operator"),T_("Username"),T_("Enable/Disable"),T_("Edit"));
|
$titles = array(T_("Operator"),T_("Username"),T_("Extension"),T_("Enable/Disable"),T_("Edit"));
|
||||||
|
|
||||||
if (VOIP_ENABLED)
|
if (VOIP_ENABLED)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user