Размер файла: 1.21Kb
<?
require("functionChat.ssp");
openDB();
$result = checkpass($login,$pass,"friends");
$friends = mysql_result($result,0, "friends");
mysql_close();
require("headerwml.ssp");
$r = GetRandom();
echo "<card id=\"$MagMail\" title=\"$menu[51]\">";
echo "<onevent type=\"onenterforward\">\n";
echo "<refresh>\n";
echo "<setvar name=\"sel\" value=\"\"/>\n";
echo "</refresh></onevent>\n";
echo "<p align=\"center\">";
if ($friends == "") echo $menu[49];
else
{
$records = explode($dlm,$friends);
$maxrec = count($records);
echo "N (1-$maxrec):<br/>";
echo "<input name=\"sel\" emptyok=\"true\" format=\"*N\" title=\"=\" type=\"text\" maxlength=\"2\"/>";
echo "<a href=\"editNote.php?p=$r&sel=$(sel)&login=$login&pass=$pass\">$menu[52]</a><br/>\n";
echo "<a href=\"delNote.php?p=$r&sel=$(sel)&login=$login&pass=$pass\">$menu[53]</a>\n";
echo "</p><p>\n";
for ($i = 1; $i <= $maxrec; $i++)
{
echo "<b>$i.</b> ".win2utf($records[$i-1])."\n";
if ($i != $maxrec) { echo "<br/>\n";}
}
}
echo "</p><p align=\"center\"><a href=\"selnick.php?p=$r&login=$login&pass=$pass\">$menu[17]</a>\n";
echo "</p>";
include ("bottom.inc");
?>