<!--#include file="../conn2.asp"-->
<!--#include file="set.asp"--><head>
<LINK href="css.css" type=text/css rel=stylesheet>
<%


	action=request.querystring("action")
	bid=int(request.querystring("bid"))
	 if action="edit" then
	set bidreco=server.createobject("adodb.recordset")
	    sqlstr="select * from board where bid=" &bid
	    bidreco.open sqlstr,conn,1,1
	   
%>

<style type="text/css">
<!--
.style1 {color: #000000}
.STYLE3 {color: #000000; font-weight: bold; }
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>
<div align="center">
  <center>
    <br>
    <table width="90%" border="0" align="center" cellpadding="2" cellspacing="1" bordercolordark="#FFFFFF" bgcolor="#CCCCCC">
      <form method="post" name="form1" action="save_board.asp?bid=<%=bidreco("bid")%>" onsubmit="return ck1()">
        <tr bgcolor="f1f1f1"> 
          <td height="23" colspan="2" align="center" bgcolor="f1f1f1" class="norightbuttonborder2"><span class="STYLE3">一级栏目修改</span></td>
        </tr>
        <tr bgcolor="#FFFFFF"> 
          <td width="30%" height="23" align="center"><div align="right">论坛名称：</div></td>
          <td width="70%" height="23"> <input type="text" name="bidname" size="49" maxlength="60" class=wenbenkuang  value="<%=bidreco("bidname")%>"> 
          </td>
        </tr>
        <tr bgcolor="#FFFFFF"> 
          <td width="30%" height="23" align="center"><div align="right">论坛logo：</div></td>
          <td width="70%"> <input type="text" name="logo" size="49" maxlength="60" class=wenbenkuang  value="<%=bidreco("logo")%>"> 
          <a href=# onclick="window.open('/upload.asp?formname=form1&editname=logo&infoname=bbs&filelx=jpg','','status=no,scrollbars=no,top=20,left=110,width=420,height=25')">上传图片</a> 
          </td>
        </tr>
        <tr bgcolor="#FFFFFF"> 
          <td width="30%" height="11" align="center"><div align="right">论坛排序：</div></td>
          <td width="70%" height="11"> <input type="text" name="px" size="17" maxlength="60" class=wenbenkuang  value="<%=bidreco("px")%>" onkeypress="return event.keyCode>=48&&event.keyCode<=57">
            请填写数字 </td>
        </tr>
        <tr bgcolor="#FFFFFF">
          <td height="11" align="center"><div align="right"> <%if bidreco("rzh")=1 then 
    aa="checked"
    end if%>是否认证论坛：</div></td>
          <td width="70%" height="11"><INPUT id=advcheck name=advshow type=checkbox value=1 onclick=showadv() <%=aa%> >
          <label for=advcheck> 是（选中即必需是认证会员才能进入）</label></td>
        </tr> <tr bgcolor="#FFFFFF" id=adv <%if bidreco("rzh")=1 then%>style=DISPLAY:<%else%>style=DISPLAY:none<%end if%>> 
    <td height="25" colspan="2">  
      <table border="0" width="100%" cellpadding="2" cellspacing="1" bordercolordark="#FFFFFF" >
        <tr>
          <td width="30%">
            <p align="right">认证用户：</td>
          <td width="70%"><font color="#336699"> 
          <textarea name="username" cols="60" rows="5" class="wenbenkuang" id="username"><%=bidreco("username")%></textarea><br>
          请用,号分开，如“用户一,用户二”</font></td>
        </tr>
    </table>    </td>
  </tr>
        <tr bgcolor="#FFFFFF"> 
          <td width="30%" height="79" align="center"><div align="right">论坛介绍：</div></td>
          <td width="70%" height="79"> <textarea name="bidinfo" cols="48" rows="5" class="wenbenkuang" ><%=bidreco("bidinfo")%></textarea> 
          </td>
        </tr>
        <tr bgcolor="#FFFFFF"> 
          <td height="29" colspan="2" align="center"> <p align="center"> 
              <input name="B1" type="submit" class="go-wenbenkuang" value=" 修 改">
            　
              <input name="Submit" type="reset" class="go-wenbenkuang" value=" 重 置" />
              　
              <input name="Submit2" type="button" class="go-wenbenkuang" value=" 返 回"  onclick="javascript:location.href='boardman.asp'"/>
</p></td>
        </tr>
      </form>
    </table>
  </center>
</div>
<script>
function showadv(){
if (document.form1.advshow.checked == true) {
adv.style.display = "";
}else{
adv.style.display = "none";
}
}
function ck1()
{



if(form1.bidname.value=="")
{
alert("请输入名称")
form1.bidname.focus()
return false
}
if(form1.logo.value=="")
{
alert("请输入logo")
form1.logo.focus()
return false
}
if(form1.px.value=="")
{
alert("请输入排序")
form1.px.focus()
return false
}
if(form1.bidinfo.value=="")
{
alert("请输入介绍")
form1.bidinfo.focus()
return false
}

}


</script>
<%end if %>