Update device_keys.php
This commit is contained in:
parent
9ddfd8e9c5
commit
704ca4634e
|
|
@ -430,23 +430,22 @@
|
||||||
echo "<div class='hud_box'>";
|
echo "<div class='hud_box'>";
|
||||||
|
|
||||||
echo "<div class='hud_content' style='display: block;'>\n";
|
echo "<div class='hud_content' style='display: block;'>\n";
|
||||||
|
echo " <div class='action_bar sub'>\n";
|
||||||
echo "<div class='action_bar sub'>\n";
|
|
||||||
echo " <div class='heading' style='padding-left: 5px;'><b>".$text['title-device_keys']."</b></div>\n";
|
echo " <div class='heading' style='padding-left: 5px;'><b>".$text['title-device_keys']."</b></div>\n";
|
||||||
echo " <div class='actions' style='padding-top: 2px;'>\n";
|
echo " <div class='actions' style='padding-top: 2px;'>\n";
|
||||||
echo button::create(['type'=>'button','label'=>$text['button-apply'],'icon'=>$_SESSION['theme']['button_icon_save'],'collapse'=>false,'onclick'=>"document.location.href='".PROJECT_PATH."/app/devices/cmd.php?cmd=check_sync&profile=".$sip_profile_name."&user=".($user_id ?? '')."@".($server_address ?? '')."&domain=".($server_address ?? '')."&agent=".($device_key_vendor ?? '')."';"]);
|
echo button::create(['type'=>'button','label'=>$text['button-apply'],'icon'=>$_SESSION['theme']['button_icon_save'],'collapse'=>false,'onclick'=>"document.location.href='".PROJECT_PATH."/app/devices/cmd.php?cmd=check_sync&profile=".$sip_profile_name."&user=".($user_id ?? '')."@".($server_address ?? '')."&domain=".($server_address ?? '')."&agent=".($device_key_vendor ?? '')."';"]);
|
||||||
echo button::create(['type'=>'button','label'=>$text['button-save'],'icon'=>$_SESSION['theme']['button_icon_save'],'collapse'=>false,'onclick'=>"list_form_submit('form_list_device_keys');"]);
|
echo button::create(['type'=>'button','label'=>$text['button-save'],'icon'=>$_SESSION['theme']['button_icon_save'],'collapse'=>false,'onclick'=>"list_form_submit('form_list_device_keys');"]);
|
||||||
echo " </div>\n";
|
echo " </div>\n";
|
||||||
echo " <div style='clear: both;'></div>\n";
|
echo " <div style='clear: both;'></div>\n";
|
||||||
echo "</div>\n";
|
echo " </div>\n";
|
||||||
|
|
||||||
if (!empty($is_included) && !$is_included) {
|
if (!empty($is_included) && !$is_included) {
|
||||||
echo $text['description-device_keys']."\n";
|
echo $text['description-device_keys']."\n";
|
||||||
echo "<br /><br />\n";
|
echo "<br /><br />\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "<form method='post' name='frm' id='form_list_device_keys' action=''>\n";
|
echo " <form method='post' name='frm' id='form_list_device_keys' action=''>\n";
|
||||||
echo "<table class='list'>\n";
|
echo " <table class='list'>\n";
|
||||||
$x = 0;
|
$x = 0;
|
||||||
if (is_array($device_keys) && @sizeof($device_keys) != 0) {
|
if (is_array($device_keys) && @sizeof($device_keys) != 0) {
|
||||||
foreach ($device_keys as $row) {
|
foreach ($device_keys as $row) {
|
||||||
|
|
@ -625,10 +624,9 @@
|
||||||
$x++;
|
$x++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
echo "</table>\n";
|
echo " </table>\n";
|
||||||
echo "<input type='hidden' name='".$token['name']."' value='".$token['hash']."'>\n";
|
echo " <input type='hidden' name='".$token['name']."' value='".$token['hash']."'>\n";
|
||||||
echo "</form>\n";
|
echo " </form>\n";
|
||||||
|
|
||||||
echo "</div>\n";
|
echo "</div>\n";
|
||||||
|
|
||||||
echo "</div>\n";
|
echo "</div>\n";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue