<?php
	include_once("includes/paginator.php");
	include_once("includes/paginator_html.php");   
?>
<?php 
	if(empty($_GET['s_id']) && !empty($_GET['c_id'])){ 
		  $c_id = $_GET['c_id'];
		  $moreP = '&c_id='.$c_id;
		  $s_shop ='s_id='.mysql_real_escape_string($c_id).' OR';
	}else if(!empty($_GET['s_id']) && empty($_GET['c_id'])){ 
		  $c_id = $_GET['s_id'];
		  $moreP = '&c_id='.$c_id;
		  $s_shop ='s_id='.mysql_real_escape_string($c_id).' OR';
	}else if(!empty($_GET['s_id']) && !empty($_GET['c_id'])){ 
		  $s_id = $_GET['s_id'];
		  $c_id = $_GET['c_id'];
		  $moreP = '&c_id='.$c_id;
		  $s_shop ='s_id='.mysql_real_escape_string($c_id).' OR';
	}else{
		  $cs_id_res = mysql_query("Select * FROM tbl_shop ORDER BY id ASC");
		  $cs_id = ($cs_id_res && mysql_num_rows($cs_id_res) > 0) ? mysql_fetch_array($cs_id_res) : null;
	      $c_id = (is_array($cs_id) && isset($cs_id['id'])) ? $cs_id['id'] : '1';
	      $moreP = '&c_id='.$c_id;
		  $s_shop ='s_id='.mysql_real_escape_string($c_id).' OR';
	}
	$shop_title = 'ទំនិញគ្រប់ប្រភេទ';
	$st_res = mysql_query("Select * FROM tbl_shop WHERE id='".mysql_real_escape_string($c_id)."'"); 
	$st = ($st_res && mysql_num_rows($st_res) > 0) ? mysql_fetch_array($st_res) : null;
	if (is_array($st) && !empty($st['name'])) {
		$shop_title = $st['name'];
	} else {
		$st_cate_res = mysql_query("Select * FROM tbl_cate_clothes WHERE id='".mysql_real_escape_string($c_id)."'");
		$st_cate = ($st_cate_res && mysql_num_rows($st_cate_res) > 0) ? mysql_fetch_array($st_cate_res) : null;
		if (is_array($st_cate) && !empty($st_cate['name'])) {
			$shop_title = $st_cate['name'];
		}
	}
