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

📄 index.asp

📁 电子商务系统Easy_Buy是一个在线销售系统
💻 ASP
字号:
<!--#include file="../login/0.asp"--><!--#include file="../../conn/conn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../css/css.css" rel="stylesheet" type="text/css">
<STYLE>
BODY {
	SCROLLBAR-FACE-COLOR: #799ae1;
	SCROLLBAR-HIGHLIGHT-COLOR: #799ae1;
	SCROLLBAR-SHADOW-COLOR: #799ae1;
	SCROLLBAR-3DLIGHT-COLOR: #799ae1;
	SCROLLBAR-ARROW-COLOR: #fcfcfc;
	SCROLLBAR-TRACK-COLOR: #aabfec;
	SCROLLBAR-DARKSHADOW-COLOR: #799ae1;
	SCROLLBAR-BASE-COLOR: #799ae1;
	background-color: #CAD7F7;
}
.STYLE3 {
	color: #FFFFFF;
	font-weight: bold;
}
</STYLE>
<style type="text/css">
<!--
.STYLE3 {
	color: #FFFFFF;
	font-weight: bold;
}
-->
</style>
</head>
<body><br>
<form action="?x=b" method="post" name="myform" id="form">
  <table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
    <tr valign="middle" bgcolor="#CCCCCC"> 
      <td height="25" colspan="2" background="../../images/admin_bg_11.gif">&nbsp; <span class="STYLE3">&gt;&gt;添加新图片</span></td>
    </tr>
    <tr valign="middle" bgcolor="#f1f1f1"> 
      <td width="100" height="25" align="center" bgcolor="#E8F1FF">图片地址</td>
      <td width="304" height="25" bgcolor="#E8F1FF"> <input name="tp" type="text" id="tp" size="25"></td>
    </tr>
    <tr valign="middle" bgcolor="#f1f1f1"> 
      <td width="100" height="25" align="center" bgcolor="#E8F1FF">上传图片</td>
      <td height="25" bgcolor="#E8F1FF"> <iframe name="ad" frameborder=0 width=100% height=25 scrolling=no src=shangchuan.asp></iframe></td>
    </tr>
    <tr valign="middle" bgcolor="#f1f1f1"> 
      <td width="100" height="25" align="center" bgcolor="#E8F1FF">图片连接</td>
      <td height="25" bgcolor="#E8F1FF"> <input name="url" type="text" id="url" size="25"></td>
    </tr>
    <tr valign="middle" bgcolor="#f1f1f1">
      <td width="100" height="25" align="center" bgcolor="#E8F1FF">显示页面</td>
      <td height="25" bgcolor="#E8F1FF"><select name="lbid" class="wenbenkuang" id="lbid">
        <option value="0">默认位置</option>
      </select>
</td>
    </tr>
    <tr valign="middle" bgcolor="#f1f1f1"> 
      <td width="100" height="25" align="center" bgcolor="#E8F1FF">&nbsp;</td>
      <td height="25" background="#E8F1FF" bgcolor="#E8F1FF"> <input name="Submit3" type="submit" value="OK,提交"></td>
    </tr>
  </table>
</form>
<% 
function judge(a,b)
  dim res 
  if instr(a,b)>0 then
   res ="checked"
  end if
  judge = res
end function
%>
<% 
function judges(a,b)
  dim ress 
  if (a=b) then
   ress ="selected"
  end if
  judges = ress
end function
%>
  <table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
  <tr align="center"> 
    <td width="81" height="25" background="../../images/admin_bg_11.gif" bgcolor="#CCCCCC"><span class="STYLE3">编号</span></td>
    <td width="179" background="../../images/admin_bg_11.gif" bgcolor="#CCCCCC"><span class="STYLE3">图片地址</span></td>
    <td width="571" background="../../images/admin_bg_11.gif" bgcolor="#CCCCCC"><span class="STYLE3">图片连接</span></td>
    <td width="75" background="../../images/admin_bg_11.gif" bgcolor="#CCCCCC"><span class="STYLE3">修改</span></td>
    <td width="73" background="../../images/admin_bg_11.gif" bgcolor="#CCCCCC"><span class="STYLE3">删除</span></td>
  </tr>
  <% set rs = conn.execute("select * from tp order by id desc")
   do while not rs.eof%>
  <form name="form1" method="post" action="?x=a">
    <tr> 
      <td width="81" height="25" align="center" bgcolor="#E8F1FF"><%=rs("id")%> <input name="id" type="hidden" id="id" value="<%=rs("id")%>"></td>
      <td width="179" bgcolor="#E8F1FF"> 
        <input name="tp" type="text" id="tp" value="<%=rs("tp")%>" size="25"></td>
      <td bgcolor="#E8F1FF"> <strong> 
        <input name="url" type="text" id="url" value="<%=rs("url")%>" size="60">
        </strong>        </td>
      <td width="75" align="center" bgcolor="#E8F1FF">
<input name="Submit" type="submit" value="修改"></td>
      <td width="73" align="center" bgcolor="#E8F1FF">
<input name="Submit2" type="button" value="删除" onClick="window.location='index.asp?x=c&id=<%=rs("id")%>'"></td>
    </tr>
  </form>
  <%rs.movenext
loop
%>
</table>
<% Select case request("x")
   case "a"
   Set s= Server.CreateObject("abodb.recordset")
        conn.execute("Update tp set tp = '"&request("tp")&"',url = '"&request("url")&"' where id="&request("id")&"")
	    Response.redirect "index.asp"
   case "b"
   Set s= Server.CreateObject("abodb.recordset")
	    conn.execute("Insert into tp(tp,url,lbid)values('"&request("tp")&"','"&request("url")&"',"&request("lbid")&")")
	    Response.redirect "index.asp"
   case "c"
   Set s= Server.CreateObject("abodb.recordset")
   conn.execute("Delete tp where id="&request("id")&"")
	    Response.redirect "index.asp"
End Select
 %></body>
</html>

⌨️ 快捷键说明

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