tripal_gbrowse_gbrowse_instance.tpl.php 1.1 KB

12345678910111213141516171819202122232425262728
  1. <?php
  2. // Developed by: Chad N.A Krilow at The University of Saskatchewan
  3. //
  4. // Purpose: Provide a in window I-Frame that displays the GBrowse instance. As well,
  5. // a link to open the GBrowse instance in a external window is provided. If the window can not be
  6. // opened a warning is issued
  7. //
  8. // Variables Available:
  9. // - $node: a standard object which contains all the fields associated with
  10. // nodes. Here it is utilized for accessing the link to a specific GBrowse instance.
  11. //
  12. // NOTE: For a full listing of fields available in the node object the
  13. // print_r $node line below or install the Drupal Devel module which
  14. // provides an extra tab at the top of the node page labelled Devel
  15. ?>
  16. <?php
  17. //uncomment this line to see a full listing of the fields avail. to $node
  18. //print '<pre>'.print_r($node,TRUE).'</pre>';
  19. ?>
  20. <br />
  21. <h3><a href="<?php print $node->gbrowse->gbrowse_link; ?>" target="_blank">Open GBrowse Instance in new Window</a></h3>
  22. <br />
  23. <iframe src="<?php print $node->gbrowse->gbrowse_link; ?>" width="100%" height="800">
  24. <p>Your browser does not support iframes.</p>
  25. </iframe>