<div class="tab-pane fade  in active" id="general">
<?php
$form = $this->form;
$form->prepare();
//$form->setAttribute('action', $this->url('bookinghistory', ['action' => 'index']));
echo $this->form()->openTag($form);
?>
<input type="hidden" id="tab_type" name="tab_type" value="<?php if(isset($tab_type)) {echo $tab_type;}?>">
 <input type="hidden" name="tab_type" value="general" >
 <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 booking_id_filter"><?php echo $this->translate('ID');?></label>
                <div class="col-sm-4">
                    <?php $booking_id= isset($_GET['booking_id'])?$_GET['booking_id']:'';
                        echo $this->FormElement($form->get('booking_id')->setvalue($booking_id));
                    ?>

                </div>
                <label id="point_airport" class="col-sm-2 control-label labelalign vehicle_owner_filter"><?php echo $this->translate('Vehicle Owner');?></label>
                <div class="col-sm-4">
                    <?php $vehicle_owner= isset($_GET['vehicle_owner'])?$_GET['vehicle_owner']:'';
                     echo $this->FormElement($form->get('vehicle_owner')->setvalue($vehicle_owner)); ?>
                </div>
            </div>
        </div>

        <div class="row">
            <div class="form-group clearfix margintopbottom20">
                <label id="flight_nos" class="col-sm-2 control-label labelalign booking_type_filter"><?php echo $this->translate('Booking Type');?></label>
                <div class="col-sm-4">
                    <?php $booking_type= isset($_GET['booking_type'])?$_GET['booking_type']:'';
                        echo $this->FormElement($form->get('booking_type')->setvalue($booking_type)); ?>
                </div>
                <label id="point_airport" class="col-sm-2 control-label labelalign driver_filter"><?php echo $this->translate('Driver First Name');?></label>
                <div class="col-sm-4">
                    <div class="input-group">

                        <?php $driver_name= isset($_GET['driver_name'])?$_GET['driver_name']:'';
                        echo $this->FormElement($form->get('driver_name')->setvalue($driver_name)); ?>
                        <span class="input-group-addon"><i class="fa fa-search"></i></span>
                    </div>
                </div>
            </div>
        </div>

        <div class="row">
            <div class="form-group clearfix margintopbottom20">
                <label id="flight_nos" class="col-sm-2 control-label labelalign"><?php echo $this->translate('Initial request data');?></label>
                <div class="col-sm-2">
                     <?php $from_date= isset($_GET['from_date'])?$_GET['from_date']:'';
                        echo $this->FormElement($form->get('from_date')->setvalue($from_date)); ?>

                </div>
                <div class="col-sm-2">
                    <?php $to_date= isset($_GET['to_date'])?$_GET['to_date']:'';
                        echo $this->FormElement($form->get('to_date')->setvalue($to_date)); ?>

                </div>
                <label id="point_airport" class="col-sm-2 control-label labelalign"><?php echo $this->translate('Partner');?></label>
                <div class="col-sm-4">
                    <div class="input-group">
                        <?php $partner_name= isset($_GET['partner_name'])?$_GET['partner_name']:'';
                        echo $this->FormElement($form->get('partner_name')->setvalue($partner_name)); ?>

                        <span class="input-group-addon"><i class="fa fa-search"></i></span>
                    </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(); ?>
</div>