Multiple Apps: Integrate content cards.

This commit is contained in:
fusionate
2024-09-04 17:51:23 -06:00
parent a965c78735
commit bf7526f0ef
33 changed files with 96 additions and 18 deletions
+2
View File
@@ -251,6 +251,7 @@ if (count($_POST)>0 && 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";
@@ -405,6 +406,7 @@ if (count($_POST)>0 && empty($_POST["persistformvar"])) {
echo "</tr>\n";
echo "</table>";
echo "</div>";
echo "<br><br>";
if ($action == "update") {
+2
View File
@@ -137,6 +137,7 @@
echo "<form id='form_list' method='post'>\n";
echo "<input type='hidden' id='action' name='action' value=''>\n";
echo "<div class='card'>\n";
echo "<table class='list'>\n";
echo "<tr class='list-header'>\n";
if (permission_exists('database_add') || permission_exists('database_delete')) {
@@ -189,6 +190,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";
@@ -297,6 +297,7 @@
}
echo "<br /><br />\n";
echo "<div class='card'>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
@@ -814,6 +815,7 @@
echo "</tr>\n";
echo "</table>";
echo "</div>";
echo "<br><br>";
if ($action == "update") {
+3 -1
View File
@@ -432,12 +432,13 @@
if ($previous_default_setting_category != $row['default_setting_category']) {
if (!empty($previous_default_setting_category)) {
echo "</table>\n";
echo "<br />\n";
echo "</div>\n";
echo "</div>\n";
}
echo "<div class='category' id='category_".$default_setting_category."'>\n";
echo "<b>".escape($label_default_setting_category)."</b><br>\n";
echo "<div class='card'>\n";
echo "<table class='list'>\n";
echo "<tr class='list-header'>\n";
if ($permission['default_setting_add'] || $permission['default_setting_edit'] || $permission['default_setting_delete']) {
@@ -613,6 +614,7 @@
}
echo "</table>\n";
echo "</div>\n";
echo "<br />\n";
echo "</div>\n";
@@ -390,6 +390,7 @@
}
echo "<br /><br />\n";
echo "<div class='card'>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
@@ -850,6 +851,7 @@
echo "</tr>\n";
echo "</table>";
echo "</div>";
echo "<br /><br />";
echo "<input type='hidden' name='domain_uuid' value='".escape($domain_uuid)."'>\n";
+2
View File
@@ -214,6 +214,7 @@
echo "<input type='hidden' name='domain_uuid' value='".escape($domain_uuid)."'>\n";
echo "<input type='hidden' name='domain_uuid_target' id='domain_uuid_target' value=''>\n";
echo "<div class='card'>\n";
echo "<table class='list'>\n";
if (!empty($domain_settings)) {
//define the variable
@@ -403,6 +404,7 @@
}
echo "</table>\n";
echo "</div>\n";
echo "<br />\n";
echo "<input type='hidden' name='".$token['name']."' value='".$token['hash']."'>\n";
echo "</form>\n";
+2
View File
@@ -659,6 +659,7 @@
}
echo "<br /><br />\n";
echo "<div class='card'>\n";
echo "<table width='100%' cellpadding='0' cellspacing='0' border='0'>\n";
echo "<tr>\n";
@@ -706,6 +707,7 @@
echo "</tr>\n";
echo "</table>";
echo "</div>";
echo "<br /><br />";
if ($action == "update") {
+2
View File
@@ -223,6 +223,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('domain_edit') || permission_exists('domain_delete')) {
@@ -297,6 +298,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";
+2
View File
@@ -237,6 +237,7 @@
echo $text['description-groups']."\n";
echo "<br /><br />\n";
echo "<div class='card'>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
@@ -320,6 +321,7 @@
echo "</tr>\n";
echo "</table>";
echo "</div>";
echo "<br /><br />";
echo "<input type='hidden' name='group_uuid' value='".escape($group_uuid)."'>\n";
+2
View File
@@ -181,6 +181,7 @@
echo "<input type='hidden' id='action' name='action' value=''>\n";
echo "<input type='hidden' name='group_uuid' value='".escape($group_uuid)."'>\n";
echo "<div class='card'>\n";
echo "<table class='list'>\n";
echo "<tr class='list-header'>\n";
if (permission_exists('group_member_delete')) {
@@ -214,6 +215,7 @@
}
echo "</table>\n";
echo "</div>\n";
echo "<br />";
echo "<input type='hidden' name='".$token['name']."' value='".$token['hash']."'>";
echo "</form>";
+4 -1
View File
@@ -308,7 +308,9 @@
echo "<input type='hidden' name='group_uuid' value='".escape($group_uuid)."'>\n";
echo "<input type='hidden' name='view' value=\"".escape($view)."\">\n";
echo "<input type='hidden' name='search' value=\"".escape($search)."\">\n";
echo "<table class='list' style='margin-bottom: 25px;'>\n";
echo "<div class='card'>\n";
echo "<table class='list'>\n";
if (is_array($group_permissions) && @sizeof($group_permissions) != 0) {
$x = 0;
foreach ($group_permissions as $row) {
@@ -388,6 +390,7 @@
}
echo "</table>\n";
echo "</div>\n";
echo "</form>\n";
//include the footer
+2
View File
@@ -188,6 +188,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('group_add') || permission_exists('group_edit') || permission_exists('group_delete')) {
@@ -257,6 +258,7 @@ echo " <td>".escape($row['domain_name'])."</td>\n";
}
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";
+2
View File
@@ -143,6 +143,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('menu_add') || permission_exists('menu_edit') || permission_exists('menu_delete')) {
@@ -193,6 +194,7 @@
}
echo "</table>\n";
echo "</div>\n";
echo "<br />\n";
echo "<div align='center'>".!empty($paging_controls)."</div>\n";
echo "<input type='hidden' name='".$token['name']."' value='".$token['hash']."'>\n";
+3 -1
View File
@@ -178,6 +178,7 @@
echo $text['description-menu']."\n";
echo "<br /><br />\n";
echo "<div class='card'>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
@@ -214,7 +215,8 @@
echo "</tr>\n";
echo "</table>";
echo "<br><br>";
echo "</div>";
echo "<br>";
if ($action == "update") {
echo "<input type='hidden' name='menu_uuid' value='".escape($menu_uuid)."'>\n";
+2
View File
@@ -396,6 +396,7 @@
echo " <div style='clear: both;'></div>\n";
echo "</div>\n";
echo "<div class='card'>\n";
echo "<table width='100%' cellpadding='0' cellspacing='0'>\n";
echo " <tr>";
@@ -563,6 +564,7 @@
echo " </tr>";
echo "</table>";
echo "</div>";
echo "<br><br>";
if (permission_exists('menu_add') || permission_exists('menu_edit')) {
+2
View File
@@ -259,6 +259,7 @@
echo modal::create(['id'=>'modal-delete','type'=>'delete','actions'=>button::create(['type'=>'button','label'=>$text['button-continue'],'icon'=>'check','id'=>'btn_delete','style'=>'float: right; margin-left: 15px;','collapse'=>'never','onclick'=>"modal_close(); list_action_set('delete'); list_form_submit('form_list');"])]);
}
echo "<div class='card'>\n";
echo "<table class='list'>\n";
echo " <tr class='list-header'>";
if (permission_exists('menu_item_edit') || permission_exists('menu_item_delete')) {
@@ -402,6 +403,7 @@
}
echo "</table>\n";
echo "</div>\n";
echo "<br><br>";
echo "<input type='hidden' name='".$token['name']."' value='".$token['hash']."'>\n";
+5 -2
View File
@@ -277,6 +277,7 @@
echo $text['description-upgrade'];
echo "<br /><br />";
echo "<div class='card'>\n";
if (permission_exists("upgrade_source") && !is_dir("/usr/share/examples/fusionpbx") && is_writeable($_SERVER["PROJECT_ROOT"]."/.git")) {
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr onclick=\"$('#tr_applications').slideToggle('fast');\">\n";
@@ -440,12 +441,14 @@
echo "</table>\n";
$step++;
}
echo "</div>\n";
echo "</form>\n";
echo "<br /><br />";
echo "<br />";
if (!empty($_SESSION["response"]) && is_array($_SESSION["response"])) {
foreach($_SESSION["response"] as $part => $response){
echo "<div class='card'>\n";
echo "<b>".$text["label-results"]." - ".$text["label-{$part}"];
echo "</b><br /><br />";
$error_found = false;
@@ -484,7 +487,7 @@
else {
echo $response;
}
echo "<br /><br />";
echo "</div>\n";
}
unset($_SESSION["response"]);
}