<?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 mail_set where (first='1')";
$res=mysql_query($query);
$row=mysql_fetch_assoc($res);
$admin_email=$row["admin_email"];
$admin_email=stripslashes($admin_email);
$topic_to_seller=$row["topic_to_seller"];
$topic_to_seller=stripslashes($topic_to_seller);
$text_to_seller=$row["text_to_seller"];
$text_to_seller=stripslashes($text_to_seller);
$topic_to_buyer=$row["topic_to_buyer"];
$topic_to_buyer=stripslashes($topic_to_buyer);
$text_to_buyer=$row["text_to_buyer"];
$text_to_buyer=stripslashes($text_to_buyer);
$reg_topic=$row["reg_topic"];
$reg_topic=stripslashes($reg_topic);
$reg_text=$row["reg_text"];
$reg_text=stripslashes($reg_text);
?>

<form action="action_email.php" method=post>
<table bgcolor="#D3D3D3">
<tr bgcolor=white>
<td>Ваш E-Mail:</td><td><input type=text name='admin_email' size=40 value="<?php echo "$admin_email"; ?>"></td>
</tr>
<tr bgcolor=white>
<td>Тема письма продавцу:</td><td><input type=text name='topic_to_seller' size=40 value="<?php echo "$topic_to_seller"; ?>"></td>
</tr>
<tr bgcolor=white>
<td>Текст письма продавцу:</td><td><textarea rows=7 cols=30 name='text_to_seller'><?php echo "$text_to_seller"; ?></textarea></td>
</tr>
<tr bgcolor=white>
<td>Тема письма покупателю:</td><td><input type=text name='topic_to_buyer' size=40 value="<?php echo "$topic_to_buyer"; ?>"></td>
</tr>
<tr bgcolor=white>
<td>Текст письма покупателю:</td><td><textarea rows=7 cols=30 name='text_to_buyer'><?php echo "$text_to_buyer"; ?></textarea></td>
</tr>
<tr bgcolor=white>
<td>Тема регистрационного письма:</td><td><input type=text name='reg_topic' size=40 value="<?php echo "$reg_topic"; ?>"></td>
</tr>
<tr bgcolor=white>
<td>Текст регистрационного письма:</td><td><textarea rows=7 cols=30 name='reg_text'><?php echo "$reg_text"; ?></textarea></td>
</tr>
<tr bgcolor=white><td colspan=2><center><input type=submit value="Изменить"></td></tr>
</table>
</form>
</BODY></HTML>
<?php
mysql_close ($link);
?>