main.php 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  5. <meta charset="utf-8" />
  6. <title>校本课程平台助教端</title>
  7. <meta name="description" content="" />
  8. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
  9. <!-- bootstrap & fontawesome -->
  10. <link rel="stylesheet" href="/css/bootstrap.min.css" />
  11. <link rel="stylesheet" href="/css/font-awesome/4.2.0/css/font-awesome.min.css" />
  12. <!-- page specific plugin styles -->
  13. <!-- ace styles -->
  14. <link rel="stylesheet" href="/css/ace.min.css" class="ace-main-stylesheet" id="main-ace-style" />
  15. <!--[if lte IE 9]>
  16. <link rel="stylesheet" href="assets/css/ace-part2.min.css" class="ace-main-stylesheet" />
  17. <![endif]-->
  18. <link rel="stylesheet" href="/css/style.css" />
  19. <!--[if lte IE 9]>
  20. <link rel="stylesheet" href="assets/css/ace-ie.min.css" />
  21. <![endif]-->
  22. <!-- inline styles related to this page -->
  23. <!-- ace settings handler -->
  24. <script src="/js/ace-extra.min.js"></script>
  25. <script src="/js/jquery-2.2.2.min.js"></script>
  26. <!-- HTML5shiv and Respond.js for IE8 to support HTML5 elements and media queries -->
  27. <script src="/js/layer/layer.js"></script>
  28. <!--[if lte IE 8]>
  29. <script src="assets/js/html5shiv.min.js"></script>
  30. <script src="assets/js/respond.min.js"></script>
  31. <![endif]-->
  32. <script type="text/javascript">
  33. jQuery(document).ready(function(){
  34. jQuery(window.parent.document).find("#iframe").ready(function(){
  35. jQuery(window.parent.document).find(".menuLi, .menuTop").click(function(){
  36. var url = jQuery(this).attr("url");
  37. window.parent.location.href = "<?php echo $this->createUrl("main/index?url=");?>"+url;
  38. });
  39. window.parent.document.url = window.location.href;
  40. var main = jQuery(window.parent.document).find("#iframe");
  41. var thisheight = jQuery("body").height()+30;
  42. main.height(thisheight);
  43. });
  44. jQuery(window.parent.document).find("#iframe").load(function(){
  45. var main = jQuery(window.parent.document).find("#iframe");
  46. var thisheight = jQuery("body").height()+30;
  47. main.height(thisheight);
  48. });
  49. jQuery(".sel-opt,.sel-cons").mouseover(function(){
  50. jQuery(".sel-cons").show();
  51. }).mouseout(function(){
  52. jQuery(".sel-cons").hide();
  53. });
  54. });
  55. </script>
  56. <style type="text/css">
  57. .errorMessage{color:red;margin-left:10px;}
  58. .breadcrumb>li{padding:3px 5px;color:#fff; background:#6fb3e0;}
  59. .breadcrumb>li>a{color:#fff!important;}
  60. .li_backgrond_color{background-color: #00CC99!important;}
  61. .li_backgrond_color>a{color:#fff!important;}
  62. .breadcrumb>li+li:before{display:none;}
  63. /*切换选择*/
  64. .tab-con{
  65. position: relative;
  66. height: 30px;
  67. width: 177px;
  68. border-radius: 15px;
  69. }
  70. .has-sel{
  71. width: 31%;
  72. height: 30px;
  73. border-top-left-radius: 15px;
  74. border-bottom-left-radius: 15px;
  75. text-align: center;
  76. line-height: 30px;
  77. }
  78. .sel-opt{
  79. width: 68%;
  80. position: relative;
  81. line-height: 30px;
  82. text-indent: 6px;
  83. cursor: pointer;
  84. }
  85. .sel-opt:after{
  86. content: '';
  87. border-left: 6px solid transparent;
  88. border-right: 6px solid transparent;
  89. border-top: 8px solid #01B677;
  90. position: absolute;
  91. right: 12px;
  92. top: 12px;
  93. }
  94. // .sel-opt select{
  95. // width: 100%;
  96. // height: 30px;
  97. // background: #F2F2F2;
  98. // color: #01B677;
  99. // text-indent: 6px;
  100. // font-size: inherit;
  101. // border-top-right-radius: 15px;
  102. // border-bottom-right-radius: 15px;
  103. // cursor: pointer;
  104. // }
  105. // .sel-opt select option{
  106. // position: relative;
  107. // }
  108. .points{
  109. position: absolute;
  110. top: -2px;
  111. right: 0;
  112. width: 10px;
  113. height: 10px;
  114. background: #F01516;
  115. border-radius: 50%;
  116. }
  117. .sel-cons{
  118. width: 78%;
  119. position: absolute;
  120. right: 0;
  121. top: 30px;
  122. text-indent: 10px;
  123. display: none;
  124. }
  125. .sc-lis{
  126. line-height: 30px;
  127. cursor: pointer;
  128. }
  129. .sc-lis span{
  130. position: relative;
  131. }
  132. .sc-lis .points{
  133. top: 2px;
  134. right: -16px;
  135. }
  136. .dn{
  137. display: none;
  138. }
  139. .icon-pdf:before { content: "\e618"; }
  140. .clearfix:after {content: "";display: block; visibility: hidden;height: 0; clear: both;}
  141. .clearfix {zoom: 1;}
  142. .fl { float: left;}
  143. .fr {float: right;}
  144. .bg-hot{background-color: #14ae68;color: #fff;}
  145. .layer{position: fixed;top:0;left: 0;/*display: none;*/}
  146. .layer-shadow{position: absolute;left: 0;top: 0;width:100%;height: 100%; background-color: rgba(0,0,0,.6);}
  147. .layer-content-box{position: absolute;left: 50%;top: 50%; width:500px;transform:translate(-50%,-50%);background-color: #fff;}
  148. .layer-content-box .tips{padding-left: 20px; height: 50px;line-height: 50px;font-size: 14px;}
  149. .layer-content-box .tips em{width:50px;height: 50px;text-align: center;font-size: 34px; cursor: pointer;}
  150. .layer-source .layer-content{padding:30px 0 0 50px;line-height: 30px;}
  151. .layer-content tr{height: 40px;}
  152. .layer-content input{height: 30px;width:300px;}
  153. .layer-btn{margin:30px 0 14px; text-align: center;}
  154. .layer-btn a{display: inline-block; margin:0 10px; line-height: 40px;width:100px;text-align: center;}
  155. .diy_select2, .diy_select_list2 {
  156. border: 1px solid #ccc;
  157. }
  158. </style>
  159. </head>
  160. <body class="no-skin" >
  161. <div class="shade"></div>
  162. <div class="main-container" id="main-container">
  163. <script type="text/javascript">
  164. try{ace.settings.check('main-container' , 'fixed')}catch(e){}
  165. </script>
  166. <?php if(isset(Yii::app()->session['crmUserInfo']) && !empty(Yii::app()->session['crmUserInfo']))
  167. {?>
  168. <div style="height: 70px;background-color: #fff;margin: 0;padding: 0;display: block;line-height: 70px">
  169. <img src="/images/h_login.png" style="margin-left: 10px">
  170. <div class="tab-con clearfix pull-right" style="margin:8px 11px 0 0">
  171. <div class="has-sel fl">你好</div>
  172. <div class="sel-opt fl">
  173. <?php echo Yii::app()->session['crmUserInfo']->coach_name?>
  174. </div>
  175. <div class="sel-cons" style="z-index:6;background-color: #fff;">
  176. <div class="sc-lis " style="cursor: pointer" onclick="javascript:window.location.href='<?php echo Yii::app()->createUrl('login/school_list')?>'"><span>返回学校列表</span></div>
  177. <div class="sc-lis " style="cursor: pointer" onclick="javascript:window.location.href='<?php echo Yii::app()->createUrl('login/out')?>'"><span>退出</span></div>
  178. </div>
  179. </div>
  180. </div>
  181. <?php }?>
  182. <div class="main-content">
  183. <?php echo $content; ?>
  184. </div><!-- /.main-content -->
  185. </div><!-- /.main-container -->
  186. <!-- basic scripts -->
  187. <!--[if !IE]> -->
  188. <!--<script src="/js/jquery.2.1.1.min.js"></script>-->
  189. <!-- <![endif]-->
  190. <!--[if IE]>
  191. <script src="assets/js/jquery.1.11.1.min.js"></script>
  192. <![endif]-->
  193. <!--[if !IE]> -->
  194. <script type="text/javascript">
  195. window.jQuery || document.write("<script src='/js/jquery.min.js'>"+"<"+"/script>");
  196. </script>
  197. <!-- <![endif]-->
  198. <!--[if IE]>
  199. <script type="text/javascript">
  200. window.jQuery || document.write("<script src='assets/js/jquery1x.min.js'>"+"<"+"/script>");
  201. </script>
  202. <![endif]-->
  203. <script type="text/javascript">
  204. if('ontouchstart' in document.documentElement) document.write("<script src='/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
  205. </script>
  206. <script src="/js/bootstrap.min.js"></script>
  207. <!-- page specific plugin scripts -->
  208. <!-- ace scripts -->
  209. <script src="/js/ace-elements.min.js"></script>
  210. <script src="/js/ace.min.js"></script>
  211. <!-- inline scripts related to this page -->
  212. <!--帮助中心代码开始-->
  213. <script>
  214. $(document).ready(function() {
  215. var press = false;
  216. var mouseX = 0;
  217. var mouseY = 0;
  218. var offsetX = 0;
  219. var offsetY = 0;
  220. $(".drag").on("mousedown", function(e) {
  221. e.preventDefault();
  222. press = true;
  223. mouseX = e.clientX;
  224. mouseY = e.clientY;
  225. offsetX = e.offsetX;
  226. offsetY = e.offsetY;
  227. })
  228. //按下鼠标左键移动鼠标
  229. $(document).on("mousemove", function(e) {
  230. // console.log(6)
  231. if (!press) return;
  232. mouseX = e.clientX;
  233. mouseY = e.clientY;
  234. setDragPosition();
  235. })
  236. //松开鼠标左键
  237. $(document).on("mouseup", function(e) {
  238. press = false;
  239. })
  240. function setDragPosition() {
  241. if (!press) return;
  242. var cssObj = {
  243. 'left': mouseX - offsetX,
  244. 'top': mouseY - offsetY,
  245. };
  246. $('.drag').css(cssObj);
  247. }
  248. // $('.btn-look').on('click', function(){
  249. // layer.open({
  250. // type: 1,
  251. // area: ['760px', '790px'],
  252. // shadeClose: false, //点击遮罩关闭
  253. // content: $(".look-box"),
  254. // cancel: function(index, layero){
  255. // if(confirm('确定要关闭么')){ //只有当点击confirm框的确定时,该层才会关闭
  256. // layer.close(index)
  257. // }
  258. // return false;
  259. // }
  260. // });
  261. // });
  262. // $("#ismenu").on("click","li", function(e) {
  263. // e.stopPropagation();
  264. // $(this).find('.child-menu').slideToggle("slow");
  265. // });
  266. });
  267. </script>
  268. <!--帮助中心代码结束-->
  269. <script src="/js/sentry.js" crossorigin="anonymous">
  270. </script>
  271. <script>
  272. Sentry.init({ dsn: 'http://13573a75707b40d7b5ed541c84c6ffa9@zsy-sentry.zhixinhuixue.net/18' });
  273. </script>
  274. </body>
  275. </html>