Location: PHPKode > scripts > Open4Listing > cont/detaliianunt.php
<?php

include("../setari.php");

$idoferta=$_GET[anuntnr];

$cxn = @ConnectToDb($dbServer, $dbUser9, $dbPass9, $dbName9);

if(isset($_COOKIE['vanzinch_email'])) 

{ 

$username = $_COOKIE['vanzinch_email']; 

$pass = $_COOKIE['vanzinch_pass'];



$check = mysql_query("SELECT * FROM clienti WHERE email = '$username'")or die(mysql_error()); 

while($myrow = mysql_fetch_array( $check )) 

{ 

//if the cookie has the wrong password, they are taken to the login page 

if ($pass != $myrow['parola']) 

{

header("Location: login.php"); 

} 

else

{
$client=$myrow['id']; 
$tipcont=$myrow['tipcont'];


if(!trim($idoferta))
{
$zzxxpp=mysql_query("SELECT idoferta FROM oferte WHERE idclient=$client ORDER BY idoferta DESC LIMIT 0, 1");
while ($myrow = mysql_fetch_array($zzxxpp)) 
{$idoferta=$myrow[idoferta];}}


$check99 = mysql_query("SELECT * FROM oferte WHERE idoferta = '$idoferta'")or die(mysql_error()); 
while ($mzrow99 = mysql_fetch_array($check99)) {
if ($pass != $mzrow99['pass']) 
{
header("Location: login.php");
}

}

?>







<html>

<head>

<title>ADMIN</title>



<style type="text/css"><!-- 

A{text-decoration:none}

-->

</style>
</head>





<body bgcolor="#333333">

<div align="center">

 <br><br>
<?php
include 'sus.php';
?>

 

<table border="1" width="860" cellspacing="0" cellpadding="0" bordercolor="#006699" bordercolorlight="#808080" bgcolor="#ffffff">

<tr><td>








<div align="center">



<table border="0" cellspacing="0" cellpadding="0" width="100%">

<tr>

<td width="800" align=center bgcolor="#FFFFFF" valign="top">

		

		

		

	<div align="center">

		

		

		

	<table cellspacing="1" cellpadding="2" width="860">

<tr><td valign="top" bgcolor="#CC3300" width="418">

<font color="#FFFFFF" face="Verdana" size="2"><b>&nbsp;

Your

</span>Listing:</b></font><td bgcolor="#333333">

<p align="center"><b><font color="#FFFFFF" size="1" face="Verdana">

<a href="cont.php"><font color="#FFFFFF">&lt;&lt;&lt;</font></a></span></font></b><a href="cont.php"><b><font face="Verdana" size="1" color="#FFFFFF">Back 

to Main Page</font></b></span></a><td class=anunttitlu2 width=20% bgcolor="#FF0000">

	<p align=center><b><a href=logout.php>

	<font face=Verdana color=#ffffff size=1>Logout</font></a><font face=Verdana color=#FFFFFF size=1>&gt;&gt;&gt;</font></span></b></p></td></tr></table>

<table width=850 cellpadding=0 align=center>

<tr><td width="80%" bgcolor=#FFFFFF align="center">







<?php

$query9 ="SELECT * FROM oferte WHERE idoferta = '$idoferta'" ;

$result9 = mysql_query($query9) or die("Query failed la 9");

while ($mzrow = mysql_fetch_array($result9)) {







$data=strtotime ("$mzrow[adaugat]");

$luna=date("m",$data);

$ziua=date("d",$data);

$anul=date("Y",$data);

$newdata="$luna.$ziua.$anul";



$titlu=$mzrow[titlu];

$rank=$mzrow[rank];


if(!trim($mzrow[suprafata]))
{$suprafata="";}else{$suprafata="<font face=arial color=#666666 size=2><b>$mzrow[suprafata]</b><br></font>";}


if(!trim($mzrow[pret]))
{$pret="";}else{$pret="<font face=arial color=#666666 size=3><b>$mzrow[pret] $mzrow[moneda]</b><br></font>";}









echo"

<table border=0 width=96% cellspacing=3 cellpadding=0 bordercolorlight=#E9E9E9 bordercolordark=#FFFFFF bordercolor=#E9E9E9><tr><td width=340 valign=top>

<table border=0 width=96% align=center><tr><td>



<a href=edit_anunt.php?idoferta=".$mzrow['idoferta']."><font face=verdana color=#FFFFFF size=2><u>

<span style=\"background-color: #FF0000\"><B>------  Edit Listing  ------</B></span></u></font></a><br>

<font size=2 face=arial>Listing date: ".$newdata."</font><br>
<font size=1 face=verdana>Rank order: ".$rank."
<br><br>";





echo "<font face=arial color=#666666 size=4><B>".$titlu."<br><font size=1>".$mzrow["judet"]." > ".$mzrow["tranzactie"]." </B><br><br></font>";

echo $an;

echo $suprafata;



echo "<p align=justify><font face=arial color=#666666 size=2><br><b><u>Description:</u></b><br><br>".$mzrow["descriere"]."<br></B></p><br></font>";

echo $pret;



echo "<font face=arial color=#993300 size=3><br><b><u>Contact</u></b></font><br><font face=arial color=#666666 size=2>".$mzrow["contact"]."<br><br>





<a href=cont.php><span style=\"background-color: #FF0000\"><FONT FACE=ARIAL COLOR=#FFFFFF SIZE=2><b>>>>>>>>   Done   <<<<<<<</b></span></a>

<br></font>



</td></tr></table>";



echo "<td width=350 valign=top>";

echo "<br><a href=http://www.open4listing.com/list.php?id=8><font color=red face=arial size=2><b><u>Tips and tricks: How to resize your images</u></b></font></a><br><br>";

$randy=rand(1,10000);



if($mzrow["poza1"]==nu)

{include("adaugapoza1_free.php");}

if($mzrow["poza1"]==da)

{echo"<img border=1 src=../poze/".$mzrow[idoferta]."_1.jpeg?randy=$randy><br><a href=delete_free.php?action=delete&id=".$mzrow[idoferta]."&no=1><font size=1 color=red>delete [X]</font></a><br><hr noshade color=#E9E9E9 size=1>";}





if($mzrow["poza2"]==nu)

{include("adaugapoza2_free.php");}

if($mzrow["poza2"]==da)

{echo"<img border=1 src=../poze/".$mzrow[idoferta]."_2.jpeg?randy=$randy><br><a href=delete_free.php?action=delete&id=".$mzrow[idoferta]."&no=2><font size=1 color=red>delete [X]</font></a><br><hr noshade color=#E9E9E9 size=1>";}


if($mzrow["poza3"]==nu)

{include("adaugapoza3_free.php");}

if($mzrow["poza3"]==da)

{echo"<img border=1 src=../poze/".$mzrow[idoferta]."_3.jpeg?randy=$randy><br><a href=delete_free.php?action=delete&id=".$mzrow[idoferta]."&no=3><font size=1 color=red>delete [X]</font></a><br><hr noshade color=#E9E9E9 size=1>";}



if($mzrow["poza4"]==nu)

{include("adaugapoza4_free.php");}

if($mzrow["poza4"]==da)

{echo"<img border=1 src=../poze/".$mzrow[idoferta]."_4.jpeg?randy=$randy><br><a href=delete_free.php?action=delete&id=".$mzrow[idoferta]."&no=4><font size=1 color=red>delete [X]</font></a><br><hr noshade color=#E9E9E9 size=1>";}




if($mzrow["poza5"]==nu)

{include("adaugapoza5_free.php");}

if($mzrow["poza5"]==da)

{echo"<img border=1 src=../poze/".$mzrow[idoferta]."_5.jpeg?randy=$randy><br><a href=delete_free.php?action=delete&id=".$mzrow[idoferta]."&no=5><font size=1 color=red>delete [X]</font></a><br><hr noshade color=#E9E9E9 size=1>";}








}}}}



else 



//if the cookie does not exist, they are taken to the login screen 

{ 

header("Location: login.php"); 

} 



?>

</table></table></table>







</div>

</div>

<tr>

<td colspan="2">



</td>

</tr>



</table>
</tr></td></table>



</body>

</html>
Return current item: Open4Listing