<!--#include file="conn.asp"-->
<!--#include file="denlu.asp"-->
<%
set rs=server.createobject("adodb.recordset")
rs.open "select * from faq where id="&request("id"),conn,3
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel=stylesheet type="text/css" href="js/media.css">
<link rel=stylesheet type="text/css" href="js/form_media.css">
<script language="JavaScript" src="js/whir.js"></script>
<title>无标题文档</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 00px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style></head>

<script language=javascript>
function add() {
if (document.form1.title.value=="")
	{
	  alert("请输入留言标题！")
	  document.form1.title.focus()
	  return false
	 } 
if (document.form1.setmsg.value=="")
	{
	  alert("请输入留言内容！")
	  document.form1.setmsg.focus()
	  return false
	 } 
}
</script>	
<body>
<table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="35"><font color="#FF0000">当前位置：FAQ留言板管理 --＞增加常见问题</font>　　　　（带“<font color="#FF0000">*</font>”为必填项） </td>
  </tr>
  <tr> 
      <td height="1" bgcolor="#4E6A82"></td>
  </tr>
</table>
<table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
  <form action="faq_modiok.asp" method="post" name="form1" onsubmit="return add()">
    <TR> 
      <TD HEIGHT="1" COLSPAN="2"></TD>
    </TR>
    <tr>
      <td height="35" align="right">类　　别：</td>
      <td height="35">常见问题</td>
    </tr>
    <tr> 
      <td width="27%" height="35" align="right">留言标题：</td>
      <td width="73%" height="35"> <input name="title" type="text" class="text" id="title" value="<%=rs("title")%>" size="40" maxlength="50"> 
        <font color="#FF0000">*</font></td>
    </tr>
    <tr>
      <td height="35" align="right">留 言 者：</td>
      <td height="35"><input name="setname" type="text" class="text" id="setname" value="<%=rs("setname")%>" size="20" maxlength="50">        </td>
    </tr>
    <tr>
      <td height="35" align="right">留言内容：</td>
      <td height="35"><textarea name="setmsg" cols="50" rows="10" class="text" id="setmsg"><%=rs("setmsg")%></textarea>
      <font color="#FF0000">*</font> </td>
    </tr>
    <tr>
      <td height="35" align="right">是否已审核：</td>
      <td height="35"><input name="isreply" type="radio" value="0" <%if rs("isreply")="0" then%>checked<%end if%>>
否
  <input type="radio" name="isreply" value="1" <%if rs("isreply")="1" then%>checked<%end if%>>
是</td>
<!--
    <tr>
      <td height="35" align="right">是否图片新闻：</td>
      <td height="35"><input name="ispic" type="radio" value="0" checked onclick="javascript:changepic(0);">
      否
        <input type="radio" name="ispic" value="1" onclick="javascript:changepic(1);">
      是</td>
    </tr>
    <tr id="t1" style="display:'none'">
      <td height="35" colspan="2"><table width="100%" height="35"  border="0" cellpadding="０" cellspacing="0">
        <tr>
          <td width="27%" height="35"><div align="right">新闻简介（中文）：</div></td>
          <td width="73%" height="35"><div align="left">
            <textarea name="Jianjie" cols="50" rows="5" class="text" id="Jianjie"></textarea>
          </div></td>
        </tr>
        <tr>
          <td height="35"><div align="right">新闻简介（英文）：</div></td>
          <td height="35"><div align="left">
            <textarea name="Jianjie_eng" cols="50" rows="5" class="text" id="Jianjie_eng"></textarea>
          </div></td>
        </tr>
      </table></td>
    </tr>
-->
    <tr>
      <td height="35" align="right">回复内容：</td>
      <td height="35"><textarea name="replymsg" cols="50" rows="10" class="text" id="replymsg"><%=rs("replymsg")%></textarea></td>
    </tr>
    <tr> 
      <td height="40" colspan="2" align="center">
        <input type="hidden" value="<%=rs("id")%>" name="id">
        <input type="hidden" value="<%=request("topage")%>" name="topage">
        <input name="image" type="image" src="images/submit.gif" width="72" height="21">
　<img src="images/back.jpg" width="72" height="21" onclick="history.go(-1)"></td>
    </tr>
  </form>
</table>
</body>
</html>
