123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- <link rel="stylesheet" href="/fonts/fpdf/iconfont.css"/>
- <link rel="stylesheet" href="/css/alert.css"/>
- <style>
- .mrv-3{
- margin: 10px 20px;
- }
- .nav-btns>a{
- display: inline-block;
- width: 120px;
- border: 1px solid #40c180;
- text-align: center;
- line-height: 30px;
- }
- .active{
- color: #fff;
- background-color: #40c180;
-
- }
- </style>
- <div class="main-content-inner">
- <!-- 导航栏开始-->
- <?php include(Yii::app()->basePath.'/views/layouts/view_production_navigation.php');?>
- <!-- 导航栏结束-->
- <div class="mrv-3">
- <!-- <div class="nav-btns">
- <a href="<?php // echo $this->createUrl("print/sub_index/type/third_isp");?>">课后指导</a><a href="<?php // echo $this->createUrl("print/mrv");?>">晨读词汇</a>
- </div>-->
- <h2>阶段复习</h2>
- <div>每月最后一周
- <select name="select-month" class="select-month">
- <option value="1"<?php echo $chooseMonth == 1?" selected=selected":'';?>>周一</option>
- <option value="2"<?php echo $chooseMonth == 2?" selected=selected":'';?>>周二</option>
- <option value="3"<?php echo $chooseMonth == 3?" selected=selected":'';?>>周三</option>
- <option value="4"<?php echo $chooseMonth == 4?" selected=selected":'';?>>周四</option>
- <option value="5"<?php echo $chooseMonth == 5?" selected=selected":'';?>>周五</option>
- <option value="6"<?php echo $chooseMonth == 6?" selected=selected":'';?>>周六</option>
- <option value="7"<?php echo $chooseMonth == 7?" selected=selected":'';?>>周日</option>
- </select>
- 自动生成
- </div>
- <div><button id="save-setting" style="margin-top: 10px;" active="true">保存设置</button><span style="color: red">(注意:学生至少需要参加1次考试,否则无法生成)</span></div>
- </div>
- </div>
- <script src="/js/jquery.ajaxfileupload.js"></script>
- <script type="text/javascript">
- $(document).ready(function () {
- $('#save-setting[active="true"]').on('click',function(event){
- var This = $(this);
- This.attr('active','false');
- var week = $('.select-month').val();
- if(week){
- $.ajax({
- url: "<?php echo $this->createUrl('print/ajaxSaveEnglishMonthMainly');?>",
- type: "POST",
- dataType: "json",
- data: {
- week:week
- },
- success: function (data) {
- if(data.status == 1){
- layer.msg('设置成功', {
- time: 2000,
- });
- setTimeout(function(){window.location.href = "<?php echo Yii::app()->createUrl('print/mainly_revision');?>";}, 2000);
- }else{
- layer.msg(data.error.join('</br>'));
- This.attr("active","true");
- }
- }
- });
- }else{
- This.attr('active','true');
- }
- });
-
- });
- </script>
|