<%dbdns="../../"%>
<!--#include file="../../inc/conn.asp"-->
<!--#include file="../cook.asp"-->
<%if fla10<>1 then
response.write "<script>alert('操作权限出错，您没有权限操作些功能');history.go(-1);</Script>"
Response.End 
end if%>
<%=citycss%>
<br>
<script language="JavaScript">
<!--
function checkdata() {
if( addform.helptit.value =="") {
alert("\添加帮助出错，下面是产生错误的可能原因：\n\n·请输入完整的帮助标题")
return false;
}
if( addform.help.value =="") {
alert("\添加帮助出错，下面是产生错误的可能原因：\n\n·请输入完整的帮助内容")
return false;
}
if( addform.helpsort.value =="") {
alert("\添加帮助出错，下面是产生错误的可能原因：\n\n·请选择帮助分类")
return false;
}
return true;
}
// -->
</script>
<table width="97%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolorlight="#cccccc" bordercolordark="#FFFFFF">
<%sql="select * from SMT_help where SMT_id="&request("id")
set rs=server.createobject("adodb.recordset")                     
rs.open sql,conn,1,1%>
<form name="addform" method="post" action="helpsave.asp?action=edit&page=<%=request("page")%>" onSubmit="return checkdata()">
<input name="id" type="hidden" value="<%=request("id")%>">
  <tr>
    <td width="21%" align=center height=30>帮助标题</td>
	<td width="79%">　<input name="helptit" type="text" size="39" maxlength="20" value="<%=rs("SMT_helptit")%>"> 20个汉字</td>
  </tr>
  <tr>
    <td align=center height=30>内容</td>
	<td>　<textarea name="help" cols=80 rows=13><%=rs("SMT_help")%></textarea></td>
  </tr>
  <tr>
    <td height=30 align=center>帮助分类</td>
	<td>　<select name="helpsort">
<%sql1="select * from SMT_helpsort order by SMT_date desc"
set rs1=server.createobject("ADODB.Recordset")
rs1.open sql1,conn,1,1
while not rs1.eof%>
<option value="<%=rs1("SMT_id")%>"<%if rs("SMT_helpsort")=rs1("SMT_id") then%> selected<%end if%>><%=rs1("SMT_helpsort")%></option>
<%rs1.movenext
wend
rs1.Close()%> 
</select></td>
  </tr>
  <tr>
    <td height=30 align="center" colspan="2"><input type="submit" name="Submit" value="提 交" class="input1"></td>
  </tr>
</form>
<%rs.close%>
</table>
