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

📄 editdingdan_fhy.asp

📁 购物系统(本版为正式商业版
💻 ASP
📖 第 1 页 / 共 2 页
字号:
        <div align="center">订单号</div></td>
      <td height="22">
        <div align="center">下单用户</div></td>
      <td height="22">
        <div align="center">订货人姓名</div></td>
      <td height="22">
        <div align="center">付款方式</div></td>
      <td height="22">
        <div align="center">收货方式</div></td>
      <td height="22">
        <div align="center">订单状态</div></td>
    </tr>
    <%do while not rs.eof
		dim snsn,username
		  'set snsn=server.CreateObject("adodb.recordset")
		  'snsn.open "select username from [shop_user] where userid="&rs("userid"),conn,1,1
		  username=trim(rs("username"))
		  'snsn.close
		  'set snsn=nothing
		  %>
    <tr bgcolor="#F0F3F8">
      <td height="22"><div align="center">
          <%if rs("dingdan")<>"" then
		  	ddid=conn.execute("Select actionid From shop_action_fhy where dingdan='"&rs("dingdan")&"'")
 actionid=ddid(0)
 end if
%>
          <input name="id" type="checkbox" id="id" value="<%=actionid%>">
      </div></td>
      <td height="22">
        <div align="center"><a href="javascript:;" onClick="javascript:window.open('viewdingdan_fhy.asp?dan=<%=trim(rs("dingdan"))%>&username=<%=username%>','','width=710,height=388,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');return false;"><%=trim(rs("dingdan"))%></a>
          <%if trim(rs("new"))=1 then%>
[<font color="#ff0000">新</font>]
<%end if%>
</div></td>
      <td height="22">
        <div align="center"><%=username%></div></td>
      <td height="22">
        <div align="center"><%=trim(rs("userzhenshiname"))%></div></td>
      <td height="22">
        <div align="center"> <span class="table-xiayou">
          <%set rs2=server.CreateObject("adodb.recordset")
	  if isnull(rs("zhifufangshi")) then
      response.write "方式不存在"
	  else
	  if rs("zhifufangshi")="" then
            zhifufangshi=99999
        else
            zhifufangshi=rs("zhifufangshi")
        end if	
    rs2.Open "select * from shop_songhuo where songid="&zhifufangshi&"",conn,1,1
	if rs2.eof then
		response.write "方式不存在"
	else
	    response.Write trim(rs2("subject"))
    end if
    rs2.close
    set rs2=nothing
	end if%>
      </span></div></td>
      <td height="22">
        <div align="center"> <span class="table-xiayou">
          <%			  if isnull(rs("songhuofangshi")) then
		response.write "方式不存在"
else
if rs("songhuofangshi")="" then
            songhuofangshi=99999
        else
            songhuofangshi=rs("songhuofangshi")
        end if	
	  set rs2=server.CreateObject("adodb.recordset")
    rs2.Open "select * from shop_songhuo where songid="&songhuofangshi&"",conn,1,1
	if rs2.eof then
		response.write "方式不存在"
	else
    response.Write trim(rs2("subject"))
end if
    rs2.Close
    set rs2=nothing
	end if%>
      </span></div></td>
      <td height="22">
        <div align="center">
          <%
		  select case rs("zhuangtai")
	case "1"
	response.write "未作任何处理"
	case "2"
	if rs("zhifufangshi")="货到付款" then
	response.write "订单已确认,正在备货"
	else
	response.write "订单已确认,款未到"
    end if
	case "3"
	if rs("zhifufangshi")="货到付款" then
	response.write "货已发出"
	else
	response.write "款已到,正在备货"
    end if
	case "4"
	if rs("zhifufangshi")="货到付款" then
	response.write "货已收到,款结清,谢谢您的定购"
	else
	response.write "货已发出"
    end if
	case "5"
	response.write "货已收到,款结清,谢谢您的定购"
	end select%>
      </div></td>
    </tr>
    <%i=i+1
			if i>=MaxPerPage then Exit Do
			rs.movenext
		loop
		rs.close
		set rs=nothing%>
    <tr bgcolor="#F0F3F8">
      <td colspan="7">
        <div align="right"> 全选
            <input type="checkbox" name="checkbox" value="Check All" onClick="mm()">
            <input type="submit" name="Submit2" class="go-wenbenkuang" value="删 除" onClick="return test();">
&nbsp;&nbsp; </div></td>
    </tr>
  </table>
</form>
<%  
				End Sub   
  
				Function showpage(totalnumber,maxperpage,filename)  
  				Dim n
  				
				If totalnumber Mod maxperpage=0 Then  
					n= totalnumber \ maxperpage  
				Else
					n= totalnumber \ maxperpage+1  
				End If
				'//////////////////
				if namekey="" then
				Response.Write "<form method=Post action="&filename&"?zhuangtai="&zhuangtai&">"  
				else
				Response.Write "<form method=Post action="&filename&"?zhuangtai="&zhuangtai&"&namekey="&namekey&">" 
				end if
				'//////////////////
				Response.Write "<p align='center' class='contents'> "  
				If CurrentPage<2 Then  
					Response.Write "<font class='contents'>首页 上一页</font> "  
				Else  
					'///////////////////
					if namekey="" then
					Response.Write "<a href="&filename&"?page=1&zhuangtai="&zhuangtai&" class='contents'>首页</a> "  
					Response.Write "<a href="&filename&"?page="&CurrentPage-1&"&zhuangtai="&zhuangtai&" class='contents'>上一页</a> "  
					ELSE
					Response.Write "<a href="&filename&"?page=1&zhuangtai="&zhuangtai&"&namekey="&namekey&" class='contents'>首页</a> "  
					Response.Write "<a href="&filename&"?page="&CurrentPage-1&"&zhuangtai="&zhuangtai&"&namekey="&namekey&" class='contents'>上一页</a> "
					end if  
					'//////////////////
				End If
				
				If n-currentpage<1 Then  
					Response.Write "<font class='contents'>下一页 尾页</font>"  
				Else 
				'//////////////////////// 
				if namekey="" then
					Response.Write "<a href="&filename&"?page="&(CurrentPage+1)&"&zhuangtai="&zhuangtai&" class='contents'>"  
					Response.Write "下一页</a> <a href="&filename&"?page="&n&"&zhuangtai="&zhuangtai&" class='contents'>尾页</a>"
					else
					Response.Write "<a href="&filename&"?page="&(CurrentPage+1)&"&zhuangtai="&zhuangtai&"&namekey="&namekey&" class='contents'>"  
					Response.Write "下一页</a> <a href="&filename&"?page="&n&"&zhuangtai="&zhuangtai&"&namekey="&namekey&" class='contents'>尾页</a>" 
					end if 
					'/////////////////////
				End If  
					Response.Write "<font class='contents'> 页次:</font><font class='contents'>"&CurrentPage&"</font><font class='contents'>/"&n&"页</font> "  
					Response.Write "<font class='contents'> 共有"&totalnumber&"笔订单 "&maxperpage&"笔订单/页</font> " 
					Response.Write "<font class='contents'>转到:</font><input type='text' name='page' size=2 maxlength=10 class=smallInput value="&currentpage&">"  
					Response.Write "&nbsp;<input type='submit'  class='contents' value='GO' name='cndok'></form>"  
				End Function  
			%>
<br>
<table width="90%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#9DB2D4">
  <tr>
    <form name="form1" method="post" action="editdingdan_fhy.asp?zhuangtai=9">
      <td bgcolor="#F0F3F8">
        <div align="center">
          <input type="radio" name="dd" value="1">
          下单用户
          <input type="radio" name="dd" value="2">
          最后处理人
          <input type="radio" name="dd" value="5">
          订单号
          <input type="radio" name="dd" value="6">
          收货人
          <input name="namekey" type="text"  class="wenbenkuang" id="namekey3" value="请输入关键字" size="14" onFocus="this.value=''">
          <input type="submit" name="Submit" value="查询"  class="go-wenbenkuang">
      </div></td>
    </form>
  </tr>
</table>
<br>
<!--#include file="copyright.asp"-->
</body>
</html>

⌨️ 快捷键说明

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