?>
<div class="cover_con">
		 <div id="hot_news" style="background: none; text-align: center; float: left; width: auto; height: auto; border-bottom: 1px solid #fb90f7; font-size: 20px;"><?php echo htmlspecialchars($shop_title); ?></div>
		 <div id="box_search">
		     <div class="search">
			    <script type="text/javascript" >
					function isValid() {          
					 var search=document.getElementById("txtSearch");           
					 if(search.value==''){
						alert ('Please Input product code or price!');
						document.getElementById('txtSearch').focus();
						return false;
					 }
					}
				</script>
				<form name="fn" id="imageform" method="POST" enctype="multipart/form-data" action="?p=clothes<?php echo $moreP; ?>&search=search_srv#txt" onSubmit="return isValid();">
					<input type="hidden" name="p" value="clothes">
					<input type="text" name="txtSearch" id="txtSearch" class="formText required" placeholder="Enter product code or price..." />
					<input type="submit" id="s_btn" value="&nbsp;"/>
				</form>
				
            </div>
		 </div>
		 
		 <div class="clear" style="height: 0px;"></div>
    <div id="srv_cate">
	    <div id="shadow_m"></div>
	    <div id="mt"></div>
	    <div id="mc">
		<div class="clear" style="height: 1px;"></div>	
		<?php 
		   if(empty($_GET['s_id']) && !empty($_GET['c_id'])){ 
		      $new_c_id = $_GET['c_id'];
		   }else if(!empty($_GET['s_id']) && empty($_GET['c_id'])){ 
		      $new_c_id = $_GET['s_id'];
		   }else if(!empty($_GET['s_id']) && !empty($_GET['c_id'])){ 
		      $new_c_id = $_GET['c_id'];
		   }else{
		       $cs_id = mysql_fetch_array(mysql_query("Select * FROM tbl_cate_clothes ORDER BY id ASC"));
			   $new_c_id = $cs_id['id'];
		   }
		   $sql = mysql_query("Select * FROM tbl_cate_clothes WHERE par_id = '0' AND s_id='".mysql_real_escape_string($new_c_id)."'");
		   $sub ='';
		   if(!empty($_GET['sub'])){ 
		      $sub = $_GET['sub'];
		   }
		   while($row_shop=mysql_fetch_array($sql)){     
		   
		?>
					   <a href="?p=clothes&s_id=<?php echo $row_shop['s_id']; ?>&sub=<?php echo $row_shop['id']; ?>&c_id=<?php echo $new_c_id; ?>&cc_id=<?php echo $row_shop['id']; ?>#txt" style="text-decoration: none;">
						   <div id="cc_shop" style="background: none; <?php if($row_shop['id']== $sub){ ?> color: #da0cc4; <?php } ?>">			   
								<?php echo $row_shop['name']; ?>
								<div class="clear" style="height: 2px;"></div>	
								<?php echo $row_shop['name_kh']; ?>		   		
						   </div>
					   </a>
					   <div class="clear" style="height: 4px;"></div>
					   <!--============== Show Sub Category When click Main Category==============--->
							   <?php				   
								  $sql1 = mysql_query("Select * FROM tbl_cate_clothes WHERE par_id ='".mysql_real_escape_string($sub)."' AND par_id ='".mysql_real_escape_string($row_shop['id'])."'");
								  while($row_shop1=mysql_fetch_array($sql1)){  
							   ?> 
							   <a href="?p=clothes&s_id=<?php echo $row_shop['s_id']; ?>&sub=<?php echo $sub; ?>&cc_id=<?php echo $row_shop1['id']; ?>#txt" style="text-decoration: none;">
								   <div id="sub_cc_shop" style="background: none; <?php if($row_shop1['id']== $_GET['cc_id']){ ?> color: #028d08; <?php } ?>">			   
										<?php echo $row_shop1['name']; ?>
										<div class="clear" style="height: 2px;"></div>	
										<?php echo $row_shop1['name_kh']; ?>		   		
								   </div>
							   </a>
							   <div class="clear" style="height: 4px;"></div>
                      <!--============== End Show Sub Category When click Main Category==============--->							   
		<?php }} ?>   
		</div>
	    <div id="mb"></div>
	</div>
	
	<div id="clothes_content" style="margin-top: 14px;">
	
	<?php if($action == '0'){ ?>
				 <div id="cover_clothes">
				    <div id="_clothes">
				 
				   <?php 
				   
				         if($search == '0'){
									   if(empty($_GET['cc_id']) && !empty($_GET['c_id'])){ 
										   $new_id = $_GET['c_id'];
										   //echo '<script>alert("'.$new_id.'");</script>';	
										   $achs=mysql_query("SELECT * FROM tbl_clothes WHERE s_id='".mysql_real_escape_string($new_id)."' OR cid='".mysql_real_escape_string($new_id)."'");
										   $num_rows = $achs ? mysql_num_rows($achs) : 0;
												if(isset($_GET['page']))
													$s= $_GET['page'];
												else
											   $s="1";
											   $param ="p=clothes&c_id=".$new_id."";
											   $a = new Paginator_html($s,$num_rows, $param);
											   $a->set_Limit(24);
											   $a->set_Links(2);
											   $limit1 = $a->getRange1();
											   $limit2 = $a->getRange2();
										   $sql_clothes = mysql_query("Select * FROM tbl_clothes WHERE s_id='".mysql_real_escape_string($new_id)."' OR cid='".mysql_real_escape_string($new_id)."' ORDER BY id DESC LIMIT $limit1, $limit2");
									   }else if(!empty($_GET['cc_id']) && empty($_GET['c_id'])){ 
										   $new_id = $_GET['cc_id'];
										   //echo '<script>alert("'.$new_id.'");</script>';	
										   $achs=mysql_query("SELECT * FROM tbl_clothes WHERE cid='".mysql_real_escape_string($new_id)."'");
										   $num_rows = mysql_num_rows($achs);
												if(isset($_GET['page']))
													$s= $_GET['page'];
												else
											   $s="1";
											   $param ="p=clothes&cc_id=".$new_id."";
											   $a = new Paginator_html($s,$num_rows, $param);
											   $a->set_Limit(24);
											   $a->set_Links(2);
											   $limit1 = $a->getRange1();
											   $limit2 = $a->getRange2();
										   $sql_clothes = mysql_query("Select * FROM tbl_clothes WHERE cid='".mysql_real_escape_string($new_id)."' ORDER BY id DESC LIMIT $limit1, $limit2");
									   }else{
										   $cs_id = mysql_fetch_array(mysql_query("Select * FROM tbl_shop ORDER BY id ASC"));
										   $cs_id1 = mysql_fetch_array(mysql_query("Select * FROM tbl_cate_clothes ORDER BY id ASC"));
										   $new_id = $cs_id['id'];		
										   $new_id1 = $cs_id1['id'];		
										   //echo '<script>alert("'.$new_id.'");</script>';			   
										   $achs=mysql_query("SELECT * FROM tbl_clothes WHERE s_id ='".mysql_real_escape_string($new_id)."'");
										   $num_rows = mysql_num_rows($achs);
												if(isset($_GET['page']))
													$s= $_GET['page'];
												else
											   $s="1";
											   $param ="p=clothes";
											   $a = new Paginator_html($s,$num_rows, $param);
											   $a->set_Limit(24);
											   $a->set_Links(2);
											   $limit1 = $a->getRange1();
											   $limit2 = $a->getRange2();
										   $sql_clothes = mysql_query("Select * FROM tbl_clothes WHERE s_id ='".mysql_real_escape_string($new_id)."' ORDER BY id DESC LIMIT $limit1, $limit2");			   
									   }   
						}else{
						
						
						        if(isset($_POST['txtSearch'])){
										   $txtSearch = $_POST['txtSearch'];		   
									    }
										if(isset($_GET['s'])){
										   $txtSearch = $_GET['s'];	
										}
										$page = '';
										if(isset($_GET['page'])){
										   $page = '&page='.$_GET['page'];	
										}
										$serverPath = getBaseUrl();
										//echo '<script>alert("'.$serverPath.'");</script>';
										$proUrl = str_replace("/Site/", "/Site/?p=clothes".$moreP."&search=search_srv&s=".$txtSearch.$page."#txt", $serverPath);
										
								?>
								 <script type="text/javascript">		
									var url = '<?php echo $proUrl; ?>';	
									//alert(url);									
									window.history.pushState({path:url},'',url);                               								
								 </script>
								<?php		
									  $achs=mysql_query("SELECT * FROM tbl_clothes WHERE s_id='".mysql_real_escape_string($c_id)."' AND (code_id LIKE '%".trim($txtSearch)."%' OR price LIKE '%".trim($txtSearch)."%')");
									  $num_rows = $achs ? mysql_num_rows($achs) : 0;
										if(isset($_GET['page']))
											$s= $_GET['page'];
										else
									  $s="1";
									  $param ="p=clothes".$moreP."&search=search_srv&s=".$txtSearch."";
									  $a = new Paginator_html($s,$num_rows, $param);
									  $a->set_Limit(24);
									  $a->set_Links(2);
									  $limit1 = $a->getRange1();
									  $limit2 = $a->getRange2();
									  //End Select Paging 
									  $sql_clothes = mysql_query("Select * From tbl_clothes WHERE s_id='".mysql_real_escape_string($c_id)."' AND (code_id LIKE '%".trim($txtSearch)."%' OR price LIKE '%".trim($txtSearch)."%') ORDER BY id DESC LIMIT $limit1, $limit2");
						
						}	
										   
					   $i=1;
					   $new_id_val = isset($new_id) ? $new_id : '';
					   $res_count = mysql_query("Select * FROM tbl_clothes WHERE mcid='".mysql_real_escape_string($new_id_val)."'");
					   $count_rows = $res_count ? mysql_num_rows($res_count) : 0; 	   
				?>
				
				<!--============== Load Product By Main Category ======================-->
				<?php		
				if(!empty($_GET['cc_id']) && !empty($_GET['c_id'])){ 
							   $new_id = $_GET['cc_id'];
							   //echo '<script>alert("'.$_GET['cc_id'].'");</script>';	
							   $a1=mysql_query("SELECT * FROM tbl_cate_clothes WHERE par_id !='0' AND par_id='".mysql_real_escape_string($_GET['cc_id'])."' ORDER BY id DESC");
							   //while($ff=mysql_fetch_array($a1)){
								   //$f = $ff['id'];
								   //echo '<script>alert("'.$f.'");</script>';	
								   $achs=mysql_query("SELECT * FROM tbl_clothes WHERE mcid='".mysql_real_escape_string($new_id)."'");
								   $num_rows = mysql_num_rows($achs);
										if(isset($_GET['page']))
											$s= $_GET['page'];
										else
									   $s="1";
									   $param ="p=clothes&c_id=".$_GET['c_id']."&cc_id=".$new_id."";
									   $a = new Paginator_html($s,$num_rows, $param);
									   $a->set_Limit(24);
									   $a->set_Links(2);
									   $limit1 = $a->getRange1();
									   $limit2 = $a->getRange2();
								   $sql_clothes = mysql_query("Select * FROM tbl_clothes WHERE mcid='".mysql_real_escape_string($new_id)."' ORDER BY id DESC LIMIT $limit1, $limit2");   
								   $count_rows = mysql_num_rows(mysql_query("Select * FROM tbl_clothes WHERE mcid='".mysql_real_escape_string($new_id)."'"));   
				        
				?>
						  <?php if($num_rows > 0){ ?>  
						  <?php if($num_rows > 24){ ?>  
									<div class="clear" style="height: 0px;"></div> 							
										<table><tr><td>
										  <span class="as" style="color: #ff0000; font-weight: bold; font-family: Arial; font-size: 12px;"><?php $a->first(); ?><?php $a->previousNext(); ?><?php $a->Last(); ?></span>                         
									   </td></tr></table>
									<div class="clear" style="height: 15px;"></div>
									<div class="clear" style="height: 10px;"></div><div id="line_cover_clothes"></div><div class="clear" style="height: 2px;"></div> 
									<?php } ?>
									 
							   <?php		  
									   while($row_clothes = mysql_fetch_array($sql_clothes)){
									   if($i%4 <> 0){ 
							   ?>
									 <div id="box_clothes"><a href="?p=clothes&s_id=<?php echo $c_id; ?>&id_detail=<?php echo $row_clothes['id']; ?>&sub=<?php echo $row_clothes['mcid']; ?>&cc_id=<?php echo $row_clothes['cid']; ?>&action=cl_detail#txt"><?php if($row_clothes['status']=='on'){ ?><div id="new_clothes"></div><?php } ?><?php echo'<div id="img_clothes" style="background:url(\'images/clothes/'.$row_clothes['image'].'\') no-repeat center center;"></div>'; ?></a>
										 <div class="clear" style="height: 6px;"></div>	
										 <?php echo $row_clothes['code_id']; ?>
										 <div class="clear" style="height: 0px;"></div>	
										 <span>$<?php echo $row_clothes['price']; ?></span>
									 </div>
								 <?php }else{ ?>
										 <div id="box_clothes"><a href="?p=clothes&s_id=<?php echo $c_id; ?>&id_detail=<?php echo $row_clothes['id']; ?>&sub=<?php echo $row_clothes['mcid']; ?>&cc_id=<?php echo $row_clothes['cid']; ?>&action=cl_detail#txt"><?php if($row_clothes['status']=='on'){ ?><div id="new_clothes"></div><?php } ?><?php echo'<div id="img_clothes" style="background:url(\'images/clothes/'.$row_clothes['image'].'\') no-repeat center center;"></div>'; ?></a>
											 <div class="clear" style="height: 6px;"></div>	
											 <?php echo $row_clothes['code_id']; ?>
											 <div class="clear" style="height: 0px;"></div>	
											 <span>$<?php echo $row_clothes['price']; ?></span>
										 </div> <div class="clear"></div><div id="line_cover_clothes"></div>
								 
								<?php } ?>
								<?php $i++; } ?>
								
						  <?php //} ?>
						  <?php if($num_rows > 24){?>  
									<div class="clear" style="height: 2px;"></div> 							
										<table><tr><td>
										  <span class="as" style="color: #ff0000; font-weight: bold; font-family: Arial; font-size: 12px;"><?php $a->first(); ?><?php $a->previousNext(); ?><?php $a->Last(); ?></span>                         
									   </td></tr></table>
									<div class="clear" style="height: 20px;"></div>
						 <?php }}else{ ?>
						 
						<img src="images/no_product.jpg" style="margin-top: 120px; margin-left: 150px;" />
						 
				  <!--============== End Load Product By Main Category ====================-->
				  <?php }}else{ ?>
				  
				  <!--============== Load Product By Sub Category =========================-->
				                <?php if($num_rows > 0){ ?>   
								<?php if($num_rows > 24){ ?>  
									<div class="clear" style="height: 0px;"></div> 							
										<table><tr><td>
										  <span class="as" style="color: #ff0000; font-weight: bold; font-family: Arial; font-size: 12px;"><?php $a->first(); ?><?php $a->previousNext(); ?><?php $a->Last(); ?></span>                         
									   </td></tr></table>
									<div class="clear" style="height: 25px;"></div>
									<div id="line_cover_clothes"></div>
									<div class="clear" style="height: 2px;"></div>
									<?php } ?>					
							   <?php		  
									   while($row_clothes = mysql_fetch_array($sql_clothes)){
									   if($i%4 <> 0){ 
							   ?>
									 <div id="box_clothes"><a href="?p=clothes&s_id=<?php echo $c_id; ?>&id_detail=<?php echo $row_clothes['id']; ?>&sub=<?php echo $row_clothes['mcid']; ?>&cc_id=<?php echo $row_clothes['cid']; ?>&action=cl_detail#txt"><?php if($row_clothes['status']=='on'){ ?><div id="new_clothes"></div><?php } ?><?php echo'<div id="img_clothes" style="background:url(\'images/clothes/'.$row_clothes['image'].'\') no-repeat center center;"></div>'; ?></a>
										 <div class="clear" style="height: 6px;"></div>	
										 <?php echo $row_clothes['code_id']; ?>
										 <div class="clear" style="height: 0px;"></div>	
										 <span>$<?php echo $row_clothes['price']; ?></span>
									 </div>
								 <?php }else{ ?>
								
										 <div id="box_clothes"><a href="?p=clothes&s_id=<?php echo $c_id; ?>&id_detail=<?php echo $row_clothes['id']; ?>&sub=<?php echo $row_clothes['mcid']; ?>&cc_id=<?php echo $row_clothes['cid']; ?>&action=cl_detail#txt"><?php if($row_clothes['status']=='on'){ ?><div id="new_clothes"></div><?php } ?><?php echo'<div id="img_clothes" style="background:url(\'images/clothes/'.$row_clothes['image'].'\') no-repeat center center;"></div>'; ?></a>
											 <div class="clear" style="height: 6px;"></div>	
											 <?php echo $row_clothes['code_id']; ?>
											 <div class="clear" style="height: 0px;"></div>	
											 <span>$<?php echo $row_clothes['price']; ?></span>
										 </div> <div class="clear"></div><div id="line_cover_clothes"></div>
								 
								<?php } ?>
						   
									<?php $i++; } ?>
									
									
										<?php if($num_rows > 24){ ?>  
										<div class="clear" style="height: 2px;"></div> 							
											<table><tr><td>
											  <span class="as" style="color: #ff0000; font-weight: bold; font-family: Arial; font-size: 12px;"><?php $a->first(); ?><?php $a->previousNext(); ?><?php $a->Last(); ?></span>                         
										   </td></tr></table>
										<div class="clear" style="height: 20px;"></div>
										<?php } ?>
				   <!--============ End Load Product By Sub Category =========================-->
                   <?php }else{ ?>   				   
				          <img src="images/no_product.jpg" style="margin-top: 120px; margin-left: 150px;" />
				   <?php }} ?>
				   <div class="clear"></div> 
				    </div>
					<div class="clear" style="height: 40px;"></div> 
					<?php 
					   $adv_cleft=mysql_query("Select * From tbladvertise WHERE type='cleft'"); 
					   ?>			  
					   <?php while($row_adv_cleft=mysql_fetch_array($adv_cleft)){ 
							if(!empty($row_adv_left['link'])){
								echo '<a href="'.$row_adv_cleft['link'].'" target="_blank"><div id="adv_cover_clothes" style="background: url(\'images/ads/'.$row_adv_cleft['image'].'\') no-repeat center center;"></div></a>';
								}else{
									echo '<div id="adv_cover_clothes" style="background: url(\'images/ads/'.$row_adv_cleft['image'].'\') no-repeat center center;"></div>';
								}
							} 
					?>				
				   
				 </div>
				 <div id="adv_clothes">				     
				  <?php 
					   $adv_cright=mysql_query("Select * From tbladvertise WHERE type='cright'"); 
				   ?>			  
				   <?php while($row_adv_cright=mysql_fetch_array($adv_cright)){ 
						if(!empty($row_adv_right['link'])){
							echo '<a href="'.$row_adv_cright['link'].'" target="_blank"><div id="ads_img1" style="background: url(\'images/ads/'.$row_adv_cright['image'].'\') no-repeat center center;"></div></a>';
							}else{
								echo '<div id="ads_img1" style="background: url(\'images/ads/'.$row_adv_cright['image'].'\') no-repeat center center;"></div>';
							}
						} 
				  ?>					 
					 <div class="clear" style="height: 2px;"></div> 
				 </div>
		 <?php }else if($action == 'cl_detail' || isset($_GET['id_detail'])){ 
		     $id_detail = isset($_GET['id_detail']) ? $_GET['id_detail'] : (isset($_GET['c_id']) ? $_GET['c_id'] : '');
			 if(!empty($id_detail)){
			 $row_cl_detail = mysql_fetch_array(mysql_query("Select * From tbl_clothes WHERE id='".mysql_real_escape_string($id_detail)."'"));
			 $sql_cl_more_img = mysql_query("Select * From tbl_moreimages WHERE aid='".mysql_real_escape_string($id_detail)."'");
			 $current_share_url = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
			 
			 $cl_img_detail = !empty($row_cl_detail['image']) && file_exists("images/clothes/" . $row_cl_detail['image']) 
				? "images/clothes/" . $row_cl_detail['image'] 
				: (!empty($row_cl_detail['image']) && file_exists("images/clothes/b/" . $row_cl_detail['image']) 
					? "images/clothes/b/" . $row_cl_detail['image'] 
					: "images/photo/p1.jpg");
		 ?>
		    <div style="margin-left: 10px; margin-top: 10px; margin-bottom: 15px;">
		        <img src="<?php echo $cl_img_detail; ?>" alt="Product Detail" style="max-width: 320px; width: 100%; height: auto; display: block; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,0.2); margin-bottom: 12px;" />
				<a href="https://www.facebook.com/sharer/sharer.php?u=<?php echo urlencode($current_share_url); ?>" target="_blank" onclick="window.open(this.href, 'facebook-share-dialog', 'width=626,height=436'); return false;" style="display: inline-flex; align-items: center; gap: 8px; background-color: #1877F2; color: #ffffff; padding: 7px 16px; border-radius: 6px; font-family: Arial, sans-serif; font-size: 13px; font-weight: bold; text-decoration: none; box-shadow: 0 2px 6px rgba(24,119,242,0.3);">
					<svg width="16" height="16" fill="#ffffff" viewBox="0 0 24 24"><path d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"/></svg>
					<span>Share on Facebook</span>
				</a>
			</div>
			<div id="box_clothes_detail">
				<div class="clear" style="height: 5px;"></div>	
			    <?php echo $row_cl_detail['detail']; ?>
			</div>
			<div class="clear" style="height: 25px;"></div>	
		    <?php
			    while($row_cl_more_img = mysql_fetch_array($sql_cl_more_img)){
			?>
		       <img src="images/more_images/<?php echo $row_cl_more_img['image']; ?>" style="max-width: 320px; width: 100%; height: auto; display: block; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,0.15); margin-left: 10px; margin-bottom: 15px;" />
		 <?php }}} ?>
		 <div class="clear" style="height: 4px;"></div>	
	</div>
</div><div class="clear" style="height: 20px;"></div>		