123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190 |
- <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 = '';
- var pwd = $("#pwd").val();
- if(pwd.length < 6 )
- {
- layer.msg('密码不能小于6位');
- return false;
- }
- 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">
- <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>
- <?php if(Yii::app()->session['coachInfo']['leader']==1){ ?>
- <li class="pull-left">
- <button onclick='location.href="<?php echo $this->createUrl("school/add");?>"' 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("classes/export");?>"' 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("school/add");*/?>"' class="button button_normal button_group button_arrow" data-button="red">学校管理</button>
- <img src="/images/line.jpg" style="height:45px;" />
- </li> -->
- </ul>
- <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/resetpwd');?>" 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_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>
- <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="form-group">
- <label class="control-label col-xs-12 col-sm-3 no-padding-right">设置密码:</label>
- <div class="col-xs-12 col-sm-9 mtCentent">
- <input type="password" name="pwd" id="pwd" class="col-xs-10 col-sm-3 addborder addheight marginLeftNo" placeholder="密码" />
- </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="form-group">
- <div class="control-label col-xs-3 col-sm-3">
- </div>
- </div>
- </form>
- <!-- PAGE CONTENT ENDS -->
- </div>
- </div>
- </div>
- </div>
- <script src="/js/xsgl.js"></script>
- <script>
- $(function(){
- $(".diy_select_list").click(function(){
- var grade = $("#grade").val();
- var html = '<li val="0">全班级</li>';
- if(grade>0){
- var data={
- grade:grade,
- semester_id:"<?php echo $semester_id?>"
- };
- $.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){
- html+='<li val="'+val.class_id+'">'+val.class_name+'</li>'
- });
- $('.diy_select_list1').html(html);
- }else
- {
- $('.diy_select_list1').html(html);
- }
- });
- }else
- {
- $('.diy_select_list1').html(html);
- }
- });
- });
- </script>
|