<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="marqueeFont.aspx.cs" Inherits="MyITJob.Admin.marqueeFont" %>

<!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 href="../images/Admin_Style.css" rel="stylesheet" type="text/css" />
    <script language="javascript" type="text/javascript" src="../js/tit.js"></script>
    <link rel="stylesheet" href="../kindeditor/themes/default/default.css" />
    <link rel="stylesheet" href="../kindeditor/plugins/code/prettify.css" />
    <script charset="utf-8" src="../kindeditor/kindeditor.js"></script>
    <script charset="utf-8" src="../kindeditor/lang/zh_CN.js"></script>
    <script charset="utf-8" src="../kindeditor/plugins/code/prettify.js"></script>
    <script>
        KindEditor.ready(function (K) {
            var editor1 = K.create('#editor_GG', {
                cssPath: '../kindeditor/plugins/code/prettify.css',
                uploadJson: '../kindeditor/upload_json.ashx',
                fileManagerJson: '../kindeditor/file_manager_json.ashx',
                allowFileManager: true
            });
            prettyPrint();
        });
    </script>
    <script src="../js/My97Date/WdatePicker.js" type="text/javascript"></script>
    <script language='javascript' type="text/javascript">
        function CheckAll(form) {
            for (var i = 0; i < form.elements.length; i++) {
                var e = form.elements[i];
                if (e.name != 'chkAll' && e.disabled == false && e.type == 'checkbox') {
                    e.checked = form.chkAll.checked;
                    if (e.checked)
                        hL(e);
                    else
                        dL(e);
                }
            }
        }

        function hL(E) {
            while (E.tagName != 'TR') { E = E.parentElement; }
            E.className = 'tdbg2';
        }
        function dL(E) {
            while (E.tagName != 'TR') { E = E.parentElement; }
            E.className = 'tdbg';
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Panel ID="AE" runat="server" Visible="false">
            <table border="0" cellpadding="2" cellspacing="1" class="border" width="100%">
                <tr class="topbg2">
                    <td align="center" width="100%">
                        <strong class="Glow">小 Q 提 示</strong>
                    </td>
                </tr>
            </table>
            <table border="0" cellpadding="4" cellspacing="1" class="border" width="100%">
                <tr>
                    <td align="right" class="tdbg2" width="10%">
                        标题内容：
                    </td>
                    <td class="tdbg" width="90%">
                        <textarea id="editor_GG" runat="server" style="width:auto; height:200px" enableviewstate="false"
                            name="editor_GG"></textarea>
                    </td>
                </tr>
            </table>
            <div align="center">
                <asp:Button ID="AEBButton" runat="server" Text="确 认" OnClick="AEBButton_Click" />&nbsp;&nbsp;<input
                    id="Button1" type="button" value="返 回" onclick="javascript:histroy:go(-1);" /></div>
        </asp:Panel>
        <asp:Panel ID="Manage" runat="server">
            <table align="center" border="0" cellpadding="2" cellspacing="1" class="border" width="100%">
                <tr class="topbg2">
                    <td align="center" width="7%">
                        <span class="Glow"><strong>选中</strong></span>
                    </td>
                    <td align="center" width="7%">
                        <span class="Glow"><strong>序号</strong></span>
                    </td>
                    <td align="center" width="74%">
                        <span class="Glow"><strong>小Q提示标题</strong></span>
                    </td>
                    <td align="center" width="12%">
                        <span class="Glow"><strong>常规操作</strong></span>
                    </td>
                </tr>
                <asp:Repeater ID="Manage_Marquee" runat="server">
                    <ItemTemplate>
                        <tr class='tdbg' onmouseout="this.className='tdbg'" onmouseover="this.className='tdbgmouseover'">
                            <td align='center'>
                                <input id="CheckBox1" name="CheckBox1" type="checkbox" value="<%#Eval("id") %>" />
                            </td>
                            <td align='center'>
                                <%#Eval("id") %>
                            </td>
                            <td>
                                <%#Eval("content") %>
                            </td>
                            <td align='center'>
                                <a href='marqueeFont.aspx?Action=Edit&id=<%# Eval("id")%>'>修改</a> | <a href='marqueeFont.aspx?Action=Del&id=<%# Eval("id")%>'
                                    onclick="return confirm('确定要删除此项吗？此操作不可逆。')">删除</a>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
            <input name="chkAll" onclick="CheckAll(this.form)" type="checkbox" value="checkbox" />&nbsp;
            &nbsp;&nbsp;
            <asp:Button ID="DelNews_Button" runat="server" Text="删除选定文章" OnClick="DelNews_Button_Click" /><br />
            <table border="0" cellpadding="0" cellspacing="0" height="18" width="100%">
                <tr>
                    <td height="18" width="669">
                        <div id="paging" runat="server">
                        </div>
                    </td>
                </tr>
            </table>
        </asp:Panel>
    </div>
    </form>
</body>
</html>
