Пример #1
0
     //get_header2($title);
     //$query = select();
     $action_room = "table.php?page=save_room";
     $action_table = "table.php?page=save_table&building_id={$building_id}";
     $action_logout = "logout.php";
     //$building_next();
     //$building_prev();
     include '../views/table/list.php';
     //get_footer();
     break;
 case 'save_table_location':
     $id = $_GET['id'];
     $data_x = $_GET['data_x'];
     $data_y = $_GET['data_y'];
     $data_top = $_GET['data_top'];
     save_table_location($id, $data_x, $data_y, $data_top);
     break;
 case 'save_room':
     $room_name = $_POST['i_room_name'];
     $data = "'','" . $room_name . "'";
     save_room($data);
     header('location: table.php');
     break;
 case 'save_table':
     $building_id = $_GET['building_id'];
     $table_name = $_POST['i_table_name'];
     $data = "'',\n\t\t\t\t'{$building_id}',\n\t\t\t\t'" . $table_name . "',\n\t\t\t\t'200',\n\t\t\t\t'200',\n\t\t\t\t'2',\n\t\t\t\t'1',\n\t\t\t\t'0',\n\t\t\t\t'1'\n\t\t\t\t";
     save_table($data);
     header("location: table.php?building_id={$building_id}");
     break;
 case 'save_payment':
Пример #2
0
        $building_img = get_building_img($building_id);
        //get_header2($title);
        //$query = select();
        $action_room = "order.php?page=save_room";
        $action_table = "order.php?page=save_table&building_id={$building_id}";
        $action_logout = "logout.php";
        //$building_next();
        //$building_prev();
        include '../views/order/list.php';
        //get_footer();
        break;
    case 'save_table_location':
        $id = $_GET['id'];
        $data_x = $_GET['data_x'];
        $data_y = $_GET['data_y'];
        save_table_location($id, $data_x, $data_y);
        break;
    case 'save_room':
        $room_name = $_POST['i_room_name'];
        $data = "'','" . $room_name . "'";
        save_room($data);
        header('location: order.php');
        break;
    case 'save_table':
        $building_id = $_GET['building_id'];
        $table_name = $_POST['i_table_name'];
        $data = "'',\n\t\t\t\t'{$building_id}',\n\t\t\t\t'" . $table_name . "',\n\t\t\t\t'200',\n\t\t\t\t'200'\n\t\t\t\t";
        save_table($data);
        header("location: order.php?building_id={$building_id}");
        break;
}