<!--#include file="conn.asp"-->
<%if session("admin")="" then
response.Write "<script language='javascript'>alert('网络超时或您还没有登陆！');history.go(-1);</script>"
response.End
else
if session("flag")=2 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限！</b></font></div>"
response.End
end if
end if
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../images/css.css" rel="stylesheet" type="text/css">
<style>
td{font-size:9pt;line-height:120%;color:#353535} 
body{font-size:9pt;line-height:120%} 

a:link          { color: #000000; text-decoration: none }
a:visited       { color: #000000; text-decoration: none }
a:active        { color: #000000; text-decoration: none }
a:hover         { color: #336699; text-decoration: none; position: relative; right: 0px; top: 1px }
</style>
</head>

<body bgcolor="#799AE1">

<table width="80%" border="1" cellspacing="0" cellpadding="1" bordercolor="#6699FF" align="center">
  <tr> 
    <td> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td background="../images/back_3.gif" rowspan="2"> 
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="12v">
              <tr> 
                <td class="12v" > 
                  <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" id="AutoNumber3" height="0" width="100%">
                    <tr> 
                      <td> 
                        <table width="100%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#006600">
                          <tr> 
                            <td bgcolor="#FFFFFF"> 
                              <div align="center"><font color="#000000">管理商品订单</font></div>
                            </td>
                          </tr>
                          <tr> 
                            <td height="167" valign="top" bgcolor="#E8F1FF"> 
                              <table width="90%" border="0" align="center" cellpadding="2" cellspacing="1">
                                <tr> 
                                  <td> 
                                    <div align="right"> 
                                      <select name="select" onChange="var jmpURL=this.options[this.selectedIndex].value ; if(jmpURL!='') {window.location=jmpURL;} else {this.selectedIndex=0 ;}" ><base target=Right> 
                                        <option value="editdingdan.asp?zhuangtai=0" selected>--选择查讯状态--</option>
                                        <option value="editdingdan.asp?zhuangtai=0" >全部订单状态</option>
                                        <option value="editdingdan.asp?zhuangtai=1" >未作任何处理</option>
                                        <option value="editdingdan.asp?zhuangtai=2" >用户已经划出款</option>
                                        <option value="editdingdan.asp?zhuangtai=3" >服务商已经收到款</option>
                                        <option value="editdingdan.asp?zhuangtai=4" >服务商已经发货</option>
                                        <option value="editdingdan.asp?zhuangtai=5" >用户已经收到货</option>
                                      </select>
                                    </div>
                                  </td>
                                </tr>
                              </table>
                              <%
    on error resume next
	


		
				 
		  	set rs_news=server.createobject("adodb.recordset")
	sql="select top 8 *  from shop_action order by actiondate desc"
	rs_news.open sql,conn,1,1 
    if rs_news.eof and rs_news.bof then
	response.write "<p align=center>对不起!暂时没有定单"
    else
	do while not rs_news.eof %>
   用户 <%=rs_news("username")%> 定单号 <%=rs_news("dingdan")%> 购买物品<%=rs_news("bookid")%> <br>
	
	<%rs_news.movenext         
	loop     
    end if
    rs_news.close
				  %>
                            </td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<br>
<table width="80%" border="1" cellspacing="0" cellpadding="1" bordercolor="#6699FF" align="center">
  <tr> 
    <td> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td background="../images/back_3.gif" rowspan="2"> 
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="12v">
              <tr> 
                <td class="12v" > 
                  <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" id="AutoNumber3" height="0" width="100%">
                    <tr> 
                      <td> 
                        <table width="100%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#006600">
                          <tr> 
                            <td height="20" bgcolor="#FFFFFF"> 
                              <div align="center"><font color="#000000">定单查询</font></div>
                            </td>
                          </tr>
                          <tr> 
                            <td height="34" bgcolor="#E8F1FF">&nbsp; </td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<br>

</body>
</html>
