123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- <div class="main-content-inner">
- <ul class="clearfix main-content-inner-ul">
- <li class="pull-left">
- <button onclick='location.href="<?php echo $this->createUrl("print/index",array('type'=>'wp'));?>"' 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("export/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("print/do_ruanyun_pdf");?>"' class="button button_normal button_group button_arrow button_active" data-button="red">下载PDF</button>
- <img src="/images/line.jpg" style="height:45px;" />
- </li>
- </ul>
- <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">
- <div class="col-xs-2">
- <div class="dataTables_filter" id="dynamic-table_filter" style="padding-top:15px">
- </div>
- </div>
- </div>
- <table id="dynamic-table" class="table table-striped table-bordered table-hover dataTable no-footer DTTT_selectable" style="font-size:12px">
- <thead>
- <th>学生名称</th>
- <th>是否已生成</th>
- <th>是否已下载</th>
- <th>下载功能</th>
- </tr>
- </thead>
- <tbody>
- <?php if(!empty($result)):foreach($result as $rt):?>
- <tr>
- <td><?php if(isset($student_names[$rt->student_id])){echo $student_names[$rt->student_id];}?></td>
- <td>
- <?php if($rt->is_isp_pdf == 1): ?>
- <span class="" style="font-size:12px">已生成</span>
- <?php else: ?>
- <span class="" >未生成</span>
- <?php endif; ?>
- </td>
- <td>
- <?php if($rt->is_two_isp_download == 1): ?>
- <span class="" style="font-size:12px">已下载</span>
- <?php else: ?>
- <span class="" >未下载</span>
- <?php endif; ?>
- </td>
- <td>
- <span class="label label-sm label-success download_pdf" style="font-size:12px;cursor: pointer;" student_id="<?php echo $rt->student_id?>" exam_id="<?php echo $_GET['eid']?>" do_url="<?php echo $rt->isp_pdf_path?>" >下载提方案</span>
- </td>
- </tr>
- <?php endforeach;else:?>
- <tr><td colspan="6">暂无数据!</td></tr>
- <?php endif;?>
- </tbody>
- </table>
- </div>
- <!-- PAGE CONTENT ENDS -->
- </div>
- </div>
- </div>
- </div>
- <script type="text/javascript">
- html = ""+
- '<div style="padding:20px 30px 0px 30px">'+
- '<div style="padding:8px 0;">请复制下方链接下载地址。</div>'+
- '<div id="downloadUrl" style="white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:455px;"></div>'+
- '<div class="row" style="margin:30px auto 0px auto;text-align:center"><button id="confirm" class="label-primary-s bth-s" style="padding:4px 12px;margin:5px 0 10px 15px;background:gray;border-color:gray;">关闭</button>'+
- '</div>'+
- '</div>'+
- "";
- function ccc(){
- layer.msg('敬请期待!', {
- time: 0,
- btn: ['确定', '取消'],
- yes: function(index){
- layer.close(index);
- return false;
- }
- });
- }
- $(function(){
- // 全选\反选
- $(".download_pdf").click(function(){
- // 判断是否有选中
- var student_id = $(this).attr('student_id');
- var exam_id = $(this).attr('exam_id');
- var do_url = $(this).attr('do_url');
- if (!do_url) {
- layer.msg('尚未下载地址');return false;
- }
- layer.msg('您确定下提分方案?', {
- time: 0,
- btn: ['确定', '取消'],
- yes: function(index){
- layer.close(index);
- // 更试卷打印时间
- $.post("<?php echo $this->createUrl('print/updatepaperdowntime');?>", {student_id: student_id, exam_id: exam_id} );
- layer.open({
- type: 1,
- area: ['550px', '220px'],
- title: "下载提分方案",
- content: html,
- success: function(index, layerObj){
- clearInterval(window.interval);
- jQuery("#downloadUrl").html('下载地址:<span style=""><input id="url" type="text" size="40" readonly value="'+do_url+'" /></span><button id="copy" class="label-primary-s bth-s" style="padding:4px 12px;margin:5px 0 10px 15px;">全选</button>')
- jQuery("#confirm, #cancel").on("click", function(){
- layer.close(layerObj);
- });
- jQuery("#copy").on("click", function(){
- jQuery("#url").select();
- });
- }
- });
- }
- });
- });
- })
- </script>
|