Brak opisu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

filemanager_index.htm 7.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. {include file="header.htm" /}
  2. <body class="bodystyle" style="cursor: default; -moz-user-select: inherit;">
  3. <div id="append_parent"></div>
  4. <div id="ajaxwaitid"></div>
  5. <div class="page">
  6. <div class="flexigrid">
  7. <div class="hDiv">
  8. <div class="hDivBox">
  9. <table cellspacing="0" cellpadding="0" style="width: 100%">
  10. <thead>
  11. <tr>
  12. <th abbr="" axis="col3" class="">
  13. <div class="" style="padding-left:15px ">文件名</div>
  14. </th>
  15. <th abbr="" axis="col3" class="w200">
  16. <div class="tc">文件大小</div>
  17. </th>
  18. <th abbr="" axis="col6" class="w100">
  19. <div class="tc">更新时间</div>
  20. </th>
  21. <th axis="col1" class="w120">
  22. <div class="tc">操作</div>
  23. </th>
  24. </tr>
  25. </thead>
  26. </table>
  27. </div>
  28. </div>
  29. <div class="bDiv" style="height: auto;">
  30. <div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
  31. <table style="width: 100%">
  32. <tbody>
  33. {empty name="list"}
  34. <tr>
  35. <td class="no-data" align="center" axis="col0" colspan="50">
  36. <div class="no_row">
  37. <div class="no_pic"><img src="__SKIN__/images/null-data.png"></div>
  38. </div>
  39. </td>
  40. </tr>
  41. {else/}
  42. {foreach name="list" item="vo" key="k" }
  43. <tr>
  44. <td style="width: 100%">
  45. <div style="text-align: left; padding-left: 15px;">
  46. {if condition="in_array($vo['filetype'], array('dir','dir2'))"}
  47. <a href="{:weapp_url('Systemdoctor/Systemdoctor/filemanager_index', array('activepath'=>replace_path($vo.filepath)))}"><img src="__SKIN__/images/{$vo.icon}" border="0" width="16" height="16" align="absmiddle" class="flt_u">&nbsp;{$vo.filename}</a>
  48. {else /}
  49. {notempty name="$vo.icon"}
  50. <img class="flt_u" src="__SKIN__/images/{$vo.icon}" border="0" width="16" height="16" align="absmiddle" {if condition="!empty($vo.filepath) AND 'image' == $vo.filemine"}onmouseover="layer_tips=layer.tips('<img src=__ROOT_DIR__{$vo.filepath}?v={php}echo time();{/php} class=\'layer_tips_img\'>',this,{tips: [1, '#fff']});"{/if} onmouseout="layer.close(layer_tips);">
  51. {/notempty}
  52. &nbsp;
  53. {eq name="$vo['filemine']" value='image'}
  54. <a href="__ROOT_DIR__{$vo['filepath']}?v={php}echo time();{/php}" target="_blank">{$vo.filename}</a>
  55. {else /}
  56. <a href="{:weapp_url('Systemdoctor/Systemdoctor/filemanager_edit',array('filename'=>$vo['filename'], 'activepath'=>replace_path(dirname($vo['filepath']))))}">{$vo.filename}</a>
  57. {/eq}
  58. {/if}
  59. {$vo.intro}
  60. </div>
  61. </td>
  62. <td class="">
  63. <div class="w200 tc">
  64. {$vo.filesize|default=''}
  65. </div>
  66. </td>
  67. <td class="">
  68. <div class="w100 tc">
  69. {notempty name="$vo.filetime"}
  70. {$vo.filetime|date='Y-m-d',###}
  71. {/notempty}
  72. </div>
  73. </td>
  74. <td class="operation">
  75. <div class="w120 tc">
  76. {eq name="$vo['filemine']" value='image'}
  77. {if condition="in_array($vo['filetype'], $replaceImgOpArr)"}
  78. <a href="{:weapp_url('Systemdoctor/Systemdoctor/filemanager_replace_img',array('filename'=>$vo['filename'], 'activepath'=>replace_path(dirname($vo['filepath']))))}" class="btn blue">替换</a>
  79. {/if}
  80. {else /}
  81. {if condition="in_array($vo['filetype'], $editOpArr)"}
  82. <a href="{:weapp_url('Systemdoctor/Systemdoctor/filemanager_edit',array('filename'=>$vo['filename'], 'activepath'=>replace_path(dirname($vo['filepath']))))}" class="btn blue">编辑</a>
  83. {/if}
  84. {/eq}
  85. </div>
  86. </td>
  87. </tr>
  88. {/foreach}
  89. {/empty}
  90. </tbody>
  91. </table>
  92. </div>
  93. <div class="iDiv" style="display: none;"></div>
  94. </div>
  95. <div class="tDiv">
  96. <div class="tDiv2">
  97. <div class="fbutton">
  98. <a href="{:weapp_url('Systemdoctor/Systemdoctor/filemanager_newfile', array('activepath'=>replace_path($activepath)))}" class="layui-btn layui-btn-primary">
  99. <span class="red">新建文件</span>
  100. </a>
  101. </div>
  102. {/eq}
  103. <div class="fbuttonr" style=" margin-right: 15px; ">
  104. <div class="total">
  105. <h5>共有{$list|count}条数据</h5>
  106. </div>
  107. </div>
  108. </div>
  109. <div style="clear:both"></div>
  110. </div>
  111. <!--分页位置-->
  112. </div>
  113. </div>
  114. <form class="none" id="post_del" method="POST" action="">
  115. <input type="hidden" name="filename" value="">
  116. <input type="hidden" name="activepath" value="">
  117. </form>
  118. <script type="text/javascript">
  119. $(document).ready(function(){
  120. // 表格行点击选中切换
  121. $('#flexigrid > table>tbody >tr').click(function(){
  122. $(this).toggleClass('trSelected');
  123. });
  124. // 点击刷新数据
  125. $('.fa-refresh').click(function(){
  126. location.href = location.href;
  127. });
  128. });
  129. function delfilename(obj, formid) {
  130. layer.confirm('此操作不可恢复,确认删除?', {
  131. shade: layer_shade,
  132. area: ['480px', '190px'],
  133. move: false,
  134. title: '提示',
  135. btnAlign:'r',
  136. closeBtn: 3,
  137. btn: ['确定', '取消'] ,//按钮
  138. success: function () {
  139. $(".layui-layer-content").css('text-align', 'left');
  140. }
  141. }, function(){
  142. // 确定
  143. var form = $('#post_del');
  144. var filename = $(obj).attr('data-filename');
  145. var activepath = $(obj).attr('data-activepath');
  146. var url = $(obj).attr('data-url');
  147. $(form).find('input[name=filename]').val(filename);
  148. $(form).find('input[name=activepath]').val(activepath);
  149. $(form).attr('action', url);
  150. layer_loading('正在处理');
  151. $('#post_del').submit();
  152. }, function(index){
  153. layer.close(index);
  154. return false;// 取消
  155. }
  156. );
  157. }
  158. </script>
  159. {include file="footer.htm" /}