<div class="tab-content">
    <div class="tab-pane active">
        <ul class="clearfix form-ul material">
            <li class="col-sm-4">
                <?php echo CHtml::textField('date_from', date('01/m/Y'),array('class' => 'datepicker','data-label'=>'From Date')); ?>
            </li>
             <li class="col-sm-4">
                <?php echo CHtml::textField('date_to', date('d/m/Y'),array('class' => 'datepicker','data-label'=>'To Date')); ?>
            </li>
            <li class="col-sm-4">
                <?php echo CHtml::dropdownlist('type', 1, array( 1 => 'All', 2 => 'Pre Invoice Only' ), array('data-label'=>'Type')); ?>
            </li>
        </ul>
    </div>
</div>

<div class="modal-footer">
    <button type="button" class="btn btn-default "  data-dismiss="modal">Close</button>
    <button class="btn btn-theme" onclick="window.open('index.php?r=outboundinvoice/get_preinvoice&date_from=' + $('#date_from').val() + '&date_to=' + $('#date_to').val() + '&type=' + $('#type').val() , '_blank');">Export</button>
</div>










