<!--#include file="conn.asp"-->
<!--#include file="inc/cookies_check.asp"-->
<%
'*****************************************
'* 软件名称 乐彼网上开店软件(56770 EShop)
'* 软件开发 http://www.56770.com
'* 版权所有 http://www.56770.com
'* 文件名称 Home_orders.asp
'* 最后更新 2012-01-08 by 56770.kingdge
'*****************************************
Dim admin_flag
admin_flag=",1.1,"
include "lang/"& LangFilePath &"/lang_sys.inc"
include "lang/"& LangFilePath &"/lang_menu.inc"
include "lang/"& LangFilePath &"/lang_order.inc"
CurrentId = 2
CurrentUrl = "home_orders.asp"
LB_Head()
LB_Menu()
%>
<div class="tabmenu mainwidth">
      <ul>
	  <li><a href="admin_orders.asp"><span><%=Lang_Menu(89)%></span></a></li>
	  <li class="current"><a href="#"><span><%=Lang_Menu(88)%></span></a></li>
      </ul>
</div>
<%
Response.Write("<div class=""tab-mainbody"">")
Response.Write("<div class=""tab-mainbody2"">")
If Eshop_Lebi_name="" Or instr(","&request.cookies(cookiesname)("flag")&",",admin_flag)=0 Then
	adminflag()
Else
    Select Case Request("action")
	       Case Else
		        Main()
	End Select
End If
Response.Write("</div>")
Response.Write("</div>")
LB_Footer()

Sub Main()
history_num_0=conn.Execute("Select Count(ID) from [Lebi_orders] where orderzt='0'")(0)
If IsSqlDataBase = 1 Then
today_num_0=conn.Execute("Select Count(ID) from [Lebi_orders] where orderzt='0' and datediff(d,order_time,"& sqlnowstring &")=0")(0)
If IsNull(today_num_0) Then today_num_0 = 0
today_num_1=conn.Execute("Select Count(ID) from [Lebi_orders] where charindex('1',orderzt)>0 and datediff(d,order_time,"& sqlnowstring &")=0")(0)
today_num_2=conn.Execute("Select Count(ID) from [Lebi_orders] where charindex('2',orderzt)>0 and datediff(d,order_time,"& sqlnowstring &")=0")(0)
today_num_3=conn.Execute("Select Count(ID) from [Lebi_orders] where charindex('3',orderzt)>0 and datediff(d,order_time,"& sqlnowstring &")=0")(0)
today_num_4=conn.Execute("Select Count(ID) from [Lebi_orders] where charindex('4',orderzt)>0 and datediff(d,order_time,"& sqlnowstring &")=0")(0)
today_num_5=conn.Execute("Select Count(ID) from [Lebi_orders] where charindex('5',orderzt)>0 and datediff(d,order_time,"& sqlnowstring &")=0")(0)
history_num_1=conn.Execute("Select Count(ID) from [Lebi_orders] where charindex('1',orderzt)>0")(0)
history_num_2=conn.Execute("Select Count(ID) from [Lebi_orders] where charindex('2',orderzt)>0")(0)
history_num_3=conn.Execute("Select Count(ID) from [Lebi_orders] where charindex('3',orderzt)>0")(0)
history_num_4=conn.Execute("Select Count(ID) from [Lebi_orders] where charindex('4',orderzt)>0")(0)
history_num_5=conn.Execute("Select Count(ID) from [Lebi_orders] where charindex('5',orderzt)>0")(0)
Else
today_num_0=conn.Execute("Select Count(ID) from [Lebi_orders] where orderzt='0' and datediff('d',order_time,date())=0")(0)
today_num_1=conn.Execute("Select Count(ID) from [Lebi_orders] where instr(orderzt,1)>0 and datediff('d',order_time,date())=0")(0)
today_num_2=conn.Execute("Select Count(ID) from [Lebi_orders] where instr(orderzt,1)>0 and datediff('d',order_time,date())=0")(0)
today_num_3=conn.Execute("Select Count(ID) from [Lebi_orders] where instr(orderzt,1)>0 and datediff('d',order_time,date())=0")(0)
today_num_4=conn.Execute("Select Count(ID) from [Lebi_orders] where instr(orderzt,1)>0 and datediff('d',order_time,date())=0")(0)
today_num_5=conn.Execute("Select Count(ID) from [Lebi_orders] where instr(orderzt,1)>0 and datediff('d',order_time,date())=0")(0)
history_num_1=conn.Execute("Select Count(ID) from [Lebi_orders] where instr(orderzt,1)>0")(0)
history_num_2=conn.Execute("Select Count(ID) from [Lebi_orders] where instr(orderzt,2)>0")(0)
history_num_3=conn.Execute("Select Count(ID) from [Lebi_orders] where instr(orderzt,3)>0")(0)
history_num_4=conn.Execute("Select Count(ID) from [Lebi_orders] where instr(orderzt,4)>0")(0)
history_num_5=conn.Execute("Select Count(ID) from [Lebi_orders] where instr(orderzt,5)>0")(0)
end if
%>
<script language="javascript" type="text/javascript" src="inc/js/MyCalendar.js"></script>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="classtable" id="search">
<form name="searchorders" method="get" action="Admin_orders.asp">
<tr>
	<td height="30" class="classhead"><input name="submit" type="image" src="lang/<%=LangFilePath%>/images/bt_app.gif" title=" <%=Lang_sys(1)%> " align="absmiddle">&nbsp;<input type="image" src="lang/<%=LangFilePath%>/images/bt_res.gif" title=" <%=Lang_sys(2)%> " onclick="reset();return false;" align="absmiddle"></td>
	<td align="right" class="classhead">
	<%=QuickMenu("Admin_orders.asp|"& Lang_Menu(89) &"","Admin_order_quick.asp|"& Lang_Menu(87) &"")%>
	</td>
 </tr>
