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_details.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 `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 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.id='$sq' and `active` = 1");
$MetaTitle=mysql_fetch_array($sql);
?>
<!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><?=$MetaTitle['company_name'];?></title>
<meta name="keywords" content="bdapparelinfo" />
<meta name="description" content="bdapparelinfo" />
<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>

<?php //include 'top.php';?>

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



<div id="main">
  <?php include 'left_menu.php';?>
	  <div id="content">
		<div class="conL">    

		
					<?php 
							
$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.id='$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
				{

$row = mysql_fetch_row($result);
 
	echo "<h5> Categories :- <b>$row[6]</b> &gt;&gt; Comapny Name :-    <b>$row[1]</b>  </h5>";
?>
	
		<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>
    <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>
    <tr>
      <td><div align="right"><strong>City </strong></div></td>
      <td>&nbsp;        <?=$row[8];?> </td>
    </tr>
    <tr>
      <td><div align="right"><strong>Country </strong></div></td>
      <td>&nbsp;        <?=$row[9];?> </td>
    </tr>
    <tr>
      <td><div align="right"><strong>Tel </strong></div></td>
      <td>&nbsp;        <?=$row[10];?> </td>
    </tr>
    <tr>
      <td><div align="right"><strong>Website </strong></div></td>
      <td>&nbsp;        <?=$row[12];?> </td>
    </tr>
    <tr>
      <td valign="top"><div align="right"><strong>Details </strong></div></td>
      <td colspan="2">&nbsp;        <?=$row[3];?> </td>
    </tr>
    <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>
  </tbody>
</table>		 
 
<?php   }//if

//echo "<p class=\"paginate\">Page: $pages->current_page of $pages->num_pages</p>\n";
//echo  "<span class=\"per_pages\" style=' margin:0px 0 10px 200px;'>".$pages->display_pages()."</span> <br> &nbsp;";
//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-->
</div> <!--end main-->

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