Multiple: Add IDs to form tags, remove empty action attributes.

This commit is contained in:
Nate
2020-03-05 10:02:25 -07:00
parent f8c74e6586
commit e8494facee
39 changed files with 58 additions and 54 deletions

View File

@@ -192,7 +192,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
require_once "resources/header.php";
//show the content
echo "<form method='post' name='frm'>\n";
echo "<form method='post' name='frm' id='frm'>\n";
echo "<div class='action_bar' id='action_bar'>\n";
echo " <div class='heading'><b>".$text['title-access_control_node']."</b></div>\n";

View File

@@ -282,7 +282,7 @@
require_once "resources/header.php";
//show the content
echo "<form method='post' name='frm'>\n";
echo "<form method='post' name='frm' id='frm'>\n";
echo "<div class='action_bar' id='action_bar'>\n";
echo " <div class='heading'>";
@@ -365,8 +365,8 @@
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
function call_block_action_select($label = false) {
global $text, $call_block_app, $call_block_data, $extensions, $voicemails;
echo "<select class='formfld' name='call_block_action'>\n";
global $select_margin, $text, $call_block_app, $call_block_data, $extensions, $voicemails;
echo "<select class='formfld' style='".$select_margin."' name='call_block_action'>\n";
if ($label) {
echo " <option value='' disabled='disabled'>".$text['label-action']."</option>\n";
}
@@ -508,21 +508,25 @@
echo "<div class='action_bar' id='action_bar_sub'>\n";
echo " <div class='heading'><b id='heading_sub'>".$text['heading-recent_calls']."</b></div>\n";
echo " <div class='actions'>\n";
echo button::create(['type'=>'button','id'=>'action_bar_sub_button_back','label'=>$text['button-back'],'icon'=>$_SESSION['theme']['button_icon_back'],'collapse'=>'hide-xs','style'=>'margin-right: 15px; display: none;','link'=>'call_block.php']);
if (permission_exists('call_block_all')) {
echo "<select class='formfld' name='extension_uuid'>\n";
echo " <option value='' disabled='disabled'>".$text['label-extension']."</option>\n";
echo " <option value='' selected='selected'>".$text['label-all']."</option>\n";
if (is_array($extensions) && sizeof($extensions) != 0) {
foreach ($extensions as $row) {
$selected = $extension_uuid == $row['extension_uuid'] ? "selected='selected'" : null;
echo " <option value='".urlencode($row["extension_uuid"])."' ".$selected.">".escape($row['extension'])." ".escape($row['description'])."</option>\n";
echo button::create(['type'=>'button','id'=>'action_bar_sub_button_back','label'=>$text['button-back'],'icon'=>$_SESSION['theme']['button_icon_back'],'collapse'=>'hide-xs','style'=>'display: none;','link'=>'call_block.php']);
if ($result || true) {
$select_margin = 'margin-left: 15px;';
if (permission_exists('call_block_all')) {
echo "<select class='formfld' style='".$select_margin."' name='extension_uuid'>\n";
echo " <option value='' disabled='disabled'>".$text['label-extension']."</option>\n";
echo " <option value='' selected='selected'>".$text['label-all']."</option>\n";
if (is_array($extensions) && sizeof($extensions) != 0) {
foreach ($extensions as $row) {
$selected = $extension_uuid == $row['extension_uuid'] ? "selected='selected'" : null;
echo " <option value='".urlencode($row["extension_uuid"])."' ".$selected.">".escape($row['extension'])." ".escape($row['description'])."</option>\n";
}
}
echo " </select>";
unset($select_margin);
}
echo " </select>";
call_block_action_select(true);
echo button::create(['type'=>'button','label'=>$text['button-block'],'icon'=>'ban','collapse'=>'hide-xs','onclick'=>"if (confirm('".$text['confirm-block']."')) { list_form_submit('form_list'); } else { this.blur(); return false; }"]);
}
call_block_action_select(true);
echo button::create(['type'=>'button','label'=>$text['button-block'],'icon'=>'ban','collapse'=>'hide-xs','onclick'=>"if (confirm('".$text['confirm-block']."')) { list_form_submit('form_list'); } else { this.blur(); return false; }"]);
echo "</div>\n";
echo " <div style='clear: both;'></div>\n";
echo "</div>\n";

View File

@@ -284,7 +284,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
require_once "resources/header.php";
//begin content
echo "<form name='frm' method='post' enctype='multipart/form-data'>\n";
echo "<form name='frm' id='frm' method='post' enctype='multipart/form-data'>\n";
echo "<div class='action_bar' id='action_bar'>\n";
echo " <div class='heading'><b>".$text['title-call_broadcast']."</b></div>\n";

View File

@@ -170,7 +170,7 @@
echo " <div style='clear: both;'></div>\n";
echo "</div>\n";
echo "<form id='form_list_call_center_agent_dashboard' method='post' action=''>\n";
echo "<form id='form_list_call_center_agent_dashboard' method='post'>\n";
echo "<table class='list'>\n";
echo "<tr class='list-header'>\n";

View File

@@ -297,7 +297,7 @@
echo $text['description-call_center_agent_status']."\n";
echo "<br /><br />\n";
echo "<form id='form_list' method='post' action=''>\n";
echo "<form id='form_list' method='post'>\n";
echo "<table class='list'>\n";
echo "<tr class='list-header'>\n";

View File

@@ -178,7 +178,7 @@
require_once "resources/header.php";
//show the content
echo "<form name='frm' id='frm' method='post' action=''>\n";
echo "<form name='frm' id='frm' method='post'>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";

View File

@@ -498,7 +498,7 @@
$token = $object->create($_SERVER['PHP_SELF']);
//show the content
echo "<form method='post' name='frm'>\n";
echo "<form method='post' name='frm' id='frm'>\n";
echo "<div class='action_bar' id='action_bar'>\n";
echo " <div class='heading'><b>".$text['title-call_routing']."</b></div>\n";

View File

@@ -264,7 +264,7 @@
require_once "resources/header.php";
//show the content
echo "<form name='frm' id='frm' method='post' action=''>\n";
echo "<form name='frm' id='frm' method='post'>\n";
echo "<div class='action_bar' id='action_bar'>\n";
echo " <div class='heading'><b>".$text['title-conference_center']."</b></div>\n";

View File

@@ -569,7 +569,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
require_once "resources/header.php";
//show the content
echo "<form method='post' name='frm' action=''>\n";
echo "<form method='post' name='frm' id='frm'>\n";
echo "<div class='action_bar' id='action_bar'>\n";
echo " <div class='heading'><b>".$text['title-conference_room']."</b></div>\n";

View File

@@ -126,7 +126,7 @@
require_once "resources/header.php";
//show the content
echo "<form name='frm' id='frm' method='post' action=''>\n";
echo "<form name='frm' id='frm' method='post'>\n";
echo "<div class='action_bar' id='action_bar'>\n";
echo " <div class='heading'><b>".$text['title-conference_profile']."</b></div>\n";

View File

@@ -317,7 +317,7 @@
require_once "resources/header.php";
//show the content
echo "<form method='post' name='frm'>\n";
echo "<form method='post' name='frm' id='frm'>\n";
echo "<div class='action_bar' id='action_bar'>\n";
echo " <div class='heading'>";

View File

@@ -237,7 +237,7 @@
echo "</script>";
//show the content
echo "<form method='post' name='frm'>\n";
echo "<form method='post' name='frm' id='frm'>\n";
echo "<div class='action_bar' id='action_bar'>\n";
echo " <div class='heading'>";

View File

@@ -152,7 +152,7 @@
require_once "resources/header.php";
//show the content
echo "<form method='post' name='frm' enctype='multipart/form-data'>\n";
echo "<form method='post' name='frm' id='frm' enctype='multipart/form-data'>\n";
echo "<div class='action_bar' id='action_bar'>\n";
echo " <div class='heading'>";

View File

@@ -209,7 +209,7 @@ if (is_uuid($_GET["contact_uuid"])) {
echo "</script>";
//show the content
echo "<form method='post' name='frm'>\n";
echo "<form method='post' name='frm' id='frm'>\n";
echo "<div class='action_bar' id='action_bar'>\n";
echo " <div class='heading'>";

View File

@@ -334,7 +334,7 @@ if (!permission_exists('contact_time_add')) { echo "access denied"; exit; }
<br><br>
<div id='ajax_reponse' class='timer_<?php echo escape($timer_state);?>'>00:00:00</div>
<br>
<form name='frm' id='frm' method='post' action=''>
<form name='frm' id='frm' method='post'>
<input type='hidden' name='domain_uuid' value="<?php echo escape($domain_uuid); ?>">
<input type='hidden' name='contact_time_uuid' value="<?php echo escape($contact_time_uuid); ?>">
<input type='hidden' name='contact_uuid' value="<?php echo escape($contact_uuid); ?>">

View File

@@ -210,7 +210,7 @@
echo "</script>";
//show the content
echo "<form method='post' name='frm'>\n";
echo "<form method='post' name='frm' id='frm'>\n";
echo "<div class='action_bar' id='action_bar'>\n";
echo " <div class='heading'>";

View File

@@ -864,7 +864,7 @@
echo "</script>\n";
//show the content
echo "<form method='post' name='frm'>\n";
echo "<form method='post' name='frm' id='frm'>\n";
echo "<div class='action_bar' id='action_bar'>\n";
echo " <div class='heading'>";

View File

@@ -132,7 +132,7 @@
require_once "resources/header.php";
//show the content
echo "<form method='post' name='frm'>\n";
echo "<form method='post' name='frm' id='frm'>\n";
echo "<div class='action_bar' id='action_bar'>\n";
echo " <div class='heading'><b>".$text['header-device_export']."</b></div>\n";

View File

@@ -357,7 +357,7 @@
require_once "resources/header.php";
//show the content
echo "<form name='frm' id='frm' method='post' action=''>\n";
echo "<form name='frm' id='frm' method='post'>\n";
echo "<div class='action_bar' id='action_bar'>\n";
echo " <div class='heading'><b>".$text['title-device_profile']."</b></div>\n";

View File

@@ -267,7 +267,7 @@
require_once "resources/header.php";
//show the content
echo "<form name='frm' id='frm' method='post' action=''>\n";
echo "<form name='frm' id='frm' method='post'>\n";
echo "<div class='action_bar' id='action_bar'>\n";
echo " <div class='heading'><b>".$text['title-device_vendor_function']."</b></div>\n";

View File

@@ -476,7 +476,7 @@
<?php
//show the content
echo "<form method='post' name='frm'>\n";
echo "<form method='post' name='frm' id='frm'>\n";
echo "<div class='action_bar' id='action_bar'>\n";
echo " <div class='heading'><b>".$text['title-dialplan-inbound-add']."</b></div>\n";

View File

@@ -239,7 +239,7 @@
require_once "resources/header.php";
//show the content
echo "<form method='post' name='frm'>\n";
echo "<form method='post' name='frm' id='frm'>\n";
echo "<div class='action_bar' id='action_bar'>\n";
echo " <div class='heading'><b>".$text['header-dialplan-add']."</b></div>\n";

View File

@@ -169,7 +169,7 @@
require_once "resources/header.php";
//show the content
echo "<form method='post' name='frm'>\n";
echo "<form method='post' name='frm' id='frm'>\n";
echo "<div class='action_bar' id='action_bar'>\n";
echo " <div class='heading'><b>".$text['header-extension_export']."</b></div>\n";

View File

@@ -822,7 +822,7 @@
echo "}\n";
echo "</script>";
echo "<form method='post' name='frm' id='frm' action=''>\n";
echo "<form method='post' name='frm' id='frm'>\n";
echo "<div class='action_bar' id='action_bar'>\n";
echo " <div class='heading'>";

View File

@@ -498,7 +498,7 @@
echo "</script>\n";
//show the content
echo "<form method='post' name='frm'>\n";
echo "<form method='post' name='frm' id='frm'>\n";
echo "<div class='action_bar' id='action_bar'>\n";
echo " <div class='heading'><b>".$text['header-fax_server_settings']."</b></div>\n";

View File

@@ -111,7 +111,7 @@
require_once "resources/header.php";
//show the content
echo "<form method='post' name='frm'>\n";
echo "<form method='post' name='frm' id='frm'>\n";
echo "<div class='action_bar' id='action_bar'>\n";
echo " <div class='heading'><b>".$text['title-fax_log']."</b></div>\n";

View File

@@ -906,7 +906,7 @@ if (!$included) {
echo "</script>";
//show the content
echo "<form method='post' name='frm' enctype='multipart/form-data'>\n";
echo "<form method='post' name='frm' id='frm' enctype='multipart/form-data'>\n";
echo "<div class='action_bar' id='action_bar'>\n";
echo " <div class='heading'><b>".$text['header-new_fax']."</b></div>\n";

View File

@@ -295,7 +295,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
$document['title'] = $text['title-queue_add'];
//show the content
echo "<form method='post' name='frm'>\n";
echo "<form method='post' name='frm' id='frm'>\n";
echo "<div class='action_bar' id='action_bar'>\n";
echo " <div class='heading'><b>".$text['header-queue_add']."</b></div>\n";

View File

@@ -120,7 +120,7 @@
require_once "resources/header.php";
//show the content
echo "<form name='frm' method='get'>\n";
echo "<form name='frm' id='frm' method='get'>\n";
echo "<div class='action_bar' id='action_bar'>\n";
echo " <div class='heading'><b>".$text['title-gswave']."</b></div>\n";

View File

@@ -174,7 +174,7 @@
require_once "resources/header.php";
//show the content
echo "<form method='post' name='frm'>\n";
echo "<form method='post' name='frm' id='frm'>\n";
echo "<div class='action_bar' id='action_bar'>\n";
echo " <div class='heading'>";

View File

@@ -207,7 +207,7 @@
require_once "resources/header.php";
//show the content
echo "<form name='frm' id='frm' method='post' action=''>\n";
echo "<form name='frm' id='frm' method='post'>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<td align='left' width='30%' nowrap='nowrap' valign='top'><b>".$text['title-music_on_hold']."</b><br><br></td>\n";

View File

@@ -123,7 +123,7 @@
require_once "resources/header.php";
//show the content
echo "<form method='post' name='frm'>\n";
echo "<form method='post' name='frm' id='frm'>\n";
echo "<div class='action_bar' id='action_bar'>\n";
echo " <div class='heading'><b>".$text['header-export']."</b></div>\n";

View File

@@ -145,7 +145,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
require_once "resources/header.php";
//show the content
echo "<form method='post' name='frm' action=''>\n";
echo "<form method='post' name='frm' id='frm'>\n";
echo "<table border='0' cellpadding='0' cellspacing='0' align='right'>\n";
echo "<tr>\n";

View File

@@ -898,7 +898,7 @@
</script>
<?php
echo "<form method='post' name='frm' onsubmit=\"return check_submit();\">\n";
echo "<form method='post' name='frm' id='frm' onsubmit=\"return check_submit();\">\n";
echo "<div class='action_bar' id='action_bar'>\n";
echo " <div class='heading'><b>".$text['title-time_condition']."</b></div>\n";

View File

@@ -184,7 +184,7 @@
require_once "resources/header.php";
//show contents
echo "<form method='post' name='frm'>\n";
echo "<form method='post' name='frm' id='frm'>\n";
echo "<div class='action_bar' id='action_bar'>\n";
echo " <div class='heading'><b>".$text['header-variable']."</b></div>\n";

View File

@@ -130,7 +130,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
require_once "resources/header.php";
//show the content
echo "<form method='post' name='frm' action=''>\n";
echo "<form method='post' name='frm' id='frm'>\n";
echo "<table cellpadding='0' cellspacing='0' border='0' align='right'>\n";
echo "<tr>\n";

View File

@@ -211,7 +211,7 @@
//basic search of call detail records
if (permission_exists('xml_cdr_search')) {
echo "<form method='get' action=''>\n";
echo "<form name='frm' id='frm' method='get'>\n";
echo "<div class='form_grid'>\n";

View File

@@ -124,7 +124,7 @@
echo "</div>\n";
if (permission_exists('xml_cdr_search')) {
echo "<form name='frm' id='frm' method='get' action=''>\n";
echo "<form name='frm' id='frm' method='get'>\n";
echo "<div class='form_grid' style='padding-bottom: 35px;'>\n";

View File

@@ -267,7 +267,7 @@
echo "</div>";
echo "<div id='request_form' style='display: none;'>\n";
echo "<form name='request' method='post' action=''>\n";
echo "<form name='request' method='post'>\n";
echo "<input type='hidden' name='action' value='request'>\n";
echo "<input type='text' class='txt login' style='text-align: center; min-width: 200px; width: 200px; margin-bottom: 8px;' name='email' id='email' placeholder=\"".$text['label-email_address']."\"><br />\n";
echo "<input type='submit' id='btn_reset' class='btn' style='width: 100px; margin-top: 15px;' value='".$text['button-reset']."'>\n";
@@ -353,7 +353,7 @@
echo "</script>\n";
echo "<span id='reset_form'>\n";
echo "<form name='reset' id='frm' method='post' action=''>\n";
echo "<form name='reset' id='frm' method='post'>\n";
echo "<input type='hidden' name='action' value='reset'>\n";
echo "<input type='text' class='txt login' style='text-align: center; min-width: 200px; width: 200px; margin-bottom: 8px;' name='username' id='username' placeholder=\"".$text['label-username']."\"><br />\n";
echo "<input type='password' class='txt login' style='text-align: center; min-width: 200px; width: 200px; margin-bottom: 4px;' name='password_new' id='password' autocomplete='off' placeholder=\"".$text['label-new_password']."\" onkeypress='show_strenth_meter();' onfocus='compare_passwords();' onkeyup='compare_passwords();' onblur='compare_passwords();'><br />\n";