Skip to content

Commit

Permalink
Multiple Apps: Integrate content cards.
Browse files Browse the repository at this point in the history
  • Loading branch information
fusionate committed Sep 4, 2024
1 parent a965c78 commit bf7526f
Show file tree
Hide file tree
Showing 33 changed files with 96 additions and 18 deletions.
4 changes: 3 additions & 1 deletion app/access_controls/access_control_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
The Initial Developer of the Original Code is
Mark J Crane <[email protected]>
Portions created by the Initial Developer are Copyright (C) 2018 - 2022
Portions created by the Initial Developer are Copyright (C) 2018-2024
the Initial Developer. All Rights Reserved.
*/

Expand Down Expand Up @@ -359,6 +359,7 @@
}
}

echo "<div class='card'>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";

echo "<tr>\n";
Expand Down Expand Up @@ -473,6 +474,7 @@
echo "</tr>\n";

echo "</table>";
echo "</div>";
echo "<br /><br />";

echo "<input type='hidden' name='".$token['name']."' value='".$token['hash']."'>\n";
Expand Down
7 changes: 6 additions & 1 deletion app/access_controls/access_control_import.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
The Initial Developer of the Original Code is
Mark J Crane <[email protected]>
Portions created by the Initial Developer are Copyright (C) 2008-2023
Portions created by the Initial Developer are Copyright (C) 2008-2024
the Initial Developer. All Rights Reserved.
Contributor(s):
Expand Down Expand Up @@ -162,6 +162,8 @@ function str_getcsv($input, $delimiter = ",", $enclosure = '"', $escape = "\\")
echo "</div>\n";

echo $text['description-import']."\n";

echo "<div class='card'>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";

//loop through the lines and fields
Expand Down Expand Up @@ -195,6 +197,7 @@ function str_getcsv($input, $delimiter = ",", $enclosure = '"', $escape = "\\")
}

echo "</table>\n";
echo "</div>\n";
echo "<br /><br />\n";

