人人商城

filecheck.html 3.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. {template 'common/header'}
  2. <div class="we7-page-title">系统文件校验</div>
  3. <ul class="we7-page-tab"></ul>
  4. <div class="alert we7-page-alert">
  5. <p><i class="wi wi-info-sign"></i><strong class="color-dark">文件校验功能可以查看您丢失,修改,添加的文件 </strong></p>
  6. <p><i class="wi wi-info-sign"></i><strong class="color-dark">注意: 使用文件校验的时候不会校验根目录下的&nbsp;&nbsp; /addons, &nbsp;&nbsp;/attachment, &nbsp;&nbsp; /data/tpl, &nbsp;&nbsp;/data/logs目录. </strong></p>
  7. <p><i class="wi wi-info-sign"></i><strong class="color-dark">注意:‘被修改’和‘未知’的文件应当引起您的注意,必须确认文件是您自己修改</strong></p>
  8. </div>
  9. <div class="main">
  10. <form action="" method="post" class="we7-form">
  11. {if $do == 'check'}
  12. <label class="control-label">校验结果</label>
  13. <div class="form-group">
  14. <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label" style="width: 180px;"><span class="text-danger">被修改文件: {$count_modify}</span><a href="javascript:" onclick="$('.modify').show();$('.lose').hide();$('.unknown').hide();">[查看]</a></label>
  15. <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label" style="width: 180px;"><span class="text-danger">丢失文件: {$count_lose}</span><a href="javascript:" onclick="$('.modify').hide();$('.lose').show();$('.unknown').hide()">[查看]</a></label>
  16. <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label" style="width: 180px;"><span class="text-info">未知文件: {$count_unknown}</span><a href="javascript:" onclick="$('.modify').hide();$('.lose').hide();$('.unknown').show();">[查看]</a></label>
  17. </div>
  18. <div class="modify">
  19. <label class="control-label">被修改的文件</label>
  20. {if empty($modify)}
  21. <span class="form-control-static" >没有被被修改的文件</span>
  22. {/if}
  23. <div class="alert alert-info" id="modify" style="{if empty($modify)}display:none;{/if};line-height:20px;max-height: 1000px;overflow: hidden;">
  24. {loop $modify $modif}
  25. <div><i class="fa fa-file-text"></i>&nbsp;&nbsp;&nbsp;{$modif}</div>
  26. {/loop}
  27. </div>
  28. {if $count_modify > 50}<a href="javascript:" onclick="$('#modify').css({'height': 'auto', 'max-height':''});$(this).hide();" class="btn btn-primary">显示全部</a>{/if}
  29. </div>
  30. <div class="unknown">
  31. <label class="control-label">未知的文件</label>
  32. {if empty($unknown)}
  33. <div class="form-control-static">没有未知的文件</div>
  34. {/if}
  35. <div class="alert alert-info" id="unknown" style="{if empty($unknown)}display:none;{/if}line-height:20px;max-height: 1000px;overflow: hidden;">
  36. {loop $unknown $unknow}
  37. <div><i class="fa fa-file-text"></i>&nbsp;&nbsp;&nbsp;{$unknow}</div>
  38. {/loop}
  39. </div>
  40. {if $count_unknown > 50}<a href="javascript:" onclick="$('#unknown').css({'height': 'auto', 'max-height':''});$(this).hide();" class="btn btn-primary">显示全部</a>{/if}
  41. </div>
  42. <div class="lose">
  43. <label class="control-label">丢失的文件</label>
  44. {if empty($lose)}
  45. <div class="form-control-static">没有丢失的文件</div>
  46. {/if}
  47. <div class="alert alert-info" id="lose" style="{if empty($lose)}display:none;{/if}line-height:20px;max-height: 1000px;overflow: hidden">
  48. {loop $lose $los}
  49. <div><i class="fa fa-file-text"></i>&nbsp;&nbsp;&nbsp;{$los}</div>
  50. {/loop}
  51. </div>
  52. {if $count_lose > 50}<a href="javascript:" onclick="$('#lose').css({'height': 'auto', 'max-height':''});$(this).hide();" class="btn btn-primary">显示全部</a>{/if}
  53. </div>
  54. {/if}
  55. <div class="form-group" {if $do == 'check'}style="display: none;"{/if}>
  56. <div class="col-sm-offset-2 col-sm-10">
  57. <a href="{php echo url('system/filecheck/check')}" class="btn btn-primary">开始文件校验</a>
  58. </div>
  59. </div>
  60. </form>
  61. </div>
  62. {template 'common/footer'}