Simple Dashboard NEW Minimal theme
Simple Dashboard using panels
HIDE CODE
<style>
.dashboard-counter{
float: left;
margin: 5px;
display: inline-block;
border-radius: 50%;
width: 60px;
height: 60px;
background-color: #FF7F50;
text-align: center;
line-height: 56px;
color: white;
font-weight: bold;
font-size: 38px;
}
div.xcrud-row {
width: 32%;
overflow: hidden!important;
float: left;
border: 1px solid #e5e5e5;
margin-top: 10px;
margin-left: 2px;
padding: 20px;
max-height: 150px!important;
min-height: 150px!important;
background: #f9f3f3;
border-radius: 10px;
}
div.xcrud-row span:not(.slider) {
font-size:20px!important;
font-weight:bold!important;
}
</style>
<?php
$xcrud = Xcrud::get_instance();
$xcrud->table("order_counts_view");// This is a view
$xcrud->column_callback("Count","getDashboardValue");
$xcrud->unset_add();
$xcrud->unset_edit();
$xcrud->unset_remove();
$xcrud->unset_view();
$xcrud->unset_csv();
$xcrud->unset_limitlist();
$xcrud->unset_numbers();
$xcrud->unset_pagination();
$xcrud->unset_print();
$xcrud->unset_search();
$xcrud->unset_title();
$xcrud->unset_sortable();
$xcrud->panel_view(true,4);
echo $xcrud->render();
?>
Fatal error: Uncaught mysqli_sql_exception: Table 'mixcprassd_demo.order_counts_view' doesn't exist in /home/mixcprassd/public_html/backendDemo/xcrud/xcrud_db.php:61 Stack trace: #0 /home/mixcprassd/public_html/backendDemo/xcrud/xcrud_db.php(61): mysqli->query('SHOW COLUMNS FR...', 1) #1 /home/mixcprassd/public_html/backendDemo/xcrud/xcrud.php(7060): Xcrud_db->query('SHOW COLUMNS FR...') #2 /home/mixcprassd/public_html/backendDemo/xcrud/xcrud.php(2702): Xcrud->_get_table_info() #3 /home/mixcprassd/public_html/backendDemo/pages/simple_dashboard.php(61): Xcrud->render() #4 /home/mixcprassd/public_html/backendDemo/html/template.php(91): include('/home/mixcprass...') #5 /home/mixcprassd/public_html/backendDemo/index.php(66): include('/home/mixcprass...') #6 {main} thrown in /home/mixcprassd/public_html/backendDemo/xcrud/xcrud_db.php on line 61