diff --git a/app/call_centers/call_center_agent_edit.php b/app/call_centers/call_center_agent_edit.php index 241156cc25..61b7b86f3e 100644 --- a/app/call_centers/call_center_agent_edit.php +++ b/app/call_centers/call_center_agent_edit.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2016 + Portions created by the Initial Developer are Copyright (C) 2008-2019 the Initial Developer. All Rights Reserved. Contributor(s): @@ -314,13 +314,13 @@ $token = $object->create($_SERVER['PHP_SELF']); //show the header - require_once "resources/header.php"; if ($action == "add") { $document['title'] = $text['title-call_center_agent_add']; } if ($action == "update") { $document['title'] = $text['title-call_center_agent_edit']; } + require_once "resources/header.php"; //get the list of users for this domain $sql = "select * from v_users "; @@ -360,29 +360,30 @@ \n"; - echo "\n"; - echo "\n"; + echo "\n"; + + echo "
\n"; + echo "
"; if ($action == "add") { - echo "
\n"; + echo "".$text['header-call_center_agent_add'].""; } if ($action == "update") { - echo "\n"; + echo "".$text['header-call_center_agent_edit'].""; } - echo "\n"; - echo "\n"; - echo "
".$text['header-call_center_agent_add']."".$text['header-call_center_agent_edit'].""; - echo " "; - echo " \n"; - echo "
\n"; - echo "
\n"; + echo "\n"; + echo "
\n"; + echo button::create(['type'=>'button','label'=>$text['button-back'],'icon'=>$_SESSION['theme']['button_icon_back'],'link'=>'call_center_agents.php']); + echo button::create(['type'=>'submit','label'=>$text['button-save'],'icon'=>$_SESSION['theme']['button_icon_save'],'style'=>'margin-left: 15px;']); + echo "
\n"; + echo "
\n"; + echo "\n"; echo "\n"; echo "\n"; - echo "\n"; - echo "\n"; */ - echo " \n"; - echo " \n"; - echo " "; echo "
\n"; + echo "\n"; echo " ".$text['label-agent_name']."\n"; echo "\n"; + echo "\n"; echo " \n"; /* echo "
\n"; - if ($action == "update") { - echo " \n"; - } - echo " \n"; - echo "
"; - echo " \n"; - echo "
"; - echo ""; echo "

"; + if ($action == "update") { + echo "\n"; + } + echo "\n"; + + echo ""; + //include the footer require_once "resources/footer.php"; -?> +?> \ No newline at end of file diff --git a/app/call_centers/call_center_agent_status.php b/app/call_centers/call_center_agent_status.php index afbfb0b343..529f891d6c 100644 --- a/app/call_centers/call_center_agent_status.php +++ b/app/call_centers/call_center_agent_status.php @@ -289,7 +289,7 @@ echo "
\n"; echo button::create(['type'=>'button','label'=>$text['button-back'],'icon'=>$_SESSION['theme']['button_icon_back'],'collapse'=>'hide-xs','style'=>'margin-right: 15px;','link'=>'call_center_queues.php']); echo button::create(['type'=>'button','label'=>$text['button-refresh'],'icon'=>$_SESSION['theme']['button_icon_refresh'],'collapse'=>'hide-xs','link'=>'call_center_agent_status.php']); - echo button::create(['type'=>'button','label'=>$text['button-save'],'icon'=>$_SESSION['theme']['button_icon_save'],'collapse'=>'hide-xs','onclick'=>"list_form_submit('form_list');"]); + echo button::create(['type'=>'button','label'=>$text['button-save'],'icon'=>$_SESSION['theme']['button_icon_save'],'collapse'=>'hide-xs','style'=>'margin-left: 15px;','onclick'=>"list_form_submit('form_list');"]); echo "
\n"; echo "
\n"; echo "\n"; diff --git a/app/call_centers/call_center_queue_edit.php b/app/call_centers/call_center_queue_edit.php index 4746d68b7a..343aebfd15 100644 --- a/app/call_centers/call_center_queue_edit.php +++ b/app/call_centers/call_center_queue_edit.php @@ -538,13 +538,13 @@ $token = $object->create($_SERVER['PHP_SELF']); //show the header - require_once "resources/header.php"; if ($action == "add") { $document['title'] = $text['title-call_center_queue_add']; } if ($action == "update") { $document['title'] = $text['title-call_center_queue_edit']; } + require_once "resources/header.php"; //only allow a uuid if (!is_uuid($call_center_queue_uuid)) { @@ -552,33 +552,32 @@ } //show the content - echo "
\n"; - echo "\n"; - echo "\n"; + echo "\n"; + + echo "
\n"; + echo "
"; if ($action == "add") { - echo "
\n"; + echo "".$text['header-call_center_queue_add'].""; } if ($action == "update") { - echo "\n"; + echo "".$text['header-call_center_queue_edit'].""; } - echo "\n"; - echo "\n"; - echo "
".$text['header-call_center_queue_add']."".$text['header-call_center_queue_edit']."\n"; - echo " \n"; + echo "\n"; + echo "
\n"; + echo button::create(['type'=>'button','label'=>$text['button-back'],'icon'=>$_SESSION['theme']['button_icon_back'],'style'=>'margin-right: 15px;','link'=>'call_center_queues.php']); if ($action == "update") { - echo "    "; if (permission_exists('call_center_wallboard')) { - echo " \n"; + echo button::create(['type'=>'button','label'=>$text['button-wallboard'],'icon'=>'th','link'=>PROJECT_PATH.'/app/call_center_wallboard/call_center_wallboard.php?queue_name='.urlencode($call_center_queue_uuid)]); } - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo "    "; + echo button::create(['type'=>'button','label'=>$text['button-stop'],'icon'=>$_SESSION['theme']['button_icon_stop'],'link'=>'cmd.php?cmd=unload&queue='.urlencode($call_center_queue_uuid)]); + echo button::create(['type'=>'button','label'=>$text['button-start'],'icon'=>$_SESSION['theme']['button_icon_start'],'link'=>'cmd.php?cmd=load&queue='.urlencode($call_center_queue_uuid)]); + echo button::create(['type'=>'button','label'=>$text['button-restart'],'icon'=>'sync-alt','link'=>'cmd.php?cmd=reload&queue='.urlencode($call_center_queue_uuid)]); + echo button::create(['type'=>'button','label'=>$text['button-view'],'icon'=>$_SESSION['theme']['button_icon_view'],'link'=>PROJECT_PATH.'/app/call_center_active/call_center_active.php?queue_name='.urlencode($call_center_queue_uuid)]); } - echo " \n"; - echo "
\n"; - echo "
\n"; + echo button::create(['type'=>'submit','label'=>$text['button-save'],'icon'=>$_SESSION['theme']['button_icon_save'],'style'=>'margin-left: 15px;']); + echo " \n"; + echo "
\n"; + echo "\n"; echo "\n"; echo "\n";