scan_report.tpl.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. <table width="100%" cellspacing="0">
  6. <thead>
  7. <tr>
  8. <th align="left"><?php echo L('file_address')?></th>
  9. <th align="left"><?php echo L('function_of_characteristics')?></th>
  10. <th align="left"><?php echo L('characteristic_function')?></th>
  11. <th align="left"><?php echo L('code_number_of_features')?></th>
  12. <th align="left"><?php echo L('characteristic_key')?></th>
  13. <th align="left">Zend encoded</th>
  14. <th align="left"><?php echo L('operation')?></th>
  15. </tr>
  16. </thead>
  17. <tbody>
  18. <?php
  19. foreach($badfiles as $k=>$v) {
  20. ?>
  21. <tr>
  22. <td align="left"><?php echo $k?></td>
  23. <td align="left"><?php if(isset($v['func'])){echo count($v['func']);}else{echo '0';}?></td>
  24. <td align="left"><?php if(isset($v['func'])){
  25. foreach ($v['func'] as $keys=>$vs)
  26. {
  27. $d[$keys] = strtolower($vs[1]);
  28. }
  29. $d = array_unique($d);
  30. foreach ($d as $vs)
  31. {
  32. echo "<font color='red'>".$vs."</font> ";
  33. }
  34. }?></td>
  35. <td align="left"><?php if(isset($v['code'])){echo count($v['code']);}else{echo '0';}?></td>
  36. <td align="left"><?php if(isset($v['code'])){
  37. foreach ($v['code'] as $keys=>$vs)
  38. {
  39. $d[$keys] = strtolower($vs[1]);
  40. }
  41. $d = array_unique($d);
  42. foreach ($d as $vs)
  43. {
  44. echo "<font color='red'>".new_html_special_chars($vs)."</font> ";
  45. }
  46. }?></td>
  47. <td align="left"><?php if(isset($v['zend'])){echo '<font color=\'red\'>Yes</font>';}else{echo 'No';}?></td>
  48. <td align="left"><a href="javascript:void(0)" onclick="view('<?php echo urlencode($k)?>')"><?php echo L('view')?></a> <a href="<?php echo APP_PATH,$k;?>" target="_blank"><?php echo L('access')?></a></td>
  49. </tr>
  50. <?php
  51. }
  52. ?>
  53. </tbody>
  54. </table>
  55. </div>
  56. </div>
  57. <script type="text/javascript">
  58. <!--
  59. function view(url) {
  60. window.top.art.dialog({id:'edit'}).close();
  61. window.top.art.dialog({title:'<?php echo L('view_code')?>',id:'edit',iframe:'?m=scan&c=index&a=view&url='+url,width:'700',height:'500'});
  62. }
  63. //-->
  64. </script>
  65. </body>
  66. </html>