<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="conn.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="../../css.css" rel="stylesheet" style="text/html"/>
<title>后台|技术文摘添加</title>
<style type="text/css">
<!--
.STYLE1 {color: #FF0000}
-->
</style>
</head>

<body>
<center>
<div class="itemaddinfor">
<script language="javascript">
function checktitle()
{
if(window.inforform.infortitle.value=="")
{
alert("标题不能为空!");
window.inforform.infortile.focus();
return false;
}
return true;
}
</script>

<form action="savetech.asp" method="post" name="inforform" onSubmit="return checktitle()">
<table width="104%" border="0" cellpadding="0" cellspacing="0" bordercolor="#336600" >
  <tr>
    <td height="38" align="right"><span class="STYLE9">作者:</span></td>
    <td width="651"><div align="left" class="inputtext STYLE9">
	
      <input name="writer" type="text" id="writer" />
    </div></td>
  </tr>
  <tr>
    <td height="43"><div align="right" class="STYLE9">文件类型:</div></td>
    <td><div align="left" class="inputtext STYLE9">
      <select name="techtypename" id="techtypename">
	  <%
		set rstype=server.CreateObject("adodb.recordset")
		rstype.activeconnection=conn
		rstype.cursortype=3
		sql="select * from techtype"
		rstype.open sql
		do while not rstype.eof
	  %>
	  <option value="<%=rstype("techtypename")%>"><%=rstype("techtypename")%></option>
	  <%
	  rstype.movenext
	  loop
	  %>
      </select>
    </div></td>
  </tr>
  <tr>
    <td height="43"><div align="right" class="STYLE9">摘自:</div></td>
    <td><div align="left" class="inputtext STYLE9">
      <input name="techfrom" type="text" id="techfrom" />
    </div>      </td>
  </tr>
  <tr>
    <td height="59"><div align="right" class="STYLE9">文章标题:</div></td>
    <td><div align="left" class="inputtext STYLE9">
      <textarea name="techtitle" cols="65" rows="2" id="techtitle"></textarea>
      <span class="STYLE1">*</span>    </div></td>
  </tr>
  <tr>
    <td height="436"><div align="right" class="STYLE9">文件内容:</div></td>
    <td><div align="left" class="inputtext STYLE9" >
      <textarea name="techcontent" style="DISPLAY:none"></textarea>
    </div>
      <iframe src="../edit/ewebeditor.htm?id=techcontent" width="600" height="405" scrolling="no" frameborder="0" class="STYLE9" ID="editor"></iframe></td>
  </tr>
  
  <tr>
    <td height="34" align="right"><span class="STYLE9">关键词:</span></td>
    <td height="34"> <div align="left"><span class="STYLE9">&nbsp;&nbsp;
        <input name="keyword" type="text" id="keyword" />
        <input name="action" type="hidden" id="action" value="add" />
    </span></div></td>
  </tr>
  <tr>
    <td height="39" colspan="2">
      <div align="center" class="STYLE9">　　        </div>      <div align="center" class="STYLE9">
        <input type="submit" name="Submit22" value="提交" class="submitbotton" />
        &nbsp;  &nbsp;  &nbsp;
        <input type="reset" name="Submit2" value="重置" />
        </div></td>
    </tr>
  <tr bgcolor="#0099FF" height=5px>
    <td colspan="2">&nbsp;</td>
  </tr>
</table>
</form>
</div>
</center>
</body>
</html>
<%
set rstype=nothing
set rsit=nothing
set rsw=nothing
conn.close()
%>
