<%@ page language="C#" autoeventwireup="true" inherits="fjhb1, App_Web_l2p10xlz" %>


<!DOCTYPE html>
<html lang="en">
<head >
  <%-- 单教室的预约计划1--%>
<title>预约计划-<%Response.Write(titlestr);%></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  
    <meta http-equiv="Content-Language" content="zh-CN" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width,
                initial-scale=1.0,
                minimum-scale=1.0,
                maximum-scale=1.0,
                user-scalable=no" />
    <script src="/content/js/jquery-2.1.5.min.js" type="text/javascript"></script>
    <script src="/content/layer/layer.js" type="text/javascript"></script>
    <script type="text/javascript">
        layer.config({
            extend: "extend/layer.ext.js"
        });
    </script>

    <!-- Bootstrap -->
    <link href="/content/css/bootstrap.css" rel="stylesheet" />
    <link href="/content/css/custom.min.css" rel="stylesheet" />
    <link href="/content/css/contextMenu.css" rel="stylesheet" />
      <link rel="stylesheet" href="/content/font/iconfont.css" />
     <link rel="stylesheet" href="/content/css/main.css"/>
     <script src="/content/js/contextMenu.js" type="text/javascript"></script>
    <script src="/content/js/xggbf.js" type="text/javascript"></script>
   
</head>
   <body>
       <% Response.Write(fixdkc); %>
   <!-- 左侧菜单内容 -->
         <%Response.Write(tempnavmenu); %>
      <!-- 左侧菜单内容结束 -->
   <form  runat="server">
    
     <!-- 右页面内容 -->
        <div class="bg-danger pagebody">
<div class="right_col" role="main" style="min-height:880px">
        <div class="page-title">
            <div class="title_left">
                <h3>预约计划</h3>      <%-- 单教室的预约计划1--%>
             </div>
        </div>
        <div class="clearfix"></div>
    <!--替换内容-->
        <div class="row">
            <div class="clearfix"></div>
            <div class="col-md-12 col-sm-12 col-xs-12">
                  <!--预约计划-->
                <input type="hidden" id="act"  name="act" value="<%Response.Write(WebAct); %>"  />
                  <input type="hidden" id="fidxid"  name="fidxid" value="<%Response.Write(fidxid); %>"  />
                        <div class="x_content">
                            <table class="table table-bordered" style="text-align:center; width:99%;" >
                                    <tr>
                                        <td  style="text-align:center; vertical-align:middle;font-weight:normal">
                                            <div class="col-md-6 col-sm-6 col-xs-12" style="text-align:left">
                                             <%if (mbgly || Convert.ToString(HttpContext.Current.Session["qyytxfiyhlx"]) == "0")
                                               { %>
                                             <asp:Button ID="Button1" runat="server"  class="btn btn-primary" Text="全部未来计划表" OnClick="Button1_Click" />
                                             <asp:Button ID="Button2" runat="server"  class="btn btn-primary" Text="全部历史计划表" OnClick="Button2_Click" />
                                         <% }if (Convert.ToString(HttpContext.Current.Session["qyytxfiyhlx"]) == "1")
                                   {%><asp:Button ID="Button3" runat="server"  class="btn btn-primary" Text="本人未来计划表"  OnClick="Button3_Click" />
                                      <asp:Button ID="Button4" runat="server" class="btn btn-primary" Text="本人历史计划表" OnClick="Button4_Click" />   <%} %> 
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td >
         <table class="table table-bordered table-table" style="text-align:center; width:98%; margin:15px auto">
                      <tr> <th colspan="9" style="text-align:center"><%Response.Write(tabletitle); %></th> </tr>
                        <tbody>
                           <tr>
                         <td style="width:5%;"></td>
                             <td style="width:8%;">节次</td>
                             <td>星期一</td>
                             <td>星期二</td>
                             <td>星期三</td>
                              <td>星期四</td>
                               <td>星期五</td>
                               <td>星期六</td>
                               <td>星期日</td>
                          </tr>
                         <%Response.Write(retustr); %>
                     </tbody>
                       </table>
                           </td>
                          </tr>  
                           </table>
                          </div>
                <!--计划表查看-->
            </div>
        </div>



   </div>
