SproutCMS

This is the code documentation for the SproutCMS project

source of /sprout/views/dbtools/exception_log.php

  1. <?php
  2. use Sprout\Helpers\Enc;
  3. use Sprout\Helpers\Url;
  4. use Sprout\Helpers\Form;
  5.  
  6. Form::setData($_GET);
  7. ?>
  8.  
  9.  
  10. <div class="mainbar-with-right-sidebar">
  11. <form action="" method="get" class="white-box">
  12. <h3 style="margin-top: 0">Search</h3>
  13.  
  14. <div class="field-group-wrap -clearfix">
  15. <div class="field-group-item col col--one-third">
  16. <?php
  17. Form::nextFieldDetails('Class', false);
  18. echo Form::text('class', ['-wrapper-class' => 'white']);
  19. ?>
  20. </div>
  21.  
  22. <div class="field-group-item col col--one-third">
  23. <?php
  24. Form::nextFieldDetails('Message', false);
  25. echo Form::text('message', ['-wrapper-class' => 'white']);
  26. ?>
  27. </div>
  28.  
  29. <div class="field-group-item col col--one-third">
  30. <?php
  31. Form::nextFieldDetails('Show', false);
  32. echo Form::checkboxBoolList('include_404', ['-wrapper-class' => 'white'], [
  33. 'show_404' => '404 exceptions',
  34. 'show_row_missing' => 'Row missing exceptions'
  35. ]);
  36. ?>
  37. </div>
  38. </div>
  39.  
  40. <div style="text-align: right">
  41. <button type="submit" class="button icon-after icon-search">Search</button>
  42. </div>
  43. </form>
  44.  
  45. <?php echo $itemlist; ?>
  46.  
  47. <div>
  48. <?php
  49. $cur_url = Url::current();
  50.  
  51. $get = $_GET;
  52. $get['page'] = max(@$get['page'], 1) + 1;
  53. $next_query = http_build_query($get);
  54.  
  55. // - 2 to negate the above addition
  56. $get['page'] = $get['page'] - 2;
  57. $prev_query = http_build_query($get);
  58. ?>
  59. <?php if ($page > 1): ?>
  60. <a href="<?= Enc::html($cur_url . '?' . $prev_query); ?>" class="button icon-before icon-keyboard_arrow_left">Previous page</a>
  61. <?php endif; ?>
  62.  
  63. <?php if ($row_count == $page_size): ?>
  64. <a href="<?= Enc::html($cur_url . '?' . $next_query); ?>" class="button right icon-after icon-keyboard_arrow_right">Next page</a>
  65. <?php endif; ?>
  66. </div>
  67. </div>
  68.  
  69. <div class="right-sidebar">
  70. <div class="right-sidebar-anchor"></div>
  71. <div class="right-sidebar-inner">
  72. <div class="white-box">
  73. <h3 style="margin-top: 0">Lookup</h3>
  74. <form action="dbtools/exceptionDetail" method="get" class="-clearfix">
  75. <div class="field-group-item col col--two-third">
  76. <?php
  77. echo Form::text('id', ['placeholder' => 'SE2400']);
  78. ?>
  79. </div>
  80. <div class="field-group-item col col--one-third">
  81. <button type="submit" class="button button-block icon-after icon-keyboard_arrow_right">Lookup</button>
  82. </div>
  83. </form>
  84. </div>
  85. </div>
  86. </div>
  87.