<!--<?php print <<<EOT
-->
<table width='$tablewidth' cellspacing=0 cellpadding=0 align=center>
<tr><td align=left><img src='$imgpath/$stylepath/index/home.gif' align=absbottom>
<b><a href='$db_bfn'>$db_bbsname </a>-> {#sendemail_guide}</b></td></tr></table><br>

<form method='post' action='sendemail.php?'>
<input type="hidden" name='action' value='$action'>
<input type="hidden" name='step' value='2'>
<input type="hidden" name='uid' value='$userdb[uid]'>
<table width='$tablewidth' cellspacing=1 cellpadding=3 align=center $i_table>
<tr><td colspan='2' class=head><b>{#sendemail_guide}</b></td></tr>
<tr><td class='t_one' width='21%'>{#sendemail_fromname}</td>
<td class='t_one'><input type='text' name='fromname' size='25' maxlength='40' value=$windid disabled></td></tr>
<tr><td class='t_one'>{#sendemail_fromemail}</td>
<td class='t_one'><input type='text' name='fromemail' size='25' value=$winddb[email]></td></tr>
<tr><td class='t_one'>{#sendemail_toname}</td>
<td class='t_one'><input type='text' name='sendtoname' size='25' value='$to_user' $ifdisabled></td></tr>
<tr><td class='t_one'>{#sendemail_toemail}</td>
<td class='t_one'>
<!--
EOT;
if($hiddenmail){print <<<EOT
-->
{#sendemail_hidemail}
<!--
EOT;
}else{print <<<EOT
-->
<input type='text' name='sendtoemail' size='25' value='$to_mail' $ifdisabled>
<!--
EOT;
}print <<<EOT
-->
</td></tr>
<tr><td class='t_one'>{#title}</td>
<td class='t_one'><input type='text' name='subject' size='65' value='$atc_name'></td></tr>
<!--
EOT;
if($othergd){
$rawwindid=addslashes($windid);
print <<<EOT
-->
<tr class='t_one'><td>{#gd_check}</td>
<td><input type='text' name='gdcode' size=8>&nbsp;<img src="ck.php?windid=$rawwindid" align=absmiddle></td></tr>
<!--
EOT;
}print <<<EOT
-->
<tr><td class='t_one' valign='top'>{#content}</td>
<td class='t_one'>
<!--
EOT;
if($action=='tofriend'){print <<<EOT
-->
<textarea rows='9' cols='65' name='atc_content'>
{#sendemail_info}
</textarea>
<!--
EOT;
}else{print <<<EOT
-->
<textarea rows='9' cols='65' name='atc_content'></textarea>
<!--
EOT;
}print <<<EOT
-->
</td></tr></table>

<br><center><input type='submit' name='sendsubmit' value='{#submit}'></center></form>	
<!--
EOT;
?>-->