node-chado_analysis.tpl.php 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. //
  3. // Copyright 2009 Clemson University
  4. //
  5. ?>
  6. <?php if ($picture) {
  7. print $picture;
  8. }?>
  9. <div class="node<?php if ($sticky) { print " sticky"; } ?><?php if (!$status) { print " node-unpublished"; } ?>">
  10. <?php if ($page == 0) { ?><h2 class="nodeTitle"><a href="<?php print $node_url?>"><?php print $title?></a>
  11. <?php global $base_url;
  12. if ($sticky) { print '<img src="'.base_path(). drupal_get_path('theme','sanqreal').'/img/sticky.gif" alt="sticky icon" class="sticky" />'; } ?>
  13. </h2><?php }; ?>
  14. <?php if (!$teaser): ?>
  15. <?php if ($submitted): ?>
  16. <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>
  17. <div>
  18. <!-- tripal_analysis theme -->
  19. <table>
  20. <tr><th>Name</th><td><?php print $node->analysisname;?></td></tr>
  21. <tr><th>Program (version)</th><td><?php print $node->program.' ('.$node->programversion.')';?></td></tr>
  22. <?php
  23. $ver = $node->sourceversion;
  24. if ($node->sourceversion) {
  25. $ver = "($node->sourceversion)";
  26. }
  27. $date = preg_replace("/^(\d+-\d+-\d+) .*/","$1",$node->timeexecuted);
  28. ?>
  29. <tr><th>Source (version)</th><td><?php print $node->sourcename.' '.$ver;?></td></tr>
  30. <tr><th>Source URI</th><td><?php print $node->sourceuri;?></td></tr>
  31. <tr><th>Executed</th><td><?php print $date?></td></tr>
  32. <tr><th>Description</th><td><?php print $node->description?></td></tr>
  33. </table>
  34. <!-- End of tripal_analysis theme-->
  35. </div>
  36. <?php endif; ?>
  37. <?php endif; ?>
  38. <div class="content"><?php print $content?></div>
  39. <?php if (!$teaser): ?>
  40. <?php if ($links) { ?><div class="links"><?php print $links?></div><?php }; ?>
  41. <?php endif; ?>
  42. <?php if ($teaser): ?>
  43. <?php if ($links) { ?><div class="linksteaser"><div class="links"><?php print $links?></div></div><?php }; ?>
  44. <?php endif; ?>
  45. <?php if (!$teaser): ?>
  46. <?php if ($terms) { ?><div class="taxonomy"><span><?php print t('tags') ?></span> <?php print $terms?></div><?php } ?>
  47. <?php endif; ?>
  48. </div>