<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ExamCompet_Form.aspx.cs" Inherits="RM.Web.Training.ExamPlan.ExamCompet_Form" %>

<%@ Register Src="~/UserControl/LoadButton.ascx" TagName="LoadButton" TagPrefix="uc2" %>
<!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><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("DataList_ExamCompet")%>-<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Edit")%></title>
    <link href="/Themes/Styles/Site.css" rel="stylesheet" type="text/css" />
    <script src="/Themes/Scripts/jquery-1.8.2.min.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/Validator/JValidator.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/artDialog/artDialog.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/artDialog/iframeTools.source.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/TreeView/treeview.pack.js" type="text/javascript"></script>
    <script src="/Themes/Scripts/FunctionJS.js" type="text/javascript"></script>
    <script src="/Training/ExamPlan/Themes/ExamCompet_Form.js" type="text/javascript"></script>
    <link href="/Themes/Scripts/TreeView/treeview.css" rel="stylesheet" type="text/css" />
    
    <style type="text/css">
        #promptBg ul, #promptBg li { padding: 0; margin: 0; list-style: none; }
        .promptLink { display: block; padding: 0 3px; font-size: 10pt; }
        .activeLink { background-color: #e0f5bc; }
        .activePrompt { background-color: #E0ECCC; }
        .promptLink span { float: right; font-size: 10pt; }
         .Cowdiv { width:760px; left: 100px; height: 400px; position: absolute; border: 1px solid #ccc; background-color: White; display: none; z-index:99999; }
        .cowtab { width: 100%; }
        .Page { bottom: 5px; position: absolute; left: 400px; }
        .grid td { text-align: left; }
        .livediv { width: 200; height: 200; margin: 5px 0; display: none; }
        .livediv ul, li { list-style-type: none; margin: 0; padding: 0; }
        .livediv li { width: 222px; text-indent: 1em; }
        .livediv li:hover { background: #E0ECCC; }
        .lightTreeview{ height:350px;}
        .strTree li ul{ display:none;}
    </style>
</head>
<body style="overflow:scroll;" >
    <form id="form1" runat="server">
    <div class="btnbartitle">
        <div>
            <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("DataList_ExamCompet")%>-<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Edit")%>
        </div>
    </div>

    <div class="btnbarcontetn">
        <div style="text-align: right">
            <uc2:LoadButton ID="LoadButton1" runat="server" />
        </div>
    </div> 

    <div id="allhtml" class="div-body" style="overflow: scroll; min-height: 500px;">
        <!--手选试卷div-->
        <div id="Cowtab" class="Cowdiv">
            <div style="width: 760px; height: 350px; position: relative; border: 1px solid #ccc;">
              <div style="width: 200px; height: 350px; border: 1px solid #ccc; float: left;">
            <iframe class="iframe_left" name="target_left" scrolling="auto" frameborder="0" scrolling="yes" width="100%" height="100%"></iframe>
        </div>
            <div style="width:550px;float: left;" >
                <table class="grid cowtab">
                    <thead>
                        <tr>
                            <td>
                                <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Plan_select")%>
                            </td>
                            <td>
                                <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("MyExamPlan-sjm")%>
                            </td>
                            <td>
                                <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("MyExamPlan-sjlx")%>
                            </td>
                        </tr>
                    </thead>
                    <tbody id="cwtbody">
                    </tbody>
                </table>
            </div>
        </div>
            <div style="position: absolute; bottom: 10px; padding-left: 450px;">
                <input type="button" value='<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Ques_dete")%>' onclick="CowtabHide()" />
                <input type="button" value='<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Close")%>' onclick="CowtabHide()" />
            </div>
        </div>
        <!--手选直播div-->
        <div id="LiveTab" class="Cowdiv" >
            <div style="width: 555px; height: 350px; position: relative; border: 1px solid #ccc;
                float: left">
                <table class="grid cowtab">
                    <thead>
                        <tr>
                            <td>
                                <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Plan_select")%>
                            </td>
                            <td>                                
                                <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ExamCompet_zhiboName")%>
                            </td>
                        </tr>
                    </thead>
                    <tbody id="LiveBody">
                    </tbody>
                </table>
            </div>
            <div style="position: absolute; bottom: 0px; padding-left: 300px; padding-bottom:10px; ">
                <input type="button" value='<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Ques_dete")%>' onclick="CowtabHide()" />
                <input type="button" value='<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Close")%>' onclick="CowtabHide()" />
            </div>
        </div>
        <table id="tablebody" border="0" cellpadding="0" cellspacing="0" class="frm">
            <tr>
                <th style="width: 80px;">
                    <font color="red">*</font><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ExamCompet_kaoshijihuaName")%>:
                </th>
                <td>
                    <input id="ExamCompet_Name" runat="server" type="text" class="txt" datacol="yes" err="竞赛计划名称"
                        checkexpession="NotNull" style="width: 200px" />
                </td>
            </tr>
            <tr>
                <th>
                    <font color="red">*</font><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("user_group")%>:
                </th>
                <td>
                    <script src="/Themes/Scripts/GetuserControl.js" type="text/javascript"></script>
                    <%=prompt %>
                </td>
            </tr>
            <tr>
                <th>
                    <font color="red">*</font><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("learMaxNum")%>:
                </th>
                <td>
                    <div style="position: relative;">
                        <input id="Exam_Plan_ExamName" runat="server" type="text" class="txt" style="width: 222px;
                            z-index: 0;" err="考试试卷" datacol="yes" autocomplete="off" />
                        <input type="botton" value='<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ExamPlan_shoudongsj")%>' class="button" style="height: 25px;" onclick="CowtabShow(null);" />
                        <input type="hidden" value="" runat="server" id="ExamCompet_ExamId" />
                        <div id="promptBg" style="display: none; cursor: pointer; position: absolute; width: 228px;
                            background-color: White;">
                            <div id="loadIcon" style="text-align: center; line-height: 18px;">
                                <img src="../../Themes/Images/loading1.gif" alt="" />
                                <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Loading")%>
                            </div>
                        </div>
                        <div id="cslist" style="border: 1px solid #ccc; border-top: 0; z-index: 0; width: 387px;
                            display: none;">
                            <table id="table1" class="example" style="background-color: White;">
                                <thead>
                                    <tr>
                                        <td style="width: 20px; height: 16px; line-height: 16px;">
                                            &nbsp;
                                        </td>
                                        <td style="width: 200px; height: 16px; line-height: 16px;">
                                            <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("MyExamCompet-sjm")%>
                                        </td>
                                        <td style="height: 16px; line-height: 16px;">
                                            <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("MyExamCompet-sjlx")%>
                                        </td>
                                    </tr>
                                </thead>
                                <tbody>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </td>
            </tr>
            <tr>
                <th>
                </th>
                <td>
                    <div>
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ExamCompet_shurutishi")%><span style="color: Red; padding-left: 5px;"><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Exam_tishi")%></span>                   
                    </div>
                </td>
            </tr>
            <tr>
                <th>
                    <font color="red">*</font><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ExamCompet_maxuser")%>:
                </th>
                <td>
                    <input id="ExamCompet_MaxUserCount" runat="server" type="text" class="txt" datacol="yes"
                        err="竞赛允许最大人数不能为空" checkexpession="Num" style="width: 200px" value="0" />
                    <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ExamCompet_morenzhi")%>
                </td>
            </tr>
            <tr  style="display:none;">
                <th>
                    <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ExamCompet_zhiboName")%>
                </th>
                <td>
                    <input type="hidden" id="ExamCompet_LiveID" value=" " />
                    <input type="text" class="txt" style="width: 222px" id="ExamCompet_LiveName" onkeyup="GetLive();" /><input
                        type="botton" value='<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ExamCompet_shouxuanzb")%>' class="button" style="height: 25px;" onclick="ShowPlanLive(1);" />
                    <br />
                    <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ExamCompet_shuruzbName")%> <span style="color: Red;"><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Exam_tishi")%></span>                    
                    <div class="livediv" id="livediv">
                    </div>
                    <div id="livelist" style="border: 1px solid #ccc; border-top: 0; z-index: 0; width: 222px;
                        display: none;">
                        <table id="table2" class="example" style="background-color: White;">
                            <thead>
                                <tr>
                                    <td style="width: 20px; height: 16px; line-height: 16px;">
                                        &nbsp;
                                    </td>
                                    <td style="width: 250px; height: 16px; line-height: 16px;">
                                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ExamCompet_zhiboName")%>
                                    </td>
                                </tr>
                            </thead>
                            <tbody>
                            </tbody>
                        </table>
                    </div>
                </td>
            </tr>
            <tr>
                <th>
                    <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ChapterPlan_Form_qzsj")%>:
                </th>
                <td>
                    <input id="ExamCompet_PlanStart" runat="server" type="text" class="txt" datacol="yes"
                        err="开始时间" checkexpession="DateTime" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:00'})" style="width: 120px;" />
                    -
                    <input id="ExamCompet_PlanEnd" runat="server" datacol="yes" err="结束时间" checkexpession="DateTime"
                        type="text" class="txt" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:00'})" style="width: 120px" />
                    <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ChapterPlan_Form_rqbtxbsbgq")%>
                </td>
            </tr>
            <tr>
                <th>
                    <font color="red">*</font>竞赛名额:
                </th>
                <td>
                    <input id="ExamCompet_XueFen" runat="server" type="text" class="txt" datacol="yes"
                        err="竞赛名额不能为空" checkexpession="Num" style="width: 200px" value="0" />
                    <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ExamCompet_morenzhi")%>
                </td>
            </tr>
            <tr>
                <th>
                    <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Button_Form_shunxu")%>:
                </th>
                <td>
                    <input id="SortIndex" runat="server" type="text" class="txt" datacol="yes" err="显示顺序不能为空"
                        checkexpession="Num" style="width: 200px" value="0" />
                </td>
            </tr>
            <tr style="">
                <th>
                    <font color="red">*</font><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ExamCompet_ksjhstate")%>:
                </th>
                <td>
                    <select id="ExamCompet_State" class="select" maxlength="35" runat="server" style="width: 228px;"></select>
                </td>
            </tr>

            <tr>
                <th><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ExamCompet_type")%>:</th>
                <td>
                 <select id="ExamCompet_type" class="select" maxlength="35" runat="server" style="width: 228px;"></select>
                 </td>
            </tr>

            <tr>
                <th>
                    <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ExamCompet_jhms")%>:
                </th>
                <td>
                    <textarea id="ExamCompet_Description" class="txtRemark" runat="server" style="width: 700px;
                        height: 120px;"></textarea>
                        <script src="/Themes/Scripts/kindeditor/kindeditor-min.js" type="text/javascript"></script>
                    <script type="text/javascript">
                        var editor;
                        KindEditor.ready(function (K) {
                            editor = K.create('#ExamCompet_Description', {
                                allowFileManager: true,
                                allowUpload: true,
                                uploadJson: '/WeiXin/UploadImage.ashx',
                                minHeight: 300
                            });
                        });
                    </script>
                </td>
            </tr>
        </table>
    </div>
    </form>
    <script type="text/javascript">  
                $(window).resize(function(){
   $("#allhtml").css("height",$(window).height())
});  
        $(function () {
            //把分页定位到屏幕下面
            divresize(63);
            treeAttrCss();
            GetClickValue();
        });

         //点击获取部门ID
        function GetClickValue() {
         $(".strTree li div").click(function () {
            var id = $(this).parent().find("span").html();//子目录
             if (id == "") {
                 id = id = $(this).find("span").html();
             }
//                parent.CowTabPage(1, id);
//                Loading(true);
CowtabShow(id);
            });
        }
          <%=getuserlist %>
    </script>
</body>
</html>