View file znak_myxxx.ru/znak_myxxx.ru/g2g/g2g.php

File size: 1.84Kb
<?php
include("../service.php");
include("../cards.php");
include("../functext.php");
if(!@$i)$i='0';
card ();
print "<do type=\"accept\" label=\"\"><noop/></do>\n";
print "<do name=\"ad\" type=\"options\" label=\"&#x0414;o&#x0431;a&#x0432;&#x0438;&#x0442;&#x044C;\"><go href=\"/acq/add.php\"/></do>\n";
print "<do name=\"be\" type=\"options\" label=\"Ha&#x0447;a&#x043B;o\"><go href=\"/acq/acq.php\"/></do>\n";
print "<do name=\"ma\" type=\"options\" label=\"&#x0413;&#x043B;a&#x0432;&#x043D;a&#x044F;\"><go href=\"/\"/></do>\n";
print "<p align=\"center\">\n";
mysql_connect($DB_HOST,$DB_USER,$DB_PASS) or die (mysql_error());
mysql_select_db($DB_NAME) or die (mysql_error());
$total=mysql_result(mysql_query("SELECT count(`id`)  FROM `asq` WHERE `sect` = 5"),0);
$sql=mysql_query("SELECT * FROM `asq` WHERE `sect` = 5");
mysql_close;
print "<small>- Bce&#x0433;o: ".$total." -</small><br/><br/></p>\n";
print "<p>\n";
for ($p = 1; $p<($mes+1); $p++) {
if ($i+1<=$total) {
$data=mysql_fetch_array($sql);
$id = $data['id'];
$name = k2u($data['name']);
$text = k2u($data['text']);
$num = k2u($data['num']);
$nyes = $data['nyes'];
$em = k2u($data['em']);
$dt = $data['dt'];
$i++;
$q = $p;
print "<b>".$i.". ".$name."</b><br/>\n";
print "$text<br/><small>\n";
if($num<>"") {if($nyes==0) {print "$num<br/>\n";} else print "<a href=\"wtai://wp/mc;".$num."\">".$num."</a><br/>\n";}
if($em<>"") print "$em<br/>\n";
print "(".$dt.")</small><br/><br/>\n";
 }
 }
if ($i>$mes) {
$a = $i-$q-$mes;
print "<a href=\"".$_SERVER['SCRIPT_NAME']."?i=$a\">Ha&#x0437;a&#x0434;</a><br/>\n"; }
if ($i<$total) {
print "<a href=\"".$_SERVER['SCRIPT_NAME']."?i=$i\">&#x0414;a&#x043B;ee</a><br/>\n"; }
print "</p>\n";
print "<p align=\"center\">\n";
if ($i == $total) {
print "<br/><b><a href=\"/acq/acq.php\">[Ha&#x0447;a&#x043B;o]</a></b>\n"; }
endcard ();
?>