<!--#include file="conn.asp"--><%seo_title="Orders-"&sitename%>
<!--#include file="IncAsp/WrzcNethtml_top.asp"-->
<div align="center">
<table cellpadding="0" cellspacing="0" class="all_t1">
<tr><td class="all_l_td" valign="top">
<!--#include file="IncAsp/WrzcNethtml_log.asp"--><div class="d5"></div>
</td>
<td valign="top" class="all_c_td">

<table width="99%" border="0" cellpadding="0" cellspacing="0">
<tr><td class="sort">&nbsp;<IMG src="Skin/<%=WrzcNethtml_skin%>/home.gif" border=0 align="absmiddle">  <a href="index.html">Home</a> >>&nbsp;Orders</td></tr>
</table>


<table border="0" cellpadding="0" cellspacing="0" class="useri">
<tr><td height="150">

<%if Request.Cookies("WrzcNethtml")("user_name")="" and Request.Cookies("WrzcNethtml")("guest")="" then
response.redirect "login.asp?comurl=orders.asp"
response.end
else
if Request.Cookies("WrzcNethtml")("user_name")<>"" then
user_name=Request.Cookies("WrzcNethtml")("user_name")
chklogin(user_name)
elseif Request.Cookies("WrzcNethtml")("guest")<>"" then
user_name=Request.Cookies("WrzcNethtml")("guest")
end if%>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td height="30" colspan="5">
	<p style="margin:5px; "><a href="orders.asp">All</a>:&nbsp;
<a href="<%=filename%>?zt=1">New Order</a>&nbsp;
<a href="<%=filename%>?zt=0">Invalid</a>&nbsp;
<a href="<%=filename%>?zt=-1">Waitting payment</a>&nbsp;
<a href="<%=filename%>?zt=2">Payment Already</a>&nbsp;
<a href="<%=filename%>?zt=3">Payment Receipted</a>&nbsp;
<a href="<%=filename%>?zt=4">In Transit</a>&nbsp;
<a href="<%=filename%>?zt=5">Finished</a></td>
	</tr>
<tr>
	<td class="cartshowa">Order Number</td>
	<td class="cartshowa">Date</td>
	<td class="cartshowa">Claim</td>
	<td class="cartshowa">Add to other order</td>
	<td class="cartshowa">Order Status</td>
	</tr>
<%page=request("page")
page=getpage(page)
zt=request("zt")
set rs=server.createobject("adodb.recordset")
if zt<>"" then
chkid(zt)
sql="select * from WrzcNethtml_sub where sub_name='"&user_name&"' and sub_zt="&zt&" order by sub_id DESC"
else
sql="select * from WrzcNethtml_sub where sub_name='"&user_name&"' order by sub_id DESC"
end if
rs.open sql,conn,1,1
if rs.eof then
    response.write "<tr><td align=center height=50 colspan=5>No Data</td></tr>"
    rs.close
    set rs=nothing
else
rs.pagesize=20
totalrec=rs.recordcount
totalpage=rs.pagecount
if page>totalpage then page=totalpage
rs.absolutepage=page
rs.cachesize=rs.pagesize
i=0
do while not rs.eof and (i<rs.pagesize)
i=i+1
%>
<tr>
<td class="cartshow<%=(i mod 2)%>"><a href="submore.asp?sub_id=<%=rs("sub_id")%>"><%=rs("sub_number")%></a></td>
<td class="cartshow<%=(i mod 2)%>"><%=right(year(rs("sub_date")),2)%>-<%=month(rs("sub_date"))%>-<%=day(rs("sub_date"))%></td>
<td class="cartshow<%=(i mod 2)%>">
	<%if rs("sub_tousu")=1 then%>
	Waiting For Feedback
	<%elseif rs("sub_tousu")=2 then%>
	<p style="line-height: 150%; margin-top: 3px; margin-bottom: 3px">Claim:<%=rs("sub_you")%><br>Feedback:<%=rs("sub_fu")%></p>
	<%else%>
	<a href="#" onclick="javascript:window.open('tousu.asp?sub_id=<%=rs("sub_id")%>&sub_number=<%=rs("sub_number")%>','newwindow','toolbar=no,scrollbars=yes,resizable=no,top=0,left=0,width=420,height=180');">Claim</a>
	<%end if%>
</td>
<td class="cartshow<%=(i mod 2)%>">
<%if rs("sub_zt")<=1 then%>
<a href="hebing.asp?sub_id=<%=rs("sub_id")%>&sub_number=<%=rs("sub_number")%>">Add to other order</a>
<%end if%>
</td>
<td class="cartshow<%=(i mod 2)%>">
<%if rs("sub_zt")=0 then response.write "Invalid"%>
<%if rs("sub_zt")=1 then response.write "New Order"%>
<%if rs("sub_zt")=-1 then response.write "Waitting payment"%>
<%if rs("sub_zt")=2 then response.write "Payment Already"%>
<%if rs("sub_zt")=3 then response.write "Payment Receipted"%>
<%if rs("sub_zt")=4 then response.write "In Transit"%>
<%if rs("sub_zt")=5 then response.write "Finished"%></td>
</tr>
<%rs.movenext
loop
rs.close
set rs=nothing
end if
%></table>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td colspan="5" height="30" class="sortb">
<p style="line-height: 150%; margin-left: 10px; margin-right: 5px; margin-top: 5px; margin-bottom: 5px">Page:<%=page%>/Total:<%=totalpage%>&nbsp;&nbsp;
<%if page-1>0 then%><a href="<%=filename%>?page=<%=page-1%>&zt<%=request("zt")%>">Prev</a><%else%>Prev<%end if%>&nbsp;&nbsp;
<%if page+1<=totalpage then%><a href="<%=filename%>?page=<%=page+1%>&zt<%=request("zt")%>">Next</a><%else%>Next<%end if%></td></tr></table>

<%end if%>
</td></tr></table>

</td></tr></table></div><!--#include file="IncAsp/WrzcNethtml_copy.asp"-->