123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179 |
- <style>
- .addborder{border:1px solid #ccc}
- .addheight{height:30px;border-radius:2px;}
- .addheight:focus{border-color: #66afe9;box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(102, 175, 233, 0.6);outline: 0 none;}
- .ace{position:relative;top:0px !important;left:0px !important;}
- label{font-weight:100 !important;}
- </style>
- <script src="/js/jquery.validate.min.js"></script>
- <script type="text/javascript">
- jQuery(document).ready(function(){
- jQuery("#schoolSubmit").click(function(){
- var grade = $(".diy_select_txt").text();
- var class_name = $(".diy_select_txt1").text();
- var _text = '';
- if(grade=='全年级' && class_name=='全班级')
- {
- _text = '全年级';
- }else{
- _text = grade+class_name;
- }
- var msg = '确定导出'+_text+'学生信息?';
- layer.msg(msg, {
- time: 0,
- btn: ['确定', '取消'],
- yes: function(index){
- layer.close(index);
- jQuery(this).attr("disabled", true);
- jQuery("#classAdd").submit();
- }
- });
- });
- });
- </script>
- <div class="main-content-inner">
- <!-- 导航栏开始-->
- <?php include(Yii::app()->basePath.'/views/layouts/class_navigation.php');?>
- <!-- 导航栏结束-->
- <div class="page-content" style="margin-top:15px;">
- <div class="row" style="margin:0px;">
- <div class="col-xs-12">
- <!-- PAGE CONTENT BEGINS -->
- <form enctype="multipart/form-data" class="form-horizontal" action="<?php echo $this->createUrl('classes/export');?>" method="post" id="classAdd">
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-3 no-padding-right">选择学期:</label>
- <div class="col-sm-9">
- <div class='diy_select2' style="width: 240px; border: 1px solid #ccc;">
- <input type='hidden' id="semester_id" name="semester_id" class='diy_select_input2' value="<?php echo $currSemester['semester_id']?>" />
- <div class='diy_select_txt2' style=" width: 207px;"><?php echo $currSemester['semester_name']?>(当前学期)</div>
- <div class='diy_select_btn2'></div>
- <ul class='diy_select_list2'>
- <li val="<?php echo $currSemester['semester_id']?>"><?php echo $currSemester['semester_name']?>(当前学期)</li>
- <?php if(!empty($semester)){?><li val="<?php echo $semester->semester_id?>"><?php echo $semester->semester_name ?>(上学期)</li><?php }?>
- </ul>
- </div>
- </div>
- </div>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-3 no-padding-right">选择年级:</label>
- <div class="col-sm-9">
- <div class='diy_select' style="width: 131px">
- <input type='hidden' id="grade" name="grade" class='diy_select_input' value="0" />
- <div class='diy_select_txt' >全年级</div>
- <div class='diy_select_btn'></div>
- <ul class='diy_select_list'>
- <li val="0">全年级</li>
- <?php
- if(Yii::app()->params['grade_config']){
- foreach (Yii::app()->params['grade_config'] as $id => $val){
- echo ' <li val="'.$id.'">'.$val['grade_name'].'</li>';
- }
- }
- ?>
- </ul>
- </div>
- </div>
- </div>
- <?php if(Yii::app()->params['section']==1):?>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-3 no-padding-right">班级类型:</label>
- <div class="col-sm-9">
- <select class="class_type" name="class_type">
- <option value="1">行政班</option>
- <option value="2">教学班</option>
- </select>
- </div>
- </div>
- <?php endif;?>
- <div class="form-group">
- <label class="control-label col-xs-12 col-sm-3 no-padding-right">选择班级:</label>
- <div class="col-sm-9">
- <div class='diy_select1' style="border: 1px solid #ccc;width: 131px">
- <input type='hidden' id="class_id" name="class_id" class='diy_select_input1' value="0" />
- <div class='diy_select_txt1' >全班级</div>
- <div class='diy_select_btn1'></div>
- <ul class='diy_select_list1'>
- <li val="0">全班级</li>
- </ul>
- </div>
- </div>
- </div>
- <div class="clearfix form-actions">
- <div class="col-md-offset-3 col-md-9">
- <button class="btn btn-success btn-sm" type="button" id="schoolSubmit">
- <i class="ace-icon fa fa-check bigger-110"></i>
- 导出
- </button>
- </div>
- </div>
- <div class="clearfix form-actions" style="margin-top:20px;">
- <div class=" col-md-9 " style="margin-left: 19%;">
- <span style=" padding: 0px 0px;color: red; id="show_msg"><div style='text-align:left;'>打印条形码须知内容:<br/>1、首先将学生信息导出,导出表格必须有学生姓名与系统准考证号这两个字段<br/>2、然后你将表格发给打印室的小姐姐告诉她要打印的样式为code128A或者code128B,要用2cm*5cm的粘贴纸,将学生姓名与系统准考证号都打印上<br/>3、最后在考试之前发给每个学生就可以,或者多打印一点让学生自己保管每次考试贴上就可以了<br/>4、注意:只要此学生的系统准考证号不改变,则他的条形码每次打印都是一样的,所以可以多打印一点屯着<br/></div></span>
- </div>
- </div>
- </form>
- <!-- PAGE CONTENT ENDS -->
- </div>
- </div>
- </div>
- </div>
- <script src="/js/xsgl.js"></script>
- <script>
- $(function(){
- $(".diy_select_list").click(function(){
- getClass();
- });
- $('.class_type').change(function(){
- getClass();
- });
- function getClass(){
- var grade = $("#grade").val();
- var semester_id = $("#semester_id").val();
- var class_type=$('.class_type').val();
- var html = '<li val="0">全班级</li>';
- $('.diy_select_list1').html(html);
- if(grade>0){
- var data={
- grade:grade,
- semester_id:semester_id,
- class_type:class_type
- };
- $.post("<?php echo Yii::app()->createUrl('classes/ajax_class')?>",data,function(flags){
- var m = JSON.parse(flags);
- if(m.status>0)
- {
- $.each(m.data,function(index,val){
- if(val.is_hide==0){
- html+='<li val="'+val.class_id+'">'+val.class_name+'</li>'
- }
- });
- $('.diy_select_list1').html(html);
- }
- });
- }else
- {
- $('.diy_select_list1').html(html);
- }
- }
- /*$("#show_msg").mouseover(function(){
- msg = "<div style='text-align:left;'>须知内容为:<br/>1、首先将学生信息导出,导出表格必须有学生姓名与系统准考证号这两个字段<br/>2、然后你将表格发给打印室的小姐姐告诉她要打印的样式为code128A或者code128B,要用2cm*5cm的粘贴纸,将学生姓名与系统准考证号都打印上<br/>3、最后在考试之前发给每个学生就可以,或者多打印一点让学生自己保管每次考试贴上就可以了<br/>4、注意:只要此学生的系统准考证号不改变,则他的条形码每次打印都是一样的,所以可以多打印一点屯着<br/></div>";
- layer.msg(msg););
- });*/
- });
- </script>
|