
<!-- #include file="conn.asp"-->
<!-- #include file="language.asp"-->
<% 
if request("exe")="add" then'加新数据
	set rs=server.createobject("adodb.recordset") 
	sql="select * from help_"&language&"" 
	rs.open sql,conn,3,3
	rs.addnew
	
	classID=request("classID") 
	title=request("title")

	username=request("username")
	content=request("content")
	re_content=request("re_content")
	
	rs("classid")=request("classID") 
	rs("title")=request("title")
	rs("username")=request.cookies("username")
	rs("content")=request("content")
	rs("addTime")=now()
	rs("re_content")=request("re_content")
	rs.update
	rs.close
	set rs=nothing
	response.Write("<script>alert('OK！');window.close()</script>")
end if
%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>提问</title>
<style type="text/css">
<!--
body,td,th {
	font-size: 13px;
}
body {
	background-color: #ECE9D8;
}
-->
</style></head>

<body  onLoad="window.resizeTo(500,450);window.moveTo(-6,-6)" onUnload="opener.location.reload()">
<form id="form1" name="form1" method="post" action="">
  <table width="90" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#CCCCCC">
    <tr>
      <td align="right" nowrap bgcolor="#FFFFFF"><%lan(84) '类别选择 
	  %>:</td>
      <td bgcolor="#FFFFFF">
<% 
set rs=server.createobject("adodb.recordset") 
sql="select * from help_class_"&language&"" 
rs.open sql,conn,1,1 
response.Write("id:"&classid)
%>
        <select name="classId" id="classId">
		
		<%
		
		 for i=1 to rs.recordcount%>

          <option value="<%=rs("classId")%>"<%if classId-0=rs("classID") then%> selected <%end if%>><%=rs("className")%></option>
		  <%
		  rs.movenext
		  next
		  rs.close
		  set rs=nothing
		  %>
        </select>      </td>
    </tr>
    <tr>
      <td width="9%" align="right" bgcolor="#FFFFFF"><%lan(85)' 问题名称 
	  %>:</td>
      <td width="91%" bgcolor="#FFFFFF"><input name="title" type="text" id="title" /></td>
    </tr>
    <tr>
      <td align="right" valign="top" bgcolor="#FFFFFF"><%lan(86)' 问题内容 
	  %>:</td>
      <td bgcolor="#FFFFFF"><textarea name="content" cols="50" rows="15" id="content"></textarea></td>
    </tr>
  </table>
  <p align="center">
    <input type="submit" name="Submit" value="<%lan(28)%>" />
    <input type="reset" name="Submit2" value="<%lan(29)' 重置 
	%>" />
    <input name="exe" type="hidden" id="exe" value="add" <%if request("action")="mod" then%>value=mod <%else%>value="add"<%end if%>>
  &nbsp;&nbsp;
  <input type="button" name="Submit3" onClick="window.close()" value="<% lan(50)'关闭窗口 
  %>">
  </p>
</form>
</body>
</html>




