Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
<?php
include ("config.php");
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<title>Търсене</title>
<style type="text/css">
body
{
background: #F9F9F7;
font-size: 10px;
margin:10px;
padding:10px;
color: #000;
line-height: 14px;
}
a:link {
color:#000;
text-decoration: none;
}
a:visited {
color:#000;
text-decoration: none;
}
a:hover {
color:#8C8C73;
text-decoration: underline;
}
a:active {
text-decoration: none;
}
.selbox {
background: #EFF0F0;
border: 1px solid #C3C0C0;
padding: 1px;
margin: auto;
text-align: left;
font: 8pt verdana, arial;
color: #000;
}
</style>
</head>
<body>
<form method="GET" action="index.php">
<table cellpadding="0" cellspacing="0" width="300px" >
<tr>
<td align="right" width="200px"><input class=selbox type="text" name="ads" size="30"></td>
<td align="right" width="100px"><input class=selbox type="submit" value="Търсене"></td>
</tr>
</table>
</form>
<br>
<br>
<table border=1 cellpadding=0 cellspacing=0 width=108%>
<tr>
<td bgcolor=#EFF0F0 width=18%> Име:</td>
<td bgcolor=#EFF0F0 width=27%> Описание:</td>
<td bgcolor=#EFF0F0 width=24%> Добавен:</td>
<td bgcolor=#EFF0F0 width=31%> Рейтинг:</td>
<?php
$ipaddress = getenv("REMOTE_ADDR");
$search=$_GET['ads'];
mysql_connect($server, $dbusername, $dbpassword)or die("Сайтът не може да се свърже към базата данни");
@mysql_select_db($db_name) or die("Грешна база данни");
$pageNum = 1;
if(isset($_GET['page']))
{
$pageNum = $_GET['page'];
}
$query = "SELECT COUNT(id) AS numrows FROM linkove WHERE ime LIKE '%$search%' OR opisanie LIKE '%$search%'";
$result = mysql_query($query) or die('Error, query failed1');
$row = mysql_fetch_array($result, MYSQL_ASSOC);
$numrows = $row['numrows'];
if ($numrows<1)
{echo "<center>Няма намерени резултати за: <b>".$search."</b></center><br><br>";}
$redove = ($pageNum - 1) * $broinastranica;
$querys = " SELECT * FROM linkove WHERE ime LIKE '%$search%' OR opisanie LIKE '%$search%' ORDER BY id DESC LIMIT $redove, $broinastranica";
$results = mysql_query($querys) or die('Error, query failed');
$alternate = "2";
while($row = mysql_fetch_array($results))
{
$id=$row[id];
$ime=$row[ime];
$opisanie=$row[opisanie];
$data=$row[dataa];
$link=$row[link];
if ($alternate == "1") {
$colour = "#E1E8E1"; //1-ви цвят
$alternate = "2";
}
else {
$colour = "#D1DCD1"; //2-ри цвят
$alternate = "1";
}
?>
</tr>
<tr>
<td bgcolor=<?php echo $colour; ?> valign=top width=18%> <a target='_new' href=<?php echo $link; ?>><?php echo $ime; ?></a></td>
<td bgcolor=<?php echo $colour; ?> valign=top width=27%> <?php echo $opisanie; ?></td>
<td bgcolor=<?php echo $colour; ?> valign=top width=24%> <?php echo $data; ?></td>
<td bgcolor=<?php echo $colour; ?> valign=top width=31%>
<table>
<tr>
<td>
<?php
$rating_st=$row[rating_st];
$num_votes_st=$row[num_votes_st];
echo '<table><tr><td>';
if((($rating_st >= 0)or($rating_st == 0)) && ($rating_st <= 0.50)){
echo "<img src='image/star-0.gif' width='70' height='18'>";
}
if((($rating_st >= 0.50)or($rating_st == 0.50)) && ($rating_st <= .99)){
echo "<img src='image/star-05.gif' width='70' height='18'>";
}
if((($rating_st >= 1.00)or($rating_st == 1.00)) && ($rating_st <= 1.49)){
echo "<img src='image/star-1.gif' width='70' height='18'>";
}
if((($rating_st >= 1.50)or($rating_st == 1.50)) && ($rating_st <= 1.99)){
echo "<img src='image/star-15.gif' width='70' height='18'>";
}
if((($rating_st >= 2.00)or($rating_st == 2.00)) && ($rating_st <= 2.49)){
echo "<img src='image/star-2.gif' width='70' height='18'>";
}
if((($rating_st >= 2.50)or($rating_st == 2.50)) && ($rating_st <= 2.99)){
echo "<img src='image/star-25.gif' width='70' height='18'>";
}
if((($rating_st >= 3.00)or($rating_st == 3.00)) && ($rating_st <= 3.49)){
echo "<img src='image/star-3.gif' width='70' height='18'>";
}
if((($rating_st >= 3.50)or($rating_st == 3.50)) && ($rating_st <= 3.99)){
echo "<img src='image/star-35.gif' width='70' height='18'>";
}
if((($rating_st >= 4.00)or($rating_st == 4.00)) && ($rating_st <= 4.49)){
echo "<img src='image/star-4.gif' width='70' height='18'>";
}
if((($rating_st >= 4.50)or($rating_st == 4.50)) && ($rating_st <= 4.99)){
echo "<img src='image/star-45.gif' width='70' height='18'>";
}
if($rating_st == 5.0){
echo "<img src='image/star-5.gif' width='70' height='18'>";
}
echo '</td><td> ';
echo $rating_st;
echo '</td><td>';
echo 'от ';
echo $num_votes_st;
echo ' гласа';
echo '</tr></table>';
?>
</td>
</tr>
<tr>
<td>
<form name='Rate_Form' method='GET' action='rateprocess.php'>
<select class=selbox size='1' name='rating'>
<option value='5'>5 - ЖЕСТОКО</option>
<option value='4'>4 - Мн. добро</option>
<option value='3'>3 - Средно</option>
<option value='2'>2 - Мн. зле</option>
<option value='1'>1 - ОТВРАТ!</option>
<option value='0' selected>0 - Несъм пробвал</option>
</select>
<input type='hidden' name='id' value='<?php echo $id; ?>'>
<input class=selbox type='submit' value='Гласувай'>
</form>
</td>
</tr>
</table>
</td>
</tr>
<?php
if (file_exists("ip.inc"))
{
$ip= file("ip.inc");
$n=count($ip);
for ($i=0; $i<$n;$i++)
{
if (eregi($ipaddress,$ip[$i]))
{
echo "Вие вече гласувахте.<br>";
exit;
}
}
}
$zapisip=$ipaddress."\n";
$fp = fopen ( "ip.inc" ,"a");
fwrite($fp, $zapisip );
fclose($fp);
echo Вие успешно гласувахте';
echo "</table>";
echo "<br>";
$maxPage = ceil($numrows/$broinastranica);
$self = $_SERVER['PHP_SELF'];
$nomeranastranici = '';
echo '<center><font face="Tahoma" style="font-size: 8pt">Страници:</font> ';
for($page = 1; $page <= $maxPage; $page++)
{
if ($page == $pageNum)
{
$nomeranastranici .= "<font face=\"Tahoma\" style=\"font-size: 8pt\">$page</font>";
}
else
{
$nomeranastranici .= " <font face=\"Tahoma\" style=\"font-size: 8pt\"><a href=\"$self?ads=$search&page=$page\">$page</a> </font>";
}
}
// създаване на ликовете [предишна] [следваща]
// както и линковете [първа] и [последна]
if ($pageNum > 1)
{
$page = $pageNum - 1;
$predishna = "<font face=\"Tahoma\" style=\"font-size: 8pt\"><a href=\"$self?ads=$search&page=$page\">[<<<<<]</a> </font>";
$parva = "<font face=\"Tahoma\" style=\"font-size: 8pt\"><a href=\"$self?ads=$search&page=1\">[първа]</a> </font>";
}
else
{
$predishna = ' ';
$parva = ' ';
}
if ($pageNum < $maxPage)
{
$page = $pageNum + 1;
$sledvashta = "<font face=\"Tahoma\" style=\"font-size: 8pt\"><a href=\"$self?ads=$search&page=$page\">[>>>>>]</a> </font>";
$posledna = "<font face=\"Tahoma\" style=\"font-size: 8pt\"><a href=\"$self?ads=$search&page=$maxPage\">[последна]</a></font>";
}
else
{
$sledvashta = ' ';
$posledna = ' ';
}
// показваме всички страници
echo $parva . $predishna . $nomeranastranici . $sledvashta . $posledna;
?>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
</table>
<center>Copyright© 2006-2007<br>Email:<a href="mailto:ypocu@abv.bg">Уроци</a><br>Web: <a href="http://sayhow.co.nr">SayHow</center>
</body>
</html>
<?php
include ("config.php");
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<title>Търсене</title>
<style type="text/css">
body
{
background: #F9F9F7;
font-size: 10px;
margin:10px;
padding:10px;
color: #000;
line-height: 14px;
}
a:link {
color:#000;
text-decoration: none;
}
a:visited {
color:#000;
text-decoration: none;
}
a:hover {
color:#8C8C73;
text-decoration: underline;
}
a:active {
text-decoration: none;
}
.selbox {
background: #EFF0F0;
border: 1px solid #C3C0C0;
padding: 1px;
margin: auto;
text-align: left;
font: 8pt verdana, arial;
color: #000;
}
</style>
</head>
<body>
<form method="GET" action="index.php">
<table cellpadding="0" cellspacing="0" width="300px" >
<tr>
<td align="right" width="200px"><input class=selbox type="text" name="ads" size="30"></td>
<td align="right" width="100px"><input class=selbox type="submit" value="Търсене"></td>
</tr>
</table>
</form>
<br>
<br>
<table border=1 cellpadding=0 cellspacing=0 width=108%>
<tr>
<td bgcolor=#EFF0F0 width=18%> Име:</td>
<td bgcolor=#EFF0F0 width=27%> Описание:</td>
<td bgcolor=#EFF0F0 width=24%> Добавен:</td>
<td bgcolor=#EFF0F0 width=31%> Рейтинг:</td>
<?php
$ipaddress = getenv("REMOTE_ADDR");
$search=$_GET['ads'];
mysql_connect($server, $dbusername, $dbpassword)or die("Сайтът не може да се свърже към базата данни");
@mysql_select_db($db_name) or die("Грешна база данни");
$pageNum = 1;
if(isset($_GET['page']))
{
$pageNum = $_GET['page'];
}
$query = "SELECT COUNT(id) AS numrows FROM linkove WHERE ime LIKE '%$search%' OR opisanie LIKE '%$search%'";
$result = mysql_query($query) or die('Error, query failed1');
$row = mysql_fetch_array($result, MYSQL_ASSOC);
$numrows = $row['numrows'];
if ($numrows<1)
{echo "<center>Няма намерени резултати за: <b>".$search."</b></center><br><br>";}
$redove = ($pageNum - 1) * $broinastranica;
$querys = " SELECT * FROM linkove WHERE ime LIKE '%$search%' OR opisanie LIKE '%$search%' ORDER BY id DESC LIMIT $redove, $broinastranica";
$results = mysql_query($querys) or die('Error, query failed');
$alternate = "2";
while($row = mysql_fetch_array($results))
{
$id=$row[id];
$ime=$row[ime];
$opisanie=$row[opisanie];
$data=$row[dataa];
$link=$row[link];
if ($alternate == "1") {
$colour = "#E1E8E1"; //1-ви цвят
$alternate = "2";
}
else {
$colour = "#D1DCD1"; //2-ри цвят
$alternate = "1";
}
?>
</tr>
<tr>
<td bgcolor=<?php echo $colour; ?> valign=top width=18%> <a target='_new' href=<?php echo $link; ?>><?php echo $ime; ?></a></td>
<td bgcolor=<?php echo $colour; ?> valign=top width=27%> <?php echo $opisanie; ?></td>
<td bgcolor=<?php echo $colour; ?> valign=top width=24%> <?php echo $data; ?></td>
<td bgcolor=<?php echo $colour; ?> valign=top width=31%>
<table>
<tr>
<td>
<?php
$rating_st=$row[rating_st];
$num_votes_st=$row[num_votes_st];
echo '<table><tr><td>';
if((($rating_st >= 0)or($rating_st == 0)) && ($rating_st <= 0.50)){
echo "<img src='image/star-0.gif' width='70' height='18'>";
}
if((($rating_st >= 0.50)or($rating_st == 0.50)) && ($rating_st <= .99)){
echo "<img src='image/star-05.gif' width='70' height='18'>";
}
if((($rating_st >= 1.00)or($rating_st == 1.00)) && ($rating_st <= 1.49)){
echo "<img src='image/star-1.gif' width='70' height='18'>";
}
if((($rating_st >= 1.50)or($rating_st == 1.50)) && ($rating_st <= 1.99)){
echo "<img src='image/star-15.gif' width='70' height='18'>";
}
if((($rating_st >= 2.00)or($rating_st == 2.00)) && ($rating_st <= 2.49)){
echo "<img src='image/star-2.gif' width='70' height='18'>";
}
if((($rating_st >= 2.50)or($rating_st == 2.50)) && ($rating_st <= 2.99)){
echo "<img src='image/star-25.gif' width='70' height='18'>";
}
if((($rating_st >= 3.00)or($rating_st == 3.00)) && ($rating_st <= 3.49)){
echo "<img src='image/star-3.gif' width='70' height='18'>";
}
if((($rating_st >= 3.50)or($rating_st == 3.50)) && ($rating_st <= 3.99)){
echo "<img src='image/star-35.gif' width='70' height='18'>";
}
if((($rating_st >= 4.00)or($rating_st == 4.00)) && ($rating_st <= 4.49)){
echo "<img src='image/star-4.gif' width='70' height='18'>";
}
if((($rating_st >= 4.50)or($rating_st == 4.50)) && ($rating_st <= 4.99)){
echo "<img src='image/star-45.gif' width='70' height='18'>";
}
if($rating_st == 5.0){
echo "<img src='image/star-5.gif' width='70' height='18'>";
}
echo '</td><td> ';
echo $rating_st;
echo '</td><td>';
echo 'от ';
echo $num_votes_st;
echo ' гласа';
echo '</tr></table>';
?>
</td>
</tr>
<tr>
<td>
<form name='Rate_Form' method='GET' action='rateprocess.php'>
<select class=selbox size='1' name='rating'>
<option value='5'>5 - ЖЕСТОКО</option>
<option value='4'>4 - Мн. добро</option>
<option value='3'>3 - Средно</option>
<option value='2'>2 - Мн. зле</option>
<option value='1'>1 - ОТВРАТ!</option>
<option value='0' selected>0 - Несъм пробвал</option>
</select>
<input type='hidden' name='id' value='<?php echo $id; ?>'>
<input class=selbox type='submit' value='Гласувай'>
</form>
</td>
</tr>
</table>
</td>
</tr>
<?php
if (file_exists("ip.inc"))
{
$ip= file("ip.inc");
$n=count($ip);
for ($i=0; $i<$n;$i++)
{
if (eregi($ipaddress,$ip[$i]))
{
echo "Вие вече гласувахте.<br>";
exit;
}
}
}
$zapisip=$ipaddress."\n";
$fp = fopen ( "ip.inc" ,"a");
fwrite($fp, $zapisip );
fclose($fp);
echo 'Вие успешно гласувахте';
echo "</table>";
echo "<br>";
$maxPage = ceil($numrows/$broinastranica);
$self = $_SERVER['PHP_SELF'];
$nomeranastranici = '';
echo '<center><font face="Tahoma" style="font-size: 8pt">Страници:</font> ';
for($page = 1; $page <= $maxPage; $page++)
{
if ($page == $pageNum)
{
$nomeranastranici .= "<font face=\"Tahoma\" style=\"font-size: 8pt\">$page</font>";
}
else
{
$nomeranastranici .= " <font face=\"Tahoma\" style=\"font-size: 8pt\"><a href=\"$self?ads=$search&page=$page\">$page</a> </font>";
}
}
// създаване на ликовете [предишна] [следваща]
// както и линковете [първа] и [последна]
if ($pageNum > 1)
{
$page = $pageNum - 1;
$predishna = "<font face=\"Tahoma\" style=\"font-size: 8pt\"><a href=\"$self?ads=$search&page=$page\">[<<<<<]</a> </font>";
$parva = "<font face=\"Tahoma\" style=\"font-size: 8pt\"><a href=\"$self?ads=$search&page=1\">[първа]</a> </font>";
}
else
{
$predishna = ' ';
$parva = ' ';
}
if ($pageNum < $maxPage)
{
$page = $pageNum + 1;
$sledvashta = "<font face=\"Tahoma\" style=\"font-size: 8pt\"><a href=\"$self?ads=$search&page=$page\">[>>>>>]</a> </font>";
$posledna = "<font face=\"Tahoma\" style=\"font-size: 8pt\"><a href=\"$self?ads=$search&page=$maxPage\">[последна]</a></font>";
}
else
{
$sledvashta = ' ';
$posledna = ' ';
}
// показваме всички страници
echo $parva . $predishna . $nomeranastranici . $sledvashta . $posledna;
?>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
</table>
<center>Copyright© 2006-2007<br>Email:<a href="mailto:ypocu@abv.bg">Уроци</a><br>Web: <a href="http://sayhow.co.nr">SayHow</center>
</body>
</html>
<?php
include ("config.php");
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<title>Търсене</title>
<style type="text/css">
body
{
background: #F9F9F7;
font-size: 10px;
margin:10px;
padding:10px;
color: #000;
line-height: 14px;
}
a:link {
color:#000;
text-decoration: none;
}
a:visited {
color:#000;
text-decoration: none;
}
a:hover {
color:#8C8C73;
text-decoration: underline;
}
a:active {
text-decoration: none;
}
.selbox {
background: #EFF0F0;
border: 1px solid #C3C0C0;
padding: 1px;
margin: auto;
text-align: left;
font: 8pt verdana, arial;
color: #000;
}
</style>
</head>
<body>
<form method="GET" action="index.php">
<table cellpadding="0" cellspacing="0" width="300px" >
<tr>
<td align="right" width="200px"><input class=selbox type="text" name="ads" size="30"></td>
<td align="right" width="100px"><input class=selbox type="submit" value="Търсене"></td>
</tr>
</table>
</form>
<br>
<br>
<table border=1 cellpadding=0 cellspacing=0 width=108%>
<tr>
<td bgcolor=#EFF0F0 width=18%> Име:</td>
<td bgcolor=#EFF0F0 width=27%> Описание:</td>
<td bgcolor=#EFF0F0 width=24%> Добавен:</td>
<td bgcolor=#EFF0F0 width=31%> Рейтинг:</td>
<?php
$ipaddress = getenv("REMOTE_ADDR");
$search=$_GET['ads'];
mysql_connect($server, $dbusername, $dbpassword)or die("Сайтът не може да се свърже към базата данни");
@mysql_select_db($db_name) or die("Грешна база данни");
$pageNum = 1;
if(isset($_GET['page']))
{
$pageNum = $_GET['page'];
}
$query = "SELECT COUNT(id) AS numrows FROM linkove WHERE ime LIKE '%$search%' OR opisanie LIKE '%$search%'";
$result = mysql_query($query) or die('Error, query failed1');
$row = mysql_fetch_array($result, MYSQL_ASSOC);
$numrows = $row['numrows'];
if ($numrows<1)
{echo "<center>Няма намерени резултати за: <b>".$search."</b></center><br><br>";}
$redove = ($pageNum - 1) * $broinastranica;
$querys = " SELECT * FROM linkove WHERE ime LIKE '%$search%' OR opisanie LIKE '%$search%' ORDER BY id DESC LIMIT $redove, $broinastranica";
$results = mysql_query($querys) or die('Error, query failed');
$alternate = "2";
while($row = mysql_fetch_array($results))
{
$id=$row[id];
$ime=$row[ime];
$opisanie=$row[opisanie];
$data=$row[dataa];
$link=$row[link];
if ($alternate == "1") {
$colour = "#E1E8E1"; //1-ви цвят
$alternate = "2";
}
else {
$colour = "#D1DCD1"; //2-ри цвят
$alternate = "1";
}
?>
</tr>
<tr>
<td bgcolor=<?php echo $colour; ?> valign=top width=18%> <a target='_new' href=<?php echo $link; ?>><?php echo $ime; ?></a></td>
<td bgcolor=<?php echo $colour; ?> valign=top width=27%> <?php echo $opisanie; ?></td>
<td bgcolor=<?php echo $colour; ?> valign=top width=24%> <?php echo $data; ?></td>
<td bgcolor=<?php echo $colour; ?> valign=top width=31%>
<table>
<tr>
<td>
<?php
$rating_st=$row[rating_st];
$num_votes_st=$row[num_votes_st];
echo '<table><tr><td>';
if((($rating_st >= 0)or($rating_st == 0)) && ($rating_st <= 0.50)){
echo "<img src='image/star-0.gif' width='70' height='18'>";
}
if((($rating_st >= 0.50)or($rating_st == 0.50)) && ($rating_st <= .99)){
echo "<img src='image/star-05.gif' width='70' height='18'>";
}
if((($rating_st >= 1.00)or($rating_st == 1.00)) && ($rating_st <= 1.49)){
echo "<img src='image/star-1.gif' width='70' height='18'>";
}
if((($rating_st >= 1.50)or($rating_st == 1.50)) && ($rating_st <= 1.99)){
echo "<img src='image/star-15.gif' width='70' height='18'>";
}
if((($rating_st >= 2.00)or($rating_st == 2.00)) && ($rating_st <= 2.49)){
echo "<img src='image/star-2.gif' width='70' height='18'>";
}
if((($rating_st >= 2.50)or($rating_st == 2.50)) && ($rating_st <= 2.99)){
echo "<img src='image/star-25.gif' width='70' height='18'>";
}
if((($rating_st >= 3.00)or($rating_st == 3.00)) && ($rating_st <= 3.49)){
echo "<img src='image/star-3.gif' width='70' height='18'>";
}
if((($rating_st >= 3.50)or($rating_st == 3.50)) && ($rating_st <= 3.99)){
echo "<img src='image/star-35.gif' width='70' height='18'>";
}
if((($rating_st >= 4.00)or($rating_st == 4.00)) && ($rating_st <= 4.49)){
echo "<img src='image/star-4.gif' width='70' height='18'>";
}
if((($rating_st >= 4.50)or($rating_st == 4.50)) && ($rating_st <= 4.99)){
echo "<img src='image/star-45.gif' width='70' height='18'>";
}
if($rating_st == 5.0){
echo "<img src='image/star-5.gif' width='70' height='18'>";
}
echo '</td><td> ';
echo $rating_st;
echo '</td><td>';
echo 'от ';
echo $num_votes_st;
echo ' гласа';
echo '</tr></table>';
?>
</td>
</tr>
<tr>
<td>
<form name='Rate_Form' method='GET' action='rateprocess.php'>
<select class=selbox size='1' name='rating'>
<option value='5'>5 - ЖЕСТОКО</option>
<option value='4'>4 - Мн. добро</option>
<option value='3'>3 - Средно</option>
<option value='2'>2 - Мн. зле</option>
<option value='1'>1 - ОТВРАТ!</option>
<option value='0' selected>0 - Несъм пробвал</option>
</select>
<input type='hidden' name='id' value='<?php echo $id; ?>'>
<input class=selbox type='submit' value='Гласувай'>
</form>
</td>
</tr>
</table>
</td>
</tr>
<?php
if (file_exists("ip.inc"))
{
$ip= file("ip.inc");
$n=count($ip);
for ($i=0; $i<$n;$i++)
{
if (eregi($ipaddress,$ip[$i]))
{
echo "Вие вече гласувахте.<br>";
exit;
}
}
}
$zapisip=$ipaddress."\n";
$fp = fopen ( "ip.inc" ,"a");
fwrite($fp, $zapisip );
fclose($fp);
echo 'Вие успешно гласувахте';
echo "</table>";
echo "<br>";
$maxPage = ceil($numrows/$broinastranica);
$self = $_SERVER['PHP_SELF'];
$nomeranastranici = '';
echo '<center><font face="Tahoma" style="font-size: 8pt">Страници:</font> ';
for($page = 1; $page <= $maxPage; $page++)
{
if ($page == $pageNum)
{
$nomeranastranici .= "<font face=\"Tahoma\" style=\"font-size: 8pt\">$page</font>";
}
else
{
$nomeranastranici .= " <font face=\"Tahoma\" style=\"font-size: 8pt\"><a href=\"$self?ads=$search&page=$page\">$page</a> </font>";
}
}
// създаване на ликовете [предишна] [следваща]
// както и линковете [първа] и [последна]
if ($pageNum > 1)
{
$page = $pageNum - 1;
$predishna = "<font face=\"Tahoma\" style=\"font-size: 8pt\"><a href=\"$self?ads=$search&page=$page\">[<<<<<]</a> </font>";
$parva = "<font face=\"Tahoma\" style=\"font-size: 8pt\"><a href=\"$self?ads=$search&page=1\">[първа]</a> </font>";
}
else
{
$predishna = ' ';
$parva = ' ';
}
if ($pageNum < $maxPage)
{
$page = $pageNum + 1;
$sledvashta = "<font face=\"Tahoma\" style=\"font-size: 8pt\"><a href=\"$self?ads=$search&page=$page\">[>>>>>]</a> </font>";
$posledna = "<font face=\"Tahoma\" style=\"font-size: 8pt\"><a href=\"$self?ads=$search&page=$maxPage\">[последна]</a></font>";
}
else
{
$sledvashta = ' ';
$posledna = ' ';
}
// показваме всички страници
echo "$parva . $predishna . $nomeranastranici . $sledvashta . $posledna";
?>