<?php
// Subroutine: form_board.php
//   Output form for board registration / update
// Xinfeng Chen, 2002.11.21
// Require: class CBoard
// Input: $bid, $oBrd, $url
//   For register, set $bid=0; $oBrd->owner=$sv_user;

print <<<EOT
<form method="post" action="$url">
<input type="hidden" name="f_id" value="$bid">
<table border=0 cellpadding=3 cellspacing=1 width=600 align=center class=forumLine>
<tr>
 <td align=center colspan=2 class=rowCaption>免费论坛系统</td>
</tr>
<tr>
 <td colspan=2 class=rowCat>● 申请完成后，您即可获得自己的论坛($prgurl/viewboard.php?bid=论坛ID)
 <BR>● 带 <em>*</em> 为必填 </td>
</tr>
<tr>
 <td align=right width=186 class=row1><em>*</em>论坛名称：</td>
 <td class=row1><INPUT maxLength=20 name=f_name value='$oBrd->name' class=plain></td>
</tr>
<tr>
 <td align=right class=row2><em>*</em>论坛版主名称：</td>
 <td class=row2>
 <INPUT size=12 name=f_user value='$oBrd->owner' class=plain>
 <em>（注意：您填入的版主名称必须有<a href=zuser_reg.php>注册</a>过，否则不能申请论坛）</em></td>
</tr>
<tr>
 <td align=right class=row1><em>*</em>您注册时填的密码：</td>
 <td class=row1><INPUT size=12 name=f_pass type=password class=plain></td>
</tr>
<tr>
 <td align=right class=row2><em>*</em>您的Email地址：</td>
 <td class=row2><INPUT maxLength=80 name=f_o_mail value='$oBrd->o_mail' class=plain></td>
</tr>
<tr>
 <td align=right class=row1>您的主页的URL：</td>
 <td class=row1><INPUT maxLength=80 name=f_o_url size=65 value='$oBrd->o_url' class=plain></td>
</tr>
<tr>
 <td align=right class=row2>请设定副版主名称：</td>
 <td class=row2>
 <INPUT name=f_owner1 size=12 value='$oBrd->owner1' class="plain">
 <INPUT name=f_owner2 size=12 value='$oBrd->owner2' class="plain">
 　<em>如果您不想有副版主，此处请留空</em></td>
</tr>
<tr>
 <td align=right class=row1>论坛简介：</td>
 <td class=row1><textarea cols=63 name=f_desc rows=5 class=plain>$oBrd->desc</textarea></td>
</tr>
<tr>
 <td align=right class=row2>论坛头部显示信息：<br><em>（支持 html）</em></td>
 <td class=row2><textarea cols=63 name=f_htmlt rows=5 class=plain>$oBrd->htmlt</textarea></td>
</tr>
<tr>
 <td align=right class=row1>论坛尾部显示信息：<br><em>（支持 html）</em></td>
 <td class=row1><textarea cols=63 name=f_htmlb rows=5 class=plain>$oBrd->htmlb</textarea></td>
</tr>
<tr align="center">
 <td colspan=2 class=row2><input type=submit value="填好了，继续！"></td>
</tr>
</table></form>    
EOT;

?>