index.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  1. <?php $url = Req::get("url");?>
  2. <!DOCTYPE html>
  3. <html lang="en">
  4. <head>
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  6. <meta charset="utf-8" />
  7. <title>校本课程平台</title>
  8. <meta name="description" content="" />
  9. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
  10. <!-- bootstrap & fontawesome -->
  11. <link rel="stylesheet" href="/css/bootstrap.min.css" />
  12. <link rel="stylesheet" href="/css/font-awesome/4.2.0/css/font-awesome.min.css" />
  13. <!-- page specific plugin styles -->
  14. <!-- text fonts -->
  15. <link rel="stylesheet" href="/css/fonts/fonts.googleapis.com.css" />
  16. <!-- ace styles -->
  17. <link rel="stylesheet" href="/css/ace.min.css" class="ace-main-stylesheet" id="main-ace-style" />
  18. <!--[if lte IE 9]>
  19. <link rel="stylesheet" href="assets/css/ace-part2.min.css" class="ace-main-stylesheet" />
  20. <![endif]-->
  21. <link rel="stylesheet" href="/css/style.css" />
  22. <!--[if lte IE 9]>
  23. <link rel="stylesheet" href="assets/css/ace-ie.min.css" />
  24. <![endif]-->
  25. <!-- inline styles related to this page -->
  26. <!-- ace settings handler -->
  27. <script src="/js/ace-extra.min.js"></script>
  28. <script src="/js/jquery-2.2.2.min.js"></script>
  29. <!-- HTML5shiv and Respond.js for IE8 to support HTML5 elements and media queries -->
  30. <script src="/js/layer/layer.js"></script>
  31. <!--[if lte IE 8]>
  32. <script src="assets/js/html5shiv.min.js"></script>
  33. <script src="assets/js/respond.min.js"></script>
  34. <![endif]-->
  35. <script type="text/javascript">
  36. document.url = "<?php echo Req::get("url");?>";
  37. if(!document.url)
  38. document.url = "<?php echo "http://{$_SERVER["HTTP_HOST"]}".$this->createUrl("index/index");?>";
  39. function changeUrl(url){
  40. jQuery("#iframe").attr("src", url);
  41. }
  42. jQuery(document).ready(function(){
  43. changeUrl(document.url);
  44. });
  45. </script>
  46. <style type="text/css">
  47. .errorMessage{color:red;}
  48. </style>
  49. </head>
  50. <body class="no-skin">
  51. <div class="shade"></div>
  52. <div id="navbar" class="navbar navbar-default">
  53. <script type="text/javascript">
  54. try{ace.settings.check('navbar' , 'fixed')}catch(e){}
  55. </script>
  56. <div class="navbar-container" id="navbar-container">
  57. <button type="button" class="navbar-toggle menu-toggler pull-left" id="menu-toggler" data-target="#sidebar">
  58. <span class="sr-only">Toggle sidebar</span>
  59. <span class="icon-bar"></span>
  60. <span class="icon-bar"></span>
  61. <span class="icon-bar"></span>
  62. </button>
  63. <div class="navbar-header pull-left">
  64. <a class="navbar-brand">
  65. <small>
  66. <img src="/images/logo.png" height="23" width="40">
  67. 校本课程平台
  68. </small>
  69. </a>
  70. </div>
  71. <div class="navbar-buttons navbar-header pull-right" role="navigation">
  72. <ul class="nav ace-nav">
  73. <!-- 头部提示消息 -->
  74. <li class="purple">
  75. <a data-toggle="dropdown" class="dropdown-toggle">
  76. <?php echo Yii::app()->session['session_school_name'];?>
  77. </a>
  78. </li>
  79. <li class="green" id="change_sm">
  80. <?php if(!empty(Yii::app()->session['session_semester_name'])):?>
  81. <a data-toggle="dropdown" class="dropdown-toggle">
  82. <?php echo Yii::app()->session['session_semester_name'];?>
  83. </a>
  84. <?php else:?>
  85. <a data-toggle="dropdown" class="dropdown-toggle">
  86. <?php echo '请设置学期!';?>
  87. </a>
  88. <?php endif;?>
  89. </li>
  90. <li class="light-blue">
  91. <a data-toggle="dropdown" href="#" class="dropdown-toggle">
  92. <img class="nav-user-photo" src="/images/avatar.png" />
  93. <span class="user-info">
  94. <small>您好,</small>
  95. <?php echo Yii::app()->session['coachInfo']['real_name'];?><?php echo (Yii::app()->session["role"] === 2) ? "<span style='color:red'>(#)</span>" : "";?>
  96. </span>
  97. <i class="ace-icon fa fa-caret-down"></i>
  98. </a>
  99. <ul class="user-menu dropdown-menu-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
  100. <!-- <li>
  101. <a href="profile.html">
  102. <i class="ace-icon fa fa-user"></i>
  103. 个人信息
  104. </a>
  105. </li>
  106. <li class="divider"></li> -->
  107. <li>
  108. <a href="<?php echo $this->createUrl('login/out');?>">
  109. <i class="ace-icon fa fa-power-off"></i>
  110. 退出
  111. </a>
  112. </li>
  113. </ul>
  114. </li>
  115. </ul>
  116. </div>
  117. </div><!-- /.navbar-container -->
  118. </div>
  119. <div class="main-container" id="main-container">
  120. <script type="text/javascript">
  121. try{ace.settings.check('main-container' , 'fixed')}catch(e){}
  122. </script>
  123. <div id="sidebar" class="sidebar responsive">
  124. <script type="text/javascript">
  125. try{ace.settings.check('sidebar' , 'fixed')}catch(e){}
  126. </script>
  127. <div class="sidebar-shortcuts" id="sidebar-shortcuts">
  128. <div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
  129. <button class="btn btn-success menuTop" url="<?php echo "http://{$_SERVER["HTTP_HOST"]}".$this->createUrl("index/index");?>" title="学生管理">
  130. <i class="ace-icon fa fa-user"></i>
  131. </button>
  132. <button class="btn btn-info menuTop" url="<?php echo "http://{$_SERVER["HTTP_HOST"]}".$this->createUrl("payment/index");?>" title="缴费记录">
  133. <i class="ace-icon fa fa-list-alt"></i>
  134. </button>
  135. <button class="btn btn-warning menuTop" url="<?php echo "http://{$_SERVER["HTTP_HOST"]}".$this->createUrl("print/index");?>" title="打印任务">
  136. <i class="ace-icon fa fa-print"></i>
  137. </button>
  138. <button class="btn btn-danger menuTop" url="<?php echo "http://{$_SERVER["HTTP_HOST"]}".$this->createUrl("classes/index");?>" title="班级管理">
  139. <i class="ace-icon fa fa-credit-card"></i>
  140. </button>
  141. </div>
  142. <div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
  143. <span class="btn btn-success"></span>
  144. <span class="btn btn-info"></span>
  145. <span class="btn btn-warning"></span>
  146. <span class="btn btn-danger"></span>
  147. </div>
  148. </div><!-- /.sidebar-shortcuts -->
  149. <ul class="nav nav-list">
  150. <li class="menuLi<?php echo stripos($url, "index/index") !== false || !$url ? " active" : "";?>" url="<?php echo "http://{$_SERVER["HTTP_HOST"]}".$this->createUrl("index/index");?>">
  151. <a href="javascript:;">
  152. <i class="menu-icon fa fa-tachometer"></i>
  153. <span class="menu-text">首页 </span>
  154. </a>
  155. <b class="arrow"></b>
  156. </li>
  157. <?php if(Yii::app()->session['coachInfo']['leader']==1){?>
  158. <li class="menuLi<?php echo stripos($url, "semester") !== false ? " active" : "";?>" url="<?php echo "http://{$_SERVER["HTTP_HOST"]}".$this->createUrl("semester/index");?>">
  159. <a href="javascript:;">
  160. <i class="menu-icon fa fa-laptop"></i>
  161. <span class="menu-text"> 学期管理 </span>
  162. </a>
  163. <b class="arrow"></b>
  164. </li>
  165. <?php }?>
  166. <li class="menuLi<?php echo stripos($url, "teacher") !== false ? " active" : "";?>" url="<?php echo "http://{$_SERVER["HTTP_HOST"]}".$this->createUrl("teacher/index");?>">
  167. <a href="javascript:;">
  168. <i class="menu-icon fa fa-barcode"></i>
  169. <span class="menu-text"> 教师管理 </span>
  170. </a>
  171. <b class="arrow"></b>
  172. </li>
  173. <li class="menuLi<?php echo stripos($url, "classes") !== false ? " active" : "";?>" url="<?php echo "http://{$_SERVER["HTTP_HOST"]}".$this->createUrl("classes/index");?>">
  174. <a href="javascript:;">
  175. <i class="menu-icon fa fa-credit-card"></i>
  176. <span class="menu-text"> 班级管理 </span>
  177. </a>
  178. <b class="arrow"></b>
  179. </li>
  180. <li class="menuLi<?php echo stripos($url, "pay/index") !== false ? " active" : "";?>" url="<?php echo "http://{$_SERVER["HTTP_HOST"]}".$this->createUrl("pay/index");?>">
  181. <a href="javascript:;">
  182. <i class="menu-icon fa fa-leaf"></i>
  183. <span class="menu-text"> 缴费设置 </span>
  184. </a>
  185. <b class="arrow"></b>
  186. </li>
  187. <li class="menuLi<?php echo stripos($url, "studentinfo") !== false ? " active" : "";?>" url="<?php echo "http://{$_SERVER["HTTP_HOST"]}".$this->createUrl("studentinfo/index");?>">
  188. <a href="javascript:;">
  189. <i class="menu-icon fa fa-user"></i>
  190. <span class="menu-text"> 学生管理 </span>
  191. </a>
  192. <b class="arrow"></b>
  193. </li>
  194. <!--<li class="menuLi<?php echo stripos($url, "record") !== false ? " active" : "";?>" url="<?php echo "http://{$_SERVER["HTTP_HOST"]}".$this->createUrl("record/index");?>">
  195. <a href="javascript:;">
  196. <i class="menu-icon fa fa-user"></i>
  197. <span class="menu-text">成绩录入</span>
  198. </a>
  199. <b class="arrow"></b>
  200. </li>-->
  201. <!--<li class="<?php if($this->operateUrl == 'order/index'){echo 'active';}?>">
  202. <a href="javascript:;">
  203. <i class="menu-icon fa fa-user"></i>
  204. <span class="menu-text">购买记录</span>
  205. </a>
  206. <b class="arrow"></b>
  207. </li>-->
  208. <!--<li class="menuLi<?php echo stripos($url, "parent") !== false ? " active" : "";?>" url="<?php echo "http://{$_SERVER["HTTP_HOST"]}".$this->createUrl("parent/index");?>">
  209. <a href="javascript:;">
  210. <i class="menu-icon fa fa-user"></i>
  211. <span class="menu-text">家长列表</span>
  212. </a>
  213. <b class="arrow"></b>
  214. </li>-->
  215. <li class="menuLi<?php echo stripos($url, "payment") !== false ? " active" : "";?>" url="<?php echo "http://{$_SERVER["HTTP_HOST"]}".$this->createUrl("payment/index");?>">
  216. <a href="javascript:;">
  217. <i class="menu-icon fa fa-list-alt"></i>
  218. <span class="menu-text"> 缴费记录 </span>
  219. </a>
  220. <b class="arrow"></b>
  221. </li>
  222. <li class="menuLi<?php echo stripos($url, "print") !== false ? " active" : "";?>" url="<?php echo "http://{$_SERVER["HTTP_HOST"]}".$this->createUrl("print/index");?>">
  223. <a href="javascript:;">
  224. <i class="menu-icon fa fa-print"></i>
  225. <span class="menu-text"> 打印任务 </span>
  226. </a>
  227. <b class="arrow"></b>
  228. </li>
  229. <li class="menuLi<?php echo stripos($url, "export") !== false ? " active" : "";?>" url="<?php echo "http://{$_SERVER["HTTP_HOST"]}".$this->createUrl("export/index");?>">
  230. <a href="javascript:;">
  231. <i class="menu-icon fa fa-file"></i>
  232. <span class="menu-text">导出报告</span>
  233. </a>
  234. <b class="arrow"></b>
  235. </li>
  236. </ul><!-- /.nav-list -->
  237. <div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
  238. <i class="ace-icon fa fa-angle-double-left" data-icon1="ace-icon fa fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right"></i>
  239. </div>
  240. </div>
  241. <div class="main-content">
  242. <iframe id="iframe" frameborder="0" scrolling="no" src="" style="width:100%;height:0px;"></iframe>
  243. </div><!-- /.main-content -->
  244. <div class="footer">
  245. <div class="footer-inner">
  246. <div class="footer-content">
  247. <span class="bigger-120">
  248. <!-- <span class="blue bolder">上海风车教育有限公司</span> -->
  249. &copy;<?php echo date("Y", time());?> 上海互教教育科技有限公司 All Rights Received<br />
  250. <a href="http://www.miibeian.gov.cn" target="_blank">沪ICP备15055185号</a>
  251. </span>
  252. </div>
  253. </div>
  254. </div>
  255. <a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
  256. <i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>
  257. </a>
  258. </div><!-- /.main-container -->
  259. <!-- basic scripts -->
  260. <!--[if IE]>
  261. <script src="assets/js/jquery.1.11.1.min.js"></script>
  262. <![endif]-->
  263. <!--[if !IE]> -->
  264. <script type="text/javascript">
  265. window.jQuery || document.write("<script src='/js/jquery.min.js'>"+"<"+"/script>");
  266. </script>
  267. <!-- <![endif]-->
  268. <!--[if IE]>
  269. <script type="text/javascript">
  270. window.jQuery || document.write("<script src='assets/js/jquery1x.min.js'>"+"<"+"/script>");
  271. </script>
  272. <![endif]-->
  273. <script type="text/javascript">
  274. if('ontouchstart' in document.documentElement) document.write("<script src='/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
  275. </script>
  276. <script src="/js/bootstrap.min.js"></script>
  277. <!-- page specific plugin scripts -->
  278. <!-- ace scripts -->
  279. <script src="/js/ace-elements.min.js"></script>
  280. <script src="/js/ace.min.js"></script>
  281. <!-- inline scripts related to this page -->
  282. </body>
  283. </html>