echo "<input name='action' type='hidden' value='import'>\n";
Expand Down Expand Up @@ -370,6 +373,7 @@ function get_parent($schema,$table_name) {
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";
Expand Down Expand Up @@ -440,6 +444,7 @@ function get_parent($schema,$table_name) {
echo "</tr>\n";

echo "</table>\n";
echo "</div>\n";
echo "<br /><br />\n";

echo "<input name='type' type='hidden' value='csv'>\n";
Expand Down
4 changes: 3 additions & 1 deletion app/access_controls/access_controls.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
The Initial Developer of the Original Code is
Mark J Crane <[email protected]>
Portions created by the Initial Developer are Copyright (C) 2018 - 2023
Portions created by the Initial Developer are Copyright (C) 2018-2024
the Initial Developer. All Rights Reserved.
Contributor(s):
Expand Down Expand Up @@ -192,6 +192,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('access_control_add') || permission_exists('access_control_edit') || permission_exists('access_control_delete')) {
Expand Down Expand Up @@ -242,6 +243,7 @@
}

echo "</table>\n";
echo "</div>\n";
echo "<br />\n";

echo "<input type='hidden' name='".$token['name']."' value='".$token['hash']."'>\n";
Expand Down
18 changes: 14 additions & 4 deletions app/database_transactions/database_transaction_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@
echo " <div style='clear: both;'></div>\n";
echo "</div>\n";

echo "<table width='400' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<div class='card'>\n";
echo "<table width='400' border='0' cellpadding='0' cellspacing='0'>\n";

echo "<td valign='top'>\n";
echo " <table>\n";
Expand Down Expand Up @@ -205,8 +206,10 @@

echo "</tr>\n";
echo "</table>\n";
echo "</div>\n";

if (!empty($_REQUEST["debug"]) && $_REQUEST["debug"] == "true") {
echo "<div class='card'>\n";
echo "<table width='50%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo "<th valign='top' align='left' nowrap='nowrap'>\n";
Expand Down Expand Up @@ -235,6 +238,7 @@
echo "</td>\n";
echo "</tr>\n";
echo "</table>";
echo "</div>";
}

//define the array _difference function
Expand Down Expand Up @@ -359,9 +363,10 @@ function show_difference($array) {
}
}
}
echo "<br />\n";
echo "<table width='100%'>\n";
if (!empty($array)) {
echo "<br />\n";
echo "<div class='card'>\n";
echo "<table width='100%'>\n";
$previous_schema = null;
foreach ($array as $row) {
if ($row['schema'] !== $previous_schema || $row['row'] !== $previous_row) {
Expand All @@ -380,6 +385,7 @@ function show_difference($array) {
$previous_row = $row['row'];
}
echo "</table>\n";
echo "</div>\n";
}
/*
if (!empty($after)) {
Expand Down Expand Up @@ -417,15 +423,18 @@ function show_difference($array) {

//show the difference
echo "<br />\n";
echo "<div class='card'>\n";
echo "<table width='100%'>\n";
show_difference($array);
echo "</table>\n";
echo "</div>\n";
}
}

//show the delete
if ($transaction_type == "delete") {
echo "<br /><br />\n";
echo "<div class='card'>\n";
echo "<table width='100%'>\n";
if (!empty($before)) {
foreach ($before as $table_name => $rows) {
Expand All @@ -444,8 +453,9 @@ function show_difference($array) {
}
}
}
echo "</table>\n";
echo "</div>\n";
}
echo "</table>\n";

//add a few lines at the end
echo "<br /><br />\n";
Expand Down
2 changes: 2 additions & 0 deletions app/database_transactions/database_transactions.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@
echo $text['description-database_transactions']."\n";
echo "<br /><br />\n";

echo "<div class='card'>\n";
echo "<table class='list'>\n";
echo "<tr class='list-header'>\n";
echo th_order_by('domain_name', $text['label-domain'], $order_by, $order);
Expand Down Expand Up @@ -216,6 +217,7 @@
}

echo "</table>\n";
echo "</div>\n";
echo "<br />\n";
echo "<div align='center'>".$paging_controls."</div>\n";

Expand Down
2 changes: 2 additions & 0 deletions app/email_templates/email_template_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,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";
Expand Down Expand Up @@ -453,6 +454,7 @@
echo "</tr>\n";

echo "</table>";
echo "</div>";
echo "<br /><br />";

if ($action == "update") {
Expand Down
2 changes: 2 additions & 0 deletions app/email_templates/email_templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,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('email_template_add') || permission_exists('email_template_edit') || permission_exists('email_template_delete')) {
Expand Down Expand Up @@ -310,6 +311,7 @@
unset($result);

echo "</table>\n";
echo "</div>\n";
echo "<br />\n";
echo "<div align='center'>".$paging_controls."</div>\n";

Expand Down
2 changes: 2 additions & 0 deletions app/modules/modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,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";
function write_header($modifier) {
global $text, $modules, $list_row_edit_button;
Expand Down Expand Up @@ -271,6 +272,7 @@ function write_header($modifier) {
unset($modules);

echo "</table>\n";
echo "</div>\n";
echo "<br />\n";

echo "<input type='hidden' name='".$token['name']."' value='".$token['hash']."'>\n";
Expand Down
2 changes: 2 additions & 0 deletions app/number_translations/number_translation_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@
}
}

echo "<div class='card'>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";

echo "<tr>\n";
Expand Down Expand Up @@ -365,6 +366,7 @@
echo "</tr>\n";

echo "</table>";
echo "</div>";
echo "<br /><br />";

echo "<input type='hidden' name='".$token['name']."' value='".$token['hash']."'>\n";
Expand Down
2 changes: 2 additions & 0 deletions app/number_translations/number_translations.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,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('number_translation_add') || permission_exists('number_translation_edit') || permission_exists('number_translation_delete')) {
Expand Down Expand Up @@ -265,6 +266,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";
Expand Down
2 changes: 2 additions & 0 deletions app/sip_profiles/sip_profile_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@
}
}

echo "<div class='card'>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";

echo "<tr>\n";
Expand Down Expand Up @@ -659,6 +660,7 @@
echo "</tr>\n";

echo "</table>";
echo "</div>";
echo "<br /><br />";

if ($action == "update") {
Expand Down
2 changes: 2 additions & 0 deletions app/sip_profiles/sip_profiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,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('sip_profile_add') || permission_exists('sip_profile_edit') || permission_exists('sip_profile_delete')) {
Expand Down Expand Up @@ -228,6 +229,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";
Expand Down
2 changes: 2 additions & 0 deletions app/sofia_global_settings/sofia_global_setting_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@
}
}

echo "<div class='card'>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";

echo "<tr>\n";
Expand Down Expand Up @@ -279,6 +280,7 @@
echo "</tr>\n";

echo "</table>";
echo "</div>";
echo "<br /><br />";

echo "<input type='hidden' name='".$token['name']."' value='".$token['hash']."'>\n";
Expand Down
2 changes: 2 additions & 0 deletions app/sofia_global_settings/sofia_global_settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,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('sofia_global_setting_add') || permission_exists('sofia_global_setting_edit') || permission_exists('sofia_global_setting_delete')) {
Expand Down Expand Up @@ -250,6 +251,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";
Expand Down
13 changes: 7 additions & 6 deletions app/vars/var_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,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";
Expand Down Expand Up @@ -338,10 +339,13 @@
echo "</td>\n";
echo "</tr>\n";

echo "</table>\n";
echo "</div>\n";


//if variable is a code then show the codec info
if ($var_name == "global_codec_prefs" || $var_name == "outbound_codec_prefs") {
echo "<tr>\n";
echo "<td align='left' colspan='2'>\n";
echo "<div class='card'>\n";
echo "<br />\n";
echo "<b>".$text['label-codec_information']."</b><br><br>\n";
echo "Module must be compiled and loaded. &nbsp; &nbsp; codecname[@8000h|16000h|32000h[@XXi]]<br />\n";
Expand Down Expand Up @@ -407,11 +411,8 @@
echo " </td>\n";
echo " </tr>\n";
echo " </table>\n";
echo "</td>";
echo "</tr>";
echo "</div>\n";
}

echo "</table>";
echo "<br><br>";

if ($action == "update") {
Expand Down
2 changes: 2 additions & 0 deletions app/vars/vars.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,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";
function write_header($modifier) {
global $text, $order_by, $order, $vars, $list_row_edit_button;
Expand Down Expand Up @@ -272,6 +273,7 @@ function write_header($modifier) {
}

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";
Expand Down
Loading

0 comments on commit bf7526f

Please sign in to comment.