Multiple - Edit: Minor mods.
This commit is contained in:
parent
dc1b1f5717
commit
8cf57f30be
|
|
@ -1067,11 +1067,14 @@
|
|||
echo " </td>\n";
|
||||
|
||||
if (is_array($device_lines) && @sizeof($device_lines) > 1 && permission_exists('device_line_delete')) {
|
||||
echo " <td style='text-align: center;'>\n";
|
||||
if (is_uuid($row['device_line_uuid'])) {
|
||||
echo " <td class='vtable' style='text-align: center; padding-bottom: 3px;'>\n";
|
||||
echo " <input type='checkbox' name='device_lines_delete[".$x."][checked]' value='true' class='chk_delete checkbox_lines' onclick=\"edit_delete_action('lines');\">\n";
|
||||
echo " <input type='hidden' name='device_lines_delete[".$x."][uuid]' value='".escape($row['device_line_uuid'])."' />\n";
|
||||
}
|
||||
else {
|
||||
echo " <td>\n";
|
||||
}
|
||||
echo " </td>\n";
|
||||
}
|
||||
|
||||
|
|
@ -1380,11 +1383,14 @@
|
|||
echo "</td>\n";
|
||||
|
||||
if (is_array($device_keys) && @sizeof($device_keys) > 1 && permission_exists('device_key_delete')) {
|
||||
echo " <td style='text-align: center;'>\n";
|
||||
if (is_uuid($row['device_key_uuid'])) {
|
||||
echo " <td class='vtable' style='text-align: center; padding-bottom: 3px;'>\n";
|
||||
echo " <input type='checkbox' name='device_keys_delete[".$x."][checked]' value='true' class='chk_delete checkbox_keys' onclick=\"edit_delete_action('keys');\">\n";
|
||||
echo " <input type='hidden' name='device_keys_delete[".$x."][uuid]' value='".escape($row['device_key_uuid'])."' />\n";
|
||||
}
|
||||
else {
|
||||
echo " <td>\n";
|
||||
}
|
||||
}
|
||||
echo " </td>\n";
|
||||
echo " </tr>\n";
|
||||
|
|
@ -1459,11 +1465,14 @@
|
|||
echo "</td>\n";
|
||||
|
||||
if (is_array($device_settings) && @sizeof($device_settings) > 1 && permission_exists('device_setting_delete')) {
|
||||
echo "<td style='text-align: center;'>\n";
|
||||
if (is_uuid($row['device_setting_uuid'])) {
|
||||
echo "<td class='vtable' style='text-align: center; padding-bottom: 3px;'>\n";
|
||||
echo " <input type='checkbox' name='device_settings_delete[".$x."][checked]' value='true' class='chk_delete checkbox_settings' onclick=\"edit_delete_action('settings');\">\n";
|
||||
echo " <input type='hidden' name='device_settings_delete[".$x."][uuid]' value='".escape($row['device_setting_uuid'])."' />\n";
|
||||
}
|
||||
else {
|
||||
echo "<td>\n";
|
||||
}
|
||||
echo "</td>\n";
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -474,7 +474,7 @@
|
|||
echo " <input type='hidden' name='device_profile_keys[$x][domain_uuid]' value=\"".escape($row["domain_uuid"])."\">\n";
|
||||
echo " <input type='hidden' name='device_profile_keys[$x][device_profile_uuid]' value=\"".escape($row["device_profile_uuid"])."\">\n";
|
||||
echo " <input type='hidden' name='device_profile_keys[$x][device_profile_key_uuid]' value=\"".(is_uuid($row["device_profile_key_uuid"]) ? $row["device_profile_key_uuid"] : uuid())."\">\n";
|
||||
echo " <td>\n";
|
||||
echo " <td class='formfld'>\n";
|
||||
echo " <select class='formfld' name='device_profile_keys[$x][profile_key_category]'>\n";
|
||||
echo " <option value='line' ".($row['profile_key_category'] == "line" ? "selected='selected'" : null).">".$text['label-line']."</option>\n";
|
||||
if ($row['device_key_vendor'] !== "polycom") {
|
||||
|
|
@ -503,7 +503,7 @@
|
|||
}
|
||||
echo " </select>\n";
|
||||
echo " </td>\n";
|
||||
echo " <td>\n";
|
||||
echo " <td class='formfld'>\n";
|
||||
echo " <select class='formfld' name='device_profile_keys[$x][profile_key_id]'>\n";
|
||||
echo " <option value=''></option>\n";
|
||||
for ($i = 1; $i <= 255; $i++) {
|
||||
|
|
@ -511,7 +511,7 @@
|
|||
}
|
||||
echo " </select>\n";
|
||||
echo " </td>\n";
|
||||
echo " <td>\n";
|
||||
echo " <td class='formfld'>\n";
|
||||
echo " <select class='formfld' name='device_profile_keys[".$x."][profile_key_vendor]' id='key_vendor_".$x."'>\n";
|
||||
echo " <option value=''></option>\n";
|
||||
foreach ($vendors as $vendor) {
|
||||
|
|
@ -526,7 +526,7 @@
|
|||
echo " </select>\n";
|
||||
|
||||
echo " </td>\n";
|
||||
echo " <td>\n";
|
||||
echo " <td class='formfld'>\n";
|
||||
//echo " <input class='formfld' type='text' name='device_profile_keys[$x][profile_key_type]' maxlength='255' value=\"".escape($row["profile_key_type"])."\">\n";
|
||||
|
||||
echo " <select class='formfld' name='device_profile_keys[".$x."][profile_key_type]' id='key_type_".$x."'>\n";
|
||||
|
|
@ -557,7 +557,7 @@
|
|||
echo " </select>\n";
|
||||
|
||||
echo " </td>\n";
|
||||
echo " <td>\n";
|
||||
echo " <td class='formfld'>\n";
|
||||
echo " <select class='formfld' name='device_profile_keys[$x][profile_key_line]'>\n";
|
||||
echo " <option value=''></option>\n";
|
||||
for ($l = 0; $l <= 12; $l++) {
|
||||
|
|
@ -565,11 +565,11 @@
|
|||
}
|
||||
echo " </select>\n";
|
||||
echo " </td>\n";
|
||||
echo " <td>\n";
|
||||
echo " <td class='formfld'>\n";
|
||||
echo " <input class='formfld' type='text' name='device_profile_keys[$x][profile_key_value]' maxlength='255' value=\"".escape($row["profile_key_value"])."\">\n";
|
||||
echo " </td>\n";
|
||||
if (permission_exists('device_key_extension')) {
|
||||
echo " <td>\n";
|
||||
echo " <td class='formfld'>\n";
|
||||
echo " <input class='formfld' type='text' name='device_profile_keys[$x][profile_key_extension]' maxlength='255' value=\"".escape($row["profile_key_extension"])."\">\n";
|
||||
echo " </td>\n";
|
||||
}
|
||||
|
|
@ -582,18 +582,21 @@
|
|||
echo " </select>\n";
|
||||
echo " </td>\n";
|
||||
}
|
||||
echo " <td>\n";
|
||||
echo " <td class='formfld'>\n";
|
||||
echo " <input class='formfld' type='text' name='device_profile_keys[$x][profile_key_label]' maxlength='255' value=\"".escape($row["profile_key_label"])."\">\n";
|
||||
echo " </td>\n";
|
||||
echo " <td>\n";
|
||||
echo " <td class='formfld'>\n";
|
||||
echo " <input class='formfld' type='text' name='device_profile_keys[$x][profile_key_icon]' maxlength='255' value=\"".escape($row["profile_key_icon"])."\">\n";
|
||||
echo " </td>\n";
|
||||
if (is_array($device_profile_keys) && @sizeof($device_profile_keys) > 1 && permission_exists('device_profile_key_delete')) {
|
||||
echo " <td style='text-align: center;'>\n";
|
||||
if (is_uuid($row["device_profile_key_uuid"])) {
|
||||
echo " <td class='vtable' style='text-align: center; padding-bottom: 3px;'>\n";
|
||||
echo " <input type='checkbox' name='device_profile_keys_delete[".$x."][checked]' value='true' class='chk_delete checkbox_keys_".$device_vendor."' onclick=\"edit_delete_action('keys_".$device_vendor."');\">\n";
|
||||
echo " <input type='hidden' name='device_profile_keys_delete[".$x."][uuid]' value='".escape($row['device_profile_key_uuid'])."' />\n";
|
||||
}
|
||||
else {
|
||||
echo " <td>\n";
|
||||
}
|
||||
echo " </td>\n";
|
||||
}
|
||||
echo " </tr>\n";
|
||||
|
|
@ -634,27 +637,30 @@
|
|||
echo " <input type='hidden' name='device_profile_settings[$x][domain_uuid]' value=\"".escape($row["domain_uuid"])."\">\n";
|
||||
echo " <input type='hidden' name='device_profile_settings[$x][device_profile_uuid]' value=\"".escape($row["device_profile_uuid"])."\">\n";
|
||||
echo " <input type='hidden' name='device_profile_settings[$x][device_profile_setting_uuid]' value=\"".(is_uuid($row["device_profile_setting_uuid"]) ? $row["device_profile_setting_uuid"] : uuid())."\">\n";
|
||||
echo " <td>\n";
|
||||
echo " <td class='formfld'>\n";
|
||||
echo " <input class='formfld' type='text' name='device_profile_settings[$x][profile_setting_name]' maxlength='255' value=\"".escape($row["profile_setting_name"])."\">\n";
|
||||
echo " </td>\n";
|
||||
echo " <td>\n";
|
||||
echo " <td class='formfld'>\n";
|
||||
echo " <input class='formfld' type='text' name='device_profile_settings[$x][profile_setting_value]' maxlength='255' value=\"".escape($row["profile_setting_value"])."\">\n";
|
||||
echo " </td>\n";
|
||||
echo " <td>\n";
|
||||
echo " <td class='formfld'>\n";
|
||||
echo " <select class='formfld' name='device_profile_settings[$x][profile_setting_enabled]'>\n";
|
||||
echo " <option value='true'>".$text['label-true']."</option>\n";
|
||||
echo " <option value='false' ".($row['profile_setting_enabled'] == "false" ? "selected='selected'" : null).">".$text['label-false']."</option>\n";
|
||||
echo " </select>\n";
|
||||
echo " </td>\n";
|
||||
echo " <td>\n";
|
||||
echo " <td class='formfld'>\n";
|
||||
echo " <input class='formfld' type='text' name='device_profile_settings[$x][profile_setting_description]' maxlength='255' value=\"".escape($row["profile_setting_description"])."\">\n";
|
||||
echo " </td>\n";
|
||||
if (is_array($device_profile_settings) && @sizeof($device_profile_settings) > 1 && permission_exists('device_profile_setting_delete')) {
|
||||
echo " <td style='text-align: center;'>\n";
|
||||
if (is_uuid($row["device_profile_setting_uuid"])) {
|
||||
echo " <td class='vtable' style='text-align: center; padding-bottom: 3px;'>\n";
|
||||
echo " <input type='checkbox' name='device_profile_settings_delete[".$x."][checked]' value='true' class='chk_delete checkbox_settings' onclick=\"edit_delete_action('settings');\">\n";
|
||||
echo " <input type='hidden' name='device_profile_settings_delete[".$x."][uuid]' value='".escape($row['device_profile_setting_uuid'])."' />\n";
|
||||
}
|
||||
else {
|
||||
echo " <td>\n";
|
||||
}
|
||||
echo " </td>\n";
|
||||
}
|
||||
echo " </tr>\n";
|
||||
|
|
|
|||
|
|
@ -937,11 +937,14 @@
|
|||
echo "</td>\n";
|
||||
//tools
|
||||
if (permission_exists('dialplan_detail_delete')) {
|
||||
echo "<td style='text-align: center;'>";
|
||||
if (is_uuid($dialplan_detail_uuid)) {
|
||||
echo "<td class='vtable' style='text-align: center;'>";
|
||||
echo " <input type='checkbox' name='dialplan_details_delete[".$x."][checked]' value='true' class='chk_delete checkbox_group_".$g."' onclick=\"edit_delete_action('group_".$g."');\">\n";
|
||||
echo " <input type='hidden' name='dialplan_details_delete[".$x."][uuid]' value='".escape($dialplan_detail_uuid)."' />\n";
|
||||
}
|
||||
else {
|
||||
echo "<td>\n";
|
||||
}
|
||||
echo " </td>\n";
|
||||
}
|
||||
//end the row
|
||||
|
|
|
|||
|
|
@ -269,9 +269,9 @@
|
|||
echo " <tr>\n";
|
||||
echo " <input type='hidden' name='number_translation_details[$x][number_translation_uuid]' value=\"".escape($row["number_translation_uuid"])."\">\n";
|
||||
echo " <input type='hidden' name='number_translation_details[$x][number_translation_detail_uuid]' value=\"".(is_uuid($row["number_translation_detail_uuid"]) ? $row["number_translation_detail_uuid"] : uuid())."\">\n";
|
||||
echo " <td><input class='formfld' type='text' name='number_translation_details[$x][number_translation_detail_regex]' maxlength='255' value=\"".escape($row["number_translation_detail_regex"])."\"></td>\n";
|
||||
echo " <td><input class='formfld' type='text' name='number_translation_details[$x][number_translation_detail_replace]' maxlength='255' value=\"".escape($row["number_translation_detail_replace"])."\"></td>\n";
|
||||
echo " <td>\n";
|
||||
echo " <td class='formfld'><input class='formfld' type='text' name='number_translation_details[$x][number_translation_detail_regex]' maxlength='255' value=\"".escape($row["number_translation_detail_regex"])."\"></td>\n";
|
||||
echo " <td class='formfld'><input class='formfld' type='text' name='number_translation_details[$x][number_translation_detail_replace]' maxlength='255' value=\"".escape($row["number_translation_detail_replace"])."\"></td>\n";
|
||||
echo " <td class='formfld'>\n";
|
||||
echo " <select name='number_translation_details[$x][number_translation_detail_order]' class='formfld'>\n";
|
||||
$i=0;
|
||||
while ($i<=999) {
|
||||
|
|
@ -290,11 +290,14 @@
|
|||
echo " </select>\n";
|
||||
echo " </td>\n";
|
||||
if (is_array($number_translation_details) && @sizeof($number_translation_details) > 1 && permission_exists('number_translation_detail_delete')) {
|
||||
echo " <td style='text-align: center;'>";
|
||||
if (is_uuid($row['number_translation_detail_uuid'])) {
|
||||
echo " <td class='vtable' style='text-align: center; padding-bottom: 3px;'>";
|
||||
echo " <input type='checkbox' name='number_translation_details_delete[".$x."][checked]' value='true' class='chk_delete checkbox_details' onclick=\"edit_delete_action('details');\">\n";
|
||||
echo " <input type='hidden' name='number_translation_details_delete[".$x."][uuid]' value='".escape($row['number_translation_detail_uuid'])."' />\n";
|
||||
}
|
||||
else {
|
||||
echo " <td>\n";
|
||||
}
|
||||
echo " </td>\n";
|
||||
}
|
||||
echo " </tr>\n";
|
||||
|
|
|
|||
|
|
@ -717,7 +717,7 @@
|
|||
echo " <td class='vncellreq' valign='top'>".$text['label-destinations']."</td>";
|
||||
echo " <td class='vtable' align='left'>";
|
||||
|
||||
echo " <table border='0' cellpadding='2' cellspacing='0'>\n";
|
||||
echo " <table border='0' cellpadding='0' cellspacing='0'>\n";
|
||||
echo " <tr>\n";
|
||||
echo " <td class='vtable'>".$text['label-destination_number']."</td>\n";
|
||||
echo " <td class='vtable' id='destination_delayorder'>";
|
||||
|
|
@ -744,10 +744,10 @@
|
|||
}
|
||||
|
||||
echo " <tr>\n";
|
||||
echo " <td>\n";
|
||||
echo " <input type=\"text\" name=\"ring_group_destinations[".$x."][destination_number]\" class=\"formfld\" style=\"width: 90%;\"value=\"".escape($row['destination_number'])."\">\n";
|
||||
echo " <td class='formfld'>\n";
|
||||
echo " <input type=\"text\" name=\"ring_group_destinations[".$x."][destination_number]\" class=\"formfld\" value=\"".escape($row['destination_number'])."\">\n";
|
||||
echo " </td>\n";
|
||||
echo " <td>\n";
|
||||
echo " <td class='formfld'>\n";
|
||||
echo " <select name='ring_group_destinations[".$x."][destination_delay]' class='formfld' style='width:55px'>\n";
|
||||
$i=0;
|
||||
while ($i <= 300) {
|
||||
|
|
@ -761,7 +761,7 @@
|
|||
}
|
||||
echo " </select>\n";
|
||||
echo " </td>\n";
|
||||
echo " <td>\n";
|
||||
echo " <td class='formfld'>\n";
|
||||
echo " <select name='ring_group_destinations[".$x."][destination_timeout]' class='formfld' style='width:55px'>\n";
|
||||
$i = 5;
|
||||
while($i <= 300) {
|
||||
|
|
@ -777,7 +777,7 @@
|
|||
echo " </td>\n";
|
||||
|
||||
if (permission_exists('ring_group_prompt')) {
|
||||
echo " <td>\n";
|
||||
echo " <td class='formfld'>\n";
|
||||
echo " <select class='formfld' style='width: 90px;' name='ring_group_destinations[".$x."][destination_prompt]'>\n";
|
||||
echo " <option value=''></option>\n";
|
||||
echo " <option value='1' ".(($row['destination_prompt'])?"selected='selected'":null).">".$text['label-destination_prompt_confirm']."</option>\n";
|
||||
|
|
@ -786,11 +786,14 @@
|
|||
echo " </td>\n";
|
||||
}
|
||||
if ($show_destination_delete && permission_exists('ring_group_destination_delete')) {
|
||||
echo " <td style='text-align: center;'>";
|
||||
if (is_uuid($row['ring_group_destination_uuid'])) {
|
||||
echo " <td class='vtable' style='text-align: center; padding-bottom: 3px;'>";
|
||||
echo " <input type='checkbox' name='ring_group_destinations_delete[".$x."][checked]' value='true' class='chk_delete checkbox_destinations' onclick=\"edit_delete_action('destinations');\">\n";
|
||||
echo " <input type='hidden' name='ring_group_destinations_delete[".$x."][uuid]' value='".escape($row['ring_group_destination_uuid'])."' />\n";
|
||||
}
|
||||
else {
|
||||
echo " <td>\n";
|
||||
}
|
||||
echo " </td>\n";
|
||||
}
|
||||
echo " </tr>\n";
|
||||
|
|
|
|||
Loading…
Reference in New Issue