Premier League Standings Bootstrap 4.5 theme
Premier League Standings
HIDE CODE
<?php
$xcrud = Xcrud::get_instance();
$xcrud->table('standings');
$xcrud->columns('logo,team_id,played,won,drawn,lost,goals_for,goals_against,points');
$xcrud->label('team_id', 'Team')->relation('team_id', 'teams', 'team_id', 'team_name');
$xcrud->unset_add();
$xcrud->unset_edit();
$xcrud->unset_remove();
$xcrud->unset_view();
$xcrud->unset_search();
$xcrud->unset_limitlist();
$xcrud->limit(20);
$xcrud->order_by("points","desc");
$xcrud->column_class('team_id','align-left font-bold');
$xcrud->highlight('points','>=','23','#9FD58C');
$xcrud->highlight('lost','=','0','#B3968B');
$xcrud->highlight('lost','=','1','#D2E3D9');
$xcrud->highlight_row('points','>=','26','#D5BEB5');
$xcrud->change_type('logo', 'image', false, array(
'width' => 450,
'path' => '../uploads/gallery',
'thumbs' => array(array(
'height' => 55,
'width' => 120,
'crop' => true,
'marker' => '_th'))));
echo $xcrud->render();
?>
Warning: Undefined variable $bool in /home/mixcprassd/public_html/backendDemo/xcrud/xcrud.php on line 1165
Fatal error: Uncaught mysqli_sql_exception: Table 'mixcprassd_demo.standings' 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/standings.php(32): 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