diff --git a/app/conferences/conference_edit.php b/app/conferences/conference_edit.php index 3ac3996fb0..6e0d8832cf 100644 --- a/app/conferences/conference_edit.php +++ b/app/conferences/conference_edit.php @@ -244,8 +244,8 @@ header("Location: conferences.php"); exit; - } //if ($_POST["persistformvar"] != "true") - } //(count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) + } + } //pre-populate the form if (count($_GET) > 0 && $_POST["persistformvar"] != "true") { @@ -314,31 +314,31 @@ require_once "resources/header.php"; //show the content - echo "
\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo " \n"; - echo "\n"; - echo "
"; + echo "\n"; + + echo "
\n"; + echo "
"; if ($action == "add") { echo "".$text['label-conference-add'].""; } if ($action == "update") { echo "".$text['label-conference-edit'].""; } - echo "

"; - echo $text['description']; - echo "

"; - echo "
"; - echo " "; - if (permission_exists('conference_active_view')) { - 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'=>'conferences.php']); + if ($action == 'update' && permission_exists('conference_active_view')) { + echo button::create(['type'=>'button','label'=>$text['button-view'],'icon'=>$_SESSION['theme']['button_icon_view'],'style'=>'margin-right: 15px;','link'=>'../conferences_active/conferences_active.php?c='.urlencode(str_replace(' ', '-', $conference_name))]); } - echo " \n"; - echo "
\n"; + echo button::create(['type'=>'submit','label'=>$text['button-save'],'icon'=>$_SESSION['theme']['button_icon_save']]); + echo " \n"; + echo "
\n"; + echo "\n"; - echo "\n"; + echo $text['description']."\n"; + echo "

\n"; + + echo "
\n"; echo "\n"; echo "\n"; echo " \n"; echo " \n"; - echo " \n"; + echo " \n"; if (permission_exists('conference_edit')) { echo "
\n"; @@ -380,12 +380,12 @@ echo " "; if (is_array($conference_users) && @sizeof($conference_users) != 0) { - echo " \n"; + echo "
\n"; foreach ($conference_users as $field) { echo " \n"; echo " \n"; echo " \n"; echo " \n"; } @@ -399,7 +399,7 @@ echo " \n"; } echo " "; - echo " \n"; + echo button::create(['type'=>'submit','label'=>$text['button-add'],'icon'=>$_SESSION['theme']['button_icon_add']]); echo "
\n"; echo " ".$text['description-user-add']."\n"; @@ -414,16 +414,16 @@ echo " ".$text['table-profile']."\n"; echo "\n"; echo "\n"; @@ -445,18 +445,18 @@ echo " ".$text['label-order']."\n"; echo "\n"; echo "\n"; @@ -468,9 +468,8 @@ echo "\n"; echo "\n"; echo "\n"; - echo "\n"; - echo " \n"; - echo ""; echo "
".escape($field['username'])."\n"; - echo " $v_link_label_delete\n"; + echo " $v_link_label_delete\n"; echo "
\n"; - echo " \n"; foreach ($conference_profiles as $row) { if ($conference_profile === $row['profile_name']) { - echo "\n"; + echo " \n"; } else { - echo "\n"; + echo " \n"; } } - echo " \n"; + echo " \n"; echo "
\n"; echo "".$text['description-profile']."\n"; echo "
\n"; - echo " \n"; if (strlen(htmlspecialchars($dialplan_order))> 0) { - echo " \n"; + echo " \n"; } $i=0; while($i<=999) { - if (strlen($i) == 1) { echo " \n"; } - if (strlen($i) == 2) { echo " \n"; } - if (strlen($i) == 3) { echo " \n"; } + if (strlen($i) == 1) { echo " \n"; } + if (strlen($i) == 2) { echo " \n"; } + if (strlen($i) == 3) { echo " \n"; } $i++; } - echo " \n"; + echo " \n"; echo "
\n"; echo "".$text['description-order']."\n"; echo "
\n"; echo " \n"; echo "
\n"; echo "".$text['description-conference-enable']."\n"; @@ -488,22 +487,18 @@ echo "
\n"; - if ($action == "update") { - echo " \n"; - echo " \n"; - } - echo " \n"; - echo "
"; - echo " \n"; - echo "
"; echo "

"; + + if ($action == "update") { + echo "\n"; + echo "\n"; + } + echo "\n"; + echo ""; //include the footer require_once "resources/footer.php"; -?> +?> \ No newline at end of file diff --git a/app/conferences/conferences.php b/app/conferences/conferences.php index 7e850cf00e..b64cd1bd71 100644 --- a/app/conferences/conferences.php +++ b/app/conferences/conferences.php @@ -185,7 +185,7 @@ echo th_order_by('conference_name', $text['table-name'], $order_by, $order); echo th_order_by('conference_extension', $text['table-extension'], $order_by, $order); echo th_order_by('conference_profile', $text['table-profile'], $order_by, $order); - echo th_order_by('conference_order', $text['table-order'], $order_by, $order); + echo th_order_by('conference_order', $text['table-order'], $order_by, $order, null, "class='center'"); echo th_order_by('conference_enabled', $text['table-enabled'], $order_by, $order, null, "class='center'"); echo th_order_by('conference_description', $text['table-description'], $order_by, $order, null, "class='hide-sm-dn'"); if (permission_exists('conference_edit') && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') { @@ -209,7 +209,7 @@ echo "
".str_replace('-', ' ', $row['conference_name'])." ".escape($row['conference_extension'])." ".escape($row['conference_profile'])." ".escape($row['conference_order'])." ".escape($row['conference_order'])."