filecheck.html 3.7 KB

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