<%@ Page Title="商品标签" Language="C#" MasterPageFile="~/BackStage/SiteMaster.Master" AutoEventWireup="true" CodeBehind="Frm_PtypeClassList.aspx.cs" Inherits="AndroidSevice.Web.WLTGL.Frm_PtypeClass" %>
<%@ Register assembly="AspNetPager" namespace="Wuqi.Webdiyer" tagprefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
     function ShowDataHelp(_url, _title, _handler) {
         layer.open({
             type: 2,
             area: ['700px', '500px'],
             fix: false, //不固定
             maxmin: true,
             content: _url
         });
     }
     function sAlert(info) {
         var message = info;
         layer.alert(message, 8); //风格一，layer弹出层特效
     }
     function sAlertOut(info) {
         layer.alert(info, { closeBtn: 0
         }, function () {
             window.location.href = '../../default.aspx'; //刷新父页面
         });
     }
    </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="Frm_PtypeList.aspx" title="Go to Home" class="tip-bottom"><i class="icon-home"></i>商品信息</a>
				<a href="Frm_PtypeClassList.aspx" 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">
                            <button type="button" onclick=ShowDataHelp('Frm_PtypeClassEdit.aspx','','') class="btn"><i class="icon-plus"></i>增加</button>
                            <a href="Frm_PtypeList.aspx"><button type="button" onclick="window.location.href='Frm_PtypeList.aspx'" class="btn"><i class="icon-share-alt"></i>返回</button></a>
                             <table id="wew" class="table table-bordered table-striped table-hover">
                                    <thead>
										<tr>
											<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><%=dtlist.Rows[i]["classname"].ToString() %></td>
                                        <td><button type="button" onclick=ShowDataHelp('Frm_PtypeClassEdit.aspx?sub=edit&classid=<%=dtlist.Rows[i]["nub"].ToString() %>','','') class="btn">修改</button></td>
                                        <td>
                                        <a><button type="button"   onclick="javaScript:if(confirm('您确定要删除吗？')) window.location.href='Frm_PtypeClassList.aspx?sub=del&classid=<%=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>
