<?php
$permission  = explode(',',$_SESSION['permission_id']);
if(!in_array(18,$permission) && !in_array(1,$permission)  ){

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

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

	.tokenfield.form-control {
	    height: 0px !important;
	    padding: 0;
	}

	.sp-container {
		z-index: 1000000;
	}
</style>

<div id="add-form-cont" class="panel-collapse collapse panel" aria-expanded="false" style="height: 0px; position: relative; top:-3px; width:98%; margin:0px auto;">
	<div class="panel-body">
		<form class="form-horizontal" method="post" id="add_form" enctype="multipart/form-data">
			<div>
			
				<div class="col-sm-12">

					<div class="form-group">
						

						<div class="form-group has-feedback has-feedback-left form-group-material col-sm-4">
							<label class="control-label multi_lang">اسم الموظف الكامل</label>
							<input type="text" placeholder="اسم الموظف الكامل" class="form-control multi_lang" name="employe_full_name" id="employe_full_name" required="required">
							<div class="form-control-feedback">
								<i class="icon-profile text-muted"></i>
							</div>
						</div>

						<div class="form-group has-feedback has-feedback-left form-group-material col-sm-4">
							<label class="control-label multi_lang">الجنسية</label>
							<input type="text" placeholder="الجنسية" class="form-control multi_lang" name="employe_race" id="employe_race" >
							<div class="form-control-feedback">
								<i class="icon-hat text-muted"></i>
							</div>
						</div>

						<div class="form-group has-feedback has-feedback-left form-group-material col-sm-4">
							<label class="control-label multi_lang">العنوان الوظيفي</label>
							<input type="text" placeholder="العنوان الوظيفي" class="form-control multi_lang" name="employe_position" id="employe_position" >
							<div class="form-control-feedback">
								<i class="icon-chair text-muted"></i>
							</div>
						</div>

						<div class="form-group has-feedback has-feedback-left form-group-material col-sm-4">
							<label class="control-label multi_lang">رقم الهاتف</label>
							<input type="text" class="form-control multi_lang" name="employe_phone" id="employe_phone" required="required" placeholder="رقم الهاتف">
							
							<div class="form-control-feedback">
								<i class="icon-phone2 text-muted"></i>
							</div>
						</div>

						<div class="form-group has-feedback has-feedback-left form-group-material col-sm-4">
							<label class="control-label multi_lang">البريد الالكتروني</label>
							<input type="text" class="form-control multi_lang" name="employe_email" id="employe_email"  placeholder="البريد الالكتروني">
							
							<div class="form-control-feedback">
								<i class="icon-envelop2 text-muted"></i>
							</div>
						</div>


						<div class="form-group has-feedback has-feedback-left form-group-material col-sm-4">
							<label class="control-label multi_lang">عنوان السكن</label>
							<input type="text" placeholder="عنوان السكن" class="form-control multi_lang" name="employe_address" id="employe_address" >
							<div class="form-control-feedback">
								<i class="icon-location4 text-muted"></i>
							</div>
						</div>

						<!-- <div class="form-group has-feedback has-feedback-left form-group-material col-sm-4">
							<label class="control-label multi_lang">الراتب الشهري</label>
							<input type="text" placeholder="الراتب الشهري" class="form-control multi_lang" name="employe_monthly_salary" id="employe_monthly_salary" required="required">
							<div class="form-control-feedback">
								<i class="icon-coins text-muted"></i>
							</div>
						</div> -->

						<div class="form-group has-feedback has-feedback-left form-group-material col-sm-8">
							<label class="control-label multi_lang">ملاحظات</label>
							<input type="text" placeholder="ملاحظات" class="form-control multi_lang" name="employe_note" id="employe_note" >
							<div class="form-control-feedback">
								<i class="icon-briefcase text-muted"></i>
							</div>
						</div>

						<div class="form-group has-feedback has-feedback-left form-group-material col-sm-4" style="margin-top: 30px;">
							<label class="control-label multi_lang">لون المجموعة</label>

							<input type="text" class="form-control colorpicker-palette-only" value="#FFFFFF" name="group_color" id="group_color">

							
							
						</div>

						
						


					</div>

				</div>
			</div>

			<div class="text-right">
				<button type="submit" id="submit_add_btn" class="btn btn-primary btn-labeled btn-labeled-left">
					<span class="multi_lang">حفظ</span> <b><i class="icon-floppy-disk"></i></b>
				</button>
				<a href="#add-form-cont" id="add_form_cancel" class="btn btn-labeled btn-labeled-left bg-danger heading-btn" data-toggle="collapse">
					<span class="multi_lang">اغلاق</span>  <b><i class="icon-cross"></i></b>
				</a>
			</div>
		</form>
	</div>
</div>

<div id="edit_form_cont" class="modal fade" style="display: none;">
	<div class="modal-dialog modal-lg" style="width: 92%;">
		<form class="form-horizontal"  name="edit_form" method="post" id="edit_form" enctype="multipart/form-data">
			<input type="hidden" id="access_token" name="access_token"  value="">

			<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 class="modal-body">
					<input type="hidden" name="itemid" id="edit_objid" value="">
						
					<div class="col-sm-12">

						<div class="form-group">
							

							<div class="form-group has-feedback has-feedback-left  col-sm-4">
								<label class="control-label multi_lang">اسم الموظف الكامل</label>
								<input type="text" placeholder="اسم الموظف الكامل" class="form-control multi_lang" name="edit_employe_full_name" id="edit_employe_full_name" required="required">
								<div class="form-control-feedback">
									<i class="icon-profile text-muted"></i>
								</div>
							</div>

							<div class="form-group has-feedback has-feedback-left  col-sm-4">
								<label class="control-label multi_lang">الجنسية</label>
								<input type="text" placeholder="الجنسية" class="form-control multi_lang" name="edit_employe_race" id="edit_employe_race" >
								<div class="form-control-feedback">
									<i class="icon-hat text-muted"></i>
								</div>
							</div>

							<div class="form-group has-feedback has-feedback-left  col-sm-4">
								<label class="control-label multi_lang">العنوان الوظيفي</label>
								<input type="text" placeholder="العنوان الوظيفي" class="form-control multi_lang" name="edit_employe_position" id="edit_employe_position" >
								<div class="form-control-feedback">
									<i class="icon-chair text-muted"></i>
								</div>
							</div>

							<div class="form-group has-feedback has-feedback-left  col-sm-4">
								<label class="control-label multi_lang">رقم الهاتف</label>
								<input type="text" class="form-control multi_lang" name="edit_employe_phone" id="edit_employe_phone" required="required" placeholder="رقم الهاتف">
								
								<div class="form-control-feedback">
									<i class="icon-phone2 text-muted"></i>
								</div>
							</div>

							<div class="form-group has-feedback has-feedback-left  col-sm-4">
								<label class="control-label multi_lang">البريد الالكتروني</label>
								<input type="text" class="form-control multi_lang" name="edit_employe_email" id="edit_employe_email"  placeholder="البريد الالكتروني">
								
								<div class="form-control-feedback">
									<i class="icon-envelop2 text-muted"></i>
								</div>
							</div>


							<div class="form-group has-feedback has-feedback-left  col-sm-4">
								<label class="control-label multi_lang">عنوان السكن</label>
								<input type="text" placeholder="عنوان السكن" class="form-control multi_lang" name="edit_employe_address" id="edit_employe_address" >
								<div class="form-control-feedback">
									<i class="icon-location4 text-muted"></i>
								</div>
							</div>

							<!-- <div class="form-group has-feedback has-feedback-left  col-sm-4">
								<label class="control-label multi_lang">الراتب الشهري</label>
								<input type="text" placeholder="الراتب الشهري" class="form-control multi_lang" name="edit_employe_monthly_salary" id="edit_employe_monthly_salary" required="required">
								<div class="form-control-feedback">
									<i class="icon-coins text-muted"></i>
								</div>
							</div> -->

							<div class="form-group has-feedback has-feedback-left  col-sm-8">
								<label class="control-label multi_lang">ملاحظات</label>
								<input type="text" placeholder="ملاحظات" class="form-control multi_lang" name="edit_employe_note" id="edit_employe_note" >
								<div class="form-control-feedback">
									<i class="icon-briefcase text-muted"></i>
								</div>
							</div>

							<div class="form-group has-feedback has-feedback-left form-group-material col-sm-4" style="margin-top: 30px;">
								<label class="control-label multi_lang">لون المجموعة</label>

								<input type="text" class="form-control " value="#FFFFFF" name="edit_group_color" id="edit_group_color">

								
								
							</div>

							
							


						</div>

					</div>

				</div>
				<div class="modal-footer">
					<button type="submit" class="btn btn-labeled btn-labeled-left heading-btn btn-primary"> <span class="multi_lang">حفظ</span> <b><i class="icon-floppy-disk"></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>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="text-center multi_lang">العمليات</th>
				            </tr>
						</thead>
						<tbody>
							
						</tbody>
						<tfoot>
							<tr>
				                <td>Name</td>
				                <td>Position</td>
				                <td>Start date</td>
				                <td>Salary</td>
				                <td>Salary</td>
				                <td></td>
				                <td></td>
				                <!-- <td></td> -->
				                <td></td>
				            </tr>
						</tfoot>
					</table>
				</div>
				<!-- /individual column searching (text inputs) -->



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