<?php
include ("ad_header.php");
?>
<HTML><HEAD><TITLE>Изменение настроек</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1251">
</HEAD>
<BODY text=#000000 vLink=#00468c aLink=#ff6633 link=#0053a2 bgColor=#ffffff>
<?php
$query="select * from settings where (first='1')";
$res_n=mysql_query($query);
$rown=mysql_fetch_assoc($res_n);
$page_number=$rown["page_number"];
$foto_size=$rown["foto_size"];
?>
<form action="action_set.php" name=form method=post>
<table bgcolor="#D3D3D3">
<tr bgcolor=white>
<td>Число товаров на странице:</td><td><input type=text name='page_number' value="<?php echo "$page_number"; ?>" size=7></td>
</tr>
<tr bgcolor=white>
<td>Максимальный размер фото товара:</td><td><input type=text name='foto_size' value="<?php echo "$foto_size"; ?>" size=7></td>
</tr>
<tr bgcolor=white><td colspan=2><center><input type=submit value="Изменить"></td></tr>
</table>
</form>

</BODY></HTML>
<?php
mysql_close ($link);
?>