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/ public_html/

/home/bdapparelinfo/public_html/sub_page.php

<?php
/**
 * @link: http://www.Awcore.com/dev
 */
    //connect to the database
    include('paginator.class.php');
    include_once ('config.php'); 

$sq=$_REQUEST["sq"]; 
$query = "SELECT COUNT(*) FROM  add_list,categories_list WHERE add_list.cat_name = categories_list.id and  add_list.cat_name='$sq' and `active` = 1";
$result = mysql_query($query) or die(mysql_error());
$num_rows = mysql_fetch_row($result);

$pages = new Paginator;
$pages->items_total = $num_rows[0];
$pages->mid_range = 3; // Number of pages to display. Must be odd and > 3
$pages->paginate();

        $sql=mysql_query("select * from categories_list where id ='$sq'");
		$row = mysql_fetch_array($sql);
		$Cat_Title = $row['title'];	
		
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head> 
<title><?=$Cat_Title;?></title>
<meta name="keywords"
content="Bangladesh Apparel Info" />
<meta name="description" content="Bangladesh Apparel Info" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

		<link rel="stylesheet" type="text/css" href="css/style.css" />
		<!--================pasignation===================-->
	<link href="pasignation/pagination.css" rel="stylesheet" type="text/css" />
	<link href="pasignation/B_blue.css" rel="stylesheet" type="text/css" />
			<!--================end link pasignation===================-->
			<!--slid bar -->

<link href="slidbar/styles.css" rel="stylesheet" type="text/css">
<!--[if IE]>
 <![endif]-->
<script type="text/javascript" src="slidbar/jquery.js"></script>
<script type="text/javascript" src="slidbar/css_preview.js"></script>

			
  
</head>
<body>


<div id="top">
  <div class="cont"> 
    <!-- <ul id="user" style="float:left">
      <li id="welcome_logon_span">&nbsp;</li>
      <li id="new_user"> New user? </li>
      <li id="join_now_span" style="display: inline;">
        <a rel="nofollow" href="#/join/">Join Now</a> |
      </li>
    </ul>--> 
  </div><!--end cont-->
</div><!--end top-->
<?php //include 'top.php';?>

<?php include 'header.php';?>



<div id="main"><table><tr><td valign="top">
  <?php include 'left_menu.php';?></td>
	  <td valign="top"><div id="content">
		<div class="conL" style="width:750px;"> 
         
		<h5> Total   products in <b><?php echo $Cat_Title ;?></b> Category Company List <?php echo "<span class=\"per_pages\">".$pages->display_jump_menu().$pages->display_items_per_page()." &nbsp;</span>";?> &nbsp;  </h5> 

					<?php 
					
			echo "<span class=\"per_pages\">".$pages->display_pages()." &nbsp;</span>";


