tripal_gbrowse_loaded_sources.tpl.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. // Developed by: Chad N.A Krilow at The University of Saskatchewan
  3. //
  4. // Variables Available:
  5. // - $node: a standard object which contains includes GBrowse Databse specific fields such as
  6. // database_name, database_user, user_password, etc.
  7. ?>
  8. <?php
  9. //uncomment this line to see a full listing of the fields avail. to $node
  10. //print '<pre>'.print_r($node,TRUE).'</pre>';
  11. ?>
  12. <?php
  13. $gbrowse = $node->gbrowse;
  14. $node->sources = tripal_gbrowse_getloaded_sources($node->gbrowse);
  15. ?>
  16. <div id="tripal_gbrowse-source-box" class="tripal_gbrowse-info-box tripal-info-box">
  17. <div class="tripal_gbrowse-info-box-title tripal-info-box-title"> Loaded Sources</div>
  18. <div class="tripal_gbrowse-info-box-desc tripal-info-box-desc">A source can be either a library or analysis or any other grouping of features.</div>
  19. <?php //if the gbrowse is deleted/removed issue a warning
  20. if(strcmp($gbrowse->is_obsolete,'t')==0){
  21. ?>
  22. <div class="tripal_gbrowse-obsolete">This GBrowse Library is obsolete or has been deleted/removed</div>
  23. <?php }?>
  24. <table id="tripal_gbrowse-base-table" class="tripal_gbrowse-table tripal-table tripal-table-vert">
  25. <tr><th>Name</th></tr>
  26. <?php
  27. if(!empty($node->sources)){
  28. foreach($node->sources as $key => $source){
  29. ?>
  30. <tr class="tripal_gbrowse-table-even-row tripal-table-even-row">
  31. <td><?php print $source; ?></td>
  32. </tr>
  33. <?php }} //end of foreach library & end of if statement ?>
  34. </table>
  35. </div>