<!--#include file="logout.asp" -->
<!--#include file="../conn.asp" -->
<%
id=request("id")
page=request("page")
set rs=conn.execute("select * from news where id="&id)
title=rs("title")
Content=rs("Content")
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
<Script Language=JavaScript>
	// 当上传图片等文件时，往下拉框中填入图片路径，可根据实际需要更改此函数
	function doChange(objText, objDrop){
		if (!objDrop) return;
		var str = objText.value;
		var arr = str.split("|");
		var nIndex = objDrop.selectedIndex;
		objDrop.length=1;
		for (var i=0; i<arr.length; i++){
			objDrop.options[objDrop.length] = new Option(arr[i], arr[i]);
		}
		objDrop.selectedIndex = nIndex;
	}
	// 表单提交客户端检测
	function doCheck(){

		if (document.myform.title.value==""){
			alert("专业名称不能为空！");
			document.myform.title.focus();
			return false;
		}
		// getHTML()为eWebEditor自带的接口函数，功能为取编辑区的内容
		if (eWebEditor1.getHTML()==""){
			alert("专业介绍不能为空！");
			
			return false;
		}

	}
	</Script>
<link href="admin_style.css" rel="stylesheet" type="text/css">
</head>

<body>
<table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="100%"><table width="100%"  border="0" cellpadding="0" cellspacing="0" background="images/main_bg_top.gif">
      <tr>
        <td width="4%" align="left"><img src="images/main_left_top.gif" width="26" height="36"></td>
        <td width="92%" valign="bottom" background="images/main_bg_top.gif"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="10"></td>
          </tr>
          <tr>
            <td height="25"><div align="center" class="bai_font"> 修 改 问 答</div></td>
          </tr>
        </table></td>
        <td width="4%" align="right"><img src="images/main_right_top.gif" width="26" height="36"></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="500" valign="top" class="lb"><form action="save.asp?action=modfaq" method="post" name="myform" id="myform" onSubmit="return doCheck();">
      <% '取保存的方件名（带路径），如果不要带路径的填充下拉框，可以在下面的表单项加入onchange事件 %>
<input type=hidden name=d_savefilename value="<%=sSaveFileName%>">
<% '取保存的文件名，使用带路径的填充下拉框 %>
<input type=hidden name=d_savepathfilename onChange="doChange(this,document.myform.d_picture)" value="<%=sSavePathFileName%>">
      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr bgcolor="#f4f4f4">
          <td width="18%" height="22" align="right">问题：</td>
          <td width="82%"><input name="title" type="text" id="title" value="<%=title%>">
            <input name="id" type="hidden" id="id" value="<%=id%>">
            <input name="page" type="hidden" id="page" value="<%=page%>"></td>
        </tr>
        <tr>
          <td height="22" align="right">解答：</td>
          <td><textarea name="content" style="display:none"><%=Content%></textarea>
<IFRAME ID="eWebEditor1" SRC="eWebEditor/ewebeditor.asp?id=content&style=s_blue&originalfilename=d_originalfilename&savefilename=d_savefilename&savepathfilename=d_savepathfilename"  FRAMEBORDER="0" SCROLLING="no" WIDTH="550" HEIGHT="350"></IFRAME></td>
        </tr>
        <tr bgcolor="#f4f4f4">
          <td height="22" align="right"><input type="reset" name="Submit" value="重置">
            &nbsp;&nbsp;&nbsp;</td>
          <td>&nbsp;&nbsp;&nbsp;
            <input type="submit" name="Submit2" value="提交"></td>
        </tr>
      </table>
    </form>
    </td>
  </tr>
  <tr>
    <td><table width="100%"  border="0" cellpadding="0" cellspacing="0" bgcolor="#275BCB">
      <tr>
        <td width="6%"><img src="images/main_left_btm.gif" width="38" height="25"></td>
        <td width="88%" bgcolor="#275BCB" class="style1">&nbsp;</td>
        <td width="6%" align="right"><img src="images/main_right_btm.gif" width="38" height="25"></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
