123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156 |
- <link type="text/css" rel="stylesheet" href="/css/needDetail.css" />
- <div class="main-content-inner">
- <ul class="clearfix main-content-inner-ul">
- <?php if(Yii::app()->session['coachInfo']['leader']==1){?>
- <li class="pull-left">
- <button onclick='location.href="<?php echo $this->createUrl("semester/index");?>"' class="button button_normal button_group button_arrow" data-button="red">学期管理</button>
- <img src="/images/line.jpg" style="height:45px;" />
- </li>
- <?php }?>
- <li class="pull-left">
- <button onclick='location.href="<?php echo $this->createUrl("teacher/index");?>"' class="button button_normal button_group button_arrow" data-button="red">教师管理</button>
- <img src="/images/line.jpg" style="height:45px;" />
- </li>
- <li class="pull-left">
- <button onclick='location.href="<?php echo $this->createUrl("classes/index");?>"' class="button button_normal button_group button_arrow" data-button="red">班级管理</button>
- <img src="/images/line.jpg" style="height:45px;" />
- </li>
- <li class="pull-left">
- <button onclick='location.href="<?php echo $this->createUrl("studentinfo/index");?>"' class="button button_normal button_group button_arrow button_active" data-button="red">学生管理</button>
- <img src="/images/line.jpg" style="height:45px;" />
- </li>
- <li class="pull-left">
- <button onclick='location.href="<?php echo $this->createUrl("classes/export");?>"' class="button button_normal button_group button_arrow " data-button="red">导出学生</button>
- <img src="/images/line.jpg" style="height:45px;" />
- </li>
- </ul>
- <div class="layout-gap">
- <section class="anc-top flex status_1>
- <div class="flex-one flex">
- <span><h1>学生目标院校管理</h1></span>
- <span id="upload_info" style="margin-left: 20px;line-height: 69px;cursor: pointer;">上传须知:<img src="<?php echo Yii::app()->request->hostInfo.'/images/icon-clock.png';?>"></span>
- <span id="upload" style="margin-left: 20px;line-height: 69px;">
- <div class="anc-finish-btn i_fl select_file">上传目标院校 </div>
- <form id="form1" action="<?php echo $this->createUrl('studenttarget/import')?>" method="post" enctype="multipart/form-data">
- <input type="file" name="student_file" id="uploadFile" style="display: none">
- </form>
- </span>
- </div>
- </section>
- <section>
- <div class="x_content">
- <div class="row" style="margin:0px;">
- <div class="col-xs-12">
- <!-- PAGE CONTENT BEGINS -->
- <div id="dynamic-table_wrapper" class="dataTables_wrapper form-inline no-footer">
- <div class="row">
- <div class="dataTables_length margin-zy">
- <div class="col-xs-9" style="margin-bottom: 10px;width: 70%">
- <input type="text" class="form-control input-sm" placeholder="请输入年级" name="grade_name" value="<?php if(!empty($gradeName)){echo $gradeName;}?>">
- <input type="text" class="form-control input-sm" placeholder="请输入班级" name="class_name" value="<?php if(!empty($className)){echo $className;}?>">
- <input type="text" class="form-control input-sm" placeholder="请输入姓名" name="student_name" value="<?php if(!empty($studentName)){echo $studentName;}?>">
- <button class="label-primary-s bth-s" id="search" style="padding:4px 12px;">搜索</button>
- </div>
- <table id="datatable" class="table table-striped table-bordered" style="width:60%;margin-left: 30px;">
- <thead>
- <tr>
- <th>年级</th>
- <th>班级</th>
- <th>姓名</th>
- <th>系统准考证号</th>
- <th>学生目标院校</th>
- </tr>
- </thead>
- <tbody>
- <?php foreach ($dataList as $loop): ?>
- <tr>
- <td><?php echo $loop['grade_name'] ?></td>
- <td><?php echo $loop['class_name'] ?></td>
- <td><?php echo $loop['student_name'] ?></td>
- <td><?php echo $loop['student_card'] ?></td>
- <td><?php echo $loop['target_university'] ?></td>
- </tr>
- <?php endforeach; ?>
- </tbody>
- </table>
- <div class="dataTables_paginate paging_simple_numbers" id="datatable-checkbox_paginate">
- <div class="row" style="padding-top:10px;">
- <div class="col-xs-7">
-
- </div>
- <div class="col-xs-5" style="font-size: 16px">
- <div class="dataTables_paginate paging_simple_numbers" style="vertical-align:sub;">
- <ul id="yw0" class="yiiPager">
- <?php
- if($page>1){
- echo '<li class="previous"><a href="'.$this->createUrl('studentinfo/target').'?page='.($page-1).'&grade_name='.$gradeName.'&class_name='.$className.'&student_name='.$studentName.'">上一页</a></li>';
- }
- for($i=1;$i<=$pages['totalPage'];$i++){
- $url=$this->createUrl('studentinfo/target')."?page=".$i.'&grade_name='.$gradeName.'&class_name='.$className.'&student_name='.$studentName;
- if($page==$i){
- echo '<li class="page selected"><a href="#">'.$i.'</a></li>';
- }else{
- echo '<li class="page"><a href="'.$url.'">'.$i.'</a></li>';
- }
- }
- if($page<$pages['totalPage']){
- echo '<li class="next"><a href="'.$this->createUrl('studentinfo/target').'?page='.($page+1).'&grade_name='.$gradeName.'&class_name='.$className.'&student_name='.$studentName.'">下一页</a></li>';
- }
- ?>
- </ul>
- </div>
- </div>
- </div>
- </div>
- </div>
- </section>
- </div>
- </div>
- <script src="/js/jquery-2.2.2.min.js" ></script>
- <script src="/js/layer/layer.js"></script>
- <script>
- $(document).ready(function() {
- $("#upload_info").click(function(){
- layer.open({
- title: false,
- closeBtn: 1,
- type: 1,
- area: ['1000px', '700px'],
- offset: '100px',
- content: "<img src='<?php echo Yii::app()->request->hostInfo.'/images/target_tip.jpg';?>'>"
- });
- })
- });
- </script>
- <script>
- $(function(){
- $('#uploadFile').val('');
- $('.select_file').click(function(){
- $('#uploadFile').click();
- });
- $('#uploadFile').change(function(){
- if($('#uploadFile').val()!=''){
- $('#form1').submit();
- }
- });
- })
- $("#search").click(function(){
- var grade_name = $("input[name=grade_name]").val();
- var class_name = $("input[name=class_name]").val();
- var student_name = $("input[name=student_name]").val();
- location.href = "<?php echo $this->createUrl("studentinfo/target?grade_name=");?>"+grade_name+"&class_name="+class_name+"&student_name="+student_name;
- });
- </script>
|