Added the content card div

This commit is contained in:
FusionPBX 2024-09-05 23:37:34 -06:00 committed by GitHub
parent cb6edd88ef
commit 2182ebd0b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
19 changed files with 102 additions and 55 deletions

View File

@ -148,7 +148,6 @@
//show the content
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-destination_export']."</b></div>\n";
echo " <div class='actions'>\n";
@ -161,6 +160,7 @@
echo $text['description-destination_export'];
echo "<br /><br />\n";
echo "<div class='card'>\n";
echo "<table class='list'>\n";
echo "<tr class='list-header'>\n";
echo " <th class='checkbox'>\n";
@ -184,6 +184,7 @@
}
echo "</table>\n";
echo "</div>\n";
echo "<br />\n";
echo "<input type='hidden' name='".$token['name']."' value='".$token['hash']."'>\n";
echo "</form>\n";

View File

@ -503,6 +503,7 @@
echo $text['description-dialplan-inbound-add']."\n";
echo "<br /><br />\n";
echo "<div class='card'>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<td width='30%' class='vncellreq' valign='top' align='left' nowrap>\n";
@ -807,6 +808,7 @@
echo "</tr>\n";
echo "</table>";
echo "</div>\n";
echo "<br><br>";
if ($action == "update" && permission_exists("inbound_route_edit")) {

View File

@ -249,6 +249,7 @@
echo $text['description-dialplan_manager-superadmin']."\n";
echo "<br /><br />\n";
echo "<div class='card'>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
@ -539,6 +540,7 @@
echo "</tr>\n";
echo "</table>";
echo "</div>\n";
echo "<br><br>";
if (!empty($action) && $action == "update") {

View File

@ -590,6 +590,7 @@
echo $text['description-dialplan-edit']."\n";
echo "<br /><br />\n";
echo "<div class='card'>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<td width='50%' style='vertical-align: top;'>\n";
@ -1068,6 +1069,7 @@
unset($details);
echo "</table>";
echo "</div>\n";
} //end if results

View File

@ -258,6 +258,7 @@
echo $text['description-dialplan-edit']."\n";
echo "<br />\n";
echo "<div class='card'>\n";
echo " <textarea name='dialplan_xml' id='dialplan_xml' style='display: none;'>".$dialplan_xml."</textarea>";
echo " <table cellpadding='0' cellspacing='0' border='0' style='width: 100%;'>\n";
echo " <tr>\n";
@ -329,12 +330,14 @@
echo " </td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " <div id='editor'></div>\n";
echo " <br />\n";
echo " <input type='hidden' name='app_uuid' value='".escape($app_uuid ?? null)."'>\n";
echo " <input type='hidden' name='dialplan_uuid' value='".escape($dialplan_uuid ?? null)."'>\n";
echo " <input type='hidden' name='".$token['name']."' value='".$token['hash']."'>\n";
echo " <div id='editor'></div>\n";
echo "</div>\n";
echo "<br />\n";
echo "<input type='hidden' name='app_uuid' value='".escape($app_uuid ?? null)."'>\n";
echo "<input type='hidden' name='dialplan_uuid' value='".escape($dialplan_uuid ?? null)."'>\n";
echo "<input type='hidden' name='".$token['name']."' value='".$token['hash']."'>\n";
echo "</form>\n";

View File

@ -498,6 +498,7 @@
}
echo "\n<br /><br />\n";
echo "<form id='form_list' method='post'>\n";
echo "<input type='hidden' id='app_uuid' name='app_uuid' value='".escape($app_uuid)."'>\n";
echo "<input type='hidden' id='action' name='action' value=''>\n";
@ -506,6 +507,7 @@
echo "<input type='hidden' name='order_by' value=\"".escape($order_by)."\">\n";
echo "<input type='hidden' name='order' value=\"".escape($order)."\">\n";
echo "<div class='card'>\n";
echo "<table class='list'>\n";
echo "<tr class='list-header'>\n";
if (
@ -634,6 +636,7 @@
}
echo "</table>\n";
echo "</div>\n";
echo "<br />\n";
echo "<div align='center'>".$paging_controls."</div>\n";

View File

