View file katrinka.ru/admin/tags.php

File size: 1.32Kb
<?php
	header("Content-type: text/html");;
?>
<html>
<head><title>хРТБЧМЕОЙЕ ФЕЗБНЙ</title></head>
<body>
<?php
  include '../wap/config.php';

  if (!($conn=pg_connect("host=$dbhost port=$dbport dbname=$dbname user=$dbuser password=$dbpass"))) {
    echo ("пЫЙВЛБ РПДЛМАЮЕОЙС Л вд!\n");
  };
	$res=pg_query($conn, "SET CLIENT_ENCODING TO 'KOI8';");

?>
<center><b>дПВБЧЙФШ ФЬЗ</b></center>
<form action="tag_add.php" method=post>
<table bgcolor="f0f0f0">
<?php
print "<tr><td>фЬЗ: </td><td><input type=text name=\"tag\" value=\"".$tag."\" size=60></td></tr>\n";
print "<tr><td>фЕЛУФ: </td><td><input type=text name=\"txt\" value=\"".$txt."\" size=80></td></tr>\n";
?>
</table>
<input type=submit value="дПВБЧЙФШ">
&nbsp;&nbsp;
<input type=reset value="пЮЙУФЙФШ">
</form>
<center><b>уРЙУПЛ ФЕЗПЧ Ч ВБЪЕ</b></center>
<table width="100%">
<tr align=center bgcolor="e0e0e0"><td>N</td><td>фЬЗ</td><td>фЕЛУФ</td></tr>

<?php
	$res=pg_query($conn, "select id,tag,txt from chat_tags order by tag;");
	$rows=pg_numrows($res);
	for ($i=0; $i<$rows; $i++) {
		print "<tr align=center bgcolor=\"efefef\">".
			"<td><a title=\"тЕДБЛФЙТПЧБФШ ФЬЗ\" href=\"tag_edit.php?id=".pg_result($res,$i,0)."\">".$i."</a></td><td>".
			pg_result($res,$i,1)."</td><td>".
			pg_result($res,$i,2)."</td><td>".
			"</td></tr>\n";
	}	
	pg_close($conn);
?>

</table>

</body>
</html>