<tr>
<td height="30" class="classtop" colspan="2"><%=Lang_Menu(88)%></td>
</tr>
<tr class="classrow">
<td width="15%" height="30" class="classrow"><%=Lang_Order(1)%></td>
<td class="classrow"><input type="text" name="s_order_number" id="s_order_number" class="form" size="30" class="form" autocomplete="off" onkeyup="search_suggest('s_order_number','Lebi_orders','')"><br /><div id="search_suggest_s_order_number" class="search_suggest" style="display:none"></div>
</td>
</thead>
</tr>
<tr class="classrow">
<td height="30" class="classrow"><%=Lang_Order(2)%></td>
<td class="classrow">
<input type="checkbox" name="is_booking" value="1">
<%=Lang_Order(13)%>
<input type="checkbox" name="orderzt" value="1">
<%=Lang_Order(14)%>
<input type="checkbox" name="orderzt" value="2">
<%=Lang_Order(15)%>
<input type="checkbox" name="orderzt" value="3">
<%=Lang_Order(16)%>
<input type="checkbox" name="orderzt" value="4">
<%=Lang_Order(17)%>
<input type="checkbox" name="orderzt" value="5">
<%=Lang_Order(18)%>
</td>
</tr>
<tr class="classrow">
<td height="30" class="classrow"><%=Lang_Order(3)%></td>
<td class="classrow">
<input type="checkbox" name="infotype" id="infotype" value="0" checked>
<%=Lang_Order(19)%>
<input type="checkbox" name="infotype" id="infotype" value="1" checked>
<%=Lang_Order(20)%>
</td>
</tr>
<tr class="classrow">
<td height="30" class="classrow"><%=Lang_Order(4)%></td>
<td class="classrow">
<input type="text" name="s_dateFrom" value="" size="10" class="calendar" onclick="setday(this)" /> - <input type="text" name="s_dateTo" value="" size="10" class="calendar" onclick="setday(this)" />
</td>
</tr>
<tr class="classrow">
<td height="30" class="classrow"><%=Lang_Order(5)%></td>
<td class="classrow">
<input type="text" name="s_product_name" id="s_product_name" class="form" size="30" class="form" autocomplete="off" onkeyup="search_suggest('s_product_name','Lebi_orders_product_name','')"><br /><div id="search_suggest_s_product_name" class="search_suggest" style="display:none"></div>
</td>
</tr>
<tr class="classrow">
<td height="30" class="classrow"><%=Lang_Order(6)%></td>
<td class="classrow">
<input type="text" name="s_product_bianhao" id="s_product_bianhao" class="form" size="30" class="form" autocomplete="off" onkeyup="search_suggest('s_product_bianhao','Lebi_orders_bianhao','')"><br /><div id="search_suggest_s_product_bianhao" class="search_suggest" style="display:none"></div>
</td>
</tr>
<tr class="classrow">
<td height="30" class="classrow"><%=Lang_Order(7)%></td>
<td class="classrow">
<input type="text" name="user_id" id="user_id" class="form" size="30" class="form" autocomplete="off" onkeyup="search_suggest('user_id','Lebi_orders_user_id','')"><br /><div id="search_suggest_user_id" class="search_suggest" style="display:none"></div>
</td>
</tr>
<tr class="classrow">
<td height="30" class="classrow"><%=Lang_Order(8)%></td>
<td class="classrow">
<input type="text" name="s_user_name" id="s_user_name" class="form" size="30" class="form" autocomplete="off" onkeyup="search_suggest('s_user_name','Lebi_orders_user_name','')"><br /><div id="search_suggest_s_user_name" class="search_suggest" style="display:none"></div>
</td>
</tr>
<tr class="classrow">
<td height="30" class="classrow"><%=Lang_Order(9)%></td>
<td class="classrow">
<input type="text" name="s_user_tel" id="s_user_tel" class="form" size="30" class="form" autocomplete="off" onkeyup="search_suggest('s_user_tel','Lebi_orders_user_tel','')"><br /><div id="search_suggest_s_user_tel" class="search_suggest" style="display:none"></div>
</td>
</tr>
<tr class="classrow">
<td height="30" class="classrow"><%=Lang_Order(10)%></td>
<td class="classrow">
<input type="text" name="s_user_email" class="form" size="30" class="form">
</td>
</tr>
<tr class="classrow">
<td height="30" class="classrow"><%=Lang_Order(11)%></td>
<td class="classrow">
<input type="text" name="s_user_adds" class="form" size="30" class="form">
</td>
</tr>
<tr class="classrow">
<td height="30" class="classrow"><%=Lang_Order(12)%></td>
<td class="classrow">
<input type="text" name="s_user_zip" class="form" size="30" class="form">
</td>
</tr>
</form>
<tr>
<td height="30" class="classtop" colspan="2"><%=Lang_Order(21)%></td>
</tr>
<tr class="classrow">
<td height="30" class="classrow"><%=Lang_Order(22)%></td>
<td height="30" class="classrow"><%=Lang_Order(23)%><a href="Admin_orders.asp?orderzt=0&s_datefrom=<%=Date()%>&s_dateto=<%=Date()%>"><font color=red><%=today_num_0%></font></a>&nbsp;&nbsp;&nbsp;&nbsp;<%=Lang_Order(24)%><a href="Admin_orders.asp?orderzt=1&s_datefrom=<%=Date()%>&s_dateto=<%=Date()%>"><font color=red><%=today_num_1%></font></a>&nbsp;&nbsp;&nbsp;&nbsp;<%=Lang_Order(25)%><a href="Admin_orders.asp?orderzt=2&s_datefrom=<%=Date()%>&s_dateto=<%=Date()%>"><font color=red><%=today_num_2%></font></a>&nbsp;&nbsp;&nbsp;&nbsp;<%=Lang_Order(26)%><a href="Admin_orders.asp?orderzt=3&s_datefrom=<%=Date()%>&s_dateto=<%=Date()%>"><font color=red><%=today_num_3%></font></a></a>&nbsp;&nbsp;&nbsp;&nbsp;<%=Lang_Order(27)%><a href="Admin_orders.asp?orderzt=4&s_datefrom=<%=Date()%>&s_dateto=<%=Date()%>"><font color=red><%=today_num_4%></font></a>&nbsp;&nbsp;&nbsp;&nbsp;<del><%=Lang_Order(28)%><a href="Admin_orders.asp?orderzt=5&s_datefrom=<%=Date()%>&s_dateto=<%=Date()%>"><font color=red><%=today_num_5%></font></a></del>
</td>
</tr>
<tr>
<td height="30" class="classtop" colspan="2"><%=Lang_Order(32)%></td>
</tr>
<tr class="classrow">
<td height="30" class="classrow"><%=Lang_Order(22)%></td>
<td height="30" class="classrow"><%=Lang_Order(23)%><a href="Admin_orders.asp?orderzt=0"><font color=red><%=history_num_0%></font></a>&nbsp;&nbsp;&nbsp;&nbsp;<%=Lang_Order(24)%><a href="Admin_orders.asp?orderzt=1"><font color=red><%=history_num_1%></font></a>&nbsp;&nbsp;&nbsp;&nbsp;<%=Lang_Order(25)%><a href="Admin_orders.asp?orderzt=2"><font color=red><%=history_num_2%></font></a>&nbsp;&nbsp;&nbsp;&nbsp;<%=Lang_Order(26)%><a href="Admin_orders.asp?orderzt=3"><font color=red><%=history_num_3%></font></a></a>&nbsp;&nbsp;&nbsp;&nbsp;<%=Lang_Order(27)%><a href="Admin_orders.asp?orderzt=4"><font color=red><%=history_num_4%></font></a>&nbsp;&nbsp;&nbsp;&nbsp;<del><%=Lang_Order(28)%><a href="Admin_orders.asp?orderzt=5"><font color=red><%=history_num_5%></font></a></del>
</td>
</tr>
</table>
<script>tdshow("search");</script>
<%
End Sub
%>