Monkey Albino

Linux altar53.supremepanel53.com 4.18.0-553.8.1.lve.el8.x86_64 #1 SMP Thu Jul 4 16:24:39 UTC 2024 x86_64
/ home/ bdapparelinfo/ apptech-resource.com.bd/ Wp-Administrator/

/home/bdapparelinfo/apptech-resource.com.bd/Wp-Administrator/all_cat.php


				  <option value="Home Slider Images"> Home Slider Images</option>  
				  <option value="Home Pages"> Home Pages</option>   
				  <option value="Brand Logo"> Brand Logo</option> 
			      <option value="Small Slider"> Small Slider</option> 
				  
				  <?php $nav_table = 'menu';
				$sql_cat=mysql_query("SELECT * FROM `$nav_table` WHERE `parents_cat_id`='0' ORDER BY `sir_no` ASC");
				while($row_cat=mysql_fetch_array($sql_cat)){$cat_id=$row_cat['id']; $parent_id=$row_cat['parents_cat_id']; 
						if($page_name == 'View_Pages' OR $page_name == 'ins_Pages_Content'){ 
									$main_pagelink = $row_cat['url_name']; 
									if($row_cat['url_name']==$raw['content_pages_name']){
										$selected1 = 'selected ="selected"';
									}else{
										$selected1 = '';	
									}
						}
						else{ $main_pagelink = $row_cat['id'];}
					if($cat_id=='1'){echo '<option  value="'.$main_pagelink.'" '.$selected1.'>'.$row_cat['cat_name'].'</option>';} 
					else{echo '<option  value="'.$main_pagelink.'" '.$selected1.'>'.$row_cat['cat_name'].'</option>';}
				
				$sql_sub_cat=mysql_fetch_array(mysql_query("SELECT * FROM `$nav_table` WHERE `parents_cat_id`='$cat_id' ORDER BY `sir_no` ASC"));
					if($sql_sub_cat){ $sub_cat_id=$sql_sub_cat['parents_cat_id'];
						echo '';
					$result_sub=mysql_query("SELECT * FROM `$nav_table` WHERE `parents_cat_id`='$sub_cat_id' ORDER BY `sir_no` ASC");
					while($row_sub=mysql_fetch_array($result_sub)){$subcat_id=$row_sub['id'];
								if($page_name == 'View_Pages' OR $page_name == 'ins_Pages_Content'){ 
									$sub_pagelink = $row_sub['url_name']; 
									if($row_sub['url_name']==$raw['content_pages_name']){
										$selected2 = 'selected ="selected"';
									}else{
										$selected2 = '';	
									}
							 }
								else{ $sub_pagelink = $row_sub['id'];}
					echo '<option value="'.$sub_pagelink.'" '.$selected2.'> -'.$row_sub['cat_name'].'</option>';
					//////3rd level sub menu
					$sub_sub_cat=mysql_fetch_array(mysql_query("SELECT * FROM `$nav_table` WHERE `parents_cat_id`='$subcat_id' ORDER BY `sir_no` ASC"));
						if(!empty($sub_sub_cat)){ $level_3rd_cat_id=$sub_sub_cat['parents_cat_id'];
						echo '';
						$result_3rdsub=mysql_query("SELECT * FROM `$nav_table` WHERE `parents_cat_id`='$level_3rd_cat_id' ORDER BY `sir_no` ASC");
							while($row_3rdsub=mysql_fetch_array($result_3rdsub)){$subcat3rd_id=$row_3rdsub['id'];
								if($page_name == 'View_Pages' OR $page_name == 'ins_Pages_Content'){ 
									$sub_sub_pagelink = $row_3rdsub['url_name']; 
									if($row_3rdsub['url_name']==$raw['content_pages_name']){
										$selected3 = 'selected ="selected"';
									}else{
										$selected3 = '';	
									}
							}
								else{ $sub_sub_pagelink = $row_3rdsub['id'];}
								echo '  
									<option value="'.$sub_sub_pagelink.'" '.$selected3.'> --'.$row_3rdsub['cat_name'].' </option>' ;
							}
						echo '';
						}////// end 3rd level sub menu
						
					echo '';
							}//////2nd while
						echo'';
						}//////if
				echo'';					
			}//////main while
		?>