12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
- <meta charset="utf-8" />
- <title>学期切换</title>
- <meta name="description" content="" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
- <!-- bootstrap & fontawesome -->
- <link rel="stylesheet" href="/css/bootstrap.min.css" />
- <!-- ace styles -->
- <link rel="stylesheet" href="/css/ace.min.css" class="ace-main-stylesheet" id="main-ace-style" />
- </head>
- <body class="no-skin">
- <div class="main-content-inner" style="heigth:500px;">
- <div class="page-content">
- <div class="row">
- <div class="col-xs-12" width="100%">
- <div class="col-sm-6">
- <ul class="list-unstyled spaced">
- <?php if(!empty($allSemester)):foreach($allSemester as $loop):if($semesterId != $loop->semester_id):?>
- <li><a onclick="chageSelect('<?php echo $loop->semester_id;?>')" href="javascript:void(0);"><?php echo $loop->semester_name;?></a></li>
- <?php endif;endforeach;else:?>
- <li>暂无学期可切换</li>
- <?php endif;?>
- </ul>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- <table class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable">
- <thead>
- <tr>
- <td>学生姓名</td>
- </tr>
- </thead>
- </table> -->
- <script src="/js/jquery.2.1.1.min.js"></script>
- <script src="/js/layer/layer.js"></script>
- <script type="text/javascript">
- function chageSelect(num){
- if(!num){
- layer.msg("选着学期有误!", {
- icon: 1,
- time: 2000 //2秒关闭(如果不配置,默认是3秒)
- },function(){
- var index = parent.layer.getFrameIndex(window.name);
- parent.layer.close(index);
- });
- }
-
- // 选着学期操作
- $.post("<?php echo $this->createUrl('index/select');?>",{smid:num},function(json){
- if(json.flag){
- //var index = parent.layer.getFrameIndex(window.name);
- //parent.layer.close(index);
- //parent.location.reload();
- parent.location.reload();
- }else{
- layer.msg('选择学期有误!', {
- icon: 1,
- time: 2000 //2秒关闭(如果不配置,默认是3秒)
- },function(){
- var index = parent.layer.getFrameIndex(window.name);
- parent.layer.close(index);
- });
- }
-
- },'json');
- }
- </script>
- </body>
- </html>
|