lizhen_gitee 8 hónapja
szülő
commit
836a3f5e7c

+ 1 - 0
application/admin/controller/Trainactive.php

@@ -159,6 +159,7 @@ class Trainactive extends Backend
         ];
         $this->assign('result',$result);
         //
+        $this->view->engine->layout('layout/dayin');
         return $this->view->fetch();
     }
 }

+ 13 - 0
application/admin/view/layout/dayin.html

@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+    <head>
+        {include file="common/meta" /}
+    </head>
+
+    <body class="inside-header inside-aside {:defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''} content" style="width: 749px;margin: 0 auto">
+
+        {__CONTENT__}
+
+        {include file="common/script" /}
+    </body>
+</html>

+ 2 - 12
application/admin/view/trainactive/showinfo.html

@@ -1,9 +1,4 @@
-<div class="panel panel-default panel-intro">
 
-    <div class="panel-body">
-        <div id="myTabContent" class="tab-content">
-            <div class="tab-pane fade active in">
-                <div class="widget-body no-padding">
                     <table class="table table-striped table-bordered table-hover table-nowrap" width="100%">
                         <tr>
                             <td></td>
@@ -85,7 +80,8 @@
                         <tr>
                             <td colspan="8">
                                 {volist name="$row.files_json" id="vo"}
-                                <span class="glyphicon glyphicon-save" aria-hidden="true"></span><a href="{$vo.url}" target="_blank">{$vo.filename}</a>&nbsp;&nbsp;&nbsp;
+                                <button class="glyphicon glyphicon-save" onclick="jump('{$vo.url}')" aria-hidden="true"></button>&nbsp;&nbsp;{$vo.filename}
+                                <br>
                                 {/volist}
                             </td>
                         </tr>
@@ -150,10 +146,4 @@
                         {/volist}
                     </table>
 
-                </div>
-            </div>
-
-        </div>
-    </div>
-</div>
 

+ 4 - 0
public/assets/js/backend/trainactive.js

@@ -184,3 +184,7 @@ $('#right').click(function(){
     $('#left_table').hide();
     $('#right_table').show();
 })
+function jump(url){
+    console.log(url);
+    window.location.href = url;
+}