* * Admin rental booking index * * Created by ShineTheme * */ //$arg=array( // 'post_type'=>'st_order_item', // 'posts_per_page'=>5, // 'paged'=>isset($_GET['paged'])?$_GET['paged']:1, //); //query_posts($arg); $page = isset($_GET['paged']) ? $_GET['paged'] : 1; $limit = 20; $offset = ($page - 1) * $limit; $data = STAdmin::get_history_bookings('st_rental', $offset, $limit); $posts = $data['rows']; $total = ceil($data['total'] / $limit); global $wp_query; $paging = array(); $paging['base'] = admin_url('edit.php?post_type=st_rental&page=st_rental_booking%_%'); $paging['format'] = '&paged=%#%'; $paging['total'] = $total; $paging['current'] = $page; echo '<div class="wrap"><div id="icon-tools" class="icon32"></div>'; echo '<h2>' . __('Rental Booking', ST_TEXTDOMAIN) . '<a href="' . admin_url('edit.php?post_type=st_rental&page=st_rental_booking§ion=add_booking') . '" class="add-new-h2">' . __('Add New', ST_TEXTDOMAIN) . '</a></h2>'; STAdmin::message(); ?> <form id="posts-filter" action="<?php echo admin_url('edit.php?post_type=st_rental&page=st_rental_booking'); ?>
* * Admin tour booking index * * Created by ShineTheme * */ //$arg=array( // 'post_type'=>'st_order_item', // 'posts_per_page'=>5, // 'paged'=>isset($_GET['paged'])?$_GET['paged']:1, //); //query_posts($arg); $page = isset($_GET['paged']) ? $_GET['paged'] : 1; $limit = 20; $offset = ($page - 1) * $limit; $data = STAdmin::get_history_bookings('st_tours', $offset, $limit); $posts = $data['rows']; $total = ceil($data['total'] / $limit); global $wp_query; $paging = array(); $paging['base'] = admin_url('edit.php?post_type=st_tours&page=st_tours_booking%_%'); $paging['format'] = '&paged=%#%'; $paging['total'] = $total; $paging['current'] = $page; echo '<div class="wrap"><div id="icon-tools" class="icon32"></div>'; echo '<h2>' . __('Tour Booking', ST_TEXTDOMAIN) . '<a href="' . admin_url('edit.php?post_type=st_tours&page=st_tours_booking§ion=add_booking') . '" class="add-new-h2">' . __('Add New', ST_TEXTDOMAIN) . '</a></h2>'; STAdmin::message(); ?> <form id="posts-filter" action="<?php echo admin_url('edit.php?post_type=st_tours&page=st_tours_booking'); ?>
* * Created by ShineTheme * */ ?> <div class="st-create"> <h2><?php _e("Cars Bookings"); ?> </h2> </div> <?php $paged = get_query_var('paged') ? intval(get_query_var('paged')) : 1; $limit = 10; $offset = ($paged - 1) * $limit; $data_post = STAdmin::get_history_bookings('st_cars', $offset, $limit, $data->ID); $posts = $data_post['rows']; $total = ceil($data_post['total'] / $limit); ?> <table class="table table-bordered table-striped table-booking-history"> <thead> <tr> <th><?php _e("STT", ST_TEXTDOMAIN); ?> </th> <th><?php _e("Customer", ST_TEXTDOMAIN); ?> </th>
* * Admin activity index * * Created by ShineTheme * */ //$arg=array( // 'post_type'=>'st_order_item', // 'posts_per_page'=>5, // 'paged'=>isset($_GET['paged'])?$_GET['paged']:1, //); //query_posts($arg); $page = isset($_GET['paged']) ? $_GET['paged'] : 1; $limit = 20; $offset = ($page - 1) * $limit; $data = STAdmin::get_history_bookings('st_activity', $offset, $limit); $posts = $data['rows']; $total = ceil($data['total'] / $limit); global $wp_query; $paging = array(); $paging['base'] = admin_url('edit.php?post_type=st_activity&page=st_activity_booking%_%'); $paging['format'] = '&paged=%#%'; $paging['total'] = $total; $paging['current'] = $page; echo '<div class="wrap"><div id="icon-tools" class="icon32"></div>'; echo '<h2>' . __('Activity Booking', ST_TEXTDOMAIN) . '<a href="' . admin_url('edit.php?post_type=st_activity&page=st_activity_booking§ion=add_booking') . '" class="add-new-h2">' . __('Add New', ST_TEXTDOMAIN) . '</a></h2>'; STAdmin::message(); ?> <form id="posts-filter" action="<?php echo admin_url('edit.php?post_type=st_activity&page=st_activity_booking'); ?>
* * Admin holiday booking index * * Created by ShineTheme * */ //$arg=array( // 'post_type'=>'st_order_item', // 'posts_per_page'=>5, // 'paged'=>isset($_GET['paged'])?$_GET['paged']:1, //); //query_posts($arg); $page = isset($_GET['paged']) ? $_GET['paged'] : 1; $limit = 20; $offset = ($page - 1) * $limit; $data = STAdmin::get_history_bookings('st_holidays', $offset, $limit); $posts = $data['rows']; $total = ceil($data['total'] / $limit); global $wp_query; $paging = array(); $paging['base'] = admin_url('edit.php?post_type=st_holidays&page=st_holidays_booking%_%'); $paging['format'] = '&paged=%#%'; $paging['total'] = $total; $paging['current'] = $page; echo '<div class="wrap"><div id="icon-tools" class="icon32"></div>'; echo '<h2>' . __('Holiday Booking', ST_TEXTDOMAIN) . '<a href="' . admin_url('edit.php?post_type=st_holidays&page=st_holidays_booking§ion=add_booking') . '" class="add-new-h2">' . __('Add New', ST_TEXTDOMAIN) . '</a></h2>'; STAdmin::message(); ?> <form id="posts-filter" action="<?php echo admin_url('edit.php?post_type=st_holidays&page=st_holidays_booking'); ?>