⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pic_edi.asp

📁 个人网站系统 毕业论文 大家可以借鉴下
💻 ASP
字号:
<!--#include file="conn.asp"-->
<script laguage="javascript">
<!--
function form1_onsubmit()
{
if (document.form1.dy_title.value=="")
    {
      alert("请输入主题!")
      document.form1.dy_title.focus()
      return false
     }
else if(document.form1.dy_content.value=="")
    { 
      alert("路径不能为空")
      document.form1.dy_content.focus()
      return false
     }
}
-->
</script><%
if request.Form("sub")="sub1" then
dy_title=trim(request.Form("dy_title"))
dy_id=cint(request.Form("pic_id"))
set rs=server.CreateObject("adodb.recordset")
sql="select * from dy_load where dy_id="&dy_id
rs.open sql,conn,3,3
rs("dy_title")=dy_title
rs.update
%><script language="JavaScript">
  alert("编辑成功!")
  window.location.href("pic.asp")
  </script>
  <%response.End()
  end if%>
<%id=request.QueryString("id")
if id<>"" then
set rs=server.CreateObject("adodb.recordset")
sql="select * from dy_load where dy_id="&id
rs.open sql,conn,1,1
%>
<form name="form1" method="post" action="pic_edi.asp" onsubmit="return form1_onsubmit()">
  <table width="409" height="197" border="0" cellpadding="0" cellspacing="1" bgcolor="#009900">
    <tr align="center" bgcolor="#009900"> 
      <td height="31" colspan="2"><font color="#FFFFFF">图片编辑</font></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="109" height="38" align="right">主题:</td>
      <td width="300"><input name="dy_title" type="text" id="dy_title" size="30" value="<%=rs("dy_title")%>"></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td align="right">图片:</td>
      <td align="left" valign="top"><img src="<%=rs("dy_content")%>" width="160" height="150"> </td>
    </tr>
    <tr align="center" bgcolor="#FFFFFF"> 
      <td colspan="2"><input type="submit" name="submit" value="提交">
          <input type="hidden" name="sub" value="sub1">
		 <input type="hidden" name="pic_id" value="<%=id%>">
        <input type="reset" name="Submit2" value="重置"></td>
    </tr>
  </table>
</form>
<%end if 
  rs.close
  set rs=nothing
  conn.close
  set conn=nothing
  %>
 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -