check_file.tpl.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <?php defined('IN_ADMIN') or exit('No permission resources.');?>
  2. <?php include $this->admin_tpl('header', 'admin');?>
  3. <div class="pad-lr-10">
  4. <div class="table-list">
  5. <div class="explain-col">
  6. <?php echo L('check_file_notice');?>
  7. </div>
  8. <div class="bk15"></div>
  9. <table width="100%" cellspacing="0">
  10. <thead>
  11. <tr>
  12. <th align="left"><?php echo L('modifyedfile')?></th>
  13. <th align="left"><?php echo L('lostfile')?></th>
  14. <th align="left"><?php echo L('unknowfile')?></th>
  15. </tr>
  16. </thead>
  17. <tbody>
  18. <tr>
  19. <td align="left"><?php echo count($diff);?></td>
  20. <td align="left"><?php echo count($lostfile);?></td>
  21. <td align="left"><?php echo count($unknowfile);?></td>
  22. </tr>
  23. </tbody>
  24. </table>
  25. <div class="bk15"></div>
  26. <?php if(!empty($diff)) {?>
  27. <table width="100%" cellspacing="0">
  28. <thead>
  29. <tr>
  30. <th align="left"><?php echo L('modifyedfile')?></th>
  31. <th align="left"><?php echo L('lastmodifytime')?></th>
  32. <th align="left"><?php echo L('filesize')?></th>
  33. <th align="left"><?php echo L('operation')?></th>
  34. </tr>
  35. </thead>
  36. <tbody>
  37. <?php
  38. foreach($diff as $k=>$v) {
  39. ?>
  40. <tr>
  41. <td align="left"><?php echo base64_decode($k)?></td>
  42. <td align="left"><?php echo date("Y-m-d H:i:s", filemtime(base64_decode($k)))?></td>
  43. <td align="left"><?php echo sizecount(filesize(base64_decode($k)))?></td>
  44. <td align="left"><a href="javascript:void(0)" onclick="view('<?php echo base64_decode($k)?>')"><?php echo L('view')?></a> <a href="<?php echo APP_PATH,base64_decode($k);?>" target="_blank"><?php echo L('access')?></a></td>
  45. </tr>
  46. <?php
  47. }
  48. ?>
  49. </tbody>
  50. </table>
  51. <div class="bk15"></div>
  52. <?php }?>
  53. <?php if(!empty($unknowfile)) {?>
  54. <table width="100%" cellspacing="0">
  55. <thead>
  56. <tr>
  57. <th align="left"><?php echo L('unknowfile')?></th>
  58. <th align="left"><?php echo L('lastmodifytime')?></th>
  59. <th align="left"><?php echo L('filesize')?></th>
  60. <th align="left"><?php echo L('operation')?></th>
  61. </tr>
  62. </thead>
  63. <tbody>
  64. <?php
  65. foreach($unknowfile as $k=>$v) {
  66. ?>
  67. <tr>
  68. <td align="left"><?php echo base64_decode($v)?></td>
  69. <td align="left"><?php echo date("Y-m-d H:i:s", filectime(base64_decode($v)))?></td>
  70. <td align="left"><?php echo sizecount(filesize(base64_decode($v)))?></td>
  71. <td align="left"><a href="javascript:void(0)" onclick="view('<?php echo base64_decode($v)?>')"><?php echo L('view')?></a> <a href="<?php echo APP_PATH,base64_decode($v);?>" target="_blank"><?php echo L('access')?></a></td>
  72. </tr>
  73. <?php
  74. }
  75. ?>
  76. </tbody>
  77. </table>
  78. <div class="bk15"></div>
  79. <?php }?>
  80. <?php if(!empty($lostfile)) {?>
  81. <table width="100%" cellspacing="0">
  82. <thead>
  83. <tr>
  84. <th align="left"><?php echo L('lostfile')?></th>
  85. </tr>
  86. </thead>
  87. <tbody>
  88. <?php
  89. foreach($lostfile as $k) {
  90. ?>
  91. <tr>
  92. <td align="left"><?php echo base64_decode($k)?></td>
  93. </tr>
  94. <?php
  95. }
  96. ?>
  97. </tbody>
  98. </table>
  99. <?php }?>
  100. </div>
  101. </div>
  102. <script type="text/javascript">
  103. <!--
  104. function view(url) {
  105. window.top.art.dialog({id:'edit'}).close();
  106. window.top.art.dialog({title:'<?php echo L('view_code')?>',id:'edit',iframe:'?m=scan&c=index&a=public_view&url='+url,width:'700',height:'500'});
  107. }
  108. //-->
  109. </script>
  110. </body>
  111. </html>