File size: 2.95Kb
<?
header("Content-type:text/vnd.wap.wml;charset=utf-8");
print "<?xml version=\"1.0\"?>
<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
print "<wml>\n";
print "<card title=\"ID-$id2\" >\n";
// $text = "$name::$mail::$mess::$file_o";
//$text=strip_tags($file_o);
// $xfile = fopen($file_o, "r") ;
$xfile = @file("guestWW.dat");
$p = 1300;
if ($npage == ""){$npage = "1";}
$first = count($xfile) - ($p * ($npage - 1));
$second = count($xfile) - ($p * $npage) + 1;
if ($second < 1) {$second = 1;}
$npages = (int)(count($xfile) / $p);
if ($news_limiter>((int) ($npages*$p))) $npages = $npages+1;
if ($npage <= $npages and $npage>1) $gline_rew = "<a href=\"wievWW2.php?npage=".($npage-1)."\">назад</a>";
if ($npages > 1 and $npage<$npages) $gline_next = "<a href=\"wievWW2.php?npage=".($npage+1)."\">далее</a>";
// $line = " | ";
// for ($p = 1; $p <= $npages; $p++) {
// if ($p != $npage) { $line .= "<a href=\"wiev.php?npage=$p\"> $p </a>|";}
// if ($p == $npage) { $line .= "$p |"; }
// }
// print $line;
for ($i = $first-1; $i >= $second-1; $i--) {
$ii = $i;
$ii++;
$udata = explode("::",$xfile[$i]);
$fjpg=trim ($udata[10]);
$fjpg2=$fjpg.".jpg";
if ($udata[0]==$anketa) {
//print "<p>".$anketa."</p>";
//if (! file_exists ($udata[10])) {
//print "<p align=\"center\">нет фото</p>";}
//print "$fjpg2";
if (file_exists($fjpg2)) {
print "<p align=\"center\"><img src=\"$fjpg2\" /></p>";} else {print "<p align=\"center\"><img src=\"no.jpg\" /></p>";}
print "<p><em>Ник:</em> ".$udata[0]."</p>";
if ($udata[9]==1)
{ print "<p><em>Пол:</em> М</p>"; } else
{ print "<p><em>Пол: </em>Ж</p>";}
print "<p><em>Почта/тел.:</em> ".$udata[1]."</p>";
print "<p><em>Возраст:</em> ".$udata[2]."</p>";
print "<p><em>Город: </em>".$udata[3]."</p>";
print "<p><em>Оператор:</em> ".$udata[4]."</p>";
print "<p><em>Модель тел.:</em> ".$udata[5]."</p>";
print "<p><em>Интересы: </em>".$udata[6]."</p>";
print "<p><em>О себе:</em> ".$udata[7]."</p>";
print "<p><em>Хочу такого человека:</em> ".$udata[8]."</p>";
}
}
//print "<p>".$gline_rew."</p>";
//print "<p>".$gline_next."</p>";
print "
</card>
</wml>";
?>