<%@ page language="C#" autoeventwireup="true" inherits="admin_info_SetPowerInfo, DianCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<%@ Import Namespace="D.Common" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link id="CssName" rel="stylesheet" type="text/css" runat="server" />

    <script src="../../js/Common.js" type="text/javascript"></script>

    <script src="../../js/lhgdialog/lhgcore.lhgdialog.min.js?self=true&skin=<%=Function.GetCssNameColor()%>" type="text/javascript"></script>
    <script type="text/javascript" src="../../js/Dragdrop.js"></script>

</head>
<body onmousemove="dragmove();" onmouseup="dragclear()">
    <form id="form1" runat="server">
    <table class="dh" cellpadding="0" cellspacing="0" border="0" align="center">
        <tr>
            <td>
                <asp:Image ID="P_Go" runat="server" ImageAlign="AbsMiddle" />
                您现在的位置：<a href="../info.aspx">后台管理</a> >> <a href="PowerInfoList.aspx">阅读内容权限列表</a>
                >> 设置阅读内容权限
            </td>
        </tr>
    </table>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table class="border" cellspacing="1" cellpadding="0" width="99%" border="0" align="center">
                <tr>
                    <td class="bqleft">
                        名称：
                    </td>
                    <td class="bqright">
                        <asp:TextBox ID="txtName" runat="server" CssClass="in1" Columns="40"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="bqleft">
                        选择模型：
                    </td>
                    <td class="bqright">
                        <asp:DropDownList ID="DropModel" runat="server" AutoPostBack="True" 
                            onselectedindexchanged="DropModel_SelectedIndexChanged">
                            <asp:ListItem Value="">选择模型</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="bqleft">
                        阅读权限：
                    </td>
                    <td class="bqright">
                        <asp:RadioButtonList ID="RadioPowerType" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Value="1" Selected="True">只判断登录</asp:ListItem>
                            <asp:ListItem Value="2">判断用户组</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td class="bqleft">
                        用户组权限：
                    </td>
                    <td class="bqright">
                        <asp:CheckBoxList ID="CheckUserGroup" runat="server" RepeatColumns="5" RepeatDirection="Horizontal">
                        </asp:CheckBoxList>
                    </td>
                </tr>
                <tr>
                    <td class="bqleft">
                        模型字段：
                    </td>
                    <td class="bqright">
                        <asp:DataList ID="DataList1" runat="server" RepeatColumns="6" RepeatDirection="Horizontal"
                            Width="100%">
                            <ItemTemplate>
                                <div onclick="CreateRange('txtPowerShow','{D_F_<%# Eval("Name") %>}')" class="fieldstyle" title="点击选择该字段到录入界面">
                                    <%# Eval("Alias")%>
                                </div>
                            </ItemTemplate>
                        </asp:DataList>
                    </td>
                </tr>
                <tr>
                    <td class="bqleft">
                        备用代码：
                    </td>
                    <td class="bqright">
                        <input id="Button5" type="button" value="<table>" class="btn" onclick="Win_Open('../common/table.aspx?Control=txtPowerShow','','550','415')" />
                        <input id="Button6" type="button" value="<div>" class="btn" onclick="Win_Open('../common/div.aspx?Control=txtPowerShow','','550','150')" />
                        <input id="Button7" type="button" value="<tr/>" class="btn" onclick="CreateRange('txtPowerShow','<tr></tr>')" />
                        <input id="Button8" type="button" value="<td/>" class="btn" onclick="CreateRange('txtPowerShow','<td></td>')" />
                        <input id="Button9" type="button" value="<div/>" class="btn" onclick="CreateRange('txtPowerShow','<div></div>')" />
                        <input id="Button10" type="button" value="<ul/>" class="btn" onclick="CreateRange('txtPowerShow','<ul></ul>')" />
                        <input id="Button11" type="button" value="<li/>" class="btn" onclick="CreateRange('txtPowerShow','<li></li>')" />
                        <input id="Button12" type="button" value="<span/>" class="btn" onclick="CreateRange('txtPowerShow','<span></span>')" />
                        <input id="Button13" type="button" value="<font/>" class="btn" onclick="CreateRange('txtPowerShow','<font></font>')" />
                    </td>
                </tr>
                <tr>
                    <td class="bqleft">
                        满足权限阅读内容：
                    </td>
                    <td class="bqright">
                        <asp:TextBox ID="txtPowerShow" runat="server" TextMode="MultiLine" Height="200px"
                            Width="99%"></asp:TextBox><br />
                        <table width="99%" cellpadding="0" cellspacing="0" border="0">
                            <tr>
                                <td bgcolor="#e0dfe3" align="right">
                                    <a href="javascript:" onclick="runEx('txtPowerShow')">
                                        <img src="../images/PreView.gif" border="0" title="预览录入界面" /></a> <a href="javascript:"
                                            onclick="copyToClipboard(document.form1.txtPowerShow.value)">
                                            <img src="../images/copy.gif" border="0" title="复制录入界面" style="margin-left: 20px" /></a>
                                    <a href="javascript:" onclick="SizePlus('txtPowerShow')" title="增加编辑高度">
                                        <img src="../images/sizeplus.gif" border="0" style="margin-left: 20px;" /></a>
                                    <a href="javascript:" onclick="SizeMinus('txtPowerShow')">
                                        <img src="../images/sizeminus.gif" border="0" title="减少编辑高度" style="margin-left: 20px;
                                            margin-right: 20px" /></a>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td class="bqleft">
                        模型字段：
                    </td>
                    <td class="bqright">
                        <asp:DataList ID="DataList3" runat="server" RepeatColumns="6" RepeatDirection="Horizontal"
                            Width="100%">
                            <ItemTemplate>
                                <div onclick="CreateRange('txtNoLoginShow','{D_F_<%# Eval("Name") %>}')" class="fieldstyle" title="点击选择该字段到录入界面">
                                    <%# Eval("Alias")%>
                                </div>
                            </ItemTemplate>
                        </asp:DataList>
                    </td>
                </tr>
                <tr>
                    <td class="bqleft">
                        备用代码：
                    </td>
                    <td class="bqright">
                        <input id="Button15" type="button" value="<table>" class="btn" onclick="Win_Open('../common/table.aspx?Control=txtNoLoginShow','','550','415')" />
                        <input id="Button16" type="button" value="<div>" class="btn" onclick="Win_Open('../common/div.aspx?Control=txtNoLoginShow','','550','150')" />
                        <input id="Button17" type="button" value="<tr/>" class="btn" onclick="CreateRange('txtNoLoginShow','<tr></tr>')" />
                        <input id="Button18" type="button" value="<td/>" class="btn" onclick="CreateRange('txtNoLoginShow','<td></td>')" />
                        <input id="Button19" type="button" value="<div/>" class="btn" onclick="CreateRange('txtNoLoginShow','<div></div>')" />
                        <input id="Button20" type="button" value="<ul/>" class="btn" onclick="CreateRange('txtNoLoginShow','<ul></ul>')" />
                        <input id="Button21" type="button" value="<li/>" class="btn" onclick="CreateRange('txtNoLoginShow','<li></li>')" />
                        <input id="Button22" type="button" value="<span/>" class="btn" onclick="CreateRange('txtNoLoginShow','<span></span>')" />
                        <input id="Button23" type="button" value="<font/>" class="btn" onclick="CreateRange('txtNoLoginShow','<font></font>')" />
                    </td>
                </tr>
                <tr>
                    <td class="bqleft">
                        无登录阅读内容：
                    </td>
                    <td class="bqright">
                        <asp:TextBox ID="txtNoLoginShow" runat="server" TextMode="MultiLine" Height="200px"
                            Width="99%"></asp:TextBox><br />
                        <table width="99%" cellpadding="0" cellspacing="0" border="0">
                            <tr>
                                <td bgcolor="#e0dfe3" align="right">
                                    <a href="javascript:" onclick="runEx('txtNoLoginShow')">
                                        <img src="../images/PreView.gif" border="0" title="预览录入界面" /></a> <a href="javascript:"
                                            onclick="copyToClipboard(document.form1.txtNoLoginShow.value)">
                                            <img src="../images/copy.gif" border="0" title="复制录入界面" style="margin-left: 20px" /></a>
                                    <a href="javascript:" onclick="SizePlus('txtNoLoginShow')" title="增加编辑高度">
                                        <img src="../images/sizeplus.gif" border="0" style="margin-left: 20px;" /></a>
                                    <a href="javascript:" onclick="SizeMinus('txtNoLoginShow')">
                                        <img src="../images/sizeminus.gif" border="0" title="减少编辑高度" style="margin-left: 20px;
                                            margin-right: 20px" /></a>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td class="bqleft">
                        模型字段：
                    </td>
                    <td class="bqright">
                        <asp:DataList ID="DataList2" runat="server" RepeatColumns="6" RepeatDirection="Horizontal"
                            Width="100%">
                            <ItemTemplate>
                                <div onclick="CreateRange('txtNoPowerShow','{D_F_<%# Eval("Name") %>}')" class="fieldstyle" title="点击选择该字段到录入界面">
                                    <%# Eval("Alias")%>
                                </div>
                            </ItemTemplate>
                        </asp:DataList>
                    </td>
                </tr>
                <tr>
                    <td class="bqleft">
                        备用代码：
                    </td>
                    <td class="bqright">
                        <input id="Button1" type="button" value="<table>" class="btn" onclick="Win_Open('../common/table.aspx?Control=txtNoPowerShow','','550','415')" />
                        <input id="Button4" type="button" value="<div>" class="btn" onclick="Win_Open('../common/div.aspx?Control=txtNoPowerShow','','550','150')" />
                        <input id="Button2" type="button" value="<tr/>" class="btn" onclick="CreateRange('txtNoPowerShow','<tr></tr>')" />
                        <input id="Button3" type="button" value="<td/>" class="btn" onclick="CreateRange('txtNoPowerShow','<td></td>')" />
                        <input id="Button24" type="button" value="<div/>" class="btn" onclick="CreateRange('txtNoPowerShow','<div></div>')" />
                        <input id="Button24" type="button" value="<ul/>" class="btn" onclick="CreateRange('txtNoPowerShow','<ul></ul>')" />
                        <input id="Button24" type="button" value="<li/>" class="btn" onclick="CreateRange('txtNoPowerShow','<li></li>')" />
                        <input id="Button24" type="button" value="<span/>" class="btn" onclick="CreateRange('txtNoPowerShow','<span></span>')" />
                        <input id="Button24" type="button" value="<font/>" class="btn" onclick="CreateRange('txtNoPowerShow','<font></font>')" />
                    </td>
                </tr>
                <tr>
                    <td class="bqleft">
                        无权限阅读内容：
                    </td>
                    <td class="bqright">
                        <asp:TextBox ID="txtNoPowerShow" runat="server" TextMode="MultiLine" Height="200px"
                            Width="99%"></asp:TextBox><br />
                        <table width="99%" cellpadding="0" cellspacing="0" border="0">
                            <tr>
                                <td bgcolor="#e0dfe3" align="right">
                                    <a href="javascript:" onclick="runEx('txtNoPowerShow')">
                                        <img src="../images/PreView.gif" border="0" title="预览录入界面" /></a> <a href="javascript:"
                                            onclick="copyToClipboard(document.form1.txtNoPowerShow.value)">
                                            <img src="../images/copy.gif" border="0" title="复制录入界面" style="margin-left: 20px" /></a>
                                    <a href="javascript:" onclick="SizePlus('txtNoPowerShow')" title="增加编辑高度">
                                        <img src="../images/sizeplus.gif" border="0" style="margin-left: 20px;" /></a>
                                    <a href="javascript:" onclick="SizeMinus('txtNoPowerShow')">
                                        <img src="../images/sizeminus.gif" border="0" title="减少编辑高度" style="margin-left: 20px;
                                            margin-right: 20px" /></a>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td class="bqleft">
                    </td>
                    <td class="bqright" height="50">
                        <asp:Button ID="Button14" runat="server" Text=" 确认 " CssClass="btn radius30 pad_0_30" OnClick="Button14_Click" />
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
