<!--#include file="conn.asp"-->

<!--#include file="admin.asp"-->

<!--#include file="Inc/Head.asp" -->
<script language="javascript" type="text/javascript">
	function delok()
		{
			if(confirm("确定修改订单信息吗？")==true)
				return true;
			else
				return false;
		}
</script>
	<%
		dim rs,sql,sex,page,temp_i
		page=cint(request.QueryString("page"))
		if page="" or page<1 then page=1 end if
		set rs=server.CreateObject("ADODB.Recordset")		
		if request.QueryString("action")="ser" and request.Form("f_key")<>"" then
			sql="select * from tbl_online where o_name like '%"&request.Form("f_key")&"%' order by o_id desc"
		else
			sql="select * from tbl_online order by o_id desc"
		end if
		rs.open sql,conn,1,1
		
	%>
	<table width="100%" border="0" cellpadding="0">
      <tr>
        <th height="25" colspan="7" class="back_southidc">订单管理</th>
      </tr>
      <tr class="tr_southidc" height="25">
        <td width="5%" align="center">选中</td>
        <td width="3%" align="center">ID</td>
        <td width="17%" align="center">订单提交人</td>
        <td width="14%" align="center">预计投入费用</td>
        <td width="16%" align="center">期望开工时间</td>
        <td width="15%" align="center">订单提交时间</td>
        <td width="30%" align="center">相关操作</td>
      </tr>
      <%
if rs.recordcount<1 then 
			response.Write"<tr ><td colspan=""7"" align=""center"" style=""color:red;"">当前无任何记录!</td></tr>"
			response.Write"<tr ><td colspan=""7"" align=""center"" style=""color:red;""><a href=""Manage_list.asp"">【返回】</a></td></tr>"
			response.End()
else
		rs.pagesize=15
		if page>rs.pagecount then page=rs.pagecount end if
		rs.absolutepage=page
		'==
		session("listcount")=rs.recordcount
		'==
	  
	  
	  
		temp_i=1
				while not rs.eof and temp_i<=rs.pagesize
			if rs("o_sex")="女" then
				sex="女士"
			else
				sex="先生"
			end if		
	%>
      <tr bgcolor="#A4B6D7">
        <td width="5%" align="center"><input type="checkbox" name="checkbox" value="checkbox" /></td>
        <td width="3%" align="center"><%=rs("o_id")%></td>
        <td width="17%" align="center"><%=rs("o_name")&" "&sex%></td>
        <td width="14%" align="center"> ￥<%=rs("o_pay")%></td>
        <td width="16%" align="center"><%=rs("o_starttime")%></td>
        <td width="15%" align="center"><%=rs("o_publishtime")%></td>
        <td width="30%" align="center"><a href="Manage_editList.asp?action=display&id=<%=rs("o_id")%>">查看详情</a> <a href="Manage_editList.asp?action=edit&id=<%=rs("o_id")%>">修改</a> <a href="do_online.asp?action=del&id=<%=rs("o_id")%>" onClick="return delok()">删除</a></td>
      </tr>
      <%
  		temp_i=temp_i+1
  		rs.movenext
		wend
  %>
      <tr>
        <td colspan="7" align="center">共<%=rs.recordcount%>条记录 <a href="Manage_list.asp?page=1">首页</a> <a href="Manage_list.asp?page=<%=page-1%>">上一页</a> <a href="Manage_list.asp?page=<%=page+1%>">下一页</a> <a href="Manage_list.asp?page=<%=rs.pagecount%>">尾页</a> 页次：<%=page%>/<%=rs.pagecount&" "&rs.pagesize%>条订单/页 </td>
      </tr>
      <tr>
        <td colspan="7" align="center"><form name="form1" method="post" action="Manage_List.asp?action=ser">
          查找订单:
          <input name="f_key" type="text" id="f_key" size="24" maxlength="24">
            <input type="submit" name="Submit" value="查询">
            请输入订单提交人名字，无任何输入则订单以时间逆序全部查询
        </form></td>
      </tr>
    </table>
	<%
end if
		rs.close
		set rs=nothing
		conn.close
		set conn=nothing
	%>
