<!--#include file="managebh.asp"-->
<!--#include file="ljconn.asp"-->
<%
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from qtxz where id="&request("id")&" order by id desc",conn,1,1
%>
<html><head><title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="img/css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {
	font-size: 12px;
	font-weight: bold;
}
.style3 {font-size: 12px}
.style5 {font-size: 12px; color: #FF0000; }
-->
</style>
</head>
<body>
<table class="tableBorder" width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
<tr bgcolor="#E8F1FF">
<td height="25" align="center" background="img/admin_bg_1.gif"><span class="style1"><font color="#ffffff">修改资源</font> </span></td>
</tr>
<tr bgcolor="#E8F1FF"> 
<form name="myform" method="post" action="saveqtxz.asp?action=edit" OnSubmit="return checkkk()">
<td> 
<table width="100%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#ffffff">
		  
		  
		  		  <tr bgcolor="#E8F1FF"> 
            <td width="20%" align="right"><span class="style3">标题:</span></td>
            <td><input name="title" type="text" id="title" value="<%=rs("title")%>" size="30" maxlength="100">              <span style="color:#FF6600;font-size:12px;">*</span></td>
		  </tr>
		  <tr bgcolor="#E8F1FF"> 
            <td align="right" class="style3">文件: </td>
            <td colspan="3"><input name="img" type="text" id="img" value="<%=rs("link")%>" size="30" readonly="readonly"> 
              <span style="color:#FF6600;font-size:12px;">*</span>
              <input class="button" type="button" name="Submit2" value="上传文件" onClick="window.open('klsdtc.asp?formname=myform&editname=img&uppath=../bookpic&filelx=jpg','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')"></td>
          </tr>
          <tr bgcolor="#E8F1FF"> 
            <td></td>
            <td height="30"> <span class="style3">
              <input type="submit" name="Submit" value=" 修改保存 "> 
              <input onClick="ClearReset()" type=reset name="Clear" value=" 重新填写 ">
              <input name="id" type="hidden" id="id" value="<%=rs("id")%>">
            </span></td>
          </tr>
        </table>
</td>
</form>
</tr>
</table>
<!--#include file="copyright.asp"-->
</body>
</html>

<SCRIPT LANGUAGE="JavaScript">
<!--
function checkkk()
{
     if(checkspace(document.myform.title.value)) {
	document.myform.title.focus();
    alert("请输入标题！");
	return false;
  }
  
       if(checkspace(document.myform.img.value)) {
	document.myform.img.focus();
    alert("请上传文件！");
	return false;
  }


}
function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}
//-->
</script>
<script>
	function regInput(obj, reg, inputStr)
	{
		var docSel	= document.selection.createRange()
		if (docSel.parentElement().tagName != "INPUT")	return false
		oSel = docSel.duplicate()
		oSel.text = ""
		var srcRange	= obj.createTextRange()
		oSel.setEndPoint("StartToStart", srcRange)
		var str = oSel.text + inputStr + srcRange.text.substr(oSel.text.length)
		return reg.test(str)
	}
</script>
