blob: 4514a36445aabba8f7b2861ce55e9099d02c5a9f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
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>
<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>
|