tripal_analysis_blast_report.tpl.php 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <?php
  2. $report = $variables['report_object'];
  3. $hits = $report->hits;
  4. ?>
  5. <style type="text/css">
  6. #tripal_blast_report_current_page {
  7. float: right;
  8. margin-bottom: 5px;
  9. margin-right: 20px;
  10. }
  11. #tripal_blast_report_pager {
  12. float: right;
  13. margin-bottom: 10px;
  14. margin-right: 20px;
  15. }
  16. #tripal_blast_report_per_page {
  17. float: left;
  18. margin-bottom: 10px;
  19. }
  20. </style>
  21. <div id="tripal_ajaxLoading" style="display:none">
  22. <div id="loadingText">Loading...</div>
  23. <img src="<?php print url("sites/all/themes/theme_tripal/images/ajax-loader.gif") ?>">
  24. </div>
  25. <div id="blast-hits-report">
  26. <strong>Analysis Date: </strong><?php print $report->time?> (<a href=<?php print $report->url ?>><?php print $report->name ?></a>)<br>
  27. There are <strong><?php print $report->counter ?></strong> records.
  28. <div id=tripal_blast_report_current_page>page <strong><?php print $report->currentpage ?></strong> of <strong><?php print $report->no_page ?></strong>
  29. </div>
  30. <table id="tripal_analysi_blast-report-table" class="tripal_analysis_blast-table tripal-table tripal-table-horz">
  31. <tr class="tripal_analysis_blast-table-odd-row tripal-table-odd-row">
  32. <th nowrap><?php if ($report->sort == 0) {print $report->symbol;} ?>
  33. <a href=<?php print $report->byQuery ?>>Query</a>
  34. </th>
  35. <th nowrap><?php if ($report->sort == 1) {print $report->symbol;} ?>
  36. <a href=<?php print $report->byMatchName ?>>Match Name</a>
  37. </th>
  38. <th nowrap><?php if ($report->sort == 2) {print $report->symbol;} ?>
  39. <a href=<?php print $report->byDescription ?>>Description</a>
  40. </th>
  41. <th nowrap><?php if ($report->sort == 3) {print $report->symbol;} ?>
  42. <a href=<?php print $report->byEvalue ?>>E-value</a>
  43. </th>
  44. <th nowrap><?php if ($report->sort == 4) {print $report->symbol;} ?>
  45. <a href=<?php print $report->byIdentity ?>>%Identity</a>
  46. </th>
  47. <th nowrap><?php if ($report->sort == 5) {print $report->symbol;} ?>
  48. <a href=<?php print $report->byLength ?>>Length</a>
  49. </th>
  50. </tr>
  51. <?php foreach($hits AS $hit) {?>
  52. <tr class="<?php print $hit->class ?>">
  53. <td nowrap><a href=<?php print $hit->q_url ?>><?php print $hit->query ?></a></td>
  54. <td nowrap><a href=<?php print $hit->urlprefix.$hit->match ?> target=_blank><?php print $hit->match ?></td>
  55. <td><?php print $hit->desc ?></td>
  56. <td nowrap><?php print $hit->evalue ?></td>
  57. <td nowrap><?php print $hit->identity ?></td>
  58. <td nowrap><?php print $hit->length ?></td>
  59. </tr>
  60. <?php } ?>
  61. </table>
  62. <div id="tripal_blast_report_per_page">Show
  63. <?php
  64. $per_page = $report->per_page;
  65. $path = $report->path;
  66. if ($per_page == 10) {?>
  67. <strong>10</strong> |
  68. <?php } else {
  69. $url_path = url($path."10");
  70. ?>
  71. <a href=<?php print $url_path ?>>10</a> |
  72. <?php }
  73. if ($per_page == 20) {
  74. ?>
  75. <strong>20</strong> |
  76. <?php } else {
  77. $url_path = url($path."20");
  78. ?>
  79. <a href=<?php print $url_path ?>>20</a> |
  80. <?php }
  81. if ($per_page == 50) {
  82. ?>
  83. <strong>50</strong> |
  84. <?php } else {
  85. $url_path = url($path."50");
  86. ?>
  87. <a href=<?php print $url_path ?>>50</a> |
  88. <?php }
  89. if ($per_page == 100) {
  90. ?>
  91. <strong>100</strong> |
  92. <?php } else {
  93. $url_path = url($path."100");
  94. ?>
  95. <a href=<?php print $url_path ?>>100</a> |
  96. <?php }
  97. if ($per_page == 200) {
  98. ?>
  99. <strong>200</strong> |
  100. <?php } else {
  101. $url_path = url($path."200");
  102. ?>
  103. <a href=<?php print $url_path ?>>200</a>
  104. <?php } ?>
  105. records per page
  106. </div>
  107. <div id=tripal_blast_report_pager>page
  108. <select id=tripal_blast_report_page_selector onChange="tripal_update_best_hit_report(this, <?php print $report->analysis_id ?>,<?php print $report->sort ?>, <?php print $report->descending ?>, <?php print $report->per_page ?>)">
  109. <?php for ($i = 1; $i <= $report->no_page; $i ++) { ?>
  110. <option value=<?php print $i ?>><?php print $i ?></option>
  111. <?php } ?>
  112. </select>
  113. </div>
  114. </div>