tripal_gbrowse_database_details.tpl.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 database related 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 includes GBrowse Databse specific fields such as
  12. // database_name, database_user, user_password, etc.
  13. ?>
  14. <?php
  15. //uncomment this line to see a full listing of the fields avail. to $node
  16. //print '<pre>'.print_r($node,TRUE).'</pre>';
  17. ?>
  18. <?php
  19. $gbrowse = $node->gbrowse;
  20. ?>
  21. <div id="tripal_gbrowse-database-box" class="tripal_gbrowse-info-box tripal-info-box">
  22. <div class="tripal_gbrowse-info-box-title tripal-info-box-title"> Data Base Details</div>
  23. <div class="tripal_gbrowse-info-box-desc tripal-info-box-desc"></div>
  24. <?php //if the gbrowse is deleted/removed issue a warning
  25. if(strcmp($gbrowse->is_obsolete,'t')==0){
  26. ?>
  27. <div class="tripal_gbrowse-obsolete">This GBrowse Instance is obsolete or has been deleted/removed</div>
  28. <?php }?>
  29. <table id="tripal_gbrowse-base-table" class="tripal_gbrowse-table tripal-table tripal-table-vert">
  30. <tr class="tripal_gbrowse-table-even-row tripal-table-even-row">
  31. <th>Data Base Name</th>
  32. <td><?php print $node->gbrowse->database_name; ?></td>
  33. </tr>
  34. <tr class="tripal_gbrowse-table-odd-row tripal-table-odd-row">
  35. <th nowrap>Database User Name</th>
  36. <td><?php print $node->gbrowse->database_user; ?></td>
  37. </tr>
  38. <tr class="tripal_gbrowse-table-even-row tripal-table-even-row">
  39. <th>User Password</th>
  40. <td><?php print $node->gbrowse->user_password; ?></td>
  41. </tr>
  42. </table>
  43. </div>