File size: 1.02Kb
<html>
<head><title>тЕДБЛФЙТПЧБОЙЕ ЪБРЙУЙ П ФЬЗЕ</title></head>
<body>
<?php
include '../wap/config.php';
if ($id=='') exit;
if (!($conn=pg_connect("host=$dbhost port=$dbport dbname=$dbname user=$dbuser password=$dbpass"))) {
echo ("пЫЙВЛБ РПДЛМАЮЕОЙС Л вд!\n");
exit;
};
pg_query($conn, "SET CLIENT_ENCODING TO 'KOI8';");
$res=pg_query($conn, "select tag,txt from chat_tags where id='$id';");
?>
<center><b>тЕДБЛФЙТПЧБОЙЕ</b></center>
<form action="tag_update.php" method=post>
<input type=checkbox name="delete" value="1"> <b>хДБМЙФШ ФЬЗ ЙЪ ВБЪЩ</b><br><br>
<table>
<?php
print "<tr><td>фЬЗ: </td><td><input type=text name=\"tag\" value=\"".pg_result($res,0,0)."\" size=60></td></tr>\n";
print "<tr><td>фЕЛУФ: </td><td><input type=text name=\"txt\" value=\"".pg_result($res,0,1)."\" size=60></td></tr>\n";
print "</table>\n";
print "<input type=hidden name=\"id\" value=\"".$id."\">\n";
pg_close($conn);
?>
<input type=submit value="пВОПЧЙФШ">
<input type=reset value="пЮЙУФЙФШ">
</form>
</body>
</html>