<%@ page language="C#" autoeventwireup="true" inherits="SysManage_AfficheLFRM, App_Web_imj1v1td" stylesheettheme="Themes" theme="Themes" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="cc1" %>
<!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 id="Head1" runat="server">
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

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

    <script src="../js/artDialog3/artDialog.min.js"></script>

    <script>        (function($) { var d = $.dialog.defaults; d.skin = ['chrome']; })(art);</script>

    <style type="text/css">
        #innav
        {
            padding-left: 50px;
            color: #d38e0c;
            width: 25px;
        }
        #innav A
        {
            color: #d38e0c;
        }
    </style>
</head>
<body>
    <div id="loading">
        <div style="position: absolute; top: 0px; left: 0px; width: 100%; height: 100%; background-color: #ffffff;
            z-index: 10; filter: alpha(opacity=90); opacity: 0.9;">
        </div>
        <div id="msg_area" style="z-index: 200; left: 289px; position: absolute; top: 202px;">
            <div id="msgPanel" style="z-index: 200;" height="24px" width="100px" bordercolor="#eeeeee"
                borderstyle="Solid" borderwidth="1px">
                <asp:Image ID="img" runat="server" ImageUrl="~/images/loading.gif" />
                <font style="font-size: 9pt; color: Gray;">loading...读取中......</font>
            </div>
        </div>
    </div>
    <form id="form1" runat="server">
    <table cellpadding="0" cellspacing="0" class="table_box">
        <tr>
            <td class="right_bg">
                <span class="right_title">
                    <img src="../Images/homen.gif" class="img_style" />
                    您的当前位置：公告管理 > 通知公告</span>
            </td>
        </tr>
        <tr>
            <td class="r_top_box">
                <table cellspacing="0" cellpadding="5" class="r_top_title_box">
                    <tr>
                        <td width="100px" align="right">
                            公告标题：
                        </td>
                        <td width="100px" align="left">
                            <input type="text" id="txtinfo" class="txt" runat="server" maxlength="25" />
                        </td>
                        <td align="left">
                            <asp:Button ID="btnOK" runat="server" Text="查 询" OnClick="btnOK_Click" />
                            <asp:Button ID="btnAdd" runat="server" Text="发布公告" OnClick="btnAdd_Click" />
                            <asp:Button ID="btnDel" runat="server" Text="删 除" OnClick="btnDel_Click" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td class="margintop5">
                <table cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td>
                            <asp:GridView ID="gvAffiche" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                                DataKeyNames="AfficheID" OnRowCommand="gvAffiche_RowCommand" OnRowDataBound="gvAffiche_RowDataBound"
                                PageSize="10">
                                <PagerSettings Visible="False" />
                                <Columns>
                                    <asp:TemplateField>
                                        <HeaderTemplate>
                                            全选<input id="chkSelAll" name="chkSelAll" onclick="javascript:CheckAll();" type="checkbox">
                                        </HeaderTemplate>
                                        <HeaderStyle Width="50px" />
                                        <ItemTemplate>
                                            <asp:CheckBox ID="chkSel" runat="server" />
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="Title" HeaderText="公告标题" />
                                    <asp:BoundField DataField="Remark" HeaderText="公告关键概述" />
                                    <asp:BoundField DataField="PublishTime" DataFormatString="{0:d}" HeaderText="发布时间" />
                                    <asp:BoundField DataField="MatureTime" DataFormatString="{0:d}" HeaderText="到期时间" />
                                    <asp:TemplateField HeaderText="编辑">
                                        <ItemTemplate>
                                            <%--  <asp:ImageButton ID="ibtnEdit" runat="server" CommandName="edit" ImageUrl="~/Images/edit.gif"
                                                    ToolTip="编辑" />--%>
                                            <asp:LinkButton ID="ibtnEdit" CommandName="edit" runat="server">编辑</asp:LinkButton>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <EmptyDataTemplate>
                                    <div class="nodata">
                                        <img src="../Images/waring_pic01.gif" />
                                        <asp:Label ID="lbltext" runat="server" Text="没有你要查询的数据！" HorizontalAlign="Center"
                                            Height="30px"></asp:Label>
                                    </div>
                                </EmptyDataTemplate>
                                <%-- <EmptyDataRowStyle Font-Size="XX-Large" Font-Bold="true" ForeColor="Red" HorizontalAlign="Center" />--%>
                                <HeaderStyle HorizontalAlign="Center" />
                            </asp:GridView>
                            <%--<cc1:AspNetPager ID="myAspNetPager" runat="server" AlwaysShow="True" CssClass="PagerClassCss" Enabled="true"
FirstPageText="首页&nbsp;&nbsp;" HorizontalAlign="Right" InputBoxStyle="width:20px;"
LastPageText="尾页" NextPageText="&nbsp;&nbsp;下一页&nbsp;&nbsp;" NumericButtonTextFormatString="  {0}"
onpagechanged="AspNetPager1_PageChanged" PrevPageText="上一页" ShowCustomInfoSection="Left"
ShowInputBox="Always" Width="94%">
    </cc1:AspNetPager>--%>
                        </td>
                    </tr>
                    <tr>
                        <td class="page_bg_left">
                            <cc1:AspNetPager ID="myAspNetPager" runat="server" AlwaysShow="True" CssClass="cut_pager"
                                PageSize="10" FirstPageText="首页&nbsp;&nbsp;" HorizontalAlign="Right" InputBoxStyle="width:20px;"
                                LastPageText="尾页" NextPageText="&nbsp;&nbsp;下一页&nbsp;&nbsp;" NumericButtonTextFormatString="  {0}"
                                OnPageChanging="AspNetPager1_PageChanging" PrevPageText="上一页" ShowCustomInfoSection="Left"
                                CustomInfoTextAlign="Left" ShowInputBox="Always">
                            </cc1:AspNetPager>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </form>

    <script type="text/javascript">
　　        $("#loading").fadeOut()
    </script>

</body>

<script type="text/javascript" language="javascript">
    function CheckAll() {
        var cked = false;
        cked = document.getElementById("chkSelAll").checked;
        for (var i = 0; i < document.getElementsByTagName("*").length; i++) {
            var e = document.getElementsByTagName("*")[i];
            try {
                if (e.name.substring(e.name.length - 6, e.name.length) == "chkSel") {
                    e.checked = cked;
                }
            }
            catch (exception) {
            }
        }
    }
    function CheckSelect() {
        var count = 0;
        for (var i = 0; i < document.getElementsByTagName("*").length; i++) {
            var e = document.getElementsByTagName("*")[i];
            try {
                if (e.name.substring(e.name.length - 6, e.name.length) == "chkSel") {
                    if (e.checked == true) {
                        count++;
                    }
                }
            }
            catch (exception) {
            }
        }
        if (count == 0) {
            //alert("请选择您要删除的项！");
            art.dialog({ content: '请选择您要删除的项！', lock: true, icon: 'alert', width: '200px' }, function() { return true; });
            return false;
        }
        else {
            return confirm('您确定要删除所选项吗?');
        }
    }
</script>

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

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

</html>
