<%@ Page Title="用户配置" Language="C#" MasterPageFile="~/BackStage/SiteMaster.Master" AutoEventWireup="true" CodeBehind="Frm_UserPower.aspx.cs" Inherits="AndroidSevice.Web.WLTGL.Frm_UserPower" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
        function ShowDataHelp(_url, _title, _handler) {
            layer.open({
                type: 2,
                area: ['60%', '90%'],
                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>
	<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">
                            <%--<asp:DropDownList ID="ddl" runat="server"  onselectedindexchanged="ddl_SelectedIndexChanged" AutoPostBack="true">
                                <asp:ListItem Value="用户配置">用户配置</asp:ListItem>
                                <asp:ListItem Value="前台全局配置">前台全局配置</asp:ListItem>
                            </asp:DropDownList>--%>
                             <div>
                            <a  href="Frm_UserPower.aspx?pages=common"><button style=" color:White; background:#00B7EE"  onclick="window.location.href='Frm_UserPower.aspx?pages=common'" type="button" class="btn">用户配置</button></a>
                           <% if (_IsFzLimit.ToUpper() == "FALSE")
                                    {%>
                            <a href="Frm_UserPower.aspx?pages=phone"><button style=" color:White; background:#00B7EE"  onclick="window.location.href='Frm_UserPower.aspx?pages=phone'" type="button" class="btn">前台全局配置</button></a>
             <%} %>
                             
                                    <% if (_IsFzLimit.ToUpper() == "TRUE")
                                    {%>
                                    <button type="button" class="btn" style=" color:White; background:#00B7EE; float:right"  onclick="ShowDataHelp('Frm_UserPowerFZ_Edit.aspx?sub=view','','')"><i class="icon-cog"></i>设置</button>
                                     <%} %>
                                      <% if (_IsFzLimit.ToUpper() == "FALSE")
                                    {
                                        if (_IsPhone.ToUpper() == "FALSE")
                                        {%>
                                            <button type="button" style=" color:White; background:#00B7EE; float:right" class="btn" onclick="ShowDataHelp('Frm_UserPower_Edit.aspx?sub=view','','')"><i class="icon-cog" ></i>设置</button>
                                        <%} 
                                             else
                                            {%>
                                            <button type="button" class="btn" style=" color:White; background:#00B7EE; float:right"  onclick="ShowDataHelp('Frm_UserPower_PhoneEdit.aspx?sub=view','','')"><i class="icon-cog" ></i>设置</button>
                                             <%} 
                                     } %>
                             </div>
                             <table id="wew" class="table table-bordered table-striped table-hover">
                                    <thead>
										<tr>
											<th style="width:55%">设置项名称</th>
											<th style="width:20%">值</th>
											<th style="width:25%">备注</th>
										</tr>
									</thead>
                                    <tbody>
								<%
                                    if (dt != null)
                                    {
                                        for (int i = 0; i < dt.Rows.Count; i++)
                                        {%>
                                        <tr>
											<td  style="width:55%"><%=dt.Rows[i]["fullname"].ToString()%></td>
											<td  style="width:20%"><% if (dt.Rows[i]["TypeName"].ToString() == "UploadImageSeals")
                  {
                      if (dtlistImages != null && dtlistImages.Rows.Count != 0)
                      {%>
                        <img alt="" style=" width:90px; height:90px;" src="../ReadImages.ashx?typeid=''&nubconunt=0&DbName=<%=Session["DbName"].ToString() %>&pagetype=sealimages" />
                      <%
                      }
                      else { %>
                      无图
                      <%}
                        }
                  else
                  { %>
                                            <%=dt.Rows[i]["typevalues"].ToString()%>
                                            <%} %>
                                            </td>
											<td  style="width:25%"dt.Rows[i]["comment"].ToString()%></td>
										</tr>
                                <%
                                        }
                                    }
                                 %>
                                 </tbody>
								</table>
                                
							</div>
						</div>
					</div>
				</div>
			</div>
</asp:Content>