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

//home/bdapparelinfo/www/company_list.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 WHERE company_name like '$sq%' ORDER BY `company_name` ASC";
	$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();
?>
<!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>bdtrade.com.bd</title>
<meta name="keywords"
content="Bdtrade" />
<meta name="description" content="Bdtrade" />
<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===================-->
</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">
  <?php //include 'left_menu.php';?>
	  <!--<div id="content">-->
		<div class="conL" style="width:99.5%; border:1px solid #D0DBED">   
		<h5> Quick Index : Showing By <b><?php echo $sq ;?> Company </b> <?php echo "<span class=\"per_pages\">".$pages->display_jump_menu().$pages->display_items_per_page()."</span>";?></h5> 

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



$query = "SELECT add_list.id, add_list.company_name  FROM add_list WHERE company_name like '$sq%' ORDER BY `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='item_box'>";
	echo "<ul>
			
				<li class='even'><a href='company_details.php?sq=$row[0]'>$row[1]</a></li>\n";
	echo "</ul></div>";
				 
}///while
}////if
//echo "<p class=\"paginate\">Page: $pages->current_page of $pages->num_pages</p>\n";
//echo  "<span class=\"per_pages\" style=''>".$pages->display_pages()."</span> <br> &nbsp;";

		?>
   		 </div> <!--end conL--><!--end conL-->
		 <?php 
echo "<p class=\"paginate\">Page: $pages->current_page of $pages->num_pages</p>\n";
echo "<span class=\"per_pages\" style=''>".$pages->display_pages()."</span> <br>";?>
	  <?php //include 'right.php';?>
   <!--</div>end content-->
</div> <!--end main-->

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