<%@ Page Title="价格权限设置" Language="C#" MasterPageFile="~/BackStage/HelperMaster.Master" AutoEventWireup="true" CodeBehind="Frm_PriceSet.aspx.cs" Inherits="AndroidSevice.Web.WLTGL.Frm_PriceSet" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script type="text/javascript">
    function sAlert(info) {
        var message = info;
        layer.alert(message, 8); //风格一，layer弹出层特效
    }
    function sAlertok(info) {
        layer.alert(info, { closeBtn: 0
        }, function () {
            parent.location.reload(); //刷新父页面
        });
    }
    function SelectAll() {
        var checkboxs = document.getElementsByName("pricecheck");
        for (var i = 0; i < checkboxs.length; i++) {
            var e = checkboxs[i];
            e.checked = !e.checked;
        }
    }
    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 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="wew" class="table table-bordered table-striped table-hover">
                                    <thead>
										<tr>
											<th style=" width:20px;"><input type="checkbox" name="allChecked" id="allChecked" onclick="SelectAll()"/></th>
											<th>价格类型名称</th>
										</tr>
									</thead>
                                    <tbody>
                                    <% if (dtlist != null && dtlist.Rows.Count > 0)
                                       {
                                           for (int i = 0; i < dtlist.Rows.Count; i++)
                                           {
                                    %>
                                    <tr>
											<td><input type="checkbox" value=<%=dtlist.Rows[i]["PriceType"].ToString()+":"+dtlist.Rows[i]["FullName"].ToString() %> name="pricecheck" <%=dtlist.Rows[i]["isused"].ToString()=="1"?"checked":"" %> /></td>
                                            <td><%=dtlist.Rows[i]["FullName"].ToString()%></td>
									</tr>
                                    <% 
                                           }
                                       }
                                    %>
                                    </tbody>
							</table>
                           <button type="submit" class="btn" >保存</button>
                          </div>
						</div>
					</div>
				</div>
			</div>
</asp:Content>
