<?php
include 'cp_header.php'; 
/****************************************** صفحة لوائح الجمعية ***************************************/ 

?>
	
	<!-- هيدر الصفحات  الداخلية-->
	<?php include('inside_header.php'); ?>
    <!-- هيدر الصفحات  الداخلية-->
	
  <!-- ================ بداية السيكشن ================= -->
  <section class="contact-section" style='padding-bottom:0px;background:var(--white_bg);padding-bottom:100px;overflow:hidden;'>
	<div class="container-fluid p-0"  >


      <div class="row " style='padding-bottom:0px;' >
	 
	    <!-- ================ صورة تعبيرية للقسم ================= --> 
		<div class="col-lg-12 backcolor_3 page_head page_title_background" >
			<span class='page_title  text-center'  >
			
			<img  style='width: 150px;margin-bottom: 20px;' src='<?php echo $img_path; ?>files.webp' alt='لوائح الجمعية' />
			<br>
			<h1 style='color:var(--white)'>لوائح الجمعية</h1>
			
			
			</span>
		</div>
    

		<!-- ================ اية قرآنية ================= --> 
		<?php //include 'aya.php'; ?>


		
		
		<div class="col-lg-12 contact_padding" style='background:var(--white_bg);margin-bottom:0px' >
		
		<div class='container'>
		<div class="row">
		
		<div class='col-md-12'>
			
		<!-- ================ عنوان الصقحة ================= --> 
		<div class="page_title_right_white"> اللوائح المنظمة</div>
			<div class="right_lines"></div>
			<div class="right_lines l2"></div>
		
		</div>
		
		
		
		
		<?php  
			$roles_query="select `title`,`date`,`files` from roles where active=1 order by `priority` desc , `sort` desc , id asc ";
			$roles_result=mysqli_query($conn,$roles_query);	

			
		    /*بداية التكرار */  
			while($roles_fetch = mysqli_fetch_array($roles_result)) {
   		 $roles_fetch = clean_array($roles_fetch);
			  
		?>
				<div class="col-lg-6 col_border" style='padding:0px;'>


				<div class="row" style='padding:20px;'>

						<div class='col col-9'>
							<div class='table'>
								<div class='table_cell' style='height:50px;' class="media-body"><?php echo $roles_fetch['title']?></div>
							</div>
						</div>
						
						<div class='col col-3'>
							<div class='table'>
								<a class='table_cell ' style='height:50px;' target='_blank' href='<?php echo $img_path."roles/".$roles_fetch['files']?>' class="download_icon"  ><div class='table_btn'> تحميل <i class="las la-download"></i></div></a>
							</div>
						</div>
						
					
				</div>
			

			</div>
		  <?php }?>
		  
		  
	
		</div>
	   </div>
	  </div>
	 </div>
	</div>
</section>

 

	
	

  
 
<!-- ================ صفحة الفوتر ================= --> 
 <?php include'cp_footer.php'; ?>