1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228 |
- <!DOCTYPE html>
- <html lang="en" xmlns="http://www.w3.org/1999/html">
- <head>
- <meta charset="UTF-8">
- <title>产品设置</title>
- <link rel="stylesheet" href="/css/productset/base.css">
- <link rel="stylesheet" href="/css/productset/product-setting.css">
- </head>
- <body>
- <style>
- .fl{
- float: left;
- }
- .fr{
- float: right;
- }
- .clearfix:after{
- content: '';
- display: block;
- clear: both;
- }
- .changeSubjectNav{
- width: 100%;
- box-sizing: border-box;
- top: 0;
- left: 0;
- z-index: 1000;
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 10px 10px;
- background: #ddd;
- }
- .changeSubjectNav .productSettingBtn a{
- display: block;
- width: 120px;
- height: 30px;
- background: #01B677;
- text-align: center;
- line-height: 30px;
- color: #fff;
- font-size: 16px;
- text-decoration: none;
- cursor: text;
- }
- /*切换选择*/
- .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-lis2{
- line-height: 30px;
- cursor: pointer;
- }
- .sc-lis2 span{
- position: relative;
- }
- .sc-lis2 .points{
- top: 2px;
- right: -16px;
- }
- .subject-change{
- margin:8px 11px 0 0;display: block
- }
- .subject-change-no{
- margin:8px 11px 0 0;display: none
- }
- </style>
- <?php include(Yii::app()->basePath.'/views/layouts/view_productset_navigation.php');?>
- <div class="loading">
- <div class="loading-box">
- <img src="/images/productset/loading.png" alt="">
- <p>加载中...</p>
- </div>
- </div>
- <div class="clearfix product-tit"><?php echo $subject_name?>产品设置</div>
- <div class="clearfix product-box">
- <!-- 左侧菜单开始 -->
- <div class="fl product-menu">
- <dl>
- <dt ps-type="1">错题本</dt>
- <?php foreach ($product_list[1] as $plk=>$plv):?>
- <dd>
- <a is-default="<?php echo $plv['is_default']?>" ps-id="<?php echo $plv['product_type'].'_'.$plv['ps_id']?>" href="<?php echo $this->createUrl("productset/oldSet?psId={$plv['ps_id']}");?>" class="<?php if ($plv['ps_id']==$curr_ps) echo 'active'?>"><?php echo $plv['name']?></a>
- </dd>
- <?php endforeach;?>
- </dl>
- <?php if($subject_id==3):?>
- <dl>
- <dt ps-type="2">个性化学习方案</dt>
- <?php foreach ($product_list[2] as $plk=>$plv):?>
- <dd>
- <a is-default="<?php echo $plv['is_default']?>" ps-id="<?php echo $plv['product_type'].'_'.$plv['ps_id']?>" href="<?php echo $this->createUrl("productset/oldSet?psId={$plv['ps_id']}");?>" class="<?php if ($plv['ps_id']==$curr_ps) echo 'active'?>"><?php echo $plv['name']?></a>
- </dd>
- <?php endforeach;?>
- </dl>
- <dl>
- <dt ps-type="3">个性化学习宝</dt>
- <?php foreach ($product_list[3] as $plk=>$plv):?>
- <dd>
- <a is-default="<?php echo $plv['is_default']?>" ps-id="<?php echo $plv['product_type'].'_'.$plv['ps_id']?>" href="<?php echo $this->createUrl("productset/oldSet?psId={$plv['ps_id']}");?>" class="<?php if ($plv['ps_id']==$curr_ps) echo 'active'?>"><?php echo $plv['name']?></a>
- </dd>
- <?php endforeach;?>
- </dl>
- <?php endif;?>
- <?php if($subject_id==8):?>
- <dl>
- <dt ps-type="6">个性化学习宝设置</dt>
- <?php
- if(isset($customConfig['english_3'])):
- ?>
- <?php foreach ($customConfig['english_3'] as $plk=>$plv):?>
- <dd>
- <a is-default="<?php echo $plv['is_default']?>" ps-id="<?php echo $plv['product_type'].'_'.$plv['ps_id']?>" href="<?php echo $this->createUrl("productset/index?psId={$plv['ps_id']}");?>" class="<?php if ($plv['ps_id']==$curr_ps) echo 'active'?>"><?php echo $plv['name']?></a>
- </dd>
- <?php endforeach;endif;?>
- </dl>
- <dl>
- <dt ps-type="7">晨读词汇</dt>
- <?php
- if(isset($customConfig['english_4'])):
- ?>
- <?php foreach ($customConfig['english_4'] as $plk=>$plv):?>
- <dd>
- <a is-default="<?php echo $plv['is_default']?>" ps-id="<?php echo $plv['product_type'].'_'.$plv['ps_id']?>" href="<?php echo $this->createUrl("productset/oldSet?psId={$plv['ps_id']}");?>" class="<?php if ($plv['ps_id']==$curr_ps) echo 'active'?>"><?php echo $plv['name']?></a>
- </dd>
- <?php endforeach;endif;?>
- </dl>
- <?php endif;?>
- </div>
- <!-- 左侧菜单结束 -->
- <!-- 错题本设置内容开始 -->
- <div class="fl product-setting" style="display: block;" >
- <form action="" id="set-data" name="set-data">
- <input type="hidden" name="ps_id" value="<?php echo $set_info['ps_id']?>">
- <input type="hidden" name="ps_type" value="<?php echo $set_info['product_type']?>" id="ps_type">
- <input type="hidden" name="subject_id" value="<?php echo $subject_id?>">
- <?php if($subject_id==3): ?>
- <div class="setting-title clearfix">
- <span class="fl">设置内容</span>
- <em class="fr preview">预览</em>
- </div>
- <p class="words-gray">系统会根据您的设置生成产品,点击“预览”查看效果</p>
- <?php if($set_info['product_type']=='1' || $set_info['product_type']=='2' || $set_info['product_type']=='3'):?>
- <div class="show-content clearfix" index-id="1">
- <input type="hidden" name="show_map" value="<?php echo $set_info['show_map']?>">
- <div class="fl">显示成长轨迹<em index-id="1">?</em></div>
- <div class="fr show-btn"><span class="<?php if ($set_info['show_map']=='1'){echo 'on' ;} else{echo 'off';}?>"></span></div>
- </div>
- <div class="show-content clearfix" index-id="2">
- <input type="hidden" name="show_kp" value="<?php echo $set_info['show_kp']?>">
- <div class="fl">显示知识点掌握分析<em index-id="2">?</em></div>
- <div class="fr show-btn"><span class="<?php if ($set_info['show_kp']=='1'){echo 'on' ;} else{echo 'off';}?>"></span></div>
- </div>
- <?php endif;?>
- <?php if($set_info['product_type']=='1' || $set_info['product_type']=='3'):?>
- <div class="show-content clearfix" index-id="3">
- <input type="hidden" name="show_wrg_origin" value="<?php echo $set_info['show_wrg_origin']?>">
- <div class="fl">显示错题原型<em index-id="3">?</em></div>
- <div class="fr show-btn"><span class="<?php if ($set_info['show_wrg_origin']=='1'){echo 'on' ;} else{echo 'off';}?>"></span></div>
- </div>
- <div class="show-content clearfix" index-id="4">
- <input type="hidden" name="show_wrg_analyze" value="<?php echo $set_info['show_wrg_analyze']?>">
- <div class="fl">显示错因分析<em index-id="4">?</em></div>
- <div class="fr show-btn"><span class="<?php if ($set_info['show_wrg_analyze']=='1'){echo 'on' ;} else{echo 'off';}?>"></span></div>
- </div>
- <div class="show-content clearfix" index-id="5">
- <input type="hidden" name="show_guide" value="<?php echo $set_info['show_guide']?>">
- <div class="fl">显示名师指导<em index-id="5">?</em></div>
- <div class="fr show-btn"><span class="<?php if ($set_info['show_guide']=='1'){echo 'on' ;} else{echo 'off';}?>"></span></div>
- </div>
- <div class="show-content clearfix" index-id="17">
- <input type="hidden" name="show_classmate_optimization" value="<?php echo $set_info['show_classmate_optimization']?>">
- <div class="fl">显示同学优解<em index-id="17">?</em></div>
- <div class="fr show-btn"><span class="<?php if ($set_info['show_classmate_optimization']=='1'){echo 'on' ;} else{echo 'off';}?>"></span></div>
- </div>
- <?php endif;?>
- <?php if($set_info['product_type']=='3'):?>
- <div class="show-content clearfix" index-id="12">
- <input type="hidden" name="show_wrg_answer" value="<?php echo $set_info['show_wrg_answer']?>">
- <div class="fl">错题答案显示在错题下方<em index-id="12">?</em></div>
- <div class="fr show-btn"><span class="<?php if ($set_info['show_wrg_answer']=='1'){echo 'on' ;} else{echo 'off';}?>"></span></div>
- </div>
- <!-- <p style="color: #aaaaaa">(仅适用于三步个性化学习宝)</p>-->
- <?php endif;?>
- <?php if($set_info['product_type']=='2' || $set_info['product_type']=='3'):?>
- <div class="show-content clearfix" index-id="13">
- <input type="hidden" name="push_question_upgrade" value="<?php echo $set_info['push_question_upgrade']?>">
- <div class="fl">推送题升级<em index-id="13">?</em></div>
- <div class="fr show-btn"><span class="<?php if ($set_info['push_question_upgrade']=='1'){echo 'on' ;} else{echo 'off';}?>"></span></div>
- </div>
- <!-- <p style="color: #aaaaaa">(仅适用于三步个性化学习宝)</p>-->
- <?php endif;?>
- <?php if($set_info['product_type']=='2'):?>
- <div class="show-content clearfix">
- <input type="hidden" name="show_isp_wrong_answer" value="<?php echo $set_info['show_isp_wrong_answer']?>">
- <div class="fl">错题答案解析</div>
- <div class="fr show-btn"><span class="<?php if ($set_info['show_isp_wrong_answer']=='1'){echo 'on' ;} else{echo 'off';}?>"></span></div>
- </div>
- <!-- <p style="color: #aaaaaa">(仅适用于三步个性化学习宝)</p>-->
- <?php endif;?>
- <?php if($set_info['product_type']=='2' || $set_info['product_type']=='3'):?>
- <div class="show-content" index-id="6">
- <div class="clearfix">
- <div class="fl">版本选择</div>
- <!-- <div class="fr words-gray">请选择需要减少题量的学生</div>-->
- </div>
- <div class="set-top-kps clearfix">
- <div class="clearfix">
- <label class="">
- <input name="show_level" type="radio" value="0" <?php if($set_info['show_level'] == 0) echo 'checked'?>/>
- 个性化版(相同错题推送不同提分题)<em index-id="6">?</em>
- </label>
- </div>
- <div class="clearfix">
- <label class="">
- <input name="show_level" type="radio" value="1" <?php if($set_info['show_level'] == 1) echo 'checked'?>/>
- 分层版(相同错题推送相同提分题)<em index-id="6">?</em>
- </label>
- </div>
- <div class="clearfix">
- <label class="">
- <input name="show_level" type="radio" value="2" <?php if($set_info['show_level'] == 2) echo 'checked'?>/>
- 题组训练个性化学习宝(以薄弱知识点推题)<em index-id="11">?</em>
- </label>
- </div>
- </div>
- <!-- <p class="words-red">(目前只支持学困生使用)</p>-->
- </div>
- <div class="show-content level-rule <?php echo ($set_info['show_level'] == 1)?'':'div-hide';?>" index-id="16">
- <div class="clearfix">
- <div class="fl">分层规则</div>
- <!-- <div class="fr words-gray">请选择需要减少题量的学生</div>-->
- </div>
- <div class="set-top-kps clearfix">
- <div class="clearfix">
- <label class="">
- <input name="level_rule" type="radio" value="0" <?php if($set_info['level_rule'] == 0) echo 'checked'?>/>
- 第1题相同层次学生推送相同,第2题个性化
- </label>
- </div>
- <div class="clearfix">
- <label class="">
- <input name="level_rule" type="radio" value="1" <?php if($set_info['level_rule'] == 1) echo 'checked'?>/>
- 第1题全班学生推送相同,第2题个性化
- </label>
- </div>
- </div>
- <!-- <p class="words-red">(目前只支持学困生使用)</p>-->
- </div>
- <!-- <div class="show-content clearfix" index-id="6">-->
- <!-- <input type="hidden" name="show_level" value="--><?php //echo $set_info['show_level']?><!--">-->
- <!-- <div class="fl">提分题分层<em index-id="6">?</em></div>-->
- <!-- <div class="fr show-btn"><span class="--><?php //if ($set_info['show_level']=='1'){echo 'on' ;} else{echo 'off';}?><!--"></span></div>-->
- <!-- </div>-->
- <!---->
- <!-- <div class="show-content clearfix" index-id="11">-->
- <!-- <input type="hidden" name="show_top" value="--><?php //echo $set_info['show_top']?><!--">-->
- <!-- <div class="fl">题组训练个性化学习宝<em index-id="11">?</em></div>-->
- <!-- <div class="fr show-btn"><span class="--><?php //if ($set_info['show_top']=='1'){echo 'on' ;} else{echo 'off';}?><!--"></span></div>-->
- <!-- </div>-->
- <!-- <p style="color: #aaaaaa">(仅适用于尖子生和优秀生)</p>-->
- <?php endif;?>
- <?php if(in_array($set_info['product_type'],array(2,3))):?>
- <?php
- if(isset($set_info['show_top'])){
- $set_info['show_top'] = explode('|',$set_info['show_top']);
- }else{
- $set_info['show_top'] = array();
- }
- if(isset($set_info['top_kps'])){
- $set_info['top_kps'] = explode('|',$set_info['top_kps']);
- $_top_kps = array();
- foreach (array(1,2,3,4) as $v){
- if(isset($set_info['top_kps'][$v - 1])){
- $_top_kps[$v] = $set_info['top_kps'][$v - 1];
- }else{
- $_top_kps[$v] = 5;
- }
- }
- $set_info['top_kps'] = $_top_kps;
- }else{
- $set_info['top_kps'] = array(5,5,5,5);
- }
- ?>
- <div class="show-content <?php echo ($set_info['show_level'] == 2)?'':'div-hide';?>" index-id="10" id="showTopKps">
- <div class="clearfix">
- <div class="fl">题组训练个性化学习宝<em index-id="10">?</em></div>
- <!-- <div class="fr words-gray">请选择需要减少题量的学生</div>-->
- </div>
- <div class="set-top-kps clearfix">
- <input type="hidden" value="<?php echo implode('|',$set_info['top_kps']);?>" name="old_top_kps">
- <?php
- $topicGroup = array(
- array(
- 'name' => '尖子生:',
- 'level' => 1,
- ),
- array(
- 'name' => '优秀生:',
- 'level' => 2,
- ),
- array(
- 'name' => '中档生:',
- 'level' => 3,
- ),
- array(
- 'name' => '学困生:',
- 'level' => 4,
- ),
- );
- ?>
- <?php foreach ($topicGroup as $key => $value):?>
- <div class="clearfix">
- <label class="fl">
- <input class="show_top_input" type="checkbox" name="show_top[]" value="<?php echo $value['level'];?>" <?php if(in_array($value['level'],$set_info['show_top'])) echo 'checked'?> />
- <?php echo $value['name'];?>
- </label>
- <?php foreach (array(3,4,5) as $v):?>
- <label class="fl"><input name="top_kps_<?php echo $value['level'];?>" type="radio" value="<?php echo $v;?>" <?php if(isset($set_info['top_kps'][$value['level']]) && $set_info['top_kps'][$value['level']] == $v) echo 'checked'?> <?php if(!in_array($value['level'],$set_info['show_top'])) echo 'disabled'?>/><?php echo $v;?>个</label>
- <?php endforeach;?>
- </div>
- <?php endforeach;?>
- </div>
- <!-- <p class="words-red">(目前只支持学困生使用)</p>-->
- </div>
- <?php endif;?>
- <?php if(in_array($set_info['product_type'],array(1,2,3))):?>
- <div class="show-content <?php echo ( in_array($set_info['show_level'],array(0,1)) || $set_info['product_type'] == 1)?'':'div-hide';?>" index-id="7" id="showTz">
- <div class="clearfix">
- <div class="fl">拓展训练题<em index-id="7">?</em></div>
- <div class="fr words-gray">请从下方选择需要使用的学生</div>
- </div>
- <div class="set-user clearfix">
- <label class="fl"><input type="checkbox" name="st_tuozhan[]" value="1" <?php if(in_array(1,explode('|',$set_info['st_tuozhan']))) echo 'checked'?> />尖子生使用</label>
- <label class="fl"><input type="checkbox" name="st_tuozhan[]" value="2" <?php if(in_array(2,explode('|',$set_info['st_tuozhan']))) echo 'checked'?> />优秀生使用</label>
- <label class="fl"><input type="checkbox" name="st_tuozhan[]" value="3" <?php if(in_array(3,explode('|',$set_info['st_tuozhan']))) echo 'checked'?> />中档生使用</label>
- <label class="fl"><input type="checkbox" name="st_tuozhan[]" value="4" <?php if(in_array(4,explode('|',$set_info['st_tuozhan']))) echo 'checked'?>/>学困生使用</label>
- </div>
- </div>
- <?php endif;?>
- <div class="show-content <?php echo ( in_array($set_info['show_level'],array(0,1)) || $set_info['product_type'] == 1)?'':'div-hide';?>" index-id="8" id="wrongNum">
- <?php
- $st_wrong = explode('|',$set_info['st_wrong']);
- $select_option = array(0,3,4,5,6,7,8);
- ?>
- <div class="clearfix">
- <div class="fl">错题数量<em index-id="8">?</em></div>
- <div class="fr words-gray">请选择需要过滤难题的学生</div>
- </div>
- <div class="set-user clearfix">
- <div>
- <label class="">尖子生</label>
- <select name="st_wrong[]" >
- <?php foreach ($select_option as $item):?>
- <?php if($item == 0):?>
- <option <?php echo (isset($st_wrong[0]) && $st_wrong[0] == $item)?'selected="selected"':"";?> value="<?php echo $item;?>">全部做错的题</option>
- <?php else:?>
- <option <?php echo (isset($st_wrong[0]) && $st_wrong[0] == $item)?'selected="selected"':"";?> value="<?php echo $item;?>">最多<?php echo $item;?>道</option>
- <?php endif;?>
- <?php endforeach;?>
- </select>
- </div>
- <div>
- <label class="">优秀生</label>
- <select name="st_wrong[]" >
- <?php foreach ($select_option as $item):?>
- <?php if($item == 0):?>
- <option <?php echo (isset($st_wrong[1]) && $st_wrong[1] == $item)?'selected="selected"':"";?> value="<?php echo $item;?>">全部做错的题</option>
- <?php else:?>
- <option <?php echo (isset($st_wrong[1]) && $st_wrong[1] == $item)?'selected="selected"':"";?> value="<?php echo $item;?>">最多<?php echo $item;?>道</option>
- <?php endif;?>
- <?php endforeach;?>
- </select>
- </div>
- <div>
- <label class="">中档生</label>
- <select name="st_wrong[]" >
- <?php foreach ($select_option as $item):?>
- <?php if($item == 0):?>
- <option <?php echo (isset($st_wrong[2]) && $st_wrong[2] == $item)?'selected="selected"':"";?> value="<?php echo $item;?>">全部做错的题</option>
- <?php else:?>
- <option <?php echo (isset($st_wrong[2]) && $st_wrong[2] == $item)?'selected="selected"':"";?> value="<?php echo $item;?>">最多<?php echo $item;?>道</option>
- <?php endif;?>
- <?php endforeach;?>
- </select>
- </div>
- <div>
- <label class="">学困生</label>
- <select name="st_wrong[]" >
- <?php foreach ($select_option as $item):?>
- <?php if($item == 0):?>
- <option <?php echo (isset($st_wrong[3]) && $st_wrong[3] == $item)?'selected="selected"':"";?> value="<?php echo $item;?>">全部做错的题</option>
- <?php else:?>
- <option <?php echo (isset($st_wrong[3]) && $st_wrong[3] == $item)?'selected="selected"':"";?> value="<?php echo $item;?>">最多<?php echo $item;?>道</option>
- <?php endif;?>
- <?php endforeach;?>
- </select>
- </div>
- </div>
- <p class="words-red">(过滤后,则学生的错题本只收录中档和基础题)</p>
- </div>
- <?php if($set_info['product_type']=='2' || $set_info['product_type']=='3'):?>
- <div class="show-content <?php echo ( in_array($set_info['show_level'],array(0,1)) || $set_info['product_type'] == 1)?'':'div-hide';?>" index-id="9" id="showJs">
- <div class="clearfix">
- <div class="fl">减少提分题<em index-id="9">?</em></div>
- <div class="fr words-gray">请选择需要减少题量的学生</div>
- </div>
- <div class="set-user clearfix">
- <label class="fl"><input name="st_reduce[]" type="checkbox" value="1" <?php if(in_array(1,explode('|',$set_info['st_reduce']))) echo 'checked'?> />尖子生</label>
- <label class="fl"><input name="st_reduce[]" type="checkbox" value="2" <?php if(in_array(2,explode('|',$set_info['st_reduce']))) echo 'checked'?> />优秀生</label>
- <label class="fl"><input name="st_reduce[]" type="checkbox" value="3" <?php if(in_array(3,explode('|',$set_info['st_reduce']))) echo 'checked'?> />中档生</label>
- <label class="fl"><input name="st_reduce[]" type="checkbox" value="4" <?php if(in_array(4,explode('|',$set_info['st_reduce']))) echo 'checked'?> />学困生</label>
- </div>
- <!-- <p class="words-red">(目前只支持学困生使用)</p>-->
- </div>
- <?php endif;?>
- <?php else: ?>
- <div class="show-content <?php echo ( in_array($set_info['show_level'],array(0,1)) || $set_info['product_type'] == 1)?'':'div-hide';?>" index-id="8" id="wrongNum">
- <?php
- $st_wrong = explode('|',$set_info['st_wrong']);
- $value['0']='';
- $value['1']='';
- if($st_wrong && $st_wrong[0]==0){
- $value['0']='selected';
- }else{
- $value['1']='selected';
- }
- ?>
- <div class="clearfix">
- <div class="fl">错题数量<em index-id="8">?</em></div>
- <div class="fr words-gray"></div>
- </div>
- <div class="set-user clearfix">
- <div>
- <select name="st_wrong" >
- <option value="0" <?php echo $value[0] ?>>默认数量</option>
- <option value="1" <?php echo $value[1] ?>>全部错题</option>
- </select>
- </div>
- </div>
- </div>
- <?php endif;?>
- </form>
- <div class="layer-btn" style="margin-top: 25px;float: left">
- <a href="#" onclick="edit()">保存</a>
- </div>
- <!-- 预览界面开始 -->
- <div class="product-preview">
- <div class="tab-track show-1">
- <!-- 成长轨迹 -->
- <h3 class="clearfix">示意图 <em class="close-tab fr">×</em></h3>
- <div>
- <img src="/images/productset/01.jpg">
- </div>
- <h3 class="introduce">简介</h3>
- <div class="introduce-content">
- <p>
- 成长轨迹包括“考试排名变化趋势图”和“考试成绩变化趋势图”两部分。统计本学期最近最多15场考试的情况,从排名和得分率两个角度去反映学生的变化情况和发展趋势。
- </p>
- <div class="clearfix">
- <h4>1、本学期考试排名变化趋势图</h4>
- <div>横坐标表示考试时间,纵坐标表示本次考试学生的班级排名。</div>
- </div>
- <div class="clearfix">
- <h4>2、本学期考试成绩变化趋势图</h4>
- <div>该图反映历次考试得分率的变化情况(得分率=得分/满分)。横坐标分别表示考试的个人得分/总分,以及考试日期。纵坐标表示考试的得分率。</div>
- </div>
- </div>
- </div>
- <div class="analysis show-2">
- <!-- 知识点掌握分析 -->
- <h3 class="clearfix">示意图 <em class="close-tab fr">×</em></h3>
- <div>
- <img src="/images/productset/02.png">
- </div>
- <div>
- <img src="/images/productset/02-2.png" >
- </div>
- <h3 class="introduce">简介</h3>
- <div class="introduce-content">
- <p>知识点掌握分析包括“优势知识点概览”、“优势知识点超越人数比例”、“失分知识点掌握情况对比图“三部分。</p>
- <div class="clearfix">
- <h4 class="font-bold">1、优势知识点概览</h4>
- <div>该图反映在本次考试中学生的优势知识点。优势知识点根据得分率差这个指标产生,Z=个人得分率-班级得分率,Z值越大说明学生在该知识点优势越大。<br>另外,有些学生的优势知识点得分率比班级平均得分率低属于正常现象。因为与其他知识点相比,学生在这个知识点上的得分率与班级平均得分率相比差距更小,因此也属于学生的优势知识点。</div>
- </div>
- <div class="clearfix">
- <h4 class="font-bold">2、优势知识点超越人数比例</h4>
- <div>打败人数比例=知识点得分率比本人低的学生人数/班级考试总人数。</div>
- </div>
- <div class="clearfix">
- <h4 class="font-bold">3、失分知识点掌握情况对比图</h4>
- <div>该图显示学生在本次考试中丢分的知识点。黑色表示个人得分率,灰色表示班级平级得分率。</div>
- </div>
- </div>
- </div>
- <div class="prototype show-3">
- <!-- 错题原型 -->
- <h3 class="clearfix">示意图 <em class="close-tab fr">×</em></h3>
- <div>
- <img src="/images/productset/03.png" >
- </div>
- <h3 class="introduce">简介</h3>
- <div class="introduce-content">
- <p>错题原型记录学生的作答笔迹,省去学生手工整理试卷的麻烦。复习阶段,学生可通过查看以前的解答步骤进行对照、反思,有利于学生从错题中总结自身的解题误区,从而实现知识点掌握水平的突破。<em class="words-hot">建议所有的学生保留错题原型。</em></p>
- </div>
- </div>
- <div class="reason show-4">
- <!-- 错因分析 -->
- <h3 class="clearfix">示意图 <em class="close-tab fr">×</em></h3>
- <div>
- <img src="/images/productset/04.png" >
- </div>
- <h3 class="introduce">简介</h3>
- <div class="introduce-content">
- <p>错因分析列举了7种常见失分原因供学生自我总结,与错题原型搭配使用。</p>
- </div>
- </div>
- <div class="direct show-5">
- 名师指导
- <h3 class="clearfix">示意图 <em class="close-tab fr">×</em></h3>
- <div>
- <img src="/images/productset/05.png" >
- </div>
- <h3 class="introduce">简介</h3>
- <div class="introduce-content">
- <p>名师指导收录的是全国各地名校名师,针对当前考题提供的经典解题思路。首先抓住问题的关键,指出所考察的知识点。 第二, 分析已知条件。 第三, 寻找解决问题的突破口。建议所有的学生保留名师指导。</p>
- </div>
- </div>
- <div class="expand show-11">
- <!-- 题组训练个性化学习宝 -->
- <h3 class="clearfix">示意图 <em class="close-tab fr">×</em></h3>
- <div>
- <img src="/images/productset/11.jpg" >
- </div>
- <h3 class="introduce">简介</h3>
- <div class="introduce-content">
- <h4 class="font-bold">一、什么是题组训练个性化学习宝?</h4>
- <p>个性化学习宝提供两种推题方式,一种是根据错题推题,另一种是根据知识点推题。题组训练个性化学习宝是按知识点来推送题。</p>
- <h4 class="font-bold">二、推送规则是什么?</h4>
- <p>
- 从本次考试所涉及的知识点中取学生的薄弱知识点和班级典型薄弱知识点,保证总共不超过5个薄弱知识点。每个知识点分两层共推送6道题:
- <br/>第一层为提升训练,共3道题,推送中档偏难的题;<br/>第二层为拓展训练,共3道题,推送难或超难的题;
- <br/><span style="color: #aaaaaa">(若知识点≦3个,则每个知识点推送10道题)</span>
- </p>
- <h4 class="font-bold">三、哪些学生可以使用题组训练个性化学习宝?</h4>
- <!-- <p>目前只针对班上的尖子生和优秀生</p>-->
- <div class="student-words">学生层次划分标准</div>
- <table class="students-dis">
- <thead>
- <tr>
- <td>学生层次</td>
- <td>划分标准(最近8次考试)</td>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>尖子生</td>
- <td>平均得分率≧90%</td>
- </tr>
- <tr>
- <td>优秀生</td>
- <td>80%≦平均得分率<90%</td>
- </tr>
- <tr>
- <td>中档生</td>
- <td>60%≦平均得分率<80%</td>
- </tr>
- <tr>
- <td>学困生</td>
- <td>平均得分率<60%</td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <div class="expand show-7">
- <!-- 拓展训练题 -->
- <h3 class="clearfix">示意图 <em class="close-tab fr">×</em></h3>
- <div>
- <img src="/images/productset/06.png" >
- </div>
- <h3 class="introduce">简介</h3>
- <div class="introduce-content">
- <h4 class="font-bold">一、错题本包含哪些内容?</h4>
- <p>一般情况,错题本收录本场考试学生自己的全部错题,按照试卷中的对应题号依次排列。考满分的同学没有错题怎么办?尖子生和优秀生错题很少怎么办?为了更全面发挥错题本的效能,校本课程平台推出了拓展训练题。拓展训练题既不是学生做错的题,也不是试卷上考的题,是为表现优异的学生专门挑选系统额外给予拓展训练题;</p>
- <h4 class="font-bold">二、哪些学生可以获得拓展训练题?</h4>
- <div class="clearfix">
- <span class="fl sort-num">第1类:</span>
- <p>只要是考满分的同学(错题本没有错题),可以提供3道拓展训练题给予学生练习</p>
- </div>
- <div class="clearfix">
- <span class="fl sort-num">第2类:</span>
- <p>尖子生和优秀生(即100分的卷子每次都能考80分以上)<br/>错题本:除了收录个人的全部错题,额外补充0~3道拓展训练题,但总量不超过8道<br/>例如,小明是个学霸,错题有2道,那么补充3道拓展训练,小明最终的错题本是5道题<br/>假如小明的错题有6道,那么只能补充2道拓展训练,因为总量不能超过8道</p>
- </div>
- <div class="clearfix">
- <span class="fl sort-num">第3类:</span>
- <p>中档生和学困生(偶尔有1次考的很好,错题少于3道)<br/>错题本:除了收录个人的全部错题,额外补充1~2道拓展训练题,使错题本至少有3道题</p>
- </div>
- <div class="student-words">学生层次划分标准</div>
- <table class="students-dis">
- <thead>
- <tr>
- <td>学生层次</td>
- <td>划分标准(最近8次考试)</td>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>尖子生</td>
- <td>平均得分率≧90%</td>
- </tr>
- <tr>
- <td>优秀生</td>
- <td>80%≦平均得分率<90%</td>
- </tr>
- <tr>
- <td>中档生</td>
- <td>60%≦平均得分率<80%</td>
- </tr>
- <tr>
- <td>学困生</td>
- <td>平均得分率<60%</td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <div class="expand show-7-2">
- <!-- 拓展训练题 -->
- <h3 class="clearfix">示意图 <em class="close-tab fr">×</em></h3>
- <div>
- <img src="/images/productset/09.png" >
- </div>
- <h3 class="introduce">简介</h3>
- <div class="introduce-content">
- <h4 class="font-bold">一、“1+1”拓展训练</h4>
- <p>对于成绩好,“吃不饱”的学生,提供【拓展训练题】,每道拓展训练题再搭配【提分训练题】,这就是提分“1+1”</p>
- <h4 class="font-bold">二、哪些学生可以获得拓展训练题?</h4>
- <div class="clearfix">
- <span class="fl sort-num">第1类:</span>
- <p>考满分的同学,错题本没有错题,可以提供3道拓展训练题给予学生练习</p>
- </div>
- <div class="clearfix">
- <span class="fl sort-num">第2类:</span>
- <p>尖子生和优秀生(即100分的卷子每次都能考80分以上)<br/>错题本:除了收录个人的全部错题,额外补充0~3道拓展训练题,但总量不超过8道<br/>例如,小明是个学霸,错题有2道,那么补充3道拓展训练,小明最终的错题本是5道题<br/>假如小明的错题有6道,那么只能补充2道拓展训练,因为总量不能超过8道</p>
- </div>
- <div class="clearfix">
- <span class="fl sort-num">第3类:</span>
- <p>中档生和学困生(偶尔有1次考的很好,错题少于3道)<br/>错题本:除了收录个人的全部错题,额外补充1~2道拓展训练题,使错题本至少有3道题</p>
- </div>
- </div>
- </div>
- <div class="reduce show-8">
- <!-- 减少提分题 -->
- <h3 class="clearfix">示意图 <em class="close-tab fr">×</em></h3>
- <div>
- <img src="/images/productset/07.png" >
- </div>
- <h3 class="introduce">简介</h3>
- <div class="introduce-content">
- <h4 class="font-bold">一、怎么设置错题数量?</h4>
- <p>提供两种方式来控制学生的错题数量,规则如下</p>
- <table class="students-dis">
- <thead>
- <tr>
- <td>选项</td>
- <td>说明</td>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>全部做错的题</td>
- <td>错题本、个性化学习宝将显示学生个人的全部错题</td>
- </tr>
- <tr>
- <td>最多X道</td>
- <td>从学生的全部个人错题中,按照难度由易到难取前X道,显示在错题本、个性化学习宝的错题整理中</td>
- </tr>
- </tbody>
- </table>
- <p class="words-red">注意:错题数量统一在当前入口设置,设置后,错题本、个性化学习方案、个性化学习宝的错题数量全部按设置数量生成。</p>
- </div>
- </div>
- <div class="layered show-6">
- <!-- 提分题分层 -->
- <h3 class="clearfix">示意图 <em class="close-tab fr">×</em></h3>
- <div>
- <img src="/images/productset/08.png" >
- </div>
- <h3 class="introduce">简介</h3>
- <div class="introduce-content">
- <h4 class="font-bold">一、提分训练是什么?</h4>
- <p>根据本场考试学生的错题,推送与错题相似的练习题。</p>
- <h4 class="font-bold">二、什么是提分题的分层?</h4>
- <p>校本课程平台大数据分析系统根据学生最近8场考试的成绩,划分学生的能力层次,为学生提供个性化的搭配,我们称为个性化版本,是个性化学习宝的默认版本。</p>
- <div class="student-words font-bold">个性化版</div>
- <table class="students-dis">
- <thead>
- <tr>
- <td>学生层次</td>
- <td>划分标准(最近8次考试)</td>
- <td>推送题的题量配置</td>
- <td>推送题的难度配置</td>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>尖子生</td>
- <td>平均得分率≧90%</td>
- <td>错题全部1配2</td>
- <td>第1题与错题难度相同,第2题比错题难一个等级</td>
- </tr>
- <tr>
- <td>优秀生</td>
- <td>80%≦平均得分率<90%</td>
- <td>小题1配2,大题1配1</td>
- <td>小题同上,大题只推送1道比错题难一个等级的</td>
- </tr>
- <tr>
- <td>中档生</td>
- <td>60%≦平均得分率<80%</td>
- <td>小题1配2,大题1配1</td>
- <td>小题同上,大题只推送1道与错题难度相同的题</td>
- </tr>
- <tr>
- <td>学困生</td>
- <td>平均得分率<60%</td>
- <td>小题1配2,大题1配1</td>
- <td>第1题比错题难度低一个等级,第2题与错题难度相同</td>
- </tr>
- </tbody>
- </table>
- <p class="font-bold">个性化版要求尽量为不同学生推送不同的试题,特点是最大限度的个性化,适合于<em class="words-hot">学生自主练习</em></p>
- <div class="student-words font-bold">分层版</div>
- <p>分层规则1(第1题相同层次学生推送相同,第2题个性化)</p>
- <table class="students-dis">
- <thead>
- <tr>
- <td>学生层次</td>
- <td>划分标准</td>
- <td>推送题题量与难度配置</td>
- <td>分层</td>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>尖子生</td>
- <td>同上</td>
- <td>同上</td>
- <td>第1题所有尖子生推送相同的题,第2题推送不同的题</td>
- </tr>
- <tr>
- <td>优秀生</td>
- <td>同上</td>
- <td>同上</td>
- <td>小题第1题及大题所有优秀生推送相同题,小题第2题推送不同的题</td>
- </tr>
- <tr>
- <td>中档生</td>
- <td>同上</td>
- <td>同上</td>
- <td>小题第1题及大题所有中档生推送相同题,小题第2题推送不同的题</td>
- </tr>
- <tr>
- <td>学困生</td>
- <td>同上</td>
- <td>同上</td>
- <td>小题第1题及大题所有学困生推送相同题,小题第2题推送不同的题</td>
- </tr>
- </tbody>
- </table>
- <p>分层规则2(第1题全班学生推送相同,第2题个性化)</p>
- <table class="students-dis">
- <thead>
- <tr>
- <td>学生层次</td>
- <td>划分标准</td>
- <td>推送题题量与难度配置</td>
- <td>分层</td>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>全班学生</td>
- <td>--</td>
- <td>各层次学生推题数量同上</td>
- <td>第1题全班学生推送相同的题,若有第2题则推送不同的题</td>
- </tr>
- </tbody>
- </table>
- <p class="font-bold">分层版要求同一层次的学生至少推送1道相同的题,特点是老师能针对这1道相同的题进行备课、组织讲评,适合于<em class="words-hot">将个性化学习宝应用于课堂教学</em></p>
- </div>
- </div>
- <div class="reduce show-9">
- <!-- 减少提分题 -->
- <h3 class="clearfix">示意图 <em class="close-tab fr">×</em></h3>
- <div>
- <img src="/images/productset/10.png" >
- </div>
- <h3 class="introduce">简介</h3>
- <div class="introduce-content">
- <h4 class="font-bold">一、减少提分题</h4>
- <p>针对尖子生、优秀生和中等生,为了应对部分学校学生学业负担过重,学生推送题做不完的现状,增加每道题只配1道提分训练题的设置。</p>
- <p>为了解决经常考试不及格的学生(学困生),错题多,提分题也多,学生做不完的情况,系统会过滤掉难题,并且每道题只配1道提分训练题。</p>
- <div class="student-words">学生层次划分标准</div>
- <table class="students-dis">
- <thead>
- <tr>
- <td>学生层次</td>
- <td>划分标准(最近8次考试)</td>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>尖子生</td>
- <td>平均得分率≧90%</td>
- </tr>
- <tr>
- <td>优秀生</td>
- <td>80%≦平均得分率<90%</td>
- </tr>
- <tr>
- <td>中档生</td>
- <td>60%≦平均得分率<80%</td>
- </tr>
- <tr>
- <td>学困生</td>
- <td>平均得分率<60%</td>
- </tr>
- </tbody>
- </table>
- <p class="words-red">注意,学困生和其他三个选项设置规则的不同之处在于会先过滤掉难题,再减少题量。用户可以同时选择多个选项设置。</p>
- </div>
- </div>
- <div class="reduce show-12">
- <!-- 减少提分题 -->
- <h3 class="clearfix">示意图 <em class="close-tab fr">×</em></h3>
- <div>
- <img src="/images/productset/12.png" >
- </div>
- <h3 class="introduce">简介</h3>
- <div class="introduce-content">
- <p>由于是个性化学习宝,重点在提分题的训练上,所以提供了方便学生查看错题答案解析的设置项。设置后,可以直接查看到错题以及错题答案与解析。让学生重点放在拓展训练上。建议本班优秀生和尖子生超过70%的可以打开该设置项。
- </p>
- </div>
- </div>
- <div class="reduce show-10">
- <!-- 知识点数量 -->
- <h3 class="clearfix">示意图 <em class="close-tab fr">×</em></h3>
- <h3 class="introduce">简介</h3>
- <div class="introduce-content">
- <p>
- 目前默认的薄弱点的个数为5个,对于不同等级的学生,所需要掌握
- 的薄弱点个数也不一致,个性化学习宝针对不同学校、不同班级的所有学生,
- 系统根据薄弱点个数,来使学生更专注于夯实基础,弥补漏洞。
- </p>
- <div class="student-words">学生层次划分标准</div>
- <table class="students-dis">
- <thead>
- <tr>
- <td>学生层次</td>
- <td>划分标准(最近8次考试)</td>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>尖子生</td>
- <td>平均得分率≧90%</td>
- </tr>
- <tr>
- <td>优秀生</td>
- <td>80%≦平均得分率<90%</td>
- </tr>
- <tr>
- <td>中档生</td>
- <td>60%≦平均得分率<80%</td>
- </tr>
- <tr>
- <td>学困生</td>
- <td>平均得分率<60%</td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <div class="all-preview">
- <h3 class="clearfix">示意图 <em class="close-tab fr">×</em></h3>
- <img src="/images/productset/00.png">
- <div>
- <img src="/images/productset/01.jpg" class="img-1" style="display: none">
- <img src="/images/productset/02.png" class="img-2" style="display: none">
- <img src="/images/productset/02-2.png" class="img-2" style="display: none">
- <?php if ($set_info['product_type']=='1' || $set_info['product_type']=='3'):?>
- <img src="/images/productset/06.png" class="img-7" style="display: none">
- <?php endif;?>
- <?php if ($set_info['product_type']=='2' || $set_info['product_type']=='3'):?>
- <img src="/images/productset/11.jpg" class="img-11" style="display: none">
- <?php endif;?>
- <?php if($set_info['product_type']=='2'):?>
- <img src="/images/productset/09.png" class="img-7-2" style="display: none">
- <?php endif;?>
- <img src="/images/productset/03.png" class="img-3" style="display: none">
- <img src="/images/productset/04.png" class="img-4" style="display: none">
- <!-- <img src="/images/productset/05.png" class="img-5" style="display: none">-->
- <img src="/images/productset/12-1.jpg" class="img-12" style="display: none">
- <img src="/images/productset/08.png" class="img-6" style="display: none">
- </div>
- </div>
- </div>
- <!-- 预览界面结束 -->
- </div>
- <div class="fl product-class">
- <div class="setting-title clearfix">
- <span class="fl">使用班级</span>
- <em class="fr add-class">添加班级</em>
- <label class="fr chk-grade-all"><input type="checkbox">全选</label>
- </div>
- <div class="class-box">
- <dl>
- <dt class="grade-name">高一</dt>
- <dd class="clearfix">
- <?php if (isset($classR_list[1])):?>
- <?php foreach ($classR_list[1] as $kk=>$v):?>
- <label class="fl class-name">
- <?php echo $v['class_name']?>
- <em class="fr" class-id="<?php echo $v['class_id']?>">×</em>
- </label>
- <?php endforeach;?>
- <?php endif;?>
- </dd>
- </dl>
- <dl>
- <dt class="grade-name">高二</dt>
- <dd class="clearfix">
- <?php if (isset($classR_list[2])):?>
- <?php foreach ($classR_list[2] as $kk=>$v):?>
- <label class="fl class-name">
- <?php echo $v['class_name']?>
- <em class="fr" class-id="<?php echo $v['class_id']?>">×</em>
- </label>
- <?php endforeach;?>
- <?php endif;?>
- </dd>
- </dl>
- <dl>
- <dt class="grade-name">高三</dt>
- <dd class="clearfix">
- <?php if (isset($classR_list[3])):?>
- <?php foreach ($classR_list[3] as $kk=>$v):?>
- <label class="fl class-name">
- <?php echo $v['class_name']?>
- <em class="fr" class-id="<?php echo $v['class_id']?>">×</em>
- </label>
- <?php endforeach;?>
- <?php endif;?>
- </dd>
- </dl>
- </div>
- <form action="" name="class-form" id="class-form">
- <input type="hidden" name="ps_id2" value="<?php echo $set_info['ps_id']?>">
- <input type="hidden" name="setType" value="<?php echo $set_info['product_type']?>">
- <input type="hidden" name="subject_id" value="<?php echo $subject_id?>">
- <div class="add-class-box">
- <dl>
- <dt class="grade-name clearfix">高一<label class="fr chk-class-all"><input type="checkbox">全选</label></dt>
- <dd class="clearfix">
- <?php if (isset($class_list[1])):?>
- <?php foreach ($class_list[1] as $kk=>$v):?>
- <label class="fl chk-class"><input name="class_id[]" type="checkbox" value="<?php echo $v['class_id']?>"><?php echo $v['class_name']?></label>
- <?php endforeach;?>
- <?php endif;?>
- </dd>
- </dl>
- <dl>
- <dt class="grade-name clearfix">高二<label class="fr chk-class-all"><input type="checkbox">全选</label></dt>
- <dd class="clearfix">
- <?php if (isset($class_list[2])):?>
- <?php foreach ($class_list[2] as $kk=>$v):?>
- <label class="fl chk-class"><input name="class_id[]" type="checkbox" value="<?php echo $v['class_id']?>"><?php echo $v['class_name']?></label>
- <?php endforeach;?>
- <?php endif;?>
- </dd>
- </dl>
- <dl>
- <dt class="grade-name clearfix">高三<label class="fr chk-class-all"><input type="checkbox">全选</label></dt>
- <dd class="clearfix">
- <?php if (isset($class_list[3])):?>
- <?php foreach ($class_list[3] as $kk=>$v):?>
- <label class="fl chk-class"><input name="class_id[]" type="checkbox" value="<?php echo $v['class_id']?>"><?php echo $v['class_name']?></label>
- <?php endforeach;?>
- <?php endif;?>
- </dd>
- </dl>
- <div class="grade-btn layer-btn">
- <a href="javascript:;" onclick="add_class()" id="add-class">确定</a>
- <a href="javascript:;" class="cancel">取消</a>
- </div>
- </div>
- </form>
- </div>
- </div>
- <!-- 新增版本悬浮窗口 -->
- <ul class="product-edit">
- <li class="add-version">新增版本</li>
- <li class="rename-version">重命名</li>
- <li class="delete-version">删除</li>
- </ul>
- <!-- 新增版本弹层 -->
- <div class="layer layer-rename">
- <div class="layer-shoadow"></div>
- <div class="layer-content">
- <div class="layer-title clearfix">新增版本<em class="fr close">×</em></div>
- <div class="new-name">
- 名称:<input type="text" placeholder="请输入10个以内汉字" name="ver_name">
- </div>
- <div class="layer-btn rename-btn">
- <button href="javascript:;" class="ok">确定</button>
- <input type="hidden" class="add_subject" name="add_subject" value="<?php echo $subject_id?>">
- <button href="javascript:;" class="close cancel">取消</button>
- </div>
- </div>
- </div>
- <!-- 删除版本弹层 -->
- <div class="layer layer-delete">
- <div class="layer-shoadow"></div>
- <div class="layer-content">
- <div class="layer-title clearfix">提示<em class="fr close">×</em></div>
- <div class="new-name words-red">无法删除!有班级在使用该配置的版本</div>
- </div>
- </div>
- <script src="/js/productset/jquery.min.js"></script>
- <script src="/js/layer/layer.js"></script>
- <script src="/js/productset/product-setting.js"></script>
- <script type="text/javascript">
- $(document).ready(function() {
- //初始化学科
- <?php if(isset(Yii::app()->params["subjectId"][$sub_id])):?>
- $('.has-sel').text('<?php echo Yii::app()->params["subjectId"][$sub_id];?>');
- <?php endif;?>
- $(".sel-opt,.sel-cons").mouseover(function () {
- $(".sel-cons").show();
- }).mouseout(function () {
- $(".sel-cons").hide();
- });
- $(".sc-lis2").click(function () {
- var sub_id = $(this).attr('val');
- var data = {
- subjectId: sub_id
- };
- $.post("<?php echo Yii::app()->createUrl('print/setSubjectId')?>", data, function (flags) {
- if (flags) {
- location.href = "<?php echo $this->createUrl('productset/index');?>";
- } else {
- alert('网络异常');
- }
- });
- $('.has-sel').text($(this).text());
- $(".sel-cons").hide();
- });
- });
- </script>
- <script>
- //编辑保存
- function edit(){
- var data = $('#set-data').serialize();
- $.ajax({
- type : 'post',
- url : '<?php echo $this->createUrl("productset/edit");?>',
- data :data,
- dataType : 'json',
- beforeSend : function () {
- $(".loading").show().find("p").html("正在保存");
- },
- success : function (data) {
- $(".loading").hide();
- if(data.status=='1'){
- layer.alert("保存成功", {icon: 6});
- }else{
- layer.alert("保存失败", {icon: 5});
- }
- },
- error:function () {
- $(".loading").hide();
- }
- });
- }
- function add_class() {
- var obj = $('input[name="class_id[]"]:checked');
- if(obj.length<=0){
- layer.alert("请选择至少一个班级", {icon: 5});
- return false;
- }
- var data = $('#class-form').serialize();
- $.ajax({
- type : 'post',
- url : '<?php echo $this->createUrl("productset/addClass");?>',
- data :data,
- dataType : 'json',
- beforeSend : function () {
- $(".loading").show().find("p").html("正在添加");
- },
- success : function (data) {
- if(data.status=='1'){
- layer.alert("添加成功", {icon: 6},function () {
- location.reload();
- });
- }else{
- $(".loading").hide();
- if(data.info!=undefined){
- layer.alert(data.info, {icon: 5});
- }else{
- layer.alert('添加失败', {icon: 5});
- }
- }
- },
- error : function () {
- $(".loading").hide();
- layer.alert("添加失败", {icon: 5});
- }
- });
- }
- $('#subjectId').change(function(){
- console.log($(this).val());
- window.location.href='<?php echo $this->createUrl("productset/index")?>?subjectId='+$(this).val();
- });
- </script>
- </body>
- </html>
|