File size: 1.11Kb
<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 photos.id,users.login,photos.path from photos,users where photos.id=$id and users.id=photos.uid;");
?>
<center><b>тЕДБЛФЙТПЧБОЙЕ</b></center>
<form action="photo_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=\"login\" value=\"".pg_result($res,0,1)."\" size=60></td></tr>\n";
print "<tr><td>рХФШ Л ЖБКМХ: </td><td><input type=text name=\"path\" value=\"".pg_result($res,0,2)."\" size=60></td></tr>\n";
print "</table>\n";
print "<input type=hidden name=\"id\" value=\"".pg_result($res,0,0)."\">\n";
pg_close($conn);
?>
<input type=submit value="пВОПЧЙФШ">
<input type=reset value="пЮЙУФЙФШ">
</form>
</body>
</html>