@ -260,6 +260,7 @@
}
}
echo "<div class='card'>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
//echo "<tr>\n";
@ -369,6 +370,7 @@
echo "</tr>\n";
echo "</table>\n";
echo "</div>\n";
echo "<br /><br />\n";
echo "<input type='hidden' name='extension_uuid' value='".$extension_uuid."'>\n";

View File

@ -226,6 +226,7 @@
echo "<input type='hidden' id='action' name='action' value=''>\n";
echo "<input type='hidden' name='search' value=\"".escape($search)."\">\n";
echo "<div class='card'>\n";
echo "<table class='list'>\n";
if (!empty($extension_settings)) {
//define the variable
@ -319,7 +320,9 @@
}
echo "</table>\n";
echo "</div>\n";
echo "<br />\n";
echo "<div align='center'>".$paging_controls."</div>\n";
echo "<input type='hidden' name='".$id."' value='".$extension_uuid."'>\n";
echo "<input type='hidden' name='".$token['name']."' value='".$token['hash']."'>\n";

View File

@ -183,6 +183,7 @@
echo $text['description-extension_export'];
echo "<br /><br />\n";
echo "<div class='card'>\n";
echo "<table class='list'>\n";
echo "<tr class='list-header'>\n";
echo " <th class='checkbox'>\n";
@ -206,6 +207,7 @@
}
echo "</table>\n";
echo "</div>\n";
echo "<br />\n";
echo "<input type='hidden' name='".$token['name']."' value='".$token['hash']."'>\n";
echo "</form>\n";

View File

@ -1140,6 +1140,7 @@
echo " <div style='clear: both;'></div>\n";
echo "</div>\n";
echo "<div class='card'>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
@ -2284,6 +2285,7 @@
echo "</tr>\n";
echo "</table>";
echo "</div>\n";
echo "<br><br>";
if (isset($page) && is_numeric($page)) {

View File

@ -164,6 +164,7 @@
echo $text['description-import']."\n";
echo "<br /><br />\n";
echo "<div class='card'>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
//loop through user columns
@ -202,6 +203,7 @@
}
echo "</table>\n";
echo "</div>\n";
echo "<br /><br />\n";
echo "<input name='action' type='hidden' value='import'>\n";
@ -365,7 +367,6 @@
//show content
echo "<form name='frmUpload' method='post' enctype='multipart/form-data'>\n";
echo "<div class='action_bar' id='action_bar'>\n";
echo " <div class='heading'><b>".$text['header-extension_import']."</b></div>\n";
echo " <div class='actions'>\n";
@ -378,6 +379,7 @@
echo $text['description-import']."\n";
echo "<br /><br />\n";
echo "<div class='card'>\n";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>\n";
echo "<tr>\n";
@ -448,6 +450,7 @@
echo "</tr>\n";
echo "</table>\n";
echo "</div>\n";
echo "<br><br>";
echo "<input name='type' type='hidden' value='csv'>\n";

View File

@ -294,6 +294,7 @@
echo "<input type='hidden' id='action' name='action' value=''>\n";
echo "<input type='hidden' name='search' value=\"".escape($search)."\">\n";
echo "<div class='card'>\n";
echo "<table class='list'>\n";
echo "<tr class='list-header'>\n";
if (permission_exists('extension_enabled') || permission_exists('extension_delete')) {
@ -431,6 +432,8 @@
}
echo "</table>\n";
echo "</div>\n";
echo "<br />\n";
echo "<div align='center'>".$paging_controls."</div>\n";

View File