$query = "SELECT add_list.image_name, add_list.company_name, add_list.dob, add_list.des, add_list.email, add_list.id, categories_list.title, add_list.Address,add_list.City, add_list.Country, add_list.Telephone,add_list.Fax,add_list.Website,add_list.Contact_Person FROM add_list,categories_list WHERE add_list.cat_name = categories_list.id and   add_list.cat_name='$sq' and `active` = 1 ORDER BY add_list.company_name ASC $pages->limit";
$result = mysql_query($query) or die(mysql_error());
$check = mysql_num_rows($result);
		
		$error = 0;
		if($check == 0)
	{
		$error = 1;
		 
		echo "<h3>Sorry Here Was The Empty List. Check Later !</h5>";
		
	}
	else
				{


//echo "<tr><th>company name</th><th>details</th><th>	categories name</th><th>Continent</th><th>Region</th></tr>";
while($row = mysql_fetch_row($result))
{
	/*echo "<div class='list_box'>";
	echo "<table width=\"100%\"><tr><td valign='top'><a href=\"sub_index.php?sq=$row[5]\" class=\"preview\" path=\"$bjmea_admin/upload/$row[0]\"  iid=\"css_$row[5]\" target=\"\"><img src='$bjmea_admin/upload/$row[0]' alt='' class='pic'></a></td><td valign='top' width='72%'><a href='sub_index.php?sq=$row[5]'>$row[1] </a> 
	 <div class='contact_right'><span class='date'>[ $row[2] ]</span> </div> <br> $row[3]</td>
	<td valign='top' align=\"right\"> <a href='send_inquery.php?id=$row[5]'title=\"click here for Email\"><img src='images/contact_now.gif' alt='' width='80%'></a> <br> <br>
	<a href='sub_index.php?sq=$row[5]' target='_blank' title=\"click here for details\"><img src='images/info_button.png' alt='' width='83%'></a>
	</td></tr></table>  \n";
	echo "</div>";*/?>
	
	<table border="0" width="100%" id="add_box">
  <tbody>
    <tr>
      <td width="23%" height="26" bgcolor="#FAD3D3"><div align="right"><strong>Title </strong></div></td>
      <td bgcolor="#FAD3D3" colspan="2">&nbsp; <strong><?=$row[1];?></strong> </td>
    </tr>
    <?php if(!empty($row[7])){?>
    <tr>
      <td valign="top"><div align="right"><strong>Address </strong></div></td>
      <td width="48%">&nbsp;       <?=$row[7];?> </td>
      <td width="20%" rowspan="5" align="center">   <a href="company_info.php?sq=<?=$row[5];?>" class="preview" path="<?=$bjmea_admin;?>/upload/<?=$row[0];?>"  iid="css_<?=$row[5];?>">
	  <img src="<?=$bjmea_admin;?>/upload/<?=$row[0];?>" alt="<?=$row[1];?> image" width="75"></a> </td>
    </tr>
    <?php } if(!empty($row[8])){
        ?>
    <tr>
      <td><div align="right"><strong>City </strong></div></td>
      <td>&nbsp;        <?=$row[8];?> </td>
    </tr>
    <?php } if(!empty($row[9])){?>
    <tr>
      <td><div align="right"><strong>Country </strong></div></td>
      <td>&nbsp;        <?=$row[9];?> </td>
    </tr>
    <?php } if(!empty($row[10])){?>
    <tr>
      <td><div align="right"><strong>Tel </strong></div></td>
      <td>&nbsp;        <?=$row[10];?> </td>
    </tr>
    <?php } if(!empty($row[12])){?>
    <tr>
      <td><div align="right"><strong>Website </strong></div></td>
      <td>&nbsp;        <a href="<?=$row[12];?>" target="_blank"><?=$row[12];?></a> </td>
    </tr>
    <?php } if(!empty($row[3])){?>
    <tr>
      <td valign="top"><div align="right"><strong>Details </strong></div></td>
      <td colspan="2">&nbsp;        <?=$row[3];?> </td>
    </tr>
    <?php } if(!empty($row[5])){?>
    <tr>
      <td align="right"><a href=" "><img src="images/icon_email2.jpg" height="16" width="26" /></a></td>
      <td bgcolor="#E6E6E6" colspan="2" valign="top"><a href="send_inquery.php?id=<?=$row[5];?>"title="click here for Email"><strong>Send Email / Query</strong></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
	  <!--<a href="sub_index.php?sq=<? //=$row[5];?>" target="_blank" title="click here for details"> 
	  <a href="company_info.php?sq=<?=$row[5];?>" target="_blank" title="click here for details"> 
	  <img src="images/edit_address.gif" height="16" align="absmiddle" width="17" /><strong>Details</strong></a>-->
	  </td>
    </tr>
    <?php }?>
  </tbody>
</table>
				 
<?php }//while
}//if

echo "<p class=\"paginate\">Page: $pages->current_page of $pages->num_pages</p>\n";
echo  "<a href=\"#\">Top</a><span class=\"per_pages\" style=' margin:0px 0 10px 200px;'>".$pages->display_pages()." &nbsp;</span> <br>";
//echo "<p class=\"paginate\">SELECT * FROM table $pages->limit (retrieve records $pages->low-$pages->high from table - $pages->items_total item total / $pages->items_per_page items per page)";
      				?>
					
					 
   		 </div> <!--end conL-->
	 <?php //include 'right.php';?>
  </div> <!--end content--></td></tr></table>
</div> <!--end main-->

 <?php include 'footer.php';?>