Skip to content

Commit

Permalink
Multiple: Add IDs to form tags, remove empty action attributes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nate committed Mar 5, 2020
1 parent f8c74e6 commit e8494fa
Show file tree
Hide file tree
Showing 39 changed files with 58 additions and 54 deletions.
2 changes: 1 addition & 1 deletion app/access_controls/access_control_node_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,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-access_control_node']."</b></div>\n";
Expand Down
34 changes: 19 additions & 15 deletions app/call_block/call_block_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'>";
Expand Down Expand Up @@ -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";
}
Expand Down Expand Up @@ -508,21 +508,25 @@ function call_block_action_select($label = false) {
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";
Expand Down
2 changes: 1 addition & 1 deletion app/call_broadcast/call_broadcast_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ function upload_file($sql, $broadcast_phone_numbers) {
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";
Expand Down
2 changes: 1 addition & 1 deletion app/call_centers/call_center_agent_dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion app/call_centers/call_center_agent_status.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion app/call_recordings/call_recording_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion app/calls/call_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ function destination_select($select_name, $select_value, $select_default) {
$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";
Expand Down
2 changes: 1 addition & 1 deletion app/conference_centers/conference_center_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion app/conference_centers/conference_room_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ function get_meeting_pin($length, $meeting_uuid) {
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";
Expand Down
2 changes: 1 addition & 1 deletion app/conference_profiles/conference_profile_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion app/conferences/conference_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'>";
Expand Down
2 changes: 1 addition & 1 deletion app/contacts/contact_address_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'>";
Expand Down
2 changes: 1 addition & 1 deletion app/contacts/contact_attachment_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'>";
Expand Down
2 changes: 1 addition & 1 deletion app/contacts/contact_email_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,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'>";
Expand Down
2 changes: 1 addition & 1 deletion app/contacts/contact_timer.php
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ function set_title(title_text) {
<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); ?>">
Expand Down
2 changes: 1 addition & 1 deletion app/contacts/contact_url_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'>";
Expand Down
2 changes: 1 addition & 1 deletion app/destinations/destination_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'>";
Expand Down
2 changes: 1 addition & 1 deletion app/devices/device_download.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function download_send_headers($filename) {
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";
Expand Down
2 changes: 1 addition & 1 deletion app/devices/device_profile_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion app/devices/device_vendor_function_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion app/dialplan_inbound/dialplan_inbound_add.php
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ function type_onchange(dialplan_detail_type) {
<?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";
Expand Down
2 changes: 1 addition & 1 deletion app/dialplans/dialplan_add.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ function type_onchange(dialplan_detail_type) {
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";
Expand Down
2 changes: 1 addition & 1 deletion app/extensions/extension_download.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ function download_send_headers($filename) {
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";
Expand Down
2 changes: 1 addition & 1 deletion app/extensions/extension_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'>";
Expand Down
2 changes: 1 addition & 1 deletion app/fax/fax_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion app/fax/fax_log_view.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion app/fax/fax_send.php
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ function fax_split_dtmf(&$fax_number, &$fax_dtmf){
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";
Expand Down
2 changes: 1 addition & 1 deletion app/fifo/fifo_add.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@
$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";
Expand Down
2 changes: 1 addition & 1 deletion app/gswave/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion app/modules/module_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'>";
Expand Down
2 changes: 1 addition & 1 deletion app/music_on_hold/music_on_hold_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion app/pin_numbers/pin_download.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function download_send_headers($filename) {
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";
Expand Down
2 changes: 1 addition & 1 deletion app/recordings/recording_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
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";
Expand Down
2 changes: 1 addition & 1 deletion app/time_conditions/time_condition_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ function check_submit() {
</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";
Expand Down
2 changes: 1 addition & 1 deletion app/vars/var_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion app/voicemail_greetings/voicemail_greeting_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
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";
Expand Down
2 changes: 1 addition & 1 deletion app/xml_cdr/xml_cdr.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
2 changes: 1 addition & 1 deletion app/xml_cdr/xml_cdr_extension_summary.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
Loading

0 comments on commit e8494fa

Please sign in to comment.