<%@ Page CodeBehind="admin_gg.aspx.cs" Language="c#" AutoEventWireup="True" Inherits="Webdisk.admin_gg" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
    <title></title>
    <link href="images/Site_Css.css" type="text/css" rel="stylesheet">
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <link href="images/Css.css" type="text/css" rel="stylesheet">
    <meta content="MSHTML 6.00.6000.16544" name="GENERATOR">
    <style type="text/css">
        .style4
        {
            color: #ff0000;
        }
        form, body
        {
            overflow-x: hidden;
            overflow-y: auto;
            min-height:400px;
        }
    </style>
</head>
<body bgcolor="#ffffff" topmargin="5" marginwidth="0" marginheight="0">
    <form name="Form1" method="post" id="Form1" runat="server">
    <div style="overflow-y: auto;overflow-x:hidden;">
        <table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
            <tbody>
                <tr>
                    <td class="menubar_title">
                        <img hspace="3" src="images/default.gif" align="absMiddle" vspace="3" border="0">&nbsp;公告管理
                    </td>
                    <td class="menubar_readme_text" valign="bottom">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td class="menubar_function_text" height="1">
                        &nbsp;
                    </td>
                    <td class="menubar_menu_td" align="right">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td colspan="2" height="5">
                    </td>
                </tr>
            </tbody>
        </table>
        <table cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
            <tbody>
                <tr>
                    <td background="images/tab_top_bg.gif" height="22">
                        <table cellspacing="0" cellpadding="0" border="0">
                            <tbody>
                                <tr>
                                    <!--按钮　Start-->
                                    <td>
                                        <table height="22" cellspacing="0" cellpadding="0" border="0">
                                            <tbody>
                                                <tr>
                                                    <td width="3">
                                                        <img id="tabImgLeft__0" height="22" src="images/tab_unactive_left.gif" width="3">
                                                    </td>
                                                    <td class="tab" id="tabLabel__0" onclick="javascript:tabClick(0,1)" background="images/tab_active_bg.gif"
                                                        unselectable="on">
                                                        公告管理
                                                    </td>
                                                    <td width="3">
                                                        <img id="tabImgRight__0" height="22" src="images/Menu/tab_active_right.gif" width="3">
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td bgcolor="#ffffff">
                        <table cellspacing="0" cellpadding="0" width="100%" border="0">
                            <tbody>
                                <tr>
                                    <td width="1" background="images/tab_bg.gif">
                                        <img height="1" src="images/tab_bg.gif" width="1">
                                    </td>
                                    <td valign="top" height="100" class="borderstyle">
                                        <div id="tabContent__0">
                                            <asp:DataGrid ID="DataGrid" runat="server" CssClass="GridBody" AutoGenerateColumns="False"
                                                Width="100%" PageSize="20" AllowSorting="True">
                                                <AlternatingItemStyle CssClass="GridLine"></AlternatingItemStyle>
                                                <ItemStyle CssClass="GridItem"></ItemStyle>
                                                <HeaderStyle CssClass="GridHead"></HeaderStyle>
                                                <Columns>
                                                    <asp:BoundColumn Visible="False" DataField="id"></asp:BoundColumn>
                                                    <asp:BoundColumn DataField="title" ReadOnly="True" HeaderText="标题">
                                                        <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                                        <ItemStyle HorizontalAlign="Left"></ItemStyle>
                                                    </asp:BoundColumn>
                                                    <asp:BoundColumn DataField="datetime" HeaderText="添加时间">
                                                        <HeaderStyle HorizontalAlign="Center" Width="20%"></HeaderStyle>
                                                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                                    </asp:BoundColumn>
                                                    <asp:BoundColumn DataField="adduser" HeaderText="添加用户">
                                                        <HeaderStyle HorizontalAlign="Center" Width="20%"></HeaderStyle>
                                                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                                    </asp:BoundColumn>
                                                    <asp:HyperLinkColumn Text="编辑" DataNavigateUrlField="id" DataNavigateUrlFormatString="admin_gg_add.aspx?id={0}"
                                                        HeaderText="编辑">
                                                        <HeaderStyle HorizontalAlign="Center" Width="7%"></HeaderStyle>
                                                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                                    </asp:HyperLinkColumn>
                                                    <asp:ButtonColumn Text="删除" HeaderText="删除" CommandName="Delete">
                                                        <HeaderStyle HorizontalAlign="Center" Width="7%"></HeaderStyle>
                                                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                                                    </asp:ButtonColumn>
                                                </Columns>
                                                <PagerStyle PageButtonCount="20" Mode="NumericPages"></PagerStyle>
                                            </asp:DataGrid>
                                        </div>
                                        <!--内容框End-->
                                    </td>
                                    <td width="1" background="images/tab_bg.gif">
                                        <img height="1" src="images/tab_bg.gif" width="1">
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td background="images/tab_bg.gif" bgcolor="#ffffff">
                        <img height="1" src="images/tab_bg.gif" width="1">
                    </td>
                </tr>
            </tbody>
        </table>
        <!--选项卡 End-->
    </div>
    <div>
        <div align="center">
        </div>
    </div>
    </form>
    <script language="javascript">
        function tabClick(idx, count) {
            for (i_tr = 0; i_tr < count; i_tr++) {
                var tabImgLeft = eval('document.all.tabImgLeft__' + idx);
                var tabImgRight = eval('document.all.tabImgRight__' + idx);
                var tabLabel = eval('document.all.tabLabel__' + idx);
                var tabContent = eval('document.all.tabContent__' + idx);

                tabImgLeft.src = 'images/tab_active_left.gif';
                tabImgRight.src = 'images/tab_active_right.gif';
                tabLabel.background = 'images/tab_active_bg.gif';
                tabContent.style.visibility = 'visible';
                tabContent.style.display = 'block';
            }
        }
        tabClick(0, 1);
    </script>
    <br>
</body>
</html>
