<%@ page language="C#" autoeventwireup="true" inherits="StudyNotesInfo, App_Web_gglmqxdj" 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 runat="server">
    <title></title>
         <script src="../js/artDialog3/artDialog.min.js"></script>
      <script>          (function($) { var d = $.dialog.defaults; d.skin = ['chrome']; })(art);</script>
    <link href="../css/layout.css" rel="stylesheet" type="text/css" />
    <link href="../css/layerDiv.css" rel="stylesheet" type="text/css" />

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

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

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

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

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

    <style type="text/css">
        #LayerAll
        {
            position: absolute;
            filter: alpha(opacity = 50);
            width: 100%;
            height: 100%;
            background-color: #CCCCCC;
            border: 0px;
            left: 1px;
            top: 1px;
            z-index: 1;
            display: none;
        }
    </style>

    <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("请选择您要删除的项！");
                return false;
            }
            else {
                //return confirm('您确定要删除所选项吗?');
            }
        }
    </script>

</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">
    <%--<div id="right" algin="center" style="display: none" runat="server">
        <div id="m_onlineuser" class="b2">
            <div class="rct">
                <div class="l tl1">
                </div>
                <div class="r tr1">
                </div>
            </div>
            <div class="cnt f14" style="width: 98%">
                <div style="color: #666" align="center">
                    <table cellspacing="0" cellpadding="6" border="0" style="table-layout: fixed; background-color:#deeffa;">
                        <tr>
                            <td align="right" style="width:20%">
                                笔记类容：
                            </td>
                            <td align="left">
                                <asp:TextBox ID="tbxMess" runat="server" Height="113px" TextMode="MultiLine" Width="327px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="center">
                               
                            </td>
                            <td align="left">
                             <asp:Button ID="btnt" runat="server" Text=" 提 交 " OnClick="btnt_Click" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:Button ID="btnReset" runat="server" Text=" 关 闭 " OnClick="btnReset_Click" />
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="rcb">
                <div class="l bl1">
                </div>
                <div class="r br1">
                </div>
            </div>
        </div>
        <!--CMSLOADOK--->
    </div>--%>
    <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" />
                    您的当前位置：<asp:Label ID="lblnum" runat="server" Text="Label"></asp:Label></span>
            </td>
        </tr>
        <tr>
            <td id="numid" runat="server" class="r_top_box">
                <table cellspacing="0" cellpadding="5" class="r_top_title_box">
                    <tr>
                        <td align="left">
                            请选择课程查询：
                            <asp:DropDownList ID="ddlCourse" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlCourse_SelectedIndexChanged">
                            </asp:DropDownList>
                            &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:Button ID="btnCoalition" runat="server" Text=" 笔记合并 " OnClick="btnCoalition_Click" />
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:Button ID="btnConversion" runat="server" Text=" 转换为知识 " OnClick="btnConversion_Click" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Panel ID="p1" runat="server" Visible="false">
                    <table cellpadding="5" cellspacing="0" width="100%" bgcolor="white" style="border: solid 1px #cccccc;">
                        <tr>
                            <td>
                                <img src="../Images/waring_pic01.gif" class="nodata_img" />
                                <b>
                                    <asp:Label ID="lbltext" runat="server" Text="暂时没有笔记内容！" class="no_found"></asp:Label></b>
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </td>
        </tr>
        <tr>
            <td>
                <table cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td>
                            <asp:DataList ID="dlOne" runat="server" Width="100%" DataKeyField="id" OnItemCommand="dlOne_ItemCommand"
                                OnItemDataBound="dlOne_ItemDataBound">
                                <ItemTemplate>
                                    <table class="table_notitle" width="100%" border="0" cellspacing="1" cellpadding="0">
                                        <tr>
                                            <td align="center" style="width: 20%" rowspan="2">
                                                <asp:Label ID="lblid" runat="server" Text='<%# Eval("id") %>' Visible="false"></asp:Label>
                                                <asp:Label ID="lblIDS" runat="server" Text='<%# Eval("CourseID") %>' Visible="false"></asp:Label>
                                                记录时间：&nbsp;
                                                <asp:Label ID="Label1" runat="server" Text='<%# Eval("LastWriteTime") %>'></asp:Label>
                                            </td>
                                            <td style="width: 80%; background-color: #ffffff;" align="left">
                                                <br />
                                                &nbsp;&nbsp;
                                                <asp:Label ID="tbxContens" runat="server" Text='<%# Eval("Contents") %>' Height="80px"
                                                    Width="600px" CssClass="lbl_index"></asp:Label>
                                                <br />
                                                &nbsp;&nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right" style="width: 80%">
                                                选择
                                                <asp:CheckBox ID="cblist" runat="server" CssClass="img_style" />
                                                <asp:LinkButton ID="ibtnEdit" runat="server" CommandName="ed">编辑</asp:LinkButton>
                                                <asp:LinkButton ID="ibtnDelete" runat="server" CommandName="de">删除</asp:LinkButton>
                                                <%-- <input id="chkSelAll" name="chkSelAll" type="checkbox">--%>
                                            </td>
                                        </tr>
                                    </table>
                                </ItemTemplate>
                            </asp:DataList>
                        </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>
    <div id="LayerAll" runat="server">
    </div>
    <div id="LayerShow" runat="server" style="width: 500px; top: 8%; overflow: auto;
        padding-left: 10px; padding-right: 10px; padding-top: 10px; display: none; background-color: #fff;">
        <div id="Div1" class="b2">
            <div class="rct">
                <div class="l tl1">
                </div>
                <div class="r tr1">
                </div>
            </div>
            <div class="cnt f14">
                <div style="color: #666">
                    <table class="" cellpadding="5" height="200px">
                        <tr>
                            <td>
                                <div style="overflow: auto; height: 200px;">
                                    <table cellspacing="0" cellpadding="6" border="0" style="table-layout: fixed; background-color: #deeffa;">
                                        <%--#e7ddf9--%>
                                        <tr>
                                            <td align="right" style="width: 20%">
                                                笔记类容：
                                            </td>
                                            <td align="left">
                                                <asp:TextBox ID="tbxMess" runat="server" Height="113px" TextMode="MultiLine" Width="327px"></asp:TextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center">
                                            </td>
                                            <td align="left">
                                                <asp:Button ID="btnt" runat="server" Text=" 提 交 " OnClick="btnt_Click" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                <asp:Button ID="btnReset" runat="server" Text=" 关 闭 " OnClick="btnReset_Click" />
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="rcb">
                <div class="l bl1">
                </div>
                <div class="r br1">
                </div>
            </div>
        </div>
    </div>
    </form>
    <script type="text/javascript">
        $("#loading").fadeOut()
</script>
</body>

<script type="text/javascript" language="javascript">
    $(document).ready(function() {
        Validator();
    });
    function Validator() {
        $('#<%= btnt.ClientID %>').bind('click', function() {

            ValidatorEmpty($("#<%=tbxMess.ClientID%>"), "笔记内容");

            return GetValidatorMessage(); //\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*
        });

    }
    $('#<%= tbxMess.ClientID %>').textlimit(450);
</script>

</html>
