예제 #1
0
 private function get_formated_list()
 {
     //        $list = $this->get_formated_booking_list($this->getViewData('list'));
     $list = $this->getViewData('list');
     if ($list) {
         foreach ($list as $key => $user) {
             //                debug($user);
             $list[$key]['action'] = '';
             $list[$key]['action'] .= $this->load->view('common/action-bar', array_merge($user, array('delete_url' => 'dashboard/unassign_booking?booking_id=' . $user['id'], 'delete_text' => 'Want to unassign this booking?', 'delete_title' => 'Unassign', 'no_view' => true, 'edit_url' => 'order/update/' . $user['id'], 'extra' => '<a class="btn btn-success action-btn assign " data-id="14" href="' . base_url("assign_booking/assign/" . $user['id']) . '" title="Assign"><i class="fa fa-cog"></i></a>')), true);
             $list[$key]['booking_status_text'] = $this->status->get_booking_status_text($user['booking_status']);
             $list[$key]['booking_status_class'] = $this->status->get_booking_status_class($user['booking_status']);
             $list[$key]['booking_type'] = __echeck($user['booking_type'] == 2, "Recurring", "FIxed", true);
             $assign = array(0 => "Unassigned", 1 => "Agency", 2 => 'Cargo Driver');
             $list[$key]['requested_pickup_time'] = __echeck($user['pickup_type'] == 2, $user['flex_time'], $user['booking_time'], true);
             $list[$key]['booking_date'] = __echeck(isset($user['booked_dates']) and count($user['booked_dates']) > 1, "Recurinng", $user['booking_date'], true);
             //                $list[$key]['status'] = ($user['status']) ? '<span class="label label-success">Active</span>' : '<span class="label label-important">Inactive</span>';
         }
         $this->setViewData('list', $list);
     }
 }
예제 #2
0
                    <div class="control-group">
                        <label class="control-label" for="dates">Pickup Time </label>
                        <div class="controls">
                            <input id="timepicker" class="form-control <?php 
__echeck(__rd('pickup_type', $data_object) == 2, 'hideme', '');
?>
"  value="<?php 
__efd('booking_time', $data_object);
?>
" name="booking[booking_time]" data-provide="timepicker" data-template="modal" data-minute-step="1" data-modal-backdrop="true" type="text"/>
                            <?php 
__e(form_checkbox('booking[pickup_type]', 2, __rd('pickup_type', $data_object) == 2, 'id="is_flexi"'));
?>
Flexible
                            <div class="<?php 
__echeck(__rd('pickup_type', $data_object) == 1 or __rd('pickup_type', $data_object) === FALSE, 'hideme', '');
?>
" id="timeframe">
                                <?php 
foreach ($timeframes as $timeframe) {
    $tf = date('h a', strtotime($timeframe['start'])) . ' - ' . date('h a', strtotime($timeframe['end']));
    __e(form_radio('booking[flexible_timeslot]', $timeframe['id'], __rd('flexible_timeslot', $data_object) == $timeframe['id'], "id='Timeframe" . $timeframe['id'] . "'"));
    ?>
                                    <label for="<?php 
    __e("Timeframe{$timeframe['id']}");
    ?>
"><?php 
    __e($tf . "( {$timeframe['discount']}% OFF )");
    ?>
</label>
                                <?php 
예제 #3
0
<div class="pagination ajax-pagination <?php 
__echeck(isset($ajax_pagi) and $ajax_pagi, 'ajax-pagination', '');
?>
">
    <?php 
__e($links);
?>
    <nav class="pull-right">
        <span>Showing <strong><?php 
__e($start);
?>
</strong> to <strong><?php 
__e($end);
?>
</strong> results of <strong><?php 
__e($total);
?>
</strong></span>
    </nav>
    <div class="clearfix"></div>
</div>
예제 #4
0
                            </table>
                        </td>
                        <td>
                            <table class="table  table-striped table-bordered bootstrap-datatable">
                                <tr>
                                    <td>Pickup Date</td>
                                    <td>
                                        <?php 
__e(implode(', ', __rd('dates', $booking)));
?>
                                    </td>
                                </tr>
                                <tr>
                                    <td>Pickup time</td>
                                    <td><?php 
__echeck(__rd('pickup_type', $booking) == 2, __rd('flex_time', $booking), __rd('booking_time', $booking));
?>
</td>
                                </tr>
                            </table>
                        </td>
                        <td>
                            <table class="table  table-striped table-bordered bootstrap-datatable">
                                <tr>
                                    <td>Estimated Distance</td>
                                    <td><?php 
__ed('estimated_distance', $booking);
?>
 KM</td>
                                </tr>
                                <tr>
예제 #5
0
<div class="search-bar">
    <form method="get" class="form-inline" id="search-form">
        <div class="form-control">
            <input type="text" name="s" value="<?php 
__echeck(isset($search_type) and $search_type == request('search_type'), request('s'), '');
?>
" />
            <input type="hidden" name="search_type" value="<?php 
__e(isset($search_type) ? $search_type : '', 'basic');
?>
" />
            <?php 
__e(isset($extra_params) ? $extra_params : '');
?>
            <button type="submit" class="btn btn-primary" name="submit_search">Search</button>  
        </div>
    </form>
</div>