aboutsummaryrefslogtreecommitdiff
path: root/mod/guidbrowser/views
diff options
context:
space:
mode:
Diffstat (limited to 'mod/guidbrowser/views')
-rw-r--r--mod/guidbrowser/views/default/guidbrowser/browser.php35
-rw-r--r--mod/guidbrowser/views/default/guidbrowser/entity.php32
-rw-r--r--mod/guidbrowser/views/default/guidbrowser/entity_full.php125
-rw-r--r--mod/guidbrowser/views/default/guidbrowser/newentity.php11
-rw-r--r--mod/guidbrowser/views/default/guidbrowser/prevnext.php30
5 files changed, 0 insertions, 233 deletions
diff --git a/mod/guidbrowser/views/default/guidbrowser/browser.php b/mod/guidbrowser/views/default/guidbrowser/browser.php
deleted file mode 100644
index c1f5bb792..000000000
--- a/mod/guidbrowser/views/default/guidbrowser/browser.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
- /**
- * Elgg GUID browser
- *
- * @package ElggDevTools
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Marcus Povey <marcus@marcus-povey.co.uk>
- * @copyright Curverider Ltd 2008
- * @link http://elgg.com/
- */
-
- $navbar = $vars['prevnext'];
- $entities = $vars['entities'];
-?>
-<script type="text/javascript" language="javascript">
-<!--
-function showhide(oid)
-{
- var e = document.getElementById(oid);
- if(e.style.display == 'none') {
- e.style.display = 'block';
- } else {
- e.style.display = 'none';
- }
-}
-// -->
-</script>
-
-<div id="browser">
- <div id="entities">
- <?php echo $entities; ?>
- </div>
-
- <?php echo $navbar; ?>
-</div> \ No newline at end of file
diff --git a/mod/guidbrowser/views/default/guidbrowser/entity.php b/mod/guidbrowser/views/default/guidbrowser/entity.php
deleted file mode 100644
index 94fd4e92c..000000000
--- a/mod/guidbrowser/views/default/guidbrowser/entity.php
+++ /dev/null
@@ -1,32 +0,0 @@
-<?php
- /**
- * Elgg GUID browser
- *
- * @package ElggDevTools
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Marcus Povey <marcus@marcus-povey.co.uk>
- * @copyright Curverider Ltd 2008
- * @link http://elgg.com/
- */
-
- $guid = $vars['entity_guid'];
- $type = $vars['type'];
- $subtype = $vars['subtype'];
- $full = $vars['full'];
-
-?>
-
-<div id="guid-<?php echo $guid; ?>">
- <span onClick="showhide('guid-<?php echo $guid; ?>-full')">
- <table width="100%">
- <tr>
- <td width="50"><b><?php echo $guid; ?></b></td>
- <td><?php echo "$type / $subtype"; ?></td>
-
- </tr>
- </table>
- </span>
- <div id="guid-<?php echo $guid; ?>-full" style="display:none">
- <?php echo $full; ?>
- </div>
-</div> \ No newline at end of file
diff --git a/mod/guidbrowser/views/default/guidbrowser/entity_full.php b/mod/guidbrowser/views/default/guidbrowser/entity_full.php
deleted file mode 100644
index 62dd78264..000000000
--- a/mod/guidbrowser/views/default/guidbrowser/entity_full.php
+++ /dev/null
@@ -1,125 +0,0 @@
-<?php
- /**
- * Elgg GUID browser
- *
- * @package ElggDevTools
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Marcus Povey <marcus@marcus-povey.co.uk>
- * @copyright Curverider Ltd 2008
- * @link http://elgg.com/
- */
-
- $entity = $vars['entity'];
- $metadata = $vars['metadata'];
- $annotations = $vars['annotations'];
- $relationships = $vars['relationships'];
-
-?>
-<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
- if ($metadata) 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
- if ($annotations) 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>
-
-<div id="relationship">
-<h2>Relationships</h2>
- <?php
- if ($relationships) foreach ($relationships as $r)
- {
-?>
- <div>
- <table>
- <tr>
- <td><?php echo $r->guid_one; ?></td>
- <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
diff --git a/mod/guidbrowser/views/default/guidbrowser/newentity.php b/mod/guidbrowser/views/default/guidbrowser/newentity.php
deleted file mode 100644
index f46524e94..000000000
--- a/mod/guidbrowser/views/default/guidbrowser/newentity.php
+++ /dev/null
@@ -1,11 +0,0 @@
-<?php
- /**
- * Elgg GUID browser
- *
- * @package ElggDevTools
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Marcus Povey <marcus@marcus-povey.co.uk>
- * @copyright Curverider Ltd 2008
- * @link http://elgg.com/
- */
-?> \ No newline at end of file
diff --git a/mod/guidbrowser/views/default/guidbrowser/prevnext.php b/mod/guidbrowser/views/default/guidbrowser/prevnext.php
deleted file mode 100644
index 0624173cf..000000000
--- a/mod/guidbrowser/views/default/guidbrowser/prevnext.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
- /**
- * Elgg GUID browser
- *
- * @package ElggDevTools
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Marcus Povey <marcus@marcus-povey.co.uk>
- * @copyright Curverider Ltd 2008
- * @link http://elgg.com/
- */
-
- global $CONFIG;
-
- $limit = $vars['limit'];
- $offset = $vars['offset'];
- $type = $vars['type'];
- $subtype = $vars['subtype'];
-
-
- $common = "&type=$type&subtype=$subtype";
-?>
-
-<div id="guidbrowser_navbar">
- <table width="100%">
- <tr>
- <td align="left"><?php if ($offset>0){?><a href="<?php echo $CONFIG->wwwroot . "mod/guidbrowser/?offset=" . ($offset-$limit) . $common ?>">Previous</a><?php } ?></td>
- <td align="right"><a href="<?php echo $CONFIG->wwwroot . "mod/guidbrowser/?offset=" . ($offset+$limit) . $common ?>">Next</a></td>
- </tr>
- </table>
-</div> \ No newline at end of file