<?php
# Subroutine: adm_board_form.php called by Admin.php
# Xinfeng Chen, 2002.11.22
# Input: $bid

require_once('bin/config.php');
require_once('admin/adm.inc');

#--- Validate dministrator ---
include('admin/adm_validate.php');
if(!$adm_validated){jumpTo('admin.php?cmd=logon'); exit;}

#--- Start Processing ---
require_once('core/class_forum_base.php');
CForumBase::setFileBase("$filepath");
require_once('core/base_memo_file.php');
require_once('core/class_board.php');

#--- Prepare board info ---
$oBrd=new CBoard;
if(!$oBrd->load($bid)){
 $errmsg='board not foud';
 include('admin/adm_board.php');
 exit;
}
$checkedYes=($oBrd->secret)?'checked':'';
$checkedNo=($checked1)?'':'checked';

#--- Print board from ---
page_header();

print <<<EOT
<h1>论坛管理->编辑论坛</h1>
<p>修改论坛设置信息</p>
<FORM method="post" action="?cmd=board_submit">
<input type="hidden" name="f_bid" value="$bid">
<table border=0 cellpadding=4 cellspacing=1 width=100% class="forumline" align="center">
<tr>
 <th class="thHead" colspan=2><b>论坛信息</b></th>
</tr>
<tr>
 <td class="catHead" colspan=2>
 ● 论坛地址 ($prgurl/viewboard.php?id=$bid)<BR>
 ● 带 <font color=red>*</font> 为必填 </td>
</tr>
<tr>
 <td align=right width="186" class="row1"><FONT color=red>*</FONT>论坛名称：</td>
 <td width="466" class="row2"> 
 <INPUT maxLength=20 name=f_name value='$oBrd->name'>
 (Created on: $oBrd->time)</td>
</tr>
<tr> 
 <td align=right width="186" class="row1"><FONT color=red>*</FONT>Secret：</td>
 <td width="466" class="row2"> 
 <input type="radio" name="f_secret" value="0" $checkedNo>NO
 <input type="radio" name="f_secret" value="1" $checkedYes>YES</td>
</tr>
<tr> 
 <td align=right width="186" class="row1"><font color=red>*</font>论坛版主名称：</td>
 <td width="466" class="row2">
 <input size=20 name=f_owner value='$oBrd->owner'>
 </td>
</tr>
<tr> 
 <td align=right width="186" class="row1"><FONT color=red>*</FONT>版主Email地址：</td>
 <td width="466" class="row2"> 
 <INPUT maxLength=80 name=f_o_mail value='$oBrd->o_mail' size="30">
 </td>
</tr>
<tr> 
 <td align=right width="186" class="row1">版主主页URL：</td>
 <td width="466" class="row2"> 
 <INPUT maxLength=80 name=f_o_url size=65 value='$oBrd->o_url'>
</td>
</tr>
<tr> 
 <td align=right width="186" class="row1">副版主名称：</td>
 <td width="466" class="row2"> 
 <INPUT name=f_owner1 size=20 value='$oBrd->owner1'>
 <INPUT name=f_owner2 size=20 value='$oBrd->owner2'>
 </td>
</tr>
<tr> 
 <td align=right width="186" class="row1">论坛简介：</td>
 <td width="466" class="row2"> 
 <textarea cols=63 name=f_desc rows=5>$oBrd->desc</textarea>
 </td>
</tr>
<tr> 
 <td align=right width="186" class="row1">论坛头部显示信息：</td>
 <td width="466" class="row2"> 
 <textarea cols=63 name=f_htmlt rows=5>$oBrd->htmlt</textarea>
 </td>
</tr>
<tr> 
 <td align=right width="186" class="row1">论坛尾部显示信息：</td>
 <td width="466" class="row2"> 
 <textarea cols=63 name=f_htmlb rows=5>$oBrd->htmlb</textarea>
 </td>
</tr>
<tr> 
 <td align=center colspan="2" class="catBottom"> 
 <input type="submit" value="确认完成" name="submit">
 </td>
</tr>
</TABLE>
</FORM>
EOT;

page_footer();

?>