tpl.html 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="renderer" content="webkit">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <title>SmartShop Manage System</title>
  8. {load href="__PUBLIC__/base/base.css,__PUBLIC__/admin/style.css,__PUBLIC__/js/do.js,__PUBLIC__/js/package.js,__PUBLIC__/admin/common.js" /}
  9. </head>
  10. <style type="text/css">
  11. ul.gallery{display: flex;flex-wrap:wrap;}
  12. ul.gallery li{height:100px;width:100px;border: 1px solid #DDDDDD;margin:3px;padding: 5px;line-height: 30px;overflow:hidden;text-align: center;}
  13. ul.gallery li:first-child {border-width:1px;}
  14. ul.gallery li a{display:block;text-align: center;padding-top:15px;height: 90px;}
  15. ul.gallery li i{font-size:50px;}
  16. ul.gallery li img{width:88px;}
  17. ul.gallery li:hover,ul.gallery li.current{padding: 4px; border: 2px dotted #7CA3C1;background-color:transparent;}
  18. </style>
  19. <body>
  20. <div id="main">
  21. <ul class="gallery fn-clear">
  22. {volist name="$lists.backpath" id="vo"}<li><a href="{:url('system/admin.common/tpl',['path'=>$vo.path,'input'=>$input,'tab'=>1])}"><i class="iconfont icon-arrowleft"></i><br />{$vo.name}</a></li>{/volist}
  23. {volist name="$lists.folder" id="folder"}<li><a href="{:url('system/admin.common/tpl',['path'=>$folder.path,'input'=>$input,'tab'=>1])}"><i class="iconfont icon-wallet_icon"></i><br />{$folder.name} </a></li>{/volist}
  24. {volist name="$lists.file" id="file"}<li class="getfile" data-src="{$file[1]|substr=0,-5}"><img src="__PUBLIC__/admin/html.png"><br />{$file[1]}</li>{/volist}
  25. </ul>
  26. </div>
  27. <script type="text/javascript">
  28. Do('layer','upload','tab',function(){
  29. $('.tabs').Tabs({event:'click'});
  30. saveImage();
  31. })
  32. function saveImage(){
  33. var index = parent.layer.getFrameIndex(window.name);
  34. $('.getfile').click(function(){
  35. parent.layer.close(index);
  36. var imgpath = $(this).attr('data-src');
  37. parent.$("#iframe").contents().find("#{$input}").val(imgpath);
  38. });
  39. }
  40. </script>
  41. </body>
  42. </html>