node-chado_analysis_interpro.tpl.php 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?php
  2. ?>
  3. <?php if ($picture) {
  4. print $picture;
  5. }?>
  6. <div class="node<?php if ($sticky) { print " sticky"; } ?><?php if (!$status) { print " node-unpublished"; } ?>">
  7. <?php if ($page == 0) { ?><h2 class="nodeTitle"><a href="<?php print $node_url?>"><?php print $title?></a>
  8. <?php global $base_url;
  9. if ($sticky) { print '<img src="'.base_path(). drupal_get_path('theme','sanqreal').'/img/sticky.gif" alt="sticky icon" class="sticky" />'; } ?>
  10. </h2><?php }; ?>
  11. <?php if (!$teaser): ?>
  12. <?php if ($submitted): ?>
  13. <div class="metanode"><p><?php print t('') .'<span class="author">'. theme('username', $node).'</span>' . t(' - Posted on ') . '<span class="date">'.format_date($node->created, 'custom', "d F Y").'</span>'; ?></p></div>
  14. <?php endif; ?>
  15. <div>
  16. <!-- tripal_analysis_interpro theme -->
  17. <table>
  18. <tr><th>Name</th><td><?php print $node->analysisname;?></td></tr>
  19. <tr><th>Program (version)</th><td><?php print $node->program.' ('.$node->programversion.')';?></td></tr>
  20. <?php
  21. $ver = $node->sourceversion;
  22. if ($node->sourceversion) {
  23. $ver = "($node->sourceversion)";
  24. }
  25. $date = preg_replace("/^(\d+-\d+-\d+) .*/","$1",$node->timeexecuted);
  26. ?>
  27. <tr><th>Source (version)</th><td><?php print $node->sourcename.' '.$ver;?></td></tr>
  28. <tr><th>Source URI</th><td><?php print $node->sourceuri;?></td></tr>
  29. <tr><th>Executed</th><td><?php print $date?></td></tr>
  30. <tr><th>Description</th><td><?php print $node->description?></td></tr>
  31. <tr><th>Interpro Settings</th>
  32. <td>
  33. <b>File:</b>
  34. <?php print preg_replace("/.*\/(.*)/", "$1", $node->interprofile); ?><br>
  35. <b>Parameters:</b>
  36. <?php print $node->interproparameters?><br>
  37. <?php if ($node->interprojob) {
  38. print "A job for parsing interpro html output will be submitted.";
  39. if ($node->parsego) {
  40. print "<BR>GO terms will be parsed and stored.";
  41. }
  42. }
  43. ?>
  44. </td>
  45. </tr>
  46. </table>
  47. <!-- End of tripal_analysis_interpro theme-->
  48. </div>
  49. <?php endif; ?>
  50. <div class="content"><?php print $content?></div>
  51. <?php if (!$teaser): ?>
  52. <?php if ($links) { ?><div class="links"><?php print $links?></div><?php }; ?>
  53. <?php endif; ?>
  54. <?php if ($teaser): ?>
  55. <?php if ($links) { ?><div class="linksteaser"><div class="links"><?php print $links?></div></div><?php }; ?>
  56. <?php endif; ?>
  57. <?php if (!$teaser): ?>
  58. <?php if ($terms) { ?><div class="taxonomy"><span><?php print t('tags') ?></span> <?php print $terms?></div><?php } ?>
  59. <?php endif; ?>
  60. </div>