123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622 |
- <script src="/js/xsgl.js"></script>
- <link rel="stylesheet" href="/css/cylet.css" />
- <link rel="stylesheet" href="/css/export/report.css?v=1.0.10">
- <style>
- *{margin: 0;padding: 0;}
- .loading-pop{position: fixed;left: 0;top: 0;bottom: 0;right: 0;background: rgba(0,0,0,0.5);z-index: 200;}
- .loading-pop-msg{color: #fff;position: absolute;left: 50%;top: 50%;transform: translate(-50%,-50%);font-size: 22px;letter-spacing: 4px;}
- a:hover, a:focus {
- color: #23527c;
- text-decoration: none;
- }
- @font-face {font-family: "iconfont";
- src: url('/fonts/pdf/iconfont.eot?t=1484561666180'); /* IE9*/
- src: url('/fonts/pdf/iconfont.eot?t=1484561666180#iefix') format('embedded-opentype'), /* IE6-IE8 */
- url('/fonts/pdf/iconfont.woff?t=1484561666180') format('woff'), /* chrome, firefox */
- url('/fonts/pdf/iconfont.ttf?t=1484561666180') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
- url('/fonts/pdf/iconfont.svg?t=1484561666180#iconfont') format('svg'); /* iOS 4.1- */
- }
- .iconfont {
- font-family:"iconfont" !important;
- font-size:16px;
- font-style:normal;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
- }
- /*切换选择*/
- .tab-con{
- position: relative;
- height: 30px;
- width: 200px;
- background: #F2F2F2;
- border: 1px solid #01B677;
- border-radius: 15px;
- }
- .has-sel{
- background: #01B677;
- color: #fff;
- width: 50%;
- height: 30px;
- border-top-left-radius: 15px;
- border-bottom-left-radius: 15px;
- text-align: center;
- line-height: 30px;
- }
- .sel-opt{
- width: 50%;
- position: relative;
- color: #01B677;
- line-height: 30px;
- text-indent: 6px;
- cursor: pointer;
- }
- .sel-opt:after{
- content: '';
- border-left: 6px solid transparent;
- border-right: 6px solid transparent;
- border-top: 8px solid #01B677;
- position: absolute;
- right: 12px;
- top: 12px;
- }
- // .sel-opt select{
- // width: 100%;
- // height: 30px;
- // background: #F2F2F2;
- // color: #01B677;
- // text-indent: 6px;
- // font-size: inherit;
- // border-top-right-radius: 15px;
- // border-bottom-right-radius: 15px;
- // cursor: pointer;
- // }
- // .sel-opt select option{
- // position: relative;
- // }
- .points{
- position: absolute;
- top: -2px;
- right: 0;
- width: 10px;
- height: 10px;
- background: #F01516;
- border-radius: 50%;
- }
- .sel-cons{
- border: 1px solid #01B677;
- width: 50%;
- position: absolute;
- right: 0;
- top: 30px;
- text-indent: 10px;
- display: none;
- }
- .sc-lis{
- line-height: 30px;
- cursor: pointer;
- }
- .sc-lis span{
- position: relative;
- }
- .sc-lis .points{
- top: 2px;
- right: -16px;
- }
- .icon-pdf:before { content: "\e618"; }}
- .fl{float:left;}
- /* 往期教师讲案按钮 */
- .history-teacher-exolaincase-btn{cursor: pointer;background: rgb(21,174,104);color: #fff;width: 130px;height: 28px;margin-left: 20px;text-indent: 10px;}
- .history-teacher-exolaincase-btn img,.history-teacher-exolaincase-btn span{ color: #fff;vertical-align: middle;line-height: 28px;font-size: 12px;}
- .dtw-top-right-btns{float: right;padding-right:10px;}
- .dtw-top-left-cons{float: left;padding-left: 12px;}
- </style>
- <div class="main-content-inner">
- <?php include(Yii::app()->basePath.'/views/layouts/view_production_navigation.php');?>
- <div class="page-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">
- <form method="get" action="<?php echo $this->createUrl('export/index_duo'); ?>" style="padding-left: 0px;">
- <div class="dtw-top-left-cons">
- <div class="dataTables_length margin-zy">
-
- <div class='diy_select2' style="display: inline;margin-right: 5px;border: 1px solid #c9ccd2;width: 140px;">
- <input type='hidden' id="type_id" name="type_id" class='diy_select_input2' value="<?php if (empty($type_id)) {
- echo 0;
- } else {
- echo $type_id;
- } ?>"/>
- <div class='diy_select_txt2'>
- <?php
- if (empty($type_id)) {
- echo '请选择试卷类别';
- } else {
- switch ($type_id) {
- case 2:echo '第三方线上阅卷试卷';
- break;
- case 3:echo '第三方导入成绩试卷';
- break;
- }
- }
- ?>
- </div>
- <div class='diy_select_btn2'></div>
- <ul class='diy_select_list2'>
- <li val="0" >请选择试卷类别</li>
- <li val="2">第三方线上阅卷试卷</li>
- <li val="3">第三方导入成绩试卷</li>
- </ul>
- </div>
- <div class='diy_select1' style="display: inline;margin-right: 5px;border: 1px solid #c9ccd2;">
- <input type='hidden' id="grade_id" name="grade_id" class='diy_select_input1' value="<?php if (empty($grade_id)) {
- echo 0;
- } else {
- echo $grade_id;
- } ?>"/>
- <div class='diy_select_txt1'><?php
- if (empty($grade_id)) {
- echo '请选择年级';
- } else {
- if(isset(Yii::app()->params['grade_list'][$grade_id])){
- echo Yii::app()->params['grade_list'][$grade_id]['grade_name'];
- }
- }
- ?></div>
- <div class='diy_select_btn1'></div>
- <ul class='diy_select_list1'>
- <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 class='diy_select'>
- <input type='hidden' id="class_id" name="class_id" class='diy_select_input' value="<?php if (empty($grade_id) || empty($grade_class) || empty($class_id)) {
- echo 0;
- } else {
- echo $class_id;
- } ?>"/>
- <div class='diy_select_txt'><?php if (empty($grade_id) || empty($class_id) || empty($grade_class)) {
- echo '请选择班级';
- } else {
- if (isset($grade_class[$class_id]) && !empty($grade_class[$class_id])) {
- echo $grade_class[$class_id]['class_name'];
- }
- } ?></div>
- <div class='diy_select_btn'></div>
- <ul class='diy_select_list'>
- <li val="0">请选择班级</li>
- <?php if (empty($grade_id) || empty($grade_class)) {
- echo '';
- } else {
- foreach ($grade_class as $v) {
- ?>
- <li val="<?php echo $v['class_id'] ?>"><?php echo $v['class_name'] ?></li>
- <?php }
- } ?>
- </ul>
- </div>
- <input type="text" class="form-control input-sm" placeholder="请输入报告名称!" name="realname" value="<?php if (!empty($realname)) {
- echo $realname;
- } ?>">
- <!--<button class="btn btn-minier btn-primary">搜索</button>-->
- <button class="label-primary-s bth-s" id="search" style="padding:4px 12px;">搜索</button>
- </div>
- </div>
- </form>
- <div class="dtw-top-right-btns mt15" >
- <?php if(Yii::app()->params['section']==1):?>
- <?php if(isset(Yii::app()->session['session_duoxueke_subject_id']) && in_array(Yii::app()->session['session_duoxueke_subject_id'],Yii::app()->params['mathSubjectId'])) { ?>
- <?php if ($past_sem_exist):?>
- <div class="history-teacher-exolaincase-btn fl">
- <img src="/images/download.png" alt="" class="" href="">
- <a href="<?php echo Yii::app()->createUrl('export/pastacdemicrs');?>"><span>往期教学宝</span></a>
- </div>
- <?php endif;?>
- <div id="dynamic-table_filter" class="dataTables_filter position_g fl" >
- <a class="btn btn-success btn-sm" href="<?php echo Yii::app()->createUrl('export/statistics') ?>">
- <i class="fa fa-plus " style="font-style: normal;"></i> 校长专用分析报告
- </a>
- </div>
- <?php }?>
- <div id="dynamic-table_filter" class="dataTables_filter position_g fl" >
- <a class="btn btn-success btn-sm" href="<?php echo Yii::app()->createUrl('export/batch_duo') ?>">
- <i class="fa fa-plus " style="font-style: normal;"></i> 批量下载报表
- </a>
- </div>
- <?php endif;?>
- </div>
- </div>
- <table id="dynamic-table" class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable">
- <thead>
- <tr>
- <th width="40%">名称</th>
- <th width="10%">试卷类别</th>
- <th width="10%">年级</th>
- <th width="10%">班级</th>
- <th width="10%">阅卷状态</th>
- <?php if(in_array(Yii::app()->session['session_duoxueke_subject_id'],Yii::app()->params['mathSubjectId'])){ ?>
- <th width="10%">错题文档</th>
- <?php }?>
- <th width="30%">操作</th>
- </tr>
- </thead>
- <tbody>
- <?php if (!empty($printList)):foreach ($printList as $cl): ?>
- <tr>
- <td><?php echo $cl['print_name']; ?></td>
- <td><?php echo $cl['type_name']; ?></td>
- <td><?php echo $cl['grade_name']; ?></td>
- <td><?php echo $cl['class_name']; ?></td>
- <td><?php if($cl['status']==1){echo '已完成';}else{echo '未完成';}?></td>
- <?php if(in_array(Yii::app()->session['session_duoxueke_subject_id'],Yii::app()->params['mathSubjectId'])){
- ?>
- <td><span style="color: #15ae68;font-weight: bold">
- <?php if ($cl['is_topwb_html'] == 0 || $cl['is_topwb_html'] == 90) {
- echo '未生成';
- } elseif ($cl['is_topwb_html'] == 1 && $cl['is_topwb_pdf'] == 0) {
- echo "正在生成中";
- } elseif ($cl['is_topwb_pdf'] == 1) {
- echo '已生成';
- } elseif ($cl['is_topwb_pdf'] == 9) {
- echo '已删除';
- };
- ?>
- </span>
- </td>
- <?php
- }?>
- <td>
-
- <?php if ($this->schoolManager->classExamHasPaperRs($cl['exam_id'], $cl['class_id'])): ?>
- <!-- <a class="green" style="margin-left:4px;" href="<?php /*echo $this->createUrl("export/excel?examId={$cl['exam_id']}&classId={$cl['class_id']}&type=word&is_outer=0"); */?>">
- <span class="fa fa-file-word-o click-sc addbx" style="padding:0.5px 9px" aria-hidden="true" title="导出Word(精简)"></span>
- </a>-->
- <!-- <i class="icon icon-download downloadFileBtn" rel="<?php echo $cl['exam_id']?>" subject="<?php echo Yii::app()->session['session_duoxueke_subject_id']?>" class_id="<?php echo $cl['class_id']?>" title="下载报表"></i> -->
- <?php if($cl['status']==1){
- ?>
- <a class="green setEduce" href="javascript:;">
- <span
- class="fa fa-file-word-o click-sc addbx downloadFileBtn"
- data-downloadType="1"
- style="padding:0.5px 9px"
- aria-hidden="true"
- title="导出Word"
- <?php
- if($cl['status']==1){
- echo ' complete="1" ';
- }else{
- echo ' complete="0" ';
- }
- ?>
- rel="<?php echo $cl['exam_id']?>"
- subject="<?php echo Yii::app()->session['session_duoxueke_subject_id']?>"
- class_id="<?php echo $cl['class_id']?>" topic_count="<?php echo isset($cl['topic_count'])?$cl['topic_count']:0;?>"
- ></span>
- </a>
- <?php
- }?>
- <a class="green setEduce" href="javascript:;" >
- <span
- class="fa fa-file-excel-o click-sc addbx downloadFileBtn"
- data-downloadType="2"
- style="padding:0.5px 9px"
- aria-hidden="true"
- title="导出Excel"
- <?php
- if($cl['status']==1){
- echo ' complete="1" ';
- }else{
- echo ' complete="0" ';
- }
- ?>
- rel="<?php echo $cl['exam_id']?>"
- subject="<?php echo Yii::app()->session['session_duoxueke_subject_id']?>"
- class_id="<?php echo $cl['class_id']?>"
- ></span>
- </a>
- <?php $_sub_id = Yii::app()->session['session_duoxueke_subject_id'];?>
- <!--
- <?php if(in_array($_sub_id,array(8,9,12,13,14,15,16,17,18,19)) && $cl['status']==1 && Yii::app()->params['section']!=0){?>
- <?php if($cl['topic_answer_upload'] == 1 || ($_sub_id == 8 && $cl['is_fine_paper'] > 0) || ($_sub_id == 8 && $cl['qxk_paper_id']>0)):?>
- <a class="green" onclick="downpdfPrint('<?php echo $cl['exam_id'] ?>', '<?php echo $cl['class_id'] ?>', '0')" href="javascript:void(0);">
- <span class="fa fa-file-pdf-o click-sc addbx" style="padding:0.5px 9px" aria-hidden="true" title="下载教学宝"></span>
- </a>
- <?php elseif($_sub_id == 12 && $cl['is_labelled']):?>
- <a class="green" onclick="downpdfPrint('<?php echo $cl['exam_id'] ?>', '<?php echo $cl['class_id'] ?>', '<?php echo $cl['is_labelled'] ?>')" href="javascript:void(0);">
- <span class="fa fa-file-pdf-o click-sc addbx" style="padding:0.5px 9px" aria-hidden="true" title="下载教学宝"></span>
- </a>
- <?php endif;?>
- <?php if ($cl['is_topwb_pdf'] == 1) { ?>
- <a class="green" onclick="downCTQSPrint('<?php echo $cl['exam_id'] ?>')" href="#">
- <span class="fa fa-file-powerpoint-o click-sc addbx" style="padding:0.5px 9px" aria-hidden="true" title="下载错题前十"></span>
- </a>
- <?php } ?>
- <?php //if(isset(Yii::app()->session['testFlag'])&&(Yii::app()->session['testFlag']==1)){ ?>
- <?php if($cl['is_academicr_pdf']=='1'&&$cl['academicr_pdf_path']!=""){ ?>
- <span class="iconfont click-sc addbx" aria-hidden="true" title="重新生成教学宝" onclick="reloadAcademicr('<?php echo $cl['exam_id']; ?>',1,this)"></span>
- <?php } ?>
- <?php if(in_array(Yii::app()->session['session_duoxueke_subject_id'],Yii::app()->params['mathSubjectId'])){?>
- <span class="iconfont click-sc addbx" aria-hidden="true" title="重新生成错题前十" onclick="reloadAcademicr('<?php echo $cl['exam_id']; ?>',2,this)"></span>
- <?php }?>
- <?php //}
- }?>
- -->
- <?php else: ?>
- <a style="margin-left:10px">
- <span class="iconfont click-sc addbx" aria-hidden="true" title="数据异常"></span>
- </a>
- <?php endif; ?>
- </td>
- </tr>
- <?php endforeach;
- else: ?>
- <tr><td colspan="4">暂无数据!</td></tr>
- <?php endif; ?>
- </tbody>
- </table>
- <?php if (!empty($page_total)): ?>
- <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;">
- <?php
- $this->widget('CLinkPager', array(
- 'header' => '',
- 'firstPageLabel' => '首页',
- 'lastPageLabel' => '末页',
- 'prevPageLabel' => '上一页',
- 'nextPageLabel' => '下一页',
- 'pages' => $pages,
- 'maxButtonCount' => 5,
- ));
- echo '<span style="vertical-align:middle;">共:' . $page_total . '条</span>';
- ?>
- </div>
- </div>
- </div>
- <?php endif; ?>
- </div>
- <!-- PAGE CONTENT ENDS -->
- </div>
- </div>
- </div>
- </div>
- <div class="port-down-pop">
- <div class="pdp-con">
- <div class="pop-top-con clearfix">
- 下载报表<span class="dib pointer close-pop-btn">×</span>
- </div>
- <div class="pop-main-con">
- <div class="download-filter-title">
- <span class="tit-msg vtm">下载的学情分析报告是否需要下列数据:</span>
- <input type="checkbox" class="selectall-filter pointer vtm" id="selectall-filter">
- <label class="pointer vtm" for="selectall-filter">全选</label>
- </div>
- <div class="filter-sel-con">
- <input type="checkbox" name="student_card" class="selectall-filter pointer vtm" id="system-num">
- <label class="pointer vtm label-msg" for="system-num">系统准考证</label>
- <input type="checkbox" name="school_student_card" class="selectall-filter pointer vtm" id="school-num">
- <label class="pointer vtm label-msg" for="school-num">学校准考证</label>
- <input type="checkbox" name="is_outer" class="selectall-filter pointer vtm" id="now-stu">
- <label class="pointer vtm label-msg" for="now-stu">只显示在籍生</label>
- <input type="checkbox" name="id_number" class="selectall-filter pointer vtm" id="identify-num">
- <label class="pointer vtm label-msg" for="identify-num">身份证</label>
- </div>
- <div id="score_excel">
- <div class="tit-msg">报表下载设置:</div>
- <h3 class="tit-sub-intro">总分段人数分析表(请按分数进行分段):<span class="fr">注:分段包含右边界值</span></h3>
- <div class="clearfix">
- <div class="fl">
- <div class="dib vtm table_set_1">
- <input type="hidden" name="max_score" value="">
- <span class="score-inp-list"><input type="text" class="subsection" name="score_0" srcvalue="" value="">-</span>
- <span class="score-inp-list"><input type="text" class="subsection" name="score_1" srcvalue="" value="">-</span>
- <span class="score-inp-list"><input type="text" class="subsection" name="score_2" srcvalue="" value="">-</span>
- <span class="score-inp-list"><input type="text" class="subsection" name="score_3" srcvalue="" value="">-</span>
- <span class="score-inp-list"><input type="text" class="subsection" name="score_4" srcvalue="" value="">-</span>
- <span class="score-inp-list"><input type="text" class="subsection" name="score_5" srcvalue="" value="">-</span>
- <span class="score-inp-list"><input type="text" class="subsection" name="score_6" srcvalue="" value="">-</span>
- <span class="score-inp-list"><input type="text" class="subsection" name="score_7" srcvalue="" value="">-</span>
- <span class="score-inp-list"><input type="text" class="subsection" name="score_8" srcvalue="" value="">-</span>
- <span class="score-inp-list"><input type="text" class="subsection" name="score_9" srcvalue="" value="">-</span>
- </div>
- 0<input type="hidden" name="score_10" value="0">
- </div>
- <div class="fr">
- <span class="dib pointer vtm reduce-btn">-</span>
- <span class="dib pointer vtm add-btn">+</span>
- <img src="/images/del-icon.png" alt="" class="del-icon pointer vtm">
- </div>
- </div>
- </div>
- </div>
- <div class="pop-opt-con">
- <input type="hidden" name="exam_id" value="0">
- <input type="hidden" name="file_type" value="">
- <span class="dib sure-btn pointer" id="btnSubmit">确定</span>
- <span class="dib cancel-btn pointer" id="btnClose">取消</span>
- </div>
- </div>
- </div>
- <?php include(Yii::app()->basePath.'/views/print/_print.php');?>
- <script src="/js/export/report.js?v=1.1.4"></script>
- <script type="text/javascript">
- function reloadAcademicr(examId,type,obj){
- $.get("<?php echo $this->createUrl("export/reload_academicr") ?>", {examId: examId, type: type}, function(data) {
- var m = JSON.parse(data);
- if (m.status == 0)
- {
- alert('重置成功');
- $(obj).hide()
- }
- });
- }
- function downpdf(examId, classId,isLabelled) {
-
- layer.msg('生成中,请稍后...', { time: 0, shade: 0.4 })
- //学科ID
- var subId = "<?php echo Yii::app()->session['session_duoxueke_subject_id'];?>";
- //是否是多学科
- var isDuoSub = "<?php echo in_array($sub_id,array(8,9,12,13,14,15,16,17,18,19))?1:0;?>";
- var teachingRoute = '';
- if (isDuoSub && isLabelled == 0) {
- teachingRoute = "<?php echo $this->createUrl('teaching/index');?>";
- }else if(subId == 12 && isLabelled == 1){//物理新版
- teachingRoute = "<?php echo $this->createUrl('teaching/physics');?>";
- }else{
- teachingRoute = "<?php echo $this->createUrl('export/academicr');?>";
- }
- $.get(teachingRoute, {examId: examId, classId: classId}, function(data) {
- //$.get("<?php //echo $this->createUrl('export/academicr') ?>//", {examId: examId, classId: classId}, function(data) {
- var m = JSON.parse(data);
- if (m.status == 0)
- {
- if (m.is_create == 1) {
- setTimeout(function() {
- layer.closeAll()
- }, 500);
- } else {
- layer.closeAll()
- }
- location.href="<?php echo $this->createUrl("export/down_load")?>?examId="+examId;
- } else
- {
- setTimeout(function() {
- layer.closeAll()
- }, 500);
- layer.msg(m.error)
- // alert(m.error);
- }
- });
- }
- $(document).ready(function() {
- $(".sel-opt,.sel-cons").mouseover(function(){
- $(".sel-cons").show();
- }).mouseout(function(){
- $(".sel-cons").hide();
- });
- $(".sc-lis").click(function(){
- var data = {
- subjectId : $(this).attr('val')
- };
- $.post("<?php echo Yii::app()->createUrl('third/setSubjectId')?>",data,function(flags){
- if(flags)
- {
- location.reload();
- }else
- {
- alert('网络异常');
- }
- });
- $('.has-sel').text($(this).text());
- $(".sel-cons").hide();
- });
- });
- function ccc() {
- layer.msg('敬请期待!', {
- time: 0,
- btn: ['确定', '取消'],
- yes: function(index) {
- layer.close(index);
- return false;
- }
- });
- }
- $(function() {
- $(".diy_select1").click(function() {
- var grade = $(".diy_select1 input[class=diy_select_input1]").val();
- if (grade == 0)
- {
- $(".diy_select input[class=diy_select_input]").val(0);
- $(".diy_select_txt").text("请选择班级");
- $(".diy_select_list li").text("请选择班级");
- $(".diy_select_list li").attr("val", 0);
- }
- $.post("<?php echo $this->createUrl('classes/getclass'); ?>", {grade_id: grade}, function(data) {
- var m = JSON.parse(data);
- if (m.status == 0)
- {
- $(".diy_select input[class=diy_select_input]").val(0);
- $(".diy_select_txt").text("请选择班级");
- $(".diy_select_list").empty();
- var html = '<li val="0">请选择班级</li>';
- $(".diy_select_list").html(html);
- } else {
- $(".diy_select input[class=diy_select_input]").val(0);
- $(".diy_select_txt").text("请选择班级");
- $(".diy_select_list").empty();
- var html = '<li val="0">请选择班级</li>';
- $.each(m.result, function(i, n) {
- html += '<li val="' + n.class_id + '">' + n.class_name + '</li>';
- });
- $(".diy_select_list").html(html);
- }
- });
- });
- });
- </script>
|