<?php

if(!isset($_GET['typ'])){
?>
<script>
window.location="starter.php";
</script>
<?php
}
if( ($_GET['typ'] !='0' && $_GET['typ']!='1') || $_GET['typ'] ==''){

?>
<script>
window.location="starter.php";
</script>
<?php
}
?>

<?php
$permission  = explode(',',$_SESSION['permission_id']);
if( $_GET['typ'] =='0' ){ // plural
	if(!in_array(9,$permission) && !in_array(1,$permission)  ){

?>
	<script>
	window.location="starter.php";
	</script>
<?php
	}
}elseif($_GET['typ'] =='1'  ){
	if(!in_array(8,$permission) && !in_array(1,$permission)  ){
?>
	<script>
	window.location="starter.php";
	</script>
<?php
	}
}else{
?>
	<script>
	window.location="starter.php";
	</script>
<?php
}
?>


<link href="assets/stcombobox.css" type="text/css" rel="stylesheet"/>

<style >
	tfoot {
    display: table-header-group !important;
	}

	td{
	text-align: center !important;
	}
	th{
	text-align: center !important;
	}

	textarea{
	height: 38px !important;
	resize: none;
	}

.table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td {
    padding: 10px 5px;

    }

    .badge:empty{
    	display: initial;
    }

    .btn_add_item{
    	padding: 0px 0px;
    }

    .bootstrap-select.btn-group .btn .filter-option{
    	text-align: center;
    }

    input[type="checkbox"] {
    	margin: -8px 0 0;
    	
    	line-height: normal;
	}

	.radio label, .checkbox label {
    	padding-right: 85px;
	}

	.radio label, .checkbox label {
    	min-height: 20px;
    	/*padding-right: 20px;*/
    	margin-bottom: 20px;
    	font-weight: normal;
    	cursor: pointer;
	}

	.stc-input {
		width: 150px;
	}

</style>




<div id="show_sticker_modal" class="modal fade" style="display: none;">
		<div class="modal-dialog modal-lg">
		<form class="form-horizontal"  name="show_sticker_form" method="post" id="show_sticker_form" enctype="multipart/form-data">
			
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal"><i class="icon-cross"></i></button>
					<h4 class="modal-title multi_lang">عرض ملصقات الوصل</h4>
				</div>
				<div id="invoce_html_pay">
					<div class="modal-body" >
							<input type="hidden" name="sticker_inv_numb" id="sticker_inv_numb">
							<div id="sticker_show">
								<!-- Borderless table -->


								<!-- /borderless table -->
							</div>
					</div>
				</div>
				<div class="modal-footer">
					<div id="link_pdf_pay"></div>
					<button type="submit" class="btn btn-labeled btn-labeled-left heading-btn btn-primary" id="pdf_pay"> <span class="multi_lang">توليد  PDF</span>  <b><i class="icon-file-pdf"></i></b>
					</button>
					<button type="submit" class="btn btn-labeled btn-labeled-left heading-btn btn-success" id="print_pay"><span class="multi_lang">طباعة</span>  <b><i class=" icon-printer2"></i></b>
					</button>
					<button type="button" class="btn btn-warning" data-dismiss="modal"> <span class="multi_lang">اغلاق</span>
					</button>
				</div>
			</div>
		</form>
	</div>
</div>





				<!-- Individual column searching (text inputs) -->
				<div class="panel panel-flat">
					
					<table class="table datatable-column-search-inputs">
						<thead>
							<tr>
				        		<th width="5%">ID</th>
								<th class="multi_lang">رقم الوصل</th>
								<th class="multi_lang">التاريخ</th>
			          			<th class="multi_lang">الزبون</th>
			          			<th class="multi_lang">الهاتف</th>
								<th class="multi_lang">المبلغ الكلي</th>
								<th class="multi_lang">التخفيضات</th>
								<th class="multi_lang">المبلغ الصافي</th>
								<th class="multi_lang">الحالة</th>
								<th class="multi_lang">ملاحظات</th>
			          			<th width="15%" class="text-center multi_lang">العمليات</th>
				      		</tr>
						</thead>
						<tbody>
							
						</tbody>
						<tfoot>
							<tr>
				                <td></td>
				                <td>username</td>
				                <td>full_name</td>
				                <td>EMail</td>
				                <td>Phone</td>
				                <td></td>
				                <td></td>
				                <td></td>
				                <td></td>
				                <td></td>
				                <td></td>
				            </tr>
						</tfoot>
					</table>
				</div>
				<!-- /individual column searching (text inputs) -->



<script type="text/javascript" src="controllers/invoice_curt_deleted.js?random=<?php echo uniqid(); ?>"></script>