View file znak_myxxx.ru/znak_myxxx.ru/newyes.php

File size: 2.33Kb
<?php
include("service.php");
include("cards.php");
include("functext.php");
$sector = array(
0 => "Pa&#x0437;&#x043D;oe",
1 => "&#x041F;ap&#x043D;&#x0438;",
2 => "&#x0414;e&#x0432;y&#x0448;&#x043A;&#x0438;",
3 => "&#x0418;&#x043D;&#x0442;&#x0438;&#x043C;, ce&#x043A;c",
4 => "&#x0413;e&#x0438;",
5 => "&#x041B;ec&#x0431;&#x0438;",
6 => "&#x041F;ap&#x044B;, &#x0411;&#x0438;",
7 => "&#x0424;o&#x0442;o, &#x0432;&#x0438;&#x0434;eo, MMS",
 );
$data=date("md");
$dty=$dty=strftime ("%m%d", strtotime("-1 day"));
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=\"add.php\"/></do>\n";
print "<do name=\"be\" type=\"options\" label=\"Ha&#x0447;a&#x043B;o\"><go href=\"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 `log` = $dty AND `vis` NOT LIKE 0"),0);
$sql=mysql_query("SELECT * FROM `asq` WHERE `log` = $dty AND `vis` NOT LIKE 0 ORDER BY `id` DESC LIMIT $i,$mes");
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'];
$sect = $data['sect'];
$name = k2u($data['name']);
$text = k2u($data['text']);
$num = k2u($data['num']);
$nyes = $data['nyes'];
$em = k2u($data['em']);
$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 "[".$sector[$sect]."]</small>\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.php\">[Ha&#x0447;a&#x043B;o]</a></b>\n"; }
endcard ();
?>