diff options
Diffstat (limited to 'mod/guidbrowser/views/default/guidbrowser/entity_full.php')
-rw-r--r-- | mod/guidbrowser/views/default/guidbrowser/entity_full.php | 82 |
1 files changed, 81 insertions, 1 deletions
diff --git a/mod/guidbrowser/views/default/guidbrowser/entity_full.php b/mod/guidbrowser/views/default/guidbrowser/entity_full.php index 15c5adc7f..4514a3644 100644 --- a/mod/guidbrowser/views/default/guidbrowser/entity_full.php +++ b/mod/guidbrowser/views/default/guidbrowser/entity_full.php @@ -1,3 +1,83 @@ <?php + $entity = $vars['entity']; + $metadata = $vars['metadata']; + $annotations = $vars['annotations']; + +?> +<div> + <?php + foreach ($entity as $k => $v) + { +?> + <div> + <table> + <tr> + <td><b><?php echo $k; ?></b></td> + <td><?php echo $v; ?></td> + </tr> + </table> + </div> +<?php + } + ?> +</div> +<div id="metadata"> +<h2>Metadata</h2> + <?php + foreach ($metadata as $m) + { +?> + <div> + <table> + <tr> + <td><b><?php echo $m->name; ?></b></td> + <td><?php echo $m->value; ?></td> + </tr> + </table> + </div> +<?php + } + ?> + + <div> + <form method="post"> + <input name="eguid" type="hidden" value="<?php echo $entity->guid; ?>" /> + <input name="owner_id" type="hidden" value="<?php echo page_owner(); ?>" /> + <input name="callaction" type="hidden" value="metadata" /> + Key : <input name="key" type="text" /> + Value : <input name="value" type="text" /> + <input name="submit" type="submit" value="submit" /> + </form> + </div> + +</div> -?>
\ No newline at end of file +<div id="annotations"> +<h2>Annotations</h2> + <?php + foreach ($annotations as $a) + { +?> + <div> + <table> + <tr> + <td><b><?php echo $a->name; ?></b></td> + <td><?php echo $a->value; ?></td> + </tr> + </table> + </div> +<?php + } + ?> + + <div> + <form method="post"> + <input name="eguid" type="hidden" value="<?php echo $entity->guid; ?>" /> + <input name="owner_id" type="hidden" value="<?php echo page_owner(); ?>" /> + <input name="callaction" type="hidden" value="annotations" /> + Key : <input name="key" type="text" /> + Value : <input name="value" type="text" /> + <input name="submit" type="submit" value="submit" /> + </form> + </div> +</div>
\ No newline at end of file |