default widget value

This commit is contained in:
iBNu Maksum 2025-02-17 14:40:47 +07:00
parent aeae936f17
commit a013373554
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5
5 changed files with 44 additions and 11 deletions

View File

@ -1374,7 +1374,7 @@ pre {
color: #333; color: #333;
word-break: break-all; word-break: break-all;
word-wrap: break-word; word-wrap: break-word;
background-color: #f5f5f5; background-color: #f6f8fa;
border: 1px solid #ccc; border: 1px solid #ccc;
border-radius: 4px; border-radius: 4px;
} }
@ -2126,7 +2126,7 @@ th {
} }
.table-hover > tbody > tr:hover > td, .table-hover > tbody > tr:hover > td,
.table-hover > tbody > tr:hover > th { .table-hover > tbody > tr:hover > th {
background-color: #f5f5f5; background-color: #f6f8fa;
} }
table col[class*="col-"] { table col[class*="col-"] {
position: static; position: static;
@ -2151,7 +2151,7 @@ table th[class*="col-"] {
.table > thead > tr.active > th, .table > thead > tr.active > th,
.table > tbody > tr.active > th, .table > tbody > tr.active > th,
.table > tfoot > tr.active > th { .table > tfoot > tr.active > th {
background-color: #f5f5f5; background-color: #f6f8fa;
} }
.table-hover > tbody > tr > td.active:hover, .table-hover > tbody > tr > td.active:hover,
.table-hover > tbody > tr > th.active:hover, .table-hover > tbody > tr > th.active:hover,
@ -3170,7 +3170,7 @@ tbody.collapse.in {
.dropdown-menu > li > a:focus { .dropdown-menu > li > a:focus {
color: #262626; color: #262626;
text-decoration: none; text-decoration: none;
background-color: #f5f5f5; background-color: #f6f8fa;
} }
.dropdown-menu > .active > a, .dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:hover,
@ -4293,7 +4293,7 @@ fieldset[disabled] .navbar-inverse .btn-link:focus {
padding: 8px 15px; padding: 8px 15px;
margin-bottom: 20px; margin-bottom: 20px;
list-style: none; list-style: none;
background-color: #f5f5f5; background-color: #f6f8fa;
border-radius: 4px; border-radius: 4px;
} }
.breadcrumb > li { .breadcrumb > li {
@ -4711,7 +4711,7 @@ a.thumbnail.active {
height: 20px; height: 20px;
margin-bottom: 20px; margin-bottom: 20px;
overflow: hidden; overflow: hidden;
background-color: #f5f5f5; background-color: #f6f8fa;
border-radius: 4px; border-radius: 4px;
-webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1); -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1);
box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1);
@ -4854,7 +4854,7 @@ a.list-group-item:hover,
a.list-group-item:focus { a.list-group-item:focus {
color: #555; color: #555;
text-decoration: none; text-decoration: none;
background-color: #f5f5f5; background-color: #f6f8fa;
} }
.list-group-item.disabled, .list-group-item.disabled,
.list-group-item.disabled:hover, .list-group-item.disabled:hover,
@ -5023,7 +5023,7 @@ a.list-group-item-danger.active:focus {
} }
.panel-footer { .panel-footer {
padding: 10px 15px; padding: 10px 15px;
background-color: #f5f5f5; background-color: #f6f8fa;
border-top: 1px solid #ddd; border-top: 1px solid #ddd;
border-bottom-right-radius: 3px; border-bottom-right-radius: 3px;
border-bottom-left-radius: 3px; border-bottom-left-radius: 3px;
@ -5197,7 +5197,7 @@ a.list-group-item-danger.active:focus {
} }
.panel-default > .panel-heading { .panel-default > .panel-heading {
color: #333; color: #333;
background-color: #f5f5f5; background-color: #f6f8fa;
border-color: #ddd; border-color: #ddd;
} }
.panel-default > .panel-heading + .panel-collapse > .panel-body { .panel-default > .panel-heading + .panel-collapse > .panel-body {
@ -5329,7 +5329,7 @@ a.list-group-item-danger.active:focus {
min-height: 20px; min-height: 20px;
padding: 19px; padding: 19px;
margin-bottom: 20px; margin-bottom: 20px;
background-color: #f5f5f5; background-color: #f6f8fa;
border: 1px solid #e3e3e3; border: 1px solid #e3e3e3;
border-radius: 4px; border-radius: 4px;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05); -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05);

View File

@ -409,3 +409,16 @@ VALUES (
'2022-09-06 16:09:50', '2022-09-06 16:09:50',
'2014-06-23 01:43:07' '2014-06-23 01:43:07'
); );
INSERT INTO `tbl_widgets` (`id`, `orders`, `position`, `enabled`, `title`, `widget`, `content`) VALUES
(1, 1, 1, 1, 'Top Widget', 'top_widget', ''),
(2, 2, 1, 1, 'Default Info', 'default_info_row', ''),
(3, 1, 2, 1, 'Graph Monthly Registered Customers', 'graph_monthly_registered_customers', ''),
(4, 2, 2, 1, 'Graph Monthly Sales', 'graph_monthly_sales', ''),
(5, 3, 2, 1, 'Voucher Stocks', 'voucher_stocks', ''),
(6, 4, 2, 1, 'Customer Expired', 'customer_expired', ''),
(7, 1, 3, 1, 'Cron Monitor', 'cron_monitor', ''),
(8, 2, 3, 1, 'Mikrotik Cron Monitor', 'mikrotik_cron_monitor', ''),
(9, 3, 3, 1, 'Info Payment Gateway', 'info_payment_gateway', ''),
(10, 4, 3, 1, 'Graph Customers Insight', 'graph_customers_insight', ''),
(11, 5, 3, 1, 'Activity Log', 'activity_log', '');

View File

@ -1034,5 +1034,11 @@
"Widget": "Widget", "Widget": "Widget",
"Contents": "Contents", "Contents": "Contents",
"Please_enter_a_search_term_": "Please enter a search term.", "Please_enter_a_search_term_": "Please enter a search term.",
"Customers_Expired__Today": "Customers Expired, Today" "Customers_Expired__Today": "Customers Expired, Today",
"Sequence": "Sequence",
"Content": "Content",
"Not_all_widgets_require_content__HTML_widgets_require_content__either_text_or_PHP_code__Please_be_careful_when_writing_this_content_": "Not all widgets require content. HTML widgets require content, either text or PHP code. Please be careful when writing this content.",
"Area_Fields": "Area Fields",
"Add_new_widget": "Add new widget",
"Tambah": "Tambah"
} }

View File

@ -190,5 +190,8 @@
], ],
"2025.2.14": [ "2025.2.14": [
"CREATE TABLE IF NOT EXISTS `tbl_widgets` ( `id` int NOT NULL AUTO_INCREMENT, `orders` int NOT NULL DEFAULT '99', `position` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1. top 2. left 3. right 4. bottom',`enabled` tinyint(1) NOT NULL DEFAULT '1', `title` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `widget` varchar(64) COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', `content` text COLLATE utf8mb4_general_ci NOT NULL, PRIMARY KEY (`id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;" "CREATE TABLE IF NOT EXISTS `tbl_widgets` ( `id` int NOT NULL AUTO_INCREMENT, `orders` int NOT NULL DEFAULT '99', `position` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1. top 2. left 3. right 4. bottom',`enabled` tinyint(1) NOT NULL DEFAULT '1', `title` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `widget` varchar(64) COLLATE utf8mb4_general_ci NOT NULL DEFAULT '', `content` text COLLATE utf8mb4_general_ci NOT NULL, PRIMARY KEY (`id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;"
],
"2025.2.17" : [
"INSERT INTO `tbl_widgets` (`id`, `orders`, `position`, `enabled`, `title`, `widget`, `content`) VALUES (1, 1, 1, 1, 'Top Widget', 'top_widget', ''),(2, 2, 1, 1, 'Default Info', 'default_info_row', ''),(3, 1, 2, 1, 'Graph Monthly Registered Customers', 'graph_monthly_registered_customers', ''),(4, 2, 2, 1, 'Graph Monthly Sales', 'graph_monthly_sales', ''),(5, 3, 2, 1, 'Voucher Stocks', 'voucher_stocks', ''),(6, 4, 2, 1, 'Customer Expired', 'customer_expired', ''),(7, 1, 3, 1, 'Cron Monitor', 'cron_monitor', ''),(8, 2, 3, 1, 'Mikrotik Cron Monitor', 'mikrotik_cron_monitor', ''),(9, 3, 3, 1, 'Info Payment Gateway', 'info_payment_gateway', ''),(10, 4, 3, 1, 'Graph Customers Insight', 'graph_customers_insight', ''),(11, 5, 3, 1, 'Activity Log', 'activity_log', '');"
] ]
} }

View File

@ -0,0 +1,11 @@
<?php
class info_payment_gateway
{
public function getWidget($data = null)
{
global $ui;
return $ui->fetch('widget/info_payment_gateway.tpl');
}
}