<?php include("../secure.php"); ?>

<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0">
		<meta name="description" content="POS - Bootstrap Admin Template">
		<meta name="keywords" content="admin, estimates, bootstrap, business, corporate, creative, management, minimal, modern,  html5, responsive">
		<meta name="author" content="Dreamguys - Bootstrap Admin Template">
		<meta name="robots" content="noindex, nofollow">
		<title>Marsa Logistic</title>

                <style>
@font-face {
    font-family: 'DroidSansArabic';
    src: url('../../font/DroidSansArabic.ttf');
}
body * {
    font-family: "DroidSansArabic", sans-serif ;
}
    </style>
		<?php 
	$lang=$_GET['lang'];  
    $link_lang='lang='.$lang;
    $company_id=$_GET['company_id']; 
    $main_system_id='2222';
	?> 
	
	
	   <?php include("../Function/target_function_code_summ_year.php");?>
	
	 <?php include("../languege_filee_hr.php");?>
	 
 <?php include("../hr_permission.php");?>
	
		<!-- Favicon -->
        <link rel="shortcut icon" type="image/x-icon" href="../../assets/img/favicon.png">
        
        <link rel="stylesheet" href="../../assets/plugins/alertify/alertify.min.css">
        
		<?php
	if($lang=='ar'){
	?>


         <link rel="stylesheet" href="../../assets/css/bootstrap.rtl.min.css">
   
		<!-- Fontawesome CSS -->
        <link rel="stylesheet" href="../../assets/plugins/fontawesome/css/fontawesome.min.css">
    	<link rel="stylesheet" href="../../assets/plugins/fontawesome/css/all.min.css">

		<!-- Lineawesome CSS -->
        <link rel="stylesheet" href="../../assets/css/line-awesome.min.css">
		<link rel="stylesheet" href="../../assets/css/material.css">
		
		<!-- Fontawesome CSS -->
        <link rel="stylesheet" href="../../assets/css/font-awesome.min.css">
		
		<!-- Datatable CSS -->
		<link rel="stylesheet" href="../../assets/css/dataTables.bootstrap4.min.css">
		
		<!-- Main CSS -->
        <link rel="stylesheet" href="../../assets/css/style.css">
             
             
             
             
        <?php }else{ ?>
            <link rel="stylesheet" href="../../assets_en/css/bootstrap.min.css">
   
		<!-- Fontawesome CSS -->
        <link rel="stylesheet" href="../../assets_en/plugins/fontawesome/css/fontawesome.min.css">
    	<link rel="stylesheet" href="../../assets_en/plugins/fontawesome/css/all.min.css">

		<!-- Lineawesome CSS -->
        <link rel="stylesheet" href="../../assets_en/css/line-awesome.min.css">
		<link rel="stylesheet" href="../../assets_en/css/material.css">
		
		<!-- Fontawesome CSS -->
        <link rel="stylesheet" href="../../assets_en/css/font-awesome.min.css">
		
		<!-- Datatable CSS -->
		<link rel="stylesheet" href="../../assets_en/css/dataTables.bootstrap4.min.css">
		
		<!-- Main CSS -->
        <link rel="stylesheet" href="../../assets_en/css/style.css">
        

            <?php } ?>
		
		 
	<body>
	<!-- Main Wrapper -->
        <div class="main-wrapper">
		
			<!-- Toper -->
            <?php include("../toper.php"); ?>
			<!-- /Toper -->
			
			<!-- header -->
            <?php include("../header.php");?>
			
			<!-- /header -->
			
			<div class="page-wrapper">
				<div class="content">
				    
				<!-- Page Header -->
					<div class="page-header">
						<div class="row">
							<div class="col-sm-12">
								<h3 class="page-title">تقرير مشروع التوصيل</h3>
								<ul class="breadcrumb">
									<li class="breadcrumb-item"><a href="#">عرض  تقرير مشروع التوصيل</a></li>
								</ul>
							</div>
						</div>
					</div>   
					
							<?php 
			   include("dbConfig.php");
                    $today = date('Y-m-d');
                    $month = date('m');
                   // $year = date("Y");
                    
                  $year_select=$_POST['year_select'];  // echo $year_select;
                  
                  
                    $year = $year_select;  echo $year;
			?>
					
					
					<!--div class="card">
						<div class="card-body">
							
							<ul class="nav nav-tabs nav-tabs-solid nav-justified">
		                       <li class="nav-item"><a class="nav-link a active" id="" href="hr_Comprehensive_reports1.php?lang=<?php echo $lang;?>&company_id=<?php echo $company_id;?>" ><?php echo "الشهر الحالي";?></a></li>
                               <li class="nav-item"><a class="nav-link a "  id="" href="hr_Comprehensive_reportsM.php?lang=<?php echo $lang;?>&company_id=<?php echo $company_id;?>" ><?php echo "ملخص";?></a></li>
                               
                            </ul>
						</div>
					</div-->
				
				 <form action="" method="post">
				
				<div class="row filter-row">
				   
						<div class="col-md-6 col-sm-6 col-lg-6 col-xl-3" clas="col-lg-4 col-sm-6 col-12"> 
					<div class="form-group form-focus select-focus focused">
						<!--<input type="date" value="" name="date_from" id="date_from" class="form-control" style="font-size:14px; font-weight:bold;" > -->
						<select name="year_select" id="year_select" value="" class="form-control" style="font-size:14px; font-weight:bold;">
						  <option value="2018">2018</option>
						    <option value="2019">2019</option>
						     <option value="2020">2020</option>
						     <option value="2021">2021</option>
						     
						    <option value="2022">2022</option>
						    <option value="2023">2023</option>
						    <option value="2024">2024</option>
						    <option value="2025">2025</option>
						    <option value="2026">2026</option>
						    <option value="2027">2027</option>
						     <option value="2027">2027</option>
						      <option value="2027">2028</option>
						       <option value="2027">2029</option>
						        <option value="2027">2030</option>
						       
						</select>
					<label class="focus-label">سنة</label>
				   	</div>
				</div>
						
						<!--div class="col-md-6 col-sm-6 col-lg-6 col-xl-3" clas="col-lg-4 col-sm-6 col-12"> 
						<div class="form-group form-focus select-focus focused">
						   <label class="focus-label">شهر</label>
							<select name="monthh" id="monthh" value="" class="form-control" style="font-size:14px; font-weight:bold;">
						    <option value="01">01</option>
						    <option value="02">02</option>
						    <option value="03">03</option>
						    <option value="04">04</option>
						    <option value="05">05</option>
						    <option value="06">06</option>
						    <option value="07">07</option>
						    <option value="08">08</option>
						    <option value="09">09</option>
						    <option value="10">10</option>
						    <option value="11">11</option>
						    <option value="12">12</option>
						</select>
							</div>
						</div-->

						
						
						
				<div class="col-md-6 col-sm-6 col-lg-6 col-xl-3" clas="col-lg-4 col-sm-6 col-12">  
							<div class="d-grid">
								<input type="submit" name="sav_btn" id="sav_btn" class="btn btn-success" value="بحث"> 
					</form>
					
							</div>
						</div>   			
						
						
						
                    </div>	
					
					
      </div>      
			
	
			
			
			
	    <!-- ============================================================ -->
                    
     <!-- ======================================table=target================================================================== -->
    
         	<div class="row" style="margin-right:20px;">      
                 <div class="card-header">
			     <h3 class="card-title mb-0">التوصـــــيل</h3>
				</div>  
					<?php $result_hunger_count = hangertarget_count($year,$month); ?> 
				
					<?php $result_jahezz = jaheztarget_sum($year,$month);  ?>
					<?php $result_chefz = chefztarget_sum($year,$month); ?>
					
					<?php $sum_target_packageee_td= pakagetarget_sum($year);?>
					
				
					
			  <?php
                    include("dbConfig.php");
                    
                    $result_hunger=0;
                    
                    $add_driver_all=0;
             
                  if($company_id=='all_company'){
                      
            $sql_cu="SELECT * FROM hr_employ_tbl where office_employ!='office_employee' AND company_id IN ('$ids')  and  (employ_stat='active_employ' or employ_stat='employ_action')  AND stop='0' AND deleted='0'  ORDER BY `hr_employ_tbl`.`createdDate_timee` DESC ";
                  }else{
            $sql_cu="SELECT * FROM hr_employ_tbl where office_employ!='office_employee' AND  company_id='$company_id'  and  (employ_stat='active_employ' or employ_stat='employ_action')  AND stop='0' AND deleted='0'  ORDER BY `hr_employ_tbl`.`createdDate_timee` DESC ";
                       }
         
                        $result_cu = $conn->query($sql_cu);
                        if ($result_cu->num_rows > 0) {
                          while($row_cu = $result_cu->fetch_assoc()) {
                         $modal_id=$row_cu['request_per_id'];  
                         $employ_id_d=$row_cu['employ_id'];
                         $id_num=$row_cu['id_num'];  //echo $id_num.'<br>';
                          $employ_target=$row_cu['employ_target']; 

					
					$result_hunger += hangertarget_sum($year_select,$id_num); 
					
					if($row_cu['employ_stat']=='active_employ'){$add_driver_all++;}
					
					
                          }}
					
					
					
					?> 
					
				
					
				
				<div class="col-md-12 d-flex" clas="col-md-12 col-lg-6 col-xl-4 d-flex">
				 <div class="card flex-fill">
				 <div class="card-body">

		<h4 class="card-title"><i class="fa fa-folder-open" aria-hidden="true"></i>الإيردات<span class="badge bg-inverse-warning ms-2"></span></h4>
	
	
    	<table class="table table-stripped mb-0 dataTable no-footer">
		 <thead>
		   <tr class="table-success">
		 <th>التفاصــــيل</th>
		  <th>جاهز</th>
		  <th>شفز</th>
		  <th>هنجر ستيشن</th>
		  <th>الطرود</th>
		 <!--th>الشحن</th>
		 <th>التخليص</th -->
		   </tr>
		  </thead>   
		 <tbody>
		 <tr> 
		
		 <td>عدد الطلبات</td>
		<td><h2 style="font-size:16px;"><?php echo  $result_jahezz['jahez_count_summ'];  ?></h2> </td>
		<td> <h2 style="font-size:16px;"><?php echo  $result_chefz['chefz_count_summ'];  ?></h2> </td>
		
		<td> <h2 style="font-size:16px;"><?php echo  $result_hunger_count['count_order_hungerr'];  ?> </h2></td>
	
		<td> الطرود </td>
	
		</tr>	
		
			 <tr> 
		 
		 <td>سعر التوصيل </td>
		<td><b style="color:#000;font-size:22px;"><?php echo  $result_jahezz['jahez_price'];  ?> </b> </td>
		<td> 
		<h2 style="font-size:16px;">Before /  <?php echo  $result_chefz['chfz_price'];  ?></h2> 
		<br><h2 style="font-size:16px;">After / <b style="color:#000;font-size:22px;"> <?php echo  $result_chefz['chfz_priceee3'];  ?><b></h2> 
		
		</td>
		
		<td> 	<b style="color:#000;font-size:22px;"><?php  echo  $result_hunger ; ?> </b></h2> </td>
	
		<td><b style="color:#000;font-size:22px;"><?php  echo  $sum_target_packageee_td ; ?> </b>  </td>
		
		
	<!--td><b style="color:#000;font-size:22px;"> <?php   
            $daenn_sh = 0;
            if($company_id=='all_company'){
                $sql_daily="SELECT * FROM daily_restriction_tbl where YEAR(document_date)='$year' and MONTH(document_date) = '$month' and company_id IN ('$ids') and  (account_number LIKE '040103%' or account_number LIKE '040103005%' or account_number LIKE '040101%')";
            }else{
                $sql_daily="SELECT * FROM daily_restriction_tbl where YEAR(document_date)='$year' and MONTH(document_date) = '$month' and company_id='$company_id' and  (account_number LIKE '040103%' or account_number LIKE '040103005%' or account_number LIKE '040101%')";
            }
            $result_daily = $conn->query($sql_daily);
               if ($result_daily->num_rows > 0) {
                            while($row_daily = $result_daily->fetch_assoc()) {
                                $daenn_sh += $row_daily["daen"];
                            
               }}
               echo $daenn_sh;
    ?>     </b>  </td>
    <td><b style="color:#000;font-size:22px;"> <?php   
            $daenn_t = 0;
            if($company_id=='all_company'){
                $sql_daily="SELECT * FROM daily_restriction_tbl where YEAR(document_date)='$year' and MONTH(document_date) = '$month' and company_id IN ('$ids') and  (account_number LIKE '040101%' or account_number LIKE '040103001%' or account_number LIKE '040102%')";
            }else{
                $sql_daily="SELECT * FROM daily_restriction_tbl where YEAR(document_date)='$year' and MONTH(document_date) = '$month' and company_id = '$company_id' and  (account_number LIKE '040101%' or account_number LIKE '040103001%' or account_number LIKE '040102%')";
            }
          
            $result_daily = $conn->query($sql_daily);
               if ($result_daily->num_rows > 0) {
                            while($row_daily = $result_daily->fetch_assoc()) {
                                $daenn_t += $row_daily["daen"];
                            
               }}
               echo $daenn_t;
    ?>  </b>  </td-->
			
	
		</tr>
		</tbody>
		</table>
	
	
	
	
									<div class="statistics">
									    
									    
									      	<!-- Add Department Modal -->
														<div class="row">
										   

											<div class="col-md-6 col-6 text-center">
												<div class="stats-box mb-4">
											<p>إجمالي عدد الطلبات </p>
		
										<h3><?php  $all_count_orders= $result_jahezz['jahez_count_summ']+ $result_chefz['chefz_count_summ']+ $result_hunger_count['count_order_hungerr'];  ?></h3>
										<b style="color:#000;font-size:22px;"><?php echo $all_count_orders; ?></b>
										
												</div>
											</div>
											<div class="col-md-6 col-6 text-center">
												<div class="stats-box mb-4">
													<p>إجمالي مبلغ التوصيل</p>
										
										<h3 style="color:red;">
							<?php //$all_sun_orders_price= $result_jahezz['jahez_price']+$result_chefz['chfz_priceee3']+$result_hunger+$sum_target_packageee_td+$daenn_sh+$daenn_t; 
							
							$all_sun_orders_price= $result_jahezz['jahez_price']+$result_chefz['chfz_priceee3']+$result_hunger+$sum_target_packageee_td; 
							
							?>	
							</h3>
							
								<b style="color:#000;font-size:22px;"><?php echo $all_sun_orders_price; ?></b>
											
											</div>
											</div>
											
										
									</div>

									</div>
							   </div>

								</div>
							</div>
						
				
                 
    
                   <!-- ======================================/table=target================================================================== --> 
              
              
       <!-- ======================================Masrooooooooooofat================================================================== -->
                    <?php $user_iddd=$urow['user_id'];  ?>
                    
                    <?php $company_iddd=$_GET['company_id']; 
                    
                    //echo $company_iddd; ?>
                    
                    
					<?php $monthly_gasoline_consumptionnn=monthly_gasoline_consumption($month,$year) ?> 
				
					<?php $sum_all_salaryy = monthly_get_sum_salary($month,$year,$user_iddd,$company_iddd)  ?>
					
					<?php $add_employ_all_gz=$sum_all_salaryy['add_employ_all']; ?>
					
					<?php $add_employ_all_foreignn=$sum_all_salaryy['add_employ_all_foreign']; ?>
					
					<?php  $dayyy_yowm=date('d'); ?>
				

				<!--div class="col-md-12 d-flex" clas="col-md-12 col-lg-6 col-xl-4 d-flex">
				 <div class="card flex-fill">
				 <div class="card-body">

		<h4 class="card-title"><i class="fa fa-briefcase" aria-hidden="true"></i>    المصروفات<span class="badge bg-inverse-warning ms-2"></span></h4>
	
	
    	<table class="table table-stripped mb-0 dataTable no-footer">
		 <thead>
		   <tr class="table-danger">
		 <th>التفاصــــيل</th>
		 <th> عدد الموظفين</th>
		  <th>الرواتب</th>
		  <th>البنزين</th>
		  <th>الإقامات +التأمين الطبي</th>
		  
		  <td>الموردين </td>
	      <td>رسوم </td>
	      <td>قطع الغيار </td>
	      <td>صيانة واصلاح </td>
		  
	
		   </tr>
		  </thead>   
		 <tbody>
		 <tr> 
		
		 <td>____ </td>
		 
		 
		 <td>  </td>
		<td><h2 style="font-size:16px;">Month-Sal   /<?php $sum_sal_all_empppp=$sum_all_salaryy['salary_sum_driverrr2']; echo $sum_sal_all_empppp;  ?></h2> </td>
		<td> <h2 style="font-size:16px;"><?php //echo  $result_chefz['chefz_count_summ'];  ?></h2> </td>
		
		<td> <h2 style="font-size:16px;"dir="ltr">1000/30*<?php echo  $add_employ_all_foreignn  ?>*<?php echo $dayyy_yowm; ?> </h2></td>
	
		
	<td> </td>
	<td> </td>
	<td> </td>
	<td> </td>
		</tr>	
		
			 <tr> 
		 
		 <td>____  </td>
		 
		<td><b style="color:#000;font-size:22px;">Emp All <?php echo $add_employ_all_gz; ?> </b>  </td> 
		 
     
 	<td> SAL	<b style="color:#000;font-size:22px;"><?php  $sum_all_salaryy_to_day=($sum_sal_all_empppp/30)*$dayyy_yowm;  echo  round($sum_all_salaryy_to_day,2) ; ?> </b></h2> *<?php echo $dayyy_yowm; ?> </td>
     		<td> 
	
		ppp<h2 style="font-size:16px;"><b style="color:#000;font-size:22px;"> <?php echo  $monthly_gasoline_consumptionnn;  ?><b></h2> 
		
		</td>
     	
     	
     	
		
		<td><b style="color:#000;font-size:22px;"><?php $id_and_medical=1000/30*$add_employ_all_foreignn*$dayyy_yowm; ?>  <?php echo round($id_and_medical,2); ?> </b> </td>
	
	<td>
	<?php 	
	$maden_mord = 0;
	$daenn_mord = 0;
	$raseed_mord = 0;
            if($company_id=='all_company'){
                $sql_daily="SELECT * FROM daily_restriction_tbl where YEAR(document_date)='$year' and MONTH(document_date) = '$month' and company_id IN ('$ids') and  (account_number LIKE '020101%')";
            }else{
                $sql_daily="SELECT * FROM daily_restriction_tbl where YEAR(document_date)='$year' and MONTH(document_date) = '$month' and company_id='$company_id' and  (account_number LIKE '020101%')";
            }
            $result_daily = $conn->query($sql_daily);
               if ($result_daily->num_rows > 0) {
                            while($row_daily = $result_daily->fetch_assoc()) {
                                $maden_mord += $row_daily["maden"];
								$daenn_mord += $row_daily["daen"];
								
                            
               }}
			   $raseed_mord = $maden_mord - $daenn_mord;
               echo $raseed_mord; 
			   ?>
			   </td>
	<td><?php 	
	$maden_rsom = 0;
	$daenn_rsom = 0;
	$raseed_rsom = 0;
            if($company_id=='all_company'){
                $sql_daily="SELECT * FROM daily_restriction_tbl where YEAR(document_date)='$year' and MONTH(document_date) = '$month' and company_id IN ('$ids') and  (account_number LIKE '0301%')";
            }else{
                $sql_daily="SELECT * FROM daily_restriction_tbl where YEAR(document_date)='$year' and MONTH(document_date) = '$month' and company_id='$company_id' and  (account_number LIKE '0301%')";
            }
            $result_daily = $conn->query($sql_daily);
               if ($result_daily->num_rows > 0) {
                            while($row_daily = $result_daily->fetch_assoc()) {
                                $maden_rsom += $row_daily["maden"];
								$daenn_rsom += $row_daily["daen"];
								
                            
               }}
			   $raseed_rsom = $maden_rsom - $daenn_rsom;
               echo $raseed_rsom; 
			   ?> </td>
	<td><?php 	
	$maden_g = 0;
	$daenn_g = 0;
	$raseed_g = 0;
            if($company_id=='all_company'){
                $sql_daily="SELECT * FROM daily_restriction_tbl where YEAR(document_date)='$year' and MONTH(document_date) = '$month' and company_id IN ('$ids') and  (account_number LIKE '030214%')";
            }else{
                $sql_daily="SELECT * FROM daily_restriction_tbl where YEAR(document_date)='$year' and MONTH(document_date) = '$month' and company_id='$company_id' and  (account_number LIKE '030214%')";
            }
            $result_daily = $conn->query($sql_daily);
               if ($result_daily->num_rows > 0) {
                            while($row_daily = $result_daily->fetch_assoc()) {
                                $maden_g += $row_daily["maden"];
								$daenn_g += $row_daily["daen"];
								
                            
               }}
			   $raseed_g = $maden_g - $daenn_g;
               echo $raseed_g; 
			   ?></td>
	<td>
	<?php 	
	$maden_s = 0;
	$daenn_s = 0;
	$raseed_s= 0;
            if($company_id=='all_company'){
                $sql_daily="SELECT * FROM daily_restriction_tbl where YEAR(document_date)='$year' and MONTH(document_date) = '$month' and company_id IN ('$ids') and  (account_number LIKE '030213%')";
            }else{
                $sql_daily="SELECT * FROM daily_restriction_tbl where YEAR(document_date)='$year' and MONTH(document_date) = '$month' and company_id='$company_id' and  (account_number LIKE '030213%')";
            }
            $result_daily = $conn->query($sql_daily);
               if ($result_daily->num_rows > 0) {
                            while($row_daily = $result_daily->fetch_assoc()) {
                                $maden_s += $row_daily["maden"];
								$daenn_s += $row_daily["daen"];
								
                            
               }}
			   $raseed_s = $maden_s - $daenn_s;
               echo $raseed_s; 
			   ?>
	</td>
	
	
		</tr>
		</tbody>
		</table>
	
	
	
	
									<div class="statistics">
									    
									    
														<div class="row">
										   

											<div class="col-md-12 col-6 text-center">
												<div class="stats-box mb-4">
													<p>إجمالي المصروفات </p>
										
										<h3 style="color:red;">
							<?php $total_cost_all=$sum_all_salaryy_to_day+$monthly_gasoline_consumptionnn+$id_and_medical+$raseed_mord+$raseed_rsom+$raseed_g+$raseed_s; ?>	
							</h3>
							
								<b style="color:#000;font-size:22px;"><?php echo round($total_cost_all,2); ?></b>
											
											</div>
											</div>
											
										
									</div>
							  
									</div>
							   </div>

								</div>
							</div-->
						
				
                 
    
                   <!-- ======================================/Masrooooooooooofat=================================================================== --> 
              
                           
              
              
               <!-- ======================================Raseeeeeeeeed=================================================================== --> 
            
            <!--div class="row">     
            <div class="col-md-6 d-flex" clas="col-md-12 col-lg-6 col-xl-4 d-flex">
				 <div class="card flex-fill">
				 <div class="card-body">

		<h4 class="card-title"><i class="fa fa-calculator" aria-hidden="true"></i>    الرصـــــــــيد<span class="badge bg-inverse-warning ms-2"></span></h4>

									<div class="statistics">
									    
									    
											<div class="row">
											  <?php $raseed_all=$all_sun_orders_price-$total_cost_all; ?>
											  
											<div class="col-md-12 col-6 text-center">
												<?php if($raseed_all<=0){ ?>
												<div class="stats-box mb-4"  style="background-color:#f8d7da;">
												<?php }else{ ?>
										<div class="stats-box mb-4"  style="background-color:#d1e7dd;">
												<?php } ?>
												
													<p>الرصــــــــــــيد</p>
										<h3 style="color:red;">
						            	</h3>
							       	<b style="color:#000;font-size:22px;"><?php echo round($raseed_all,2); ?></b>
											</div>
											</div>
											
										
									</div>
							
								  
									</div>
							   </div>

								</div>
							</div>
						</div>
				
                 
            </div-->
             
             
             <!-- ======================================Raseeeeeeeeed=================================================================== --> 
    
                     
			</div>
		</div>
		
		
		<!-- ============================================================ -->
		
				</div>
			</div>
		</div>
		
		
	<?php include("../setting.php"); ?>
	    <!-- /sitting -->

	<!-- Footer -->
		<?php include("../footer.php"); ?>
		<!-- /Footer -->
		<!-- jQuery -->
		
			 <!-- jQuery -->
        <script src="../../assets/js/jquery-3.6.0.min.js"></script>

        <!-- Feather Icon JS -->
        <script src="../../assets/js/feather.min.js"></script>

        <!-- Slimscroll JS -->
        <script src="../../assets/js/jquery.slimscroll.min.js"></script>

        <!-- Datatable JS -->
        <script src="../../assets/js/jquery.dataTables.min.js"></script>
        <script src="../../assets/js/dataTables.bootstrap4.min.js"></script>
        
        <!-- Bootstrap Core JS -->
        <script src="../../assets/js/bootstrap.bundle.min.js"></script>

        <!-- Custom JS -->
        <script src="../../assets/js/script.js"></script>
      

		 <!-- Theme Settings JS -->
		<script src="../../assets/js/layout.js"></script>
		<script src="../../assets/js/theme-settings.js"></script>

		<!-- Custom JS -->
		<!--script src="../../assets/js/app.js"></script-->
		
		<script src="../script_lang.js"></script> 
		
		  <!-- Alertify JS -->
		<script src="../../assets/plugins/alertify/alertify.min.js"></script>
		<!--script src="../../assets/plugins/alertify/custom-alertify.min.js"></script-->
        <!-- /Alertify JS -->
		
		
		
	<script>
        $(document).ready(function(){
            $("#type").change(function(){
        var id = $('#type').find(":selected").val();
       
        $.ajax({
          type : "POST",
          url : "Show_accounting_period.php",
          data: {
            id:id,		
          },
          success : function(data){
            $("#show_period").html(data);
          }
      });
            });
        });
    </script>
    
    
    
	</body>
</html>