</div> </form>
 <!-- 右页面内容完成 -->
    <!-- 版权内容 -->    
      <% Response.Write(copystr);%>
         <!-- 版权内容完成 -->
   <script src="/content/js/zmain.js" charset="utf-8" type="text/javascript"></script>
       <a href="#top"><span id="tophovertree" title="返回顶部"></span></a> 
    <script type="text/javascript" src="/content/js/topHovertree.js"></script>
    <script type="text/javascript">
        $(function () { initTopHoverTree("tophovertree", 500, 30, 20); })
    </script>   
</body>
</html>

      
<script  type="text/javascript">
    var cur_ele;
    function UseLession(week_no,class_no, title, act) {
        //title =20180126 
        //class_no =节次0-4
        //week=星期几  1-7
        //week_no=21 周
        //alert(week_no);
        //return true;
        var var1 = "beduajax.aspx?ACT=" + act + "&fidxid=" + $("#fidxid").val() + "&fvrqbm=" + title + "&fijcxh=" + class_no + "&fidxsl=0" ;   //fidxsl
        var temptext = "";
        var1 = encodeURI((var1));
          $.ajax({
            type: "Post",
            url: var1,
            data: { data1: '13D17C93EDB', },
            cache: false,
            contentType: "application/x-www-form-urlencoded;?charset=UTF-8",
            success: function (temptext) {
                layer.msg(temptext, { icon: 1, btn: ['确定'] }, function () {
                    if (temptext.indexOf("成功") > -1) {
                        var mao = week_no - 2;
                        var cur_id = "#tr" + mao + "_0";
                        var length = location.href.indexOf("#");
                        location.href = location.href.substr(0, length) + cur_id;
                        location.reload();
                        //window.location.reload();
                    }
                    return true;
                });
            }
        });
      
    }


    $(function () {
    $("#fidxid").change(function () {
        window.location.href = "/fjhb1.aspx?dxid=" + $("#fidxid").val();
   });

 
<% if ( Convert.ToString(HttpContext.Current.Session["qyytxfiyhlx"]) == "1")
       
   {%>
        ////jsuse  
 $(".jsuse").contextMenu({
     fontSize: 14, // 字体大小
     target: function (ele) {// 当前元素
         cur_ele = ele;
     },
     menu: [{ // 菜单项  458A1A5D1C9A5994771B54AA4D72C077   fjhb1yhyy
         text: "预约",
         icon: "/content/images/confirm_32.png",
         callback: function () {
             //title
             var week_no = $(cur_ele).closest("tr").attr("week_no");
             var class_no = $(cur_ele).attr("class_no");
             var week = $(cur_ele).attr("week");
             var title = $(cur_ele).attr("title");
             UseLession(week_no, class_no, title, "458A1A5D1C9A5994771B54AA4D72C077");
         }
     }]
 });
        ////jsuse
        ///jsmy
 $(".jsmy").contextMenu({
     fontSize: 14, // 字体大小
     target: function (ele) {// 当前元素
         cur_ele = ele;
     },
     menu: [{ // 菜单项  images/1.png/content/images/1.png
         text: "取消",
         icon: "/content/images/close_32.png",
         callback: function () {
             var week_no = $(cur_ele).closest("tr").attr("week_no");
             var class_no = $(cur_ele).attr("class_no");
             var week = $(cur_ele).attr("week");
             var title = $(cur_ele).attr("title");
             UseLession(week_no,class_no, title, "2A588FB8AABECC1AE66365B7F96B62BF");
         }
     }]
 });
        ///jsmy
        <%}%>


      

    });
 </script>
