
<? global $vis_language; 
$orderStatus = array('1' => $vis_language['TXTACTIVE'],'2' => $vis_language['TXTPENDING'],'3' => $vis_language['TXTINCOMPLETE'],'4' => $vis_language['TXTCANCELED']);
?>
<div class="modal-dialog">
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal">&times;</button>
            <h4 class="modal-title"><? echo$vis_language['TXTUPDATEORDER']; ?></h4>
        </div>
        <div class="modal-body">
            <div class="row">
                <div class="col-sm-12">
                    <form role="form" class="form-horizontal" name="vis_update_order_form" id="vis_update_order_form">
                        <div class="form-group">
                            <label class="col-sm-3 control-label txt_nowrap"><?= $vis_language['TXTORDER']."#"; ?></label>
                            <div class="col-sm-9">
                                <input class="form-control input-sm" type="text" name="vis_order_hash" id="vis_order_hash" readonly value="<?php echo $order['order_hash']; ?>">
                            </div>
                        </div>
                        <div class="form-group">
							<label class="col-sm-3 control-label txt_nowrap"><?= $vis_language['TXTSTATUS']; ?></label>
							<div class="col-sm-9">
                            <select class="form-control input-sm selectpicker" name="order_status" id="order_status">
								<? for($i=1;$i<=count($orderStatus);$i++) 		
									echo '<option value="'.$i.'"'.($i==$order['order_status']?' selected="selected"':'').'>'.$orderStatus[$i].'</option>'; ?>
							</select>
							</div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <div class="modal-footer">
			<a class="btn btn-default" data-dismiss="modal"><? echo $vis_language['TXTCANCEL']; ?></a>
            <a class="btn btn-primary" onclick="$(this).visExecution('submit_form',{'vis_module':'billing', 'vis_operation':'update_order', 'vis_form':'vis_update_order_form','vis_order_id':<? echo $order['order_id'];?>});"><? echo $vis_language['TXTUPDATE']; ?></a>
        </div>
    </div>
</div>
<script type="text/javascript">
	$(".selectpicker").selectpicker();
</script>