<%@ Page Title="" Language="C#" MasterPageFile="~/BackStage/SiteMaster.Master" AutoEventWireup="true" CodeBehind="CollectionQuery.aspx.cs" Inherits="AndroidSevice.Web.WLTGL.CollectionQuery" %>
<%@ Register assembly="AspNetPager" namespace="Wuqi.Webdiyer" tagprefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script type="text/javascript">
 function sAlertOut(info) {
         layer.alert(info, { closeBtn: 0
         }, function () {
             window.location.href = '../../default.aspx'; //刷新父页面
         });
     }
     function sAlert(info) {
         var message = info;
         layer.alert(message, 8); //风格一，layer弹出层特效
     }
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="content-header">
				<div class="btn-group">
				</div>
			</div>
	<div id="breadcrumb">
				<a href="#" title="Go to Home" class="tip-bottom"><i class="icon-home"></i>物联通管理</a>
				<a href="#" class="current">收藏管理</a>
	  </div>
	<div class="container-fluid">
				<div class="row-fluid">
					<div class="span12">
						<div class="widget-box">
							<div class="widget-title">
								<span class="icon">
									<i class="icon-th-list"></i>
								</span>
								<h5>收藏列表</h5>
                                </div>
							<div class="widget-content">
                             <table id="query" class="table table-bordered table-striped table-hover">
                                    <tbody>
                                    <tr>
											<td><span>商品名称：<input type="text" name="ptypename" id="ptypename" value="<%=_ptypename %>"/></span></td>
                                            <td>商品编号： <input type="text" name="ptypecode" id="Text1" value="<%=_ptypecode %>"/></td>
                                            <td>业务员： <input type="text" name="empory" id="Text2" value="<%=_empory %>"/></td>
                                            <td><button type="submit" name="sub" value="sub" class="btn">查询</button></td>
										</tr>
                                    </tbody>
							</table>
                             <table id="wew" class="table table-bordered table-striped table-hover">
                                    <thead>
										<tr>
                                            <th style="width:20px">序号</th>
											<th>商品名称</th>
											<th>商品编号</th>
											<th>业务员</th>
                                            <th>删除</th>
										</tr>
									</thead>
                                    <tbody>
                                    <% if(dtlist!=null&&dtlist.Rows.Count!=0)
                                       {
                                           for (int i = 0; i < dtlist.Rows.Count;i++)
                                           {
                                    %>
                                    <tr>
                                            <td style="width:20px"><%=i+1 %></td>
											<td><%=dtlist.Rows[i]["fullname"].ToString()%></td>
                                            <td><%=dtlist.Rows[i]["usercode"].ToString()%></td>
                                            <td><%=dtlist.Rows[i]["loginname"].ToString()%></td>
                                            <td><a ><button type="button" onclick="javaScript:if(confirm('您确定要删除吗？')) window.location.href='CollectionQuery.aspx?sub=del&collid=<%=dtlist.Rows[i]["nub"].ToString() %>'" class="btn">删除</button></a></td>
										</tr>
                                        <%
                                           }
                                       } 
                                         %>
                                    </tbody>
							</table>
                            <div class="pager">
                            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" FirstPageText="首页" LastPageText="尾页" PrevPageText="上一页" NextPageText="下一页" 
                            onpagechanging="AspNetPager1_PageChanging"
                            PageSize="20" AlwaysShow="True" />
                            </div>
							</div>
						</div>
					</div>
				</div>
			</div>
</asp:Content>