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

📄 order.asp

📁 本文通过分析国内外网上购物系统的发展现状
💻 ASP
字号:
<%
if request.cookies("adminok")="" then
  response.redirect "shop_login.htm"
end if
%>
<!--#include file="conn.asp"-->
<%if  session("username")<>"" then%>
<%="<script language=JavaScript>{window.alert('您非法登陆');window.location.href='javascript:history.go(-1)';}</script>"%>
<% else %>
<%
dim sql
dim rs
sql="select * from server where id="&request("id")
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
%>
<link href="txt.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {color: #FF0000}
-->
</style>
<!--表单样式定义-->
<style type="text/css">
<!--
.LM_Login_Input    { background-color: transparent; font-family: "Tahoma"; font-size: 12px; color: 
#797979; font-weight: normal; border-left-style: none; border-right-style: none; border-top-style: none; border-bottom-style: solid; border-color: black black #797979; border-top-width: medium; border-right-width: medium; border-bottom-width: 1px; border-left-width: medium}
:link.LM_Down_Title   { font-size: 9pt; font-family: 宋体; color: #FFFFFF;text-decoration:none; }
:active.LM_Down_Title { font-size: 9pt; font-family: 宋体; color: #FFFFFF;text-decoration:none; }
:visited.LM_Down_Title{ font-size: 9pt; font-family: 宋体; color: #FFFFFF;text-decoration:none; }
:hover.LM_Down_Title  { font-size: 9pt; font-family: 宋体; color: #FFFFFF;text-decoration:none; }
input        { font-family: "Verdana"; font-size: 9pt; background-color: #FFFFFF;border-top-width: 1px; border-right-width: 1px;border-bottom-width: 1px; border-left-width: 1px; border-left-color:#FFFFFF; border-right-color:#DBD9DA; border-top-color:#FFFFFF; border-bottom-color:#ffffff}
textarea     { font-family: "Verdana"; font-size: 9pt; background-color: #FFFFFF; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-left-color:#DBD9DA; border-right-color:#FFFFFF; border-top-color:#DBD9DA; border-bottom-color:#FFFFFF}
-->
</style>
<!--表单样式定义-->
<%if request("action")=1 then
set rs=server.CreateObject("adodb.recordset")
sql="select * from server where id="&request("id")
rs.open sql,conn,3,2
rs("content")=trim(request("content"))       
rs("answertime")=now()
rs("datetime")=now()
rs("state")=1
rs.update
rs.close
response.write"<script language=JavaScript>{window.alert('订单已处理');window.location.href='server.asp'}</script>"
response.end
end if
%>
<form action="?action=1&id=<%=request("id")%>" method="post" name="form" id="form" onsubmit="return isValid()">
<%if rs("state")=0 then %>
  <table width="450"  border="0" align="center" cellpadding="8" cellspacing="1">
    <tr> 
      <td width="131" bgcolor="#CCCCCC"> &nbsp;
        <div align="left">订单序号:</div></td>
      <td width="36" bgcolor="#F3F3F3"><%=rs("id")%> </td>
      <td width="72" bgcolor="#CCCCCC"> &nbsp;处理状态:</td>
      <td width="142" bgcolor="#F3F3F3"> 
        <%if rs("content")<>"" then%>
        <% Response.Write("已经处理")%>
        <%else%>
        <% Response.Write("正在处理")%>
        <%end if%>
        &nbsp;&nbsp;&nbsp;<a href="del.asp?id=<%=RS("id")%>">删除</a></td>
    </tr>
    <tr> 
      <td bgcolor="#CCCCCC"> &nbsp;
        <div align="left">您的姓名/单位:</div></td>
      <td colspan="3" bgcolor="#F3F3F3"><span class="style1"><%=RS("question")%></span></td>
    </tr>
    <tr> 
      <td bgcolor="#CCCCCC"> <div align="left">订货物品:</div></td>
      <td colspan="3" bgcolor="#F3F3F3"><%=RS("mine")%></td>
    </tr>
    <tr> 
      <td bgcolor="#CCCCCC"> &nbsp;
        <div align="left">数 量:</div></td>
      <td colspan="3" bgcolor="#F3F3F3"><%=RS("count")%></td>
    </tr>
    <tr> 
      <td bgcolor="#CCCCCC"> 联系方式:</td>
      <td colspan="3" bgcolor="#F3F3F3"><%=RS("keyword")%></td>
    </tr>
    <tr> 
      <td bgcolor="#CCCCCC"> &nbsp;
        <div align="left">订货时间:</div></td>
      <td colspan="3" bgcolor="#F3F3F3"><%=RS("questiontime")%></td>
    </tr>
    <tr> 
      <td valign="top" bgcolor="#CCCCCC"> &nbsp;
        <div align="left">备注内容:</div></td>
      <td colspan="3" bgcolor="#F3F3F3"><%=RS("questioncontent")%></td>
    </tr>
    <tr> 
      <td valign="top" bgcolor="#CCCCCC"> &nbsp;
        <div align="left">处理情况记录:</div></td>
      <td colspan="3" bgcolor="#F3F3F3"> <textarea name="content" rows="7" cols="40"></textarea></td>
    </tr>
    <tr bgcolor="#F3F3F3"> 
      <td colspan="4" valign="top"><div align="center"> 
          <input name="imageField" type="image" src="../images/submit.jpg" width="48" height="20" border="0">
          &nbsp;&nbsp;<img src="../images/reset.jpg" width="48" height="20"></div>
      </td>
    </tr>
  </table>
<% end if %>
</form>
<%if rs("state")=1 then %>
<table width="450" height="100"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><div align="center" class="style1"><strong>对不起这个信息已经回复过了……</strong></div></td>
  </tr>
</table>
<%end if%>
<%end if%>

⌨️ 快捷键说明

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