	<!-- Add Department Modal -->
    <div id="add_department" class="modal custom-modal fade" role="dialog">
					<div class="modal-dialog modal-dialog-centered" role="document">
						<div class="modal-content">
							<div class="modal-header">
								<h5 class="modal-title"><?php echo $Add_a_public_holiday; ?></h5>
								<button type="button" class="close" data-bs-dismiss="modal" aria-label="Close">
									<span aria-hidden="true">&times;</span>
								</button>
							</div>
							<div class="modal-body">
					 <form clas="cmxform" id="signupForm" method="post" action="hr_add_holidays_code.php" enctype="multipart/form-data" > 
					   <div class="form-group">
			<input type="hidden" name="add_user_id" id="add_user_id" readonly value="<?php echo $urow['user_id']; ?>">
           	<input type="hidden" name="user_id_top_manager" id="user_id_top_manager" readonly value="<?php echo $user_id_top_manager; ?>">
           	 <input type="hidden" name="company_id" id="company_id" readonly value="<?php echo $company_id; ?>">
           	  <input type="hidden" name="system_id" id="system_id" readonly value="<?php echo $main_system_id; ?>"> 

           <input type="hidden" name="link_lang" id="link_lang" readonly value="<?php echo $link_lang; ?>">  
        <input type="hidden" name="lang" id="lang" readonly value="<?php echo $lang; ?>"> 
		   	<input type="hidden" name="messag_add" id="messag_add" readonly value="<?php echo $messag_add; ?>"> 
		   	
		   	 
		   

		   	 </div>

		   	
			
			
	   <?php
      function GetSeriaotherr() {	
		$strings = '123456789';	
		$stringLength = strlen($strings);
		$newStrings = '';
		for ($i = 0; $i < 6; $i++) {
			$newStrings .= $strings[rand(0, $stringLength - 1)];
		}
		return $newStrings;
	}
  ?> 		
								    
								    
				
                <div class="form-group"style="font-size:14px; font-weight:;">
                 <label style="float:;">
              <?php echo $id; ?>
                </label>
             <input type="text"readonly value="<?php echo GetSeriaotherr();?>" name="holiday_id" id="holiday_id" class="form-control"style="font-size:14px; font-weight:bold;" required="" >
                       </div>
                       
                  <div class="form-group">
				<lable><?php echo $the_companyr; ?></lable>
				<select clas="select" name="company_id_sel" id="company_id_sel" class="form-select"required="">
                 <!--option value=""><?php echo $select.$space.$the_companyr; ?> </option-->
                 
                 <option value="all_company"><?php echo $company_title; ?> </option>

                    <?php
                         if($urow['user_type']=="System_Manager"){
                       $sql_com="SELECT * FROM waseet_company_user_tbl GROUP BY company_id ";
                         }else{
                     if($company_id=='all_company'){   
                        $sql_com="SELECT * FROM waseet_company_user_tbl where deleted='0'AND stop='0'AND company_id IN ('$ids')GROUP BY company_id ";
                     }else{
                      $sql_com="SELECT * FROM waseet_company_user_tbl where deleted='0'AND stop='0'AND company_id='$company_id' GROUP BY company_id ";
                     } 
                         }
                        $result_com = $conn->query($sql_com);
                        if ($result_com->num_rows > 0) {
                        while($row_com = $result_com->fetch_assoc()) {
                            
                        $sql_com1="SELECT * FROM main_company_tbl where deleted='0'AND  company_id='".$row_com['company_id']."' ";
                        $result_com1 = $conn->query($sql_com1);
                        if ($result_com1->num_rows > 0) {
                        while($row_com1 = $result_com1->fetch_assoc()) {
                          //  echo $row_com1['company_name_ar'];
                            if($lang=='ar'){$name_ar2=$row_com1['company_name_ar'];}else{$name_ar2=$row_com1['company_name_en'];}        
                            //  echo $name_ar2;
                          ?>
                   <option value="<?php echo $row_com1['company_id']; ?>"><?php echo $name_ar2; ?> </option>
					<?php  }} }}  ?>	
					</select>
					</div>  
					
				<div class="form-group"style="font-size:14px; font-weight:;">
                <label style="float:;">
                <?php echo $The_name_holiday_Arabic; ?>
                </label>                                          
                  <input type="text"value="" name="holiday_name_ar" id="holiday_name_ar" class="form-control"style="font-size:14px; font-weight:bold;" required="" placeholder="<?php echo $entry.$space.$The_name_holiday_Arabic; ?>" >
                </div>
                
                
                   <div class="form-group"style="font-size:14px; font-weight:;">
                <label style="float:;">
               <?php echo $The_name_holiday_english; ?>
                </label>                                          
                  <input type="text"value="" name="holiday_name_en" id="holiday_name_en" class="form-control"style="font-size:14px; font-weight:bold;" required="" placeholder="<?php echo $entry.$space.$The_name_holiday_english; ?>" >
                </div>
                
                   <div class="form-group">
               <label style="float:;">         
           <?php echo $Holiday_details; ?>
                 </label>
                   <input type="text" value=""  name="holiday_details" id="holiday_details" class="form-control" style="font-size:14px; font-weight:bold;" placeholder=" <?php echo $entry.$space.$Holiday_details; ?>" >
                      </div>
                      
                        <div class="form-group">
               <label style="float:;">         
           <?php echo $The_start_date_holiday; ?>
                 </label>
                   <input type="date" value=""  name="holiday_start_date" id="holiday_start_date" class="form-control" style="font-size:14px; font-weight:bold;" placeholder=" <?php echo $entry.$space.$Holiday_details; ?>" >
                      </div>
                      
                      
                        <div class="form-group">
               <label style="float:;">         
           <?php echo $Holiday_end_date; ?>
                 </label>
                   <input type="date" value=""  name="holiday_end_date" id="holiday_end_date" class="form-control" style="font-size:14px; font-weight:bold;" placeholder=" <?php echo $entry.$space.$Holiday_details; ?>" >
                      </div>
                      
                <!--div class="form-group">
               <label style="float:;">         
           <?php echo $Department_policies_and_procedures; ?>
                 </label>
               <textarea class="form-control"name="policies_and_procedures" id="policies_and_procedures"  rows="4"></textarea>  
                      </div>
                      
                      
                <div class="form-group">
               <label style="float:;">         
           <?php echo $Department_policies_and_procedures_en; ?>
                 </label>
               <textarea class="form-control"name="policies_and_procedures_en" id="policies_and_procedures_en"  rows="4"></textarea>  
                      </div-->
                      
                      
                      
                   				    
									<!--div class="form-group">
										<label>Department Name <span class="text-danger">*</span></label>
										<input class="form-control" type="text">
									</div-->
									
									
									<!--div class="col-lg-12">
								<input type="submit" name="sav_btn" id="sav_btn" style="display:non;"class="btn btn-primary submit-btn" clas="btn btn-submit me-2" value=" <?php echo $save; ?>">
								<input type="reset" data-bs-dismiss="modal" aria-label="Close" class="btn btn-secondary submit-btn" value="<?php echo $cancel; ?>"></a>
								</div-->
								
								
						<div class="modal-footer ">
					    <input type="submit" name="sav_btn" id="sav_btn" style="display:non;" class="btn btn-primary me-2" value="<?php echo $save; ?>">
						<button type="button" class="btn btn-secondary" data-bs-dismiss="modal"><?php echo $cancel; ?></button>
					</div>		
								
								
								</form>
							</div>
						</div>
					</div>
				</div>
				<!-- /Add Department Modal -->
				
				
				
				
				