View file wievWW2.php

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)."\">&#x43D;&#x430;&#x437;&#x430;&#x434;</a>";

  if ($npages > 1 and $npage<$npages) $gline_next = "<a href=\"wievWW2.php?npage=".($npage+1)."\">&#x434;&#x430;&#x43B;&#x435;&#x435;</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\">&#x43D;&#x435;&#x442; &#x444;&#x43E;&#x442;&#x43E;</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>&#x41D;&#x438;&#x43A;:</em> ".$udata[0]."</p>";

if ($udata[9]==1)

{ print "<p><em>&#x41F;&#x43E;&#x43B;:</em> &#x41C;</p>"; } else 

{ print "<p><em>&#x41F;&#x43E;&#x43B;: </em>&#x416;</p>";}

print "<p><em>&#x41F;&#x43E;&#x447;&#x442;&#x430;/&#x442;&#x435;&#x43B;.:</em> ".$udata[1]."</p>";

print "<p><em>&#x412;&#x43E;&#x437;&#x440;&#x430;&#x441;&#x442;:</em> ".$udata[2]."</p>";

print "<p><em>&#x413;&#x43E;&#x440;&#x43E;&#x434;: </em>".$udata[3]."</p>";

print "<p><em>&#x41E;&#x43F;&#x435;&#x440;&#x430;&#x442;&#x43E;&#x440;:</em> ".$udata[4]."</p>";

print "<p><em>&#x41C;&#x43E;&#x434;&#x435;&#x43B;&#x44C; &#x442;&#x435;&#x43B;.:</em> ".$udata[5]."</p>";

print "<p><em>&#x418;&#x43D;&#x442;&#x435;&#x440;&#x435;&#x441;&#x44B;: </em>".$udata[6]."</p>";

print "<p><em>&#x41E; &#x441;&#x435;&#x431;&#x435;:</em> ".$udata[7]."</p>";

print "<p><em>&#x425;&#x43E;&#x447;&#x443; &#x442;&#x430;&#x43A;&#x43E;&#x433;&#x43E; &#x447;&#x435;&#x43B;&#x43E;&#x432;&#x435;&#x43A;&#x430;:</em> ".$udata[8]."</p>";





			   

   }

   

  }







//print "<p>".$gline_rew."</p>";

//print "<p>".$gline_next."</p>";





print "



</card>

</wml>";





?>