tripal_gbrowse_details.tpl.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. // Developed by: Chad N.A Krilow at The University of Saskatchewan
  3. //
  4. // Purpose: Provide layout and content for the GBrowse database details. This
  5. // includes databse user specific fields in the tripal_gbrowse_instances table.
  6. //
  7. // Note: This template controls the layout/content for the default tripal_gbrowse node
  8. // template (node-tripal_grbowse.tpl.php) and the Database Details Block
  9. //
  10. // Variables Available:
  11. // - $node: a standard object which contains all the fields associated with
  12. // nodes. It also includes GBrowse specific fields such as gbrowse_name,
  13. // database_link, config_file.
  14. ?>
  15. <?php
  16. //uncomment this line to see a full listing of the fields avail. to $node
  17. //print '<pre>'.print_r($node,TRUE).'</pre>';
  18. ?>
  19. <?php $gbrowse = $node->gbrowse; ?>
  20. <div id="tripal_gbrowse-base-box" class="tripal_gbrowse-info-box tripal-info-box">
  21. <div class="tripal_gbrowse-info-box-title tripal-info-box-title"> GBrowse Details</div>
  22. <div class="tripal_gbrowse-info-box-desc tripal-info-box-desc"></div>
  23. <?php if(strcmp($gbrowse->is_obsolete,'t')==0){ ?>
  24. <div class="tripal_gbrowse-obsolete">This GBrowse Instance is obsolete or has been deleted/removed</div>
  25. <?php }?>
  26. <table id="tripal_gbrowse-base-table" class="tripal_gbrowse-table tripal-table tripal-table-vert">
  27. <tr class="tripal_gbrowse-table-even-row tripal-table-even-row">
  28. <th>GBrowse Instance</th>
  29. <td><?php print $node->gbrowse->gbrowse_name; ?></td>
  30. </tr>
  31. <tr class="tripal_gbrowse-table-odd-row tripal-table-odd-row">
  32. <th nowrap>GBrowse Instance Link</th>
  33. <td><?php print $node->gbrowse->gbrowse_link; ?></td>
  34. </tr>
  35. <tr class="tripal_gbrowse-table-even-row tripal-table-even-row">
  36. <th>Configuration File</th>
  37. <td><?php print $node->gbrowse->config_file; ?></td>
  38. </tr>
  39. </table>
  40. </div>