@ -391,7 +391,7 @@
echo "<br /><br />\n";
echo "<form name='frm' id='frm' method='post'>\n";
echo "<div class='card'>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
@ -930,7 +930,7 @@
echo "</tr>\n";
echo "</table>";
echo "<br><br>";
echo "</div>\n";
if ($action == "update") {
echo "<input type='hidden' name='gateway_uuid' value='".escape($gateway_uuid)."'>\n";
@ -938,6 +938,7 @@
echo "<input type='hidden' name='".$token['name']."' value='".$token['hash']."'>\n";
echo "</form>";
echo "<br><br>";
//hide password fields before submit
echo "<script>\n";

View File

@ -253,6 +253,7 @@
echo "<input type='hidden' id='action' name='action' value=''>\n";
echo "<input type='hidden' name='search' value=\"".escape($search)."\">\n";
echo "<div class='card'>\n";
echo "<table class='list'>\n";
echo "<tr class='list-header'>\n";
if (permission_exists('gateway_add') || permission_exists('gateway_edit') || permission_exists('gateway_delete')) {
@ -378,7 +379,8 @@
unset($gateways);
echo "</table>\n";
echo "<br />\n";
echo "</div>\n";
echo "<br /><br />\n";
echo "<div align='center'>".$paging_controls."</div>\n";
echo "<input type='hidden' name='".$token['name']."' value='".$token['hash']."'>\n";

View File

@ -372,6 +372,8 @@ if (!empty($_POST) && empty($_POST["persistformvar"])) {
}
echo "<br /><br />\n";
echo "<div class='card'>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
@ -785,18 +787,21 @@ if (!empty($_POST) && empty($_POST["persistformvar"])) {
echo " </td>\n";
echo " </tr>";
echo "</table>";
echo "</div>\n";
echo "<br />";
echo "</form>";
echo "<script>\n";
//hide/convert password fields then submit form
echo " //hide/convert password fields then submit form\n";
echo " function submit_form() {\n";
echo " hide_password_fields();\n";
echo " $('form#frm').submit();\n";
echo " }\n";
//define lowercase class
echo "\n";
echo " //define lowercase class\n";
echo " $('.lowercase').on('blur',function(){ this.value = this.value.toLowerCase(); });";
//show order if array
echo "\n";
echo " //show order if array\n";
echo " $('#user_setting_name').on('keyup',function(){ \n";
echo " (this.value.toLowerCase() == 'array') ? $('#tr_order').slideDown('fast') : $('#tr_order').slideUp('fast');\n";
echo " });\n";

View File

@ -196,6 +196,7 @@
echo "<input type='hidden' name='action' id='action' value=''>\n";
echo "<input type='hidden' name='user_uuid' value='".$user_uuid."'>\n";
echo "<div class='card'>\n";
echo "<table class='list'>\n";
if (!empty($user_settings)) {
$previous_user_setting_category = '';
@ -374,6 +375,7 @@
unset($user_settings);
echo "</table>\n";
echo "</div>\n";
echo "<br />\n";
echo "<div align='center'>".$paging_controls."</div>\n";
echo "<input type='hidden' name='".$token['name']."' value='".$token['hash']."'>\n";

View File

@ -733,6 +733,7 @@
echo $text['description-user_edit']."\n";
echo "<br /><br />\n";
echo "<div class='card'>\n";
echo "<table cellpadding='0' cellspacing='0' border='0' width='100%'>";
echo " <tr>";
@ -1207,6 +1208,7 @@
echo "</tr>\n";
echo "</table>";
echo "</div>\n";
echo "<br /><br />";
if ($action == 'edit') {

View File

@ -162,6 +162,7 @@
echo $text['description-import']."\n";
echo "<br /><br />\n";
echo "<div class='card'>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
//loop through user columns
@ -198,6 +199,7 @@
}
echo "</table>\n";
echo "</div>\n";
echo "<br /><br />\n";
echo "<input name='action' type='hidden' value='import'>\n";
@ -413,6 +415,8 @@
echo $text['description-import']."\n";
echo "<br /><br />\n";
echo "<div class='card'>\n";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>\n";
echo "<tr>\n";
@ -492,8 +496,9 @@
echo " </td>\n";
echo " </tr>\n";
echo " </table>\n";
echo "<br><br>";
echo "</div>\n";
echo "</form>";
echo "<br><br>";
//include the footer
require_once "resources/footer.php";

View File

@ -247,6 +247,7 @@
echo "<input type='hidden' id='action' name='action' value=''>\n";
echo "<input type='hidden' name='search' value=\"".escape($search)."\">\n";
echo "<div class='card'>\n";
echo "<table class='list'>\n";
echo "<tr class='list-header'>\n";
if (permission_exists('user_add') || permission_exists('user_edit') || permission_exists('user_delete')) {
@ -326,6 +327,7 @@
}
echo "</table>\n";
echo "</div>\n";
echo "<br />\n";
echo "<div align='center'>".$paging_controls."</div>\n";
echo "<input type='hidden' name='".$token['name']."' value='".$token['hash']."'>\n";