<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!--#Include File="inc/Check_Sql.asp"-->
<!--#include file="inc/conn.asp"-->
<!--#include file="inc/Skin_css.asp"-->
<!--#include file="inc/config.asp"-->
<!--#include file="inc/Function.asp"-->
<%If Session("UserName")="" Then
response.redirect"UserServer.asp"
end if%>

<SCRIPT language=javascript>
<!--

function chkitem(str)
{	
var strSource ="0123456789-";
var ch;
var i;
var temp;

for (i=0;i<=(str.length-1);i++)
{

ch = str.charAt(i);
temp = strSource.indexOf(ch);
if (temp==-1)
{
return 0;
}
}
if (strSource.indexOf(ch)==-1)
{
return 0;
}
else
{
return 1;
}
}

function order_onsubmit()
{
if (chkitem(document.order.OrderNum.value)==0)
{
alert("请输入正确的询价号。");
document.order.OrderNum.focus();
return false;
}
}
//-->
</SCRIPT>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><%=SiteTitle%></title>
<link href="css/css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="container">
  <!-- #include file="top.asp" -->
  <div class="content">
  <table border="0" cellpadding="0" cellspacing="0" width="920" style=" margin-left:6px;">
    <!-- fwtable fwsrc="未命名" fwbase="content.jpg" fwstyle="Dreamweaver" fwdocid = "2089954175" fwnested="0" -->
    <tr>
      <td><img src="images/spacer.gif" width="6" height="1" border="0" alt="" /></td>
      <td><img src="images/spacer.gif" width="908" height="1" border="0" alt="" /></td>
      <td><img src="images/spacer.gif" width="6" height="1" border="0" alt="" /></td>
      <td><img src="images/spacer.gif" width="1" height="1" border="0" alt="" /></td>
    </tr>
    <tr>
      <td colspan="3"><img name="content_r1_c1" src="images/content_r1_c1.jpg" width="920" height="6" border="0" id="content_r1_c1" alt="" /></td>
      <td><img src="images/spacer.gif" width="1" height="6" border="0" alt="" /></td>
    </tr>
    <tr>
      <td rowspan="5" background="images/content_r3_c1.jpg">&nbsp;</td>
      <td rowspan="5" bgcolor="fcfaf7" >
	  
	  <div class="mleft1">
	    <div  style="margin-left:5px;border:1px solid #ceb7b7;">
          <!--#include file="memberleft.asp"-->
	      </div>
	  </div>
	  <div class="mright1">
	  <div class="rtitle">用户订单</div>
	  <div class="rcontent">
	    <TABLE width=95% height="136" align="center" cellPadding=4 cellSpacing=1>
                    <TBODY>
                      <TR vAlign=top > 
                        <TD  width="100%" height="18"> <form action="orderofind.asp" method="post" name=order onSubmit="return order_onsubmit()" language=javascript>
                            <p align="left" style="margin-bottom: 0"> <font color="#FF0000">亲爱的：&nbsp;</font><font size="3" face="Arial"><%=Session("UserName")%></font> 
                              <%rs.close%>
                              <%


UserName=Session("UserName")
set Rs = Server.CreateObject("ADODB.recordset")
sql="select * from OrderList where UserName='"&UserName&"'"
rs.open sql,conn,1,1


%>
                            </p>
                            <p style="word-spacing: 0; margin-top: 0; margin-bottom: 0">　　订单详细资料查询，请输入您要查询的询价号码 
                              <input type="text" name="OrderNum" size="16">
                              <input type="submit" value="查询" name="B1">
                          </form>
                          <div align="center"> 
                            <TABLE cellSpacing=0 cellPadding=0 width=100%>
                              <TBODY>
                                <TR> 
                                  <TD align=middle width="100%"> <p align="left" style="word-spacing: 0; margin-top: 0; margin-bottom: 0">询价列表:</p>
                                    <table border="0" cellpadding="2" cellspacing="1" width="100%" bgcolor="#000000">
                                      <tr  class='title'> 
                                        <td width="26%" align="center" height="26" bgcolor="#CCCCCC"><font color="#000000">询价编号</font></td>
                                        <td width="21%" align="center" height="26" bgcolor="#CCCCCC"><font color="#000000">客户姓名</font></td>
                                        <td width="53%" align="center" height="26" bgcolor="#CCCCCC"><font color="#000000">对您的询价的处理情况</font></td>
                                      </tr>
                                      <% While Not rs.EOF %>
                                      <tr > 
                                        <td width="26%" height="25" align="center" bgcolor="#FFFFFF"> 	  
								<%response.Write "&nbsp;<a href='#' onclick=""javascript:window.open('Orderofind.asp?OrderNum=" & rs("OrderNum") &"', 'newwindow', 'height=550, width=550, toolbar=no, menubar=no, scrollbars=auto, resizable=no, location=no, status=no')"" title='" & rs("OrderNum") & "'><font color='#FF0000'>" &rs("OrderNum") & "</font></a>"%>										
									    </td>
                                        <td width="21%" align="center" height="25" bgcolor="#FFFFFF"><%=rs("Receiver")%></td>
                                        <td width="53%" align="center" height="25" bgcolor="#FFFFFF"> 
                                          <%If rs("Flag")="Yes" Then%>
                                          已处理
                                          <%else%>
                                          <font color="#FF0000"> 未处理</font> 
                                          <%End If%>
                                        </td>
                                      </tr>
                                      <%
rs.MoveNext
Wend
rs.close
%>
                                    </table>                                   
                                  </TD>
                                </TR>
                              </TBODY>
                            </TABLE>
                          </div></TD>
                      </TR>
                      <TR vAlign=top > 
                        <TD  width="100%" height="15"> &nbsp;&nbsp; </TD>
                      </TR>
                    </TBODY>
                  </TABLE>
	    </div>
	  </div>	  </td>
      <td rowspan="5" background="images/content_r5_c3.jpg">&nbsp;</td>
      <td><img src="images/spacer.gif" width="1" height="" border="0" alt="" /></td>
    </tr>
    <tr>
      <td><img src="images/spacer.gif" width="1" height="10" border="0" alt="" /></td>
    </tr>
    <tr>
      <td><img src="images/spacer.gif" width="1" height="9" border="0" alt="" /></td>
    </tr>
    <tr>
      <td><img src="images/spacer.gif" width="1" height="11" border="0" alt="" /></td>
    </tr>
    <tr>
      <td><img src="images/spacer.gif" width="1" height="197" border="0" alt="" /></td>
    </tr>
    <tr>
      <td colspan="3"><img name="content_r7_c1" src="images/content_r7_c1.jpg" width="920" height="10" border="0" id="content_r7_c1" alt="" /></td>
      <td><img src="images/spacer.gif" width="1" height="10" border="0" alt="" /></td>
    </tr>
  </table>
</div>

<div id="footer"><!-- #include file="foot.asp" --></div>
</div>
</body>
</html>
