View file magmail/editNote.php

File size: 1.13Kb
<?
                    
require("functionChat.ssp");

$r = GetRandom();

openDB();

$result = checkpass($login,$pass,"*");

if ($sel != "")
{
  $friends = mysql_result($result,0, "friends");
  $records = explode($dlm,$friends);
  if ($sel > count($records)) LogResult($ErrorMess,$InvSelNumber,"prev");
  $rec = win2utf(trim($records[$sel-1]));
}  else LogResult($ErrorMess,$InvSelNumber,"prev");
mysql_close();


require("headerwml.ssp");
echo "<card id=\"$MagMail\" title=\"$menu[52]\">\n";
echo "<onevent type=\"onenterforward\">\n";
echo "<refresh>\n";
echo "<setvar name=\"rec\" value=\"$rec\"/>\n";
echo "</refresh>\n";
echo "</onevent>\n";
echo "<p align=\"center\">"; 

echo "N$sel<br/>";
echo "<input name=\"rec\" maxlength=\"50\" emptyok=\"true\" title=\"=\" type=\"text\"/>\n"; 
echo "</p><p><anchor>- $menu[12]";
echo "<go method=\"post\" href=\"saveNote.php?p=$r&amp;sel=$sel&amp;login=$login&amp;pass=$pass\">\n";
echo "<postfield name=\"rec\" value=\"$(rec)\"/>\n";
echo "</go>\n";
echo "</anchor>\n";
echo "<br/><anchor>- $menu[8]\n";
echo "<prev/></anchor>\n";


echo "</p>";
include ("bottom.inc");
?>