123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- <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;}
- .diy_select{height:30px;width:230px;position:relative;font-size:12px;background:#fff;color:#000;float:left;border-radius:4px;}
- .diy_select:active{box-shadow:0 0 5px #66afe9;border:1px solid #66afe9}
- .diy_select_btn,.diy_select_txt{float:left;height:100%;line-height:30px}
- .diy_select,.diy_select_list{border:1px solid #ccc;}
- .diy_select_txt{width:180px;}
- .diy_select_txt,.diy_select_list li{text-indent:10px;overflow:hidden}
- .diy_select_btn{width:28px;background:url(/images/arrBottom.png) no-repeat center}
- .diy_select_list{position:absolute;top:27px;left:0px;z-index:88888;border-top:none;width:100%;display:none;_top:29px;background: #fff;max-height:300px;overflow-y:scroll;}
- .diy_select_list li{list-style:none;height:30px;line-height:30px;cursor:default;_background:#fff;/**padding-left: 10px;**/}
- .diy_select_list li.focus{background:#3399FF;color:#fff}
- .diy_select label{position:absolute;left:180px;width:160px;top:4px;font-size:15px;}
- </style>
- <script src="/js/jquery.validate.min.js"></script>
- <script type="text/javascript">
- jQuery(document).ready(function(){
- jQuery("#schoolSubmit").click(function(){
- var semester_id = $("#semester_id").val();
- var semester_name = $(".diy_select_txt").text();
- if(semester_id>0)
- {
- var data={
- semester_id:semester_id
- };
- $.post("<?php echo Yii::app()->createUrl('export/s_download')?>",data,function(flags){
- var m = JSON.parse(flags);
- if(m.status==-1)
- {
- alert('请选择学期');return false;
- }
- if(m.status==-2)
- {
- alert('学期不存在');return false;
- }
- if(m.status==0)
- {
- alert('文件不存在');return false;
- }
- if(m.status==1)
- {
- location.href = m.file_path;return false;
- }
- });
- }else
- {
- alert('请选择学期');return false ;
- }
- });
- });
- </script>
- <div class="main-content-inner">
- <!-- 导航栏开始-->
- <?php include(Yii::app()->basePath.'/views/layouts/view_production_navigation.php');?>
- <!-- 导航栏结束-->
- <div class="page-content" style="margin-top:15px;">
- <div class="row" style="margin:0px;">
- <div class="col-xs-12">
- <!-- PAGE CONTENT BEGINS -->
- <div class="form-horizontal" >
- <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'>
- <input type='hidden' id="semester_id" name="semester_id" class='diy_select_input' value="0" />
- <div class='diy_select_txt'>选择学期</div>
- <div class='diy_select_btn'></div>
- <ul class='diy_select_list'>
- <?php if($semester){
- foreach($semester as $v)
- {
- ?>
- <li val="<?php echo $v->semester_id?>"><?php echo $v->semester_name?></li>
- <?php
- }
- }?>
- </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>
- <!-- PAGE CONTENT ENDS -->
- </div>
- </div>
- </div>
- </div>
- <script src="/js/xsgl.js"></script>
|