$keyword = $_GET['keyword'];
     $data['menu_id'] = select_menu($keyword);
     return $data;
     break;
 case 'delete_history':
     $id = get_isset($_GET['id']);
     $table_id = get_isset($_GET['table_id']);
     delete_history($id);
     header("Location: transaction.php?table_id={$table_id}&did=3");
     break;
 case 'list_history':
     //get_header($title);
     $table_id = get_isset($_GET['table_id']);
     $check_table = check_table($table_id);
     if ($check_table > 0) {
         $query_history = select_history($table_id);
         include '../views/transaction/history_order.php';
     }
     //get_footer();
     break;
 case 'form_widget':
     $menu_id = $_GET['menu_id'];
     $jumlah = $_GET['jumlah'];
     $table_id = $_GET['table_id'];
     $get_widget = get_widget($menu_id, $table_id);
     if ($jumlah == 0) {
         delete_config("widget_tmp", "menu_id = '{$menu_id}' and user_id = '" . $_SESSION['user_id'] . "' and table_id = '{$table_id}'");
     } else {
         if ($get_widget == 0) {
             $data = "'',\n\t\t\t\t\t\t'" . $_SESSION['user_id'] . "',\n\t\t\t\t\t\t'{$menu_id}',\n\t\t\t\t\t\t'{$jumlah}',\n\t\t\t\t\t\t'{$table_id}',\n\t\t\t\t\t\t'',\n\t\t\t\t\t\t'0'\n\t\t\t\t\t\t\t";
             create_config("widget_tmp", $data);
Example #2
0
                                    <h3 class="box-title">History Waiter</h3>                                    
                                </div>
                                <div class="box-body2 table-responsive">
                                    <table id="example2" class="table table-bordered table-striped">
                                        <thead>
                                            <tr>
                                            	<th>Tanggal</th>
                                            	<th>Cabang</th>
                                                <th>Ruang</th>
                                                <th>Meja</th>
                                                <th>Total</th>
                                                <th>Waiter</th>
                                            </tr>
                                        </thead>
                                        <?php 
$query_history = select_history();
while ($row_history = mysql_fetch_array($query_history)) {
    ?>
                                            <tr>
                                           
                                               <td><?php 
    echo $row_history['transaction_date'];
    ?>
</td>
                                                <td><?php 
    echo $row_history['branch_name'];
    ?>
</td>
                                                <td><?php 
    echo $row_history['building_name'];
    ?>