aboutsummaryrefslogtreecommitdiff
path: root/mod/guidbrowser/views
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-14 10:02:33 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-04-14 10:02:33 +0000
commitba96de15a07753e06f02b777d1cfcb0c981d2986 (patch)
tree31446d9c1be99ab43b2fd8080ab3dc9ac08678cd /mod/guidbrowser/views
parent9b312e76c67595c3ea24cb3056f386027c1a492a (diff)
downloadelgg-ba96de15a07753e06f02b777d1cfcb0c981d2986.tar.gz
elgg-ba96de15a07753e06f02b777d1cfcb0c981d2986.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* Relationships added to GUID browser git-svn-id: https://code.elgg.org/elgg/trunk@441 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/guidbrowser/views')
-rw-r--r--mod/guidbrowser/views/default/guidbrowser/entity_full.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/mod/guidbrowser/views/default/guidbrowser/entity_full.php b/mod/guidbrowser/views/default/guidbrowser/entity_full.php
index 13bdb7280..817443d23 100644
--- a/mod/guidbrowser/views/default/guidbrowser/entity_full.php
+++ b/mod/guidbrowser/views/default/guidbrowser/entity_full.php
@@ -12,6 +12,7 @@
$entity = $vars['entity'];
$metadata = $vars['metadata'];
$annotations = $vars['annotations'];
+ $relationships = $vars['relationships'];
?>
<div>
@@ -90,4 +91,34 @@
<input name="submit" type="submit" value="submit" />
</form>
</div>
+</div>
+
+<div id="relationship">
+<h2>Relationships</h2>
+ <?php
+ foreach ($relationships as $r)
+ {
+?>
+ <div>
+ <table>
+ <tr>
+ <td><b><?php echo $r->relationship; ?></b></td>
+ <td><?php echo $r->guid_two; ?></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="relationship" />
+ Relationship : <input name="relationship" type="text" />
+ Guid : <input name="guid2" type="text" />
+ <input name="submit" type="submit" value="submit" />
+ </form>
+ </div>
</div> \ No newline at end of file