123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146 |
- <div class="main-content-inner">
- <div class="breadcrumbs" id="breadcrumbs">
- <ul class="breadcrumb">
- <li>
- <i class="ace-icon fa fa-home home-icon"></i>
- <a>首页</a>
- </li>
- </ul>
- </div>
- <div class="page-content">
- <div class="row">
- <div class="col-xs-12">
- <!-- PAGE CONTENT BEGINS -->
- <div class="row">
- <!-- 左边菜单 -->
- <div class="col-sm-8">
- <div class="widget-box">
- <div class="widget-header">
- <h4 class="smaller">
- 班级
- </h4>
- </div>
- <div class="widget-body">
- <div class="widget-main">
- <?php if(!empty($classList)):foreach($classList as $cc):?>
- <a class="btn btn-default btn-app radius-4" style="width:120px;text-overflow: ellipsis;white-space: nowrap;overflow: hidden;" title="点击查看班级学生" href="<?php echo $this->createUrl('classes/view',array('cid'=>$cc->class_id));?>">
- <i class="ace-icon fa fa-book bigger-230"></i>
- <?php echo $cc->class_name;?>
- </a>
- <?php endforeach;else:?>
- 暂无管理班级
- <?php endif;?>
- </div>
- </div>
- </div>
- <hr>
- <div class="widget-box">
- <div class="widget-header">
- <h4 class="smaller">
- 打印任务
- </h4>
- </div>
- <div class="widget-body">
- <div class="widget-main" id="printTast">
- <?php if(!empty($printList)):foreach($printList as $kk=>$el):?>
- <p>
- <?php
- $kk++;
- echo '<p>'.$kk.':'.$el['class_name'].'提交了"'.$el['print_name'].'"</p>';
- ?>
- </p>
- <?php endforeach;else:?>
- 暂无打印任务
- <?php endif;?>
- </div>
- </div>
- </div>
- </div>
-
- <!-- 右边菜单 -->
- <div class="col-sm-4">
- <div class="widget-box">
- <div class="widget-header">
- <h4 class="smaller">消息动态</h4>
- </div>
- <div class="widget-body">
- <div class="widget-main" id="printNotify">
- <?php if(!empty($notifyList)):foreach($notifyList as $kk=>$el):?>
- <p>
- <?php
- $kk++;
- echo '<p>'.$kk.':'.$el['content'].'。</p>';
- ?>
- </p>
-
- </a>
- <?php endforeach;else:?>
- 暂无消息动态
- <?php endif;?>
- </div>
- </div>
- </div>
- </div>
- </div>
-
- <!-- PAGE CONTENT ENDS -->
- </div>
- </div>
- </div>
- </div>
- <script type="text/javascript">
- //$(document).ready(function () {
- //setInterval("getPrint()", 60000);
- //setInterval("printNotify()", 60000);
- // });
-
- function getPrint() {
- $.post("<?php echo $this->createUrl('index/gettask');?>",function(data){
- var p = eval("("+data+")");
-
- var obj = $("#printTast");
- obj.empty();
- if(p.length > 0) {
- var html="";
- $.each(p,function(i,n){
- i++;
- html += "<p>"+i+":"+n.teacher_name+"提交了'"+n.class_name+"'《"+n.name+"》打印任务。</p>";
- });
- obj.append(html);
- } else {
- obj.append('暂无数据');
- }
- });
- }
- function printNotify() {
- $.post("<?php echo $this->createUrl('index/getnotify');?>",function(data){
- var p = eval("("+data+")");
-
- var obj = $("#printNotify");
- obj.empty();
- if(p.length > 0) {
- var html="";
- $.each(p,function(i,n){
- i++;
- html += "<p>"+i+":"+n.content+"</p>";
- });
- obj.append(html);
- } else {
- obj.append('暂无数据');
- }
- });
- }
- //layer.tips('点击可切换学期', '#change_sm', {tips:3});
- </script>
|