
<? global $vis_language; 
$prodStatus = 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['TXTUPDATEPACKAGE']; ?></h4>
        </div>
        <div class="modal-body">
            <div class="row">
                <div class="col-sm-12">
                    <form role="form" class="form-horizontal" name="vis_update_product_status_form" id="vis_update_product_status_form">
                        <div class="form-group">
                            <label class="col-sm-3 control-label txt_nowrap"><?= $vis_language['TXTPACKAGE']."#"; ?></label>
                            <div class="col-sm-9">
                                <input class="form-control input-sm" type="text" name="vis_product_id" id="vis_product_id" readonly value="<?php echo $client_product[0]['product_id']; ?>">
                            </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="product_status" id="product_status">
								<? for($i=1;$i<=count($prodStatus);$i++) 		
									echo '<option value="'.$i.'"'.($i==$client_product[0]['product_status']?' selected="selected"':'').'>'.$prodStatus[$i].'</option>'; ?>
							</select>
							<input type="hidden" name="vis_client_id" value="<? echo $client_product[0]['client_id']; ?>">
							</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_product_status', 'vis_form':'vis_update_product_status_form','vis_invoice_id':<? echo $client_product[0]['invoice_id'];?>});"><? echo $vis_language['TXTUPDATE']; ?></a>
        </div>
    </div>
</div>
<script type="text/javascript">
	$(".selectpicker").selectpicker();
</script>