<%@ Page AutoEventWireup="true"  CodeBehind="Logs_Manage.aspx.cs"   Inherits="Web25175_Hotel2.Web._Logs_Manage" 
    Language="C#" %>

<!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>
    <script language="javascript" src="js/Web25175_Hotel2.v1.1.js" type="text/javascript"></script>
    <script language="javascript" src="js/Web25175_Hotel2.operate.v1.1.js" type="text/javascript"></script>
    <script language="javascript" src="js/Web25175_Hotel2.calendar.js" type="text/javascript"></script>
    <script language="javascript" src="js/js.Btns.js" type="text/javascript"></script>
    <link href="css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <!--M:btnInsert$Logs_Operate.aspx,btnUpdate$Logs_Operate.aspx?,btnDelete,btnView$Logs_View.aspx,search,LogType-->
    <form id="form1" runat="server" autocomplete="off">
        <div class="OperateTitle">
            <div>
                <asp:Label ID="lblManage" runat="server" Text="日志管理"></asp:Label>
            </div>
        </div>
        <div id="search" runat="server" text="查询">
            <!-- 查询栏 -->
            <table class="SearchTable">
                <tr class="FFtr">
                    <td align="left">
                        <asp:Label ID="lblA_LogType" runat="server" Text="类型"></asp:Label>：
                        <asp:DropDownList ID="txtA_LogType" runat="server" CssClass="dropdownlist">
                            <asp:ListItem Value="0">所有类型</asp:ListItem>
                            <asp:ListItem Value="1">添加</asp:ListItem>
                            <asp:ListItem Value="2">修改</asp:ListItem>
                            <asp:ListItem Value="3">删除</asp:ListItem>
                            <asp:ListItem Value="4">登录</asp:ListItem>
                            <asp:ListItem Value="5">离开</asp:ListItem>
                        </asp:DropDownList>
                        <asp:Label ID="lblA_LogContent" runat="server" Text="操作内容"></asp:Label>：<asp:TextBox ID="txtA_LogContent" runat="server" Width="100px" CssClass="textbox"></asp:TextBox>
                        <asp:Label ID="lblA_LogUser" runat="server" Text="操作人"></asp:Label>：<asp:TextBox ID="txtA_LogUser" runat="server" Width="100px" CssClass="textbox"></asp:TextBox>

                    </td>
                </tr>
                <tr class="F7tr">
                    <td align="left">
                        <asp:Label ID="lblA_LogAddDate" runat="server" Text="操作日期"></asp:Label>：从<asp:TextBox ID="txtA_LogAddDate_T1" runat="server" Width="100px"></asp:TextBox>至<asp:TextBox ID="txtA_LogAddDate_T2" runat="server" Width="100px"></asp:TextBox>
                        <asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="查询" CssClass="btnSearch" />

                    </td>
                </tr>
            </table>
        </div>
        <div id="operate" runat="server">
            <!-- 操作栏 -->
            <div id="btns">
                <div style="width: auto; float: left; padding-right: 8px;">
                    <asp:Button ID="btnInsert" runat="server" CssClass="btnInsert" OnClick="btnInsert_Click"
                        OnClientClick='return Operat.Insert("日志管理","Logs_Operate.aspx",600,286);'
                        Text="添加" />
                    <asp:Button ID="btnUpdate" runat="server" CssClass="btnUpdate" OnClick="btnUpdate_Click"
                        OnClientClick='return Operat.Update("日志管理","Logs_Operate.aspx?LogId=",600,286);'
                        Text="修改" />
                    <asp:Button ID="btnDelete" runat="server" CssClass="btnDelete" OnClick="btnDelete_Click"
                        OnClientClick='return Operat.Delete();' Text="删除" />
                    <asp:Button ID="btnView" runat="server" CssClass="btnView" OnClientClick='return Operat.View("日志管理","Logs_View.aspx?LogId=",600,286);'
                        Text="查看" />
                </div>
                <div id="LogType" runat="server" class="btnsbtn" text="类型">
                    <div class="btnspanel">
                        <div class="btnstitle">
                            类型</div>
                        <div class="btnsmenuhide" group='btnLogType1'>
                            <asp:Button ID="btnLogType1" runat="server" CssClass='btnsstyle' OnClick="btnLogType1_Click"
                                Text="添加" Width="100px" /></div>
                        <div class="btnsmenuhide" group='btnLogType2'>
                            <asp:Button ID="btnLogType2" runat="server" CssClass='btnsstyle' OnClick="btnLogType2_Click"
                                Text="修改" Width="100px" /></div>
                        <div class="btnsmenuhide" group='btnLogType3'>
                            <asp:Button ID="btnLogType3" runat="server" CssClass='btnsstyle' OnClick="btnLogType3_Click"
                                Text="删除" Width="100px" /></div>
                        <div class="btnsmenuhide" group='btnLogType4'>
                            <asp:Button ID="btnLogType4" runat="server" CssClass='btnsstyle' OnClick="btnLogType4_Click"
                                Text="登录" Width="100px" /></div>
                        <div class="btnsmenuhide" group='btnLogType5'>
                            <asp:Button ID="btnLogType5" runat="server" CssClass='btnsstyle' OnClick="btnLogType5_Click"
                                Text="离开" Width="100px" /></div>

                    </div>
                </div>
                <div style="clear:both"></div>
            </div>
        </div>
        <div id="content" runat="server">
            <!-- 内容栏 -->
            <script>var chk = new Array();</script>
            <Web25175_Hotel2:GridView ID="GridView1" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                CssClass="gv" GetSort="" GridLines="Horizontal" OnRowDataBound="GridView1_RowDataBound"
                OnSubSort="GridView1_SubSort" EmptyDataText="很抱歉!暂时没有记录!" Width="100%">
                <RowStyle CssClass="gvRow" />
                <HeaderStyle CssClass="gvHeader" />
                <AlternatingRowStyle CssClass="gvAlternatingRow" />
                <Columns>
                    <asp:TemplateField HeaderText="选择">
                        <headertemplate>
                            <input  onclick="Operat.AllCancel(this)" type=checkbox />
                        </headertemplate>
                        <itemstyle width="30px" />
                        <itemtemplate>
                             <asp:CheckBox id="cboxSelect" runat="server"></asp:CheckBox>
                             <asp:Literal id="cboxHelp" runat="server"></asp:Literal> 
                             <asp:HiddenField runat="server" id="HFLogId" Value='<%# Eval("A_LogId")%>'></asp:HiddenField>
                         
                        </itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="类型" SortExpression="A_LogType">
                         <itemstyle width="100px" />
                         <itemtemplate>
                            <asp:Label id="lblA_LogType_gv" runat="server" Text='<%# Eval("A_LogType")%>'></asp:Label>
                         </itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="操作内容">
                         <itemstyle width="370px" />
                         <itemtemplate>
                            <asp:Label id="lblA_LogContent_gv" runat="server" Text='<%# Eval("A_LogContent")%>'></asp:Label>
                         </itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="操作人" SortExpression="A_LogUser">
                         <itemstyle width="100px" />
                         <itemtemplate>
                            <asp:Label id="lblA_LogUser_gv" runat="server" Text='<%# Eval("A_LogUser")%>'></asp:Label>
                         </itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="操作日期" SortExpression="A_LogAddDate">
                         <itemstyle width="100px" />
                         <itemtemplate>
                            <asp:Label id="lblA_LogAddDate_gv" runat="server" Text='<%# Eval("A_LogAddDate").ToString().Trim()!=""?Convert.ToDateTime(Eval("A_LogAddDate").ToString()).ToString("yyyy-MM-dd"):""%>'></asp:Label>
                         </itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField>
                         <itemtemplate>
                         </itemtemplate>
                    </asp:TemplateField>
                </Columns>
            </Web25175_Hotel2:GridView>
        </div>
        <div id='pager' runat="server" class='pager'>
            <Web25175_Hotel2:Pager ID="Pager1" runat="server" OnSubPager="Pager1_SubPager" PageBind="BindData"
                PagesCss="PageOff" PagesCssFirst="PageFirst" PagesCssLast="PageLast" PagesCssNext="PageNext"
                PagesCssOn="PageOn" PagesCssPrev="PagePrev" PageSize="20" />
        </div>
    </form>
    <script type="text/javascript">
    uiReady(function() {
        InitBtnsGroup();
        uiCalendar_Setup("txtA_LogAddDate_T1","yyyy-MM-dd");
        uiCalendar_Setup("txtA_LogAddDate_T2","yyyy-MM-dd");

    })
    </script>
</body>
</html>

