Ver código fonte

Multiple Apps: Integrate content cards.

fusionate 10 meses atrás
pai
commit
4aafc3b8bb

+ 2 - 0
core/databases/database_edit.php

@@ -251,6 +251,7 @@ if (count($_POST)>0 && empty($_POST["persistformvar"])) {
 	}
 	}
 	echo "<br /><br />\n";
 	echo "<br /><br />\n";
 
 
+	echo "<div class='card'>\n";
 	echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
 	echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
 
 
 	echo "<tr>\n";
 	echo "<tr>\n";
@@ -405,6 +406,7 @@ if (count($_POST)>0 && empty($_POST["persistformvar"])) {
 	echo "</tr>\n";
 	echo "</tr>\n";
 
 
 	echo "</table>";
 	echo "</table>";
+	echo "</div>";
 	echo "<br><br>";
 	echo "<br><br>";
 
 
 	if ($action == "update") {
 	if ($action == "update") {

+ 2 - 0
core/databases/databases.php

@@ -137,6 +137,7 @@
 	echo "<form id='form_list' method='post'>\n";
 	echo "<form id='form_list' method='post'>\n";
 	echo "<input type='hidden' id='action' name='action' value=''>\n";
 	echo "<input type='hidden' id='action' name='action' value=''>\n";
 
 
+	echo "<div class='card'>\n";
 	echo "<table class='list'>\n";
 	echo "<table class='list'>\n";
 	echo "<tr class='list-header'>\n";
 	echo "<tr class='list-header'>\n";
 	if (permission_exists('database_add') || permission_exists('database_delete')) {
 	if (permission_exists('database_add') || permission_exists('database_delete')) {
@@ -189,6 +190,7 @@
 	}
 	}
 
 
 	echo "</table>\n";
 	echo "</table>\n";
+	echo "</div>\n";
 	echo "<br />\n";
 	echo "<br />\n";
 	echo "<div align='center'>".$paging_controls."</div>\n";
 	echo "<div align='center'>".$paging_controls."</div>\n";
 	echo "<input type='hidden' name='".$token['name']."' value='".$token['hash']."'>\n";
 	echo "<input type='hidden' name='".$token['name']."' value='".$token['hash']."'>\n";

+ 2 - 0
core/default_settings/default_setting_edit.php

@@ -297,6 +297,7 @@
 	}
 	}
 	echo "<br /><br />\n";
 	echo "<br /><br />\n";
 
 
+	echo "<div class='card'>\n";
 	echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
 	echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
 
 
 	echo "<tr>\n";
 	echo "<tr>\n";
@@ -814,6 +815,7 @@
 	echo "</tr>\n";
 	echo "</tr>\n";
 
 
 	echo "</table>";
 	echo "</table>";
+	echo "</div>";
 	echo "<br><br>";
 	echo "<br><br>";
 
 
 	if ($action == "update") {
 	if ($action == "update") {

+ 3 - 1
core/default_settings/default_settings.php

@@ -432,12 +432,13 @@
 			if ($previous_default_setting_category != $row['default_setting_category']) {
 			if ($previous_default_setting_category != $row['default_setting_category']) {
 				if (!empty($previous_default_setting_category)) {
 				if (!empty($previous_default_setting_category)) {
 					echo "</table>\n";
 					echo "</table>\n";
-					echo "<br />\n";
+					echo "</div>\n";
 					echo "</div>\n";
 					echo "</div>\n";
 				}
 				}
 				echo "<div class='category' id='category_".$default_setting_category."'>\n";
 				echo "<div class='category' id='category_".$default_setting_category."'>\n";
 				echo "<b>".escape($label_default_setting_category)."</b><br>\n";
 				echo "<b>".escape($label_default_setting_category)."</b><br>\n";
 
 
+				echo "<div class='card'>\n";
 				echo "<table class='list'>\n";
 				echo "<table class='list'>\n";
 				echo "<tr class='list-header'>\n";
 				echo "<tr class='list-header'>\n";
 				if ($permission['default_setting_add'] || $permission['default_setting_edit'] || $permission['default_setting_delete']) {
 				if ($permission['default_setting_add'] || $permission['default_setting_edit'] || $permission['default_setting_delete']) {
@@ -613,6 +614,7 @@
 	}
 	}
 
 
 	echo "</table>\n";
 	echo "</table>\n";
+	echo "</div>\n";
 	echo "<br />\n";
 	echo "<br />\n";
 	echo "</div>\n";
 	echo "</div>\n";
 
 

+ 2 - 0
core/domain_settings/domain_setting_edit.php

@@ -390,6 +390,7 @@
 	}
 	}
 	echo "<br /><br />\n";
 	echo "<br /><br />\n";
 
 
+	echo "<div class='card'>\n";
 	echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
 	echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
 
 
 	echo "<tr>\n";
 	echo "<tr>\n";
@@ -850,6 +851,7 @@
 	echo "</tr>\n";
 	echo "</tr>\n";
 
 
 	echo "</table>";
 	echo "</table>";
+	echo "</div>";
 	echo "<br /><br />";
 	echo "<br /><br />";
 
 
 	echo "<input type='hidden' name='domain_uuid' value='".escape($domain_uuid)."'>\n";
 	echo "<input type='hidden' name='domain_uuid' value='".escape($domain_uuid)."'>\n";

+ 2 - 0
core/domain_settings/domain_settings.php

@@ -214,6 +214,7 @@
 	echo "<input type='hidden' name='domain_uuid' value='".escape($domain_uuid)."'>\n";
 	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 "<input type='hidden' name='domain_uuid_target' id='domain_uuid_target' value=''>\n";
 
 
+	echo "<div class='card'>\n";
 	echo "<table class='list'>\n";
 	echo "<table class='list'>\n";
 	if (!empty($domain_settings)) {
 	if (!empty($domain_settings)) {
 		//define the variable
 		//define the variable
@@ -403,6 +404,7 @@
 	}
 	}
 
 
 	echo "</table>\n";
 	echo "</table>\n";
+	echo "</div>\n";
 	echo "<br />\n";
 	echo "<br />\n";
 	echo "<input type='hidden' name='".$token['name']."' value='".$token['hash']."'>\n";
 	echo "<input type='hidden' name='".$token['name']."' value='".$token['hash']."'>\n";
 	echo "</form>\n";
 	echo "</form>\n";

+ 2 - 0
core/domains/domain_edit.php

@@ -659,6 +659,7 @@
 	}
 	}
 	echo "<br /><br />\n";
 	echo "<br /><br />\n";
 
 
+	echo "<div class='card'>\n";
 	echo "<table width='100%' cellpadding='0' cellspacing='0' border='0'>\n";
 	echo "<table width='100%' cellpadding='0' cellspacing='0' border='0'>\n";
 
 
 	echo "<tr>\n";
 	echo "<tr>\n";
@@ -706,6 +707,7 @@
 	echo "</tr>\n";
 	echo "</tr>\n";
 
 
 	echo "</table>";
 	echo "</table>";
+	echo "</div>";
 	echo "<br /><br />";
 	echo "<br /><br />";
 
 
 	if ($action == "update") {
 	if ($action == "update") {

+ 2 - 0
core/domains/domains.php

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

+ 2 - 0
core/groups/group_edit.php

@@ -237,6 +237,7 @@
 	echo $text['description-groups']."\n";
 	echo $text['description-groups']."\n";
 	echo "<br /><br />\n";
 	echo "<br /><br />\n";
 
 
+	echo "<div class='card'>\n";
 	echo "<table width='100%'  border='0' cellpadding='0' cellspacing='0'>\n";
 	echo "<table width='100%'  border='0' cellpadding='0' cellspacing='0'>\n";
 
 
 	echo "<tr>\n";
 	echo "<tr>\n";
@@ -320,6 +321,7 @@
 	echo "</tr>\n";
 	echo "</tr>\n";
 
 
 	echo "</table>";
 	echo "</table>";
+	echo "</div>";
 	echo "<br /><br />";
 	echo "<br /><br />";
 
 
 	echo "<input type='hidden' name='group_uuid' value='".escape($group_uuid)."'>\n";
 	echo "<input type='hidden' name='group_uuid' value='".escape($group_uuid)."'>\n";

+ 2 - 0
core/groups/group_members.php

@@ -181,6 +181,7 @@
 	echo "<input type='hidden' id='action' name='action' value=''>\n";
 	echo "<input type='hidden' id='action' name='action' value=''>\n";
 	echo "<input type='hidden' name='group_uuid' value='".escape($group_uuid)."'>\n";
 	echo "<input type='hidden' name='group_uuid' value='".escape($group_uuid)."'>\n";
 
 
+	echo "<div class='card'>\n";
 	echo "<table class='list'>\n";
 	echo "<table class='list'>\n";
 	echo "<tr class='list-header'>\n";
 	echo "<tr class='list-header'>\n";
 	if (permission_exists('group_member_delete')) {
 	if (permission_exists('group_member_delete')) {
@@ -214,6 +215,7 @@
 	}
 	}
 
 
 	echo "</table>\n";
 	echo "</table>\n";
+	echo "</div>\n";
 	echo "<br />";
 	echo "<br />";
 	echo "<input type='hidden' name='".$token['name']."' value='".$token['hash']."'>";
 	echo "<input type='hidden' name='".$token['name']."' value='".$token['hash']."'>";
 	echo "</form>";
 	echo "</form>";

+ 4 - 1
core/groups/group_permissions.php

@@ -308,7 +308,9 @@
 	echo "<input type='hidden' name='group_uuid' value='".escape($group_uuid)."'>\n";
 	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='view' value=\"".escape($view)."\">\n";
 	echo "<input type='hidden' name='search' value=\"".escape($search)."\">\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) {
 	if (is_array($group_permissions) && @sizeof($group_permissions) != 0) {
 		$x = 0;
 		$x = 0;
 		foreach ($group_permissions as $row) {
 		foreach ($group_permissions as $row) {
@@ -388,6 +390,7 @@
 	}
 	}
 
 
 	echo "</table>\n";
 	echo "</table>\n";
+	echo "</div>\n";
 	echo "</form>\n";
 	echo "</form>\n";
 
 
 //include the footer
 //include the footer

+ 2 - 0
core/groups/groups.php

@@ -188,6 +188,7 @@
 	echo "<input type='hidden' id='action' name='action' value=''>\n";
 	echo "<input type='hidden' id='action' name='action' value=''>\n";
 	echo "<input type='hidden' name='search' value=\"".escape($search)."\">\n";
 	echo "<input type='hidden' name='search' value=\"".escape($search)."\">\n";
 
 
+	echo "<div class='card'>\n";
 	echo "<table class='list'>\n";
 	echo "<table class='list'>\n";
 	echo "<tr class='list-header'>\n";
 	echo "<tr class='list-header'>\n";
 	if (permission_exists('group_add') || permission_exists('group_edit') || permission_exists('group_delete')) {
 	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 "</table>\n";
+	echo "</div>\n";
 	echo "<br />\n";
 	echo "<br />\n";
 	echo "<div align='center'>".$paging_controls."</div>\n";
 	echo "<div align='center'>".$paging_controls."</div>\n";
 	echo "<input type='hidden' name='".$token['name']."' value='".$token['hash']."'>\n";
 	echo "<input type='hidden' name='".$token['name']."' value='".$token['hash']."'>\n";

+ 2 - 0
core/menu/menu.php

@@ -143,6 +143,7 @@
 	echo "<input type='hidden' id='action' name='action' value=''>\n";
 	echo "<input type='hidden' id='action' name='action' value=''>\n";
 	echo "<input type='hidden' name='search' value=\"".escape($search)."\">\n";
 	echo "<input type='hidden' name='search' value=\"".escape($search)."\">\n";
 
 
+	echo "<div class='card'>\n";
 	echo "<table class='list'>\n";
 	echo "<table class='list'>\n";
 	echo "<tr class='list-header'>\n";
 	echo "<tr class='list-header'>\n";
 	if (permission_exists('menu_add') || permission_exists('menu_edit') || permission_exists('menu_delete')) {
 	if (permission_exists('menu_add') || permission_exists('menu_edit') || permission_exists('menu_delete')) {
@@ -193,6 +194,7 @@
 	}
 	}
 
 
 	echo "</table>\n";
 	echo "</table>\n";
+	echo "</div>\n";
 	echo "<br />\n";
 	echo "<br />\n";
 	echo "<div align='center'>".!empty($paging_controls)."</div>\n";
 	echo "<div align='center'>".!empty($paging_controls)."</div>\n";
 	echo "<input type='hidden' name='".$token['name']."' value='".$token['hash']."'>\n";
 	echo "<input type='hidden' name='".$token['name']."' value='".$token['hash']."'>\n";

+ 3 - 1
core/menu/menu_edit.php

@@ -178,6 +178,7 @@
 	echo $text['description-menu']."\n";
 	echo $text['description-menu']."\n";
 	echo "<br /><br />\n";
 	echo "<br /><br />\n";
 
 
+	echo "<div class='card'>\n";
 	echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
 	echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
 
 
 	echo "<tr>\n";
 	echo "<tr>\n";
@@ -214,7 +215,8 @@
 	echo "</tr>\n";
 	echo "</tr>\n";
 
 
 	echo "</table>";
 	echo "</table>";
-	echo "<br><br>";
+	echo "</div>";
+	echo "<br>";
 
 
 	if ($action == "update") {
 	if ($action == "update") {
 		echo "<input type='hidden' name='menu_uuid' value='".escape($menu_uuid)."'>\n";
 		echo "<input type='hidden' name='menu_uuid' value='".escape($menu_uuid)."'>\n";

+ 2 - 0
core/menu/menu_item_edit.php

@@ -396,6 +396,7 @@
 	echo "	<div style='clear: both;'></div>\n";
 	echo "	<div style='clear: both;'></div>\n";
 	echo "</div>\n";
 	echo "</div>\n";
 
 
+	echo "<div class='card'>\n";
 	echo "<table width='100%' cellpadding='0' cellspacing='0'>\n";
 	echo "<table width='100%' cellpadding='0' cellspacing='0'>\n";
 
 
 	echo "	<tr>";
 	echo "	<tr>";
@@ -563,6 +564,7 @@
 	echo "	</tr>";
 	echo "	</tr>";
 
 
 	echo "</table>";
 	echo "</table>";
+	echo "</div>";
 	echo "<br><br>";
 	echo "<br><br>";
 
 
 	if (permission_exists('menu_add') || permission_exists('menu_edit')) {
 	if (permission_exists('menu_add') || permission_exists('menu_edit')) {

+ 2 - 0
core/menu/menu_item_list.php

@@ -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 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 "<table class='list'>\n";
 	echo "	<tr class='list-header'>";
 	echo "	<tr class='list-header'>";
 	if (permission_exists('menu_item_edit') || permission_exists('menu_item_delete')) {
 	if (permission_exists('menu_item_edit') || permission_exists('menu_item_delete')) {
@@ -402,6 +403,7 @@
 	}
 	}
 
 
 	echo "</table>\n";
 	echo "</table>\n";
+	echo "</div>\n";
 	echo "<br><br>";
 	echo "<br><br>";
 
 
 	echo "<input type='hidden' name='".$token['name']."' value='".$token['hash']."'>\n";
 	echo "<input type='hidden' name='".$token['name']."' value='".$token['hash']."'>\n";

+ 5 - 2
core/upgrade/index.php

@@ -277,6 +277,7 @@
 	echo $text['description-upgrade'];
 	echo $text['description-upgrade'];
 	echo "<br /><br />";
 	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")) {
 	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 "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
 		echo "<tr onclick=\"$('#tr_applications').slideToggle('fast');\">\n";
 		echo "<tr onclick=\"$('#tr_applications').slideToggle('fast');\">\n";
@@ -440,12 +441,14 @@
 		echo "</table>\n";
 		echo "</table>\n";
 		$step++;
 		$step++;
 	}
 	}
+	echo "</div>\n";
 
 
 	echo "</form>\n";
 	echo "</form>\n";
 
 
-	echo "<br /><br />";
+	echo "<br />";
 	if (!empty($_SESSION["response"]) && is_array($_SESSION["response"])) {
 	if (!empty($_SESSION["response"]) && is_array($_SESSION["response"])) {
 		foreach($_SESSION["response"] as $part => $response){
 		foreach($_SESSION["response"] as $part => $response){
+			echo "<div class='card'>\n";
 			echo "<b>".$text["label-results"]." - ".$text["label-{$part}"];
 			echo "<b>".$text["label-results"]." - ".$text["label-{$part}"];
 			echo "</b><br /><br />";
 			echo "</b><br /><br />";
 			$error_found = false;
 			$error_found = false;
@@ -484,7 +487,7 @@
 			else {
 			else {
 				echo $response;
 				echo $response;
 			}
 			}
-			echo "<br /><br />";
+			echo "</div>\n";
 		}
 		}
 		unset($_SESSION["response"]);
 		unset($_SESSION["response"]);
 	}
 	}