<?php
$form = $this->form;
$form->prepare();
$form->setAttribute('action', $this->url('bookinghistory', ['action' => 'index']));
$form->setAttribute('method', 'post');
$form->setAttribute('id', 'booking-status-search-form');
echo $this->form()->openTag($form);
?>
<input type="hidden" id="tab_type" name="tab_type" value="<?php if(isset($test)){echo $tab_type;}?>">
 <input type="hidden" name="tab_type" value="status">
<div class="col-sm-col-sm-offset-1 margin-10auto0 paddingRL10px">
        <div class="row">
            <div class="form-group clearfix margintopbottom20">
                <label id="flight_nos" class="col-sm-2 control-label labelalign "><?php echo $this->translate('Booking Status');?></label>
                <div class="col-sm-4">
                    <?php echo $this->FormElement($form->get('booking_status')); ?>
                </div>
                <label id="point_airport" class="col-sm-2 control-label labelalign "><?php echo $this->translate('Order Time');?></label>
                <div class="col-sm-4">
                    <div class="col-lg-5">
                         <div class="input-group clockpicker" data-placement="bottom" data-align="left" data-donetext="Done">
                                    <?php echo $this->formElement($form->get('from_time')); ?>
                                    <span class="input-group-addon">
                                        <span class="glyphicon glyphicon-time"></span>
                                    </span>
                                </div>
                    </div>

                    <div class="col-lg-5">
                         <div class="input-group clockpicker" data-placement="bottom" data-align="left" data-donetext="Done">
                                    <?php echo $this->formElement($form->get('to_time')); ?>
                                    <span class="input-group-addon">
                                        <span class="glyphicon glyphicon-time"></span>
                                    </span>
                                </div>
                    </div>

                </div>
            </div>
        </div>

        <div class="row">
            <div class="form-group clearfix margintopbottom20">
                <div class="col-sm-4 pull-right">
                    <?php echo $this->FormReset($form->get('clear')); ?>
                    <?php echo $this->FormElement($form->get('search')); ?>
                </div>
            </div>
        </div>
    </div>
<?php echo $this->form()->closeTag(); ?>
