summaryrefslogtreecommitdiffstats
path: root/application/modules/dev/views/scripts/group
diff options
context:
space:
mode:
Diffstat (limited to 'application/modules/dev/views/scripts/group')
-rw-r--r--application/modules/dev/views/scripts/group/add.phtml5
-rw-r--r--application/modules/dev/views/scripts/group/edit.phtml11
-rw-r--r--application/modules/dev/views/scripts/group/index.phtml57
-rw-r--r--application/modules/dev/views/scripts/group/link.phtml5
-rw-r--r--application/modules/dev/views/scripts/group/show.phtml123
5 files changed, 0 insertions, 201 deletions
diff --git a/application/modules/dev/views/scripts/group/add.phtml b/application/modules/dev/views/scripts/group/add.phtml
deleted file mode 100644
index 588ce31..0000000
--- a/application/modules/dev/views/scripts/group/add.phtml
+++ /dev/null
@@ -1,5 +0,0 @@
-<h1>Add Group</h1>
-<?php
-$this->addForm->setAction($this->url());
-echo $this->addForm;
-?> \ No newline at end of file
diff --git a/application/modules/dev/views/scripts/group/edit.phtml b/application/modules/dev/views/scripts/group/edit.phtml
deleted file mode 100644
index 6b042e1..0000000
--- a/application/modules/dev/views/scripts/group/edit.phtml
+++ /dev/null
@@ -1,11 +0,0 @@
-<h1>Edit Group</h1>
-<?php
-if(isset($this->addForm)) {
- $this->addForm->setAction('/dev/group/add');
- echo $this->addForm;
-}
-else {
- $this->editForm->setAction($this->url());
- echo $this->editForm;
-}
-?>
diff --git a/application/modules/dev/views/scripts/group/index.phtml b/application/modules/dev/views/scripts/group/index.phtml
deleted file mode 100644
index a3d1269..0000000
--- a/application/modules/dev/views/scripts/group/index.phtml
+++ /dev/null
@@ -1,57 +0,0 @@
-<h1>Groups</h1>
-<?php echo $this->formButton('addgroup', 'Add Group', array(
- 'onclick' => 'self.location="/dev/group/add"',
- 'class' => 'addbutton'))?>
-<table>
- <tr>
- <th>Title</th>
- <th colspan=3>Actions</th>
- </tr>
- <?php
- $count = 0;
- foreach($this->groupList as $group) {
- ?>
- <tr class="entry">
- <td><?php echo $group->getTitle(); ?></td>
- <td class='action'><a
- href="<?php echo $this->url(
- array(
- 'module' => 'dev',
- 'controller' => 'group',
- 'action' => 'show',
- 'groupID' => $group->getID()
- ),
- 'default',
- true) ?>"> <img src='/media/img/show.png' alt='Show Group' /></a></td>
- <td class='action'><a
- href="<?php echo $this->url(
- array(
- 'module' => 'dev',
- 'controller' => 'group',
- 'action' => 'edit',
- 'groupID' => $group->getID()
- ),
- 'default',
- true) ?>"> <img src='/media/img/edit.png' alt='Edit Group' /></a></td>
- <td class='action'><a
- href="<?php echo $this->url(
- array(
- 'module' => 'dev',
- 'controller' => 'group',
- 'action' => 'delete',
- 'groupID' => $group->getID()
- ),
- 'default',
- true) ?>"> <img src='/media/img/delete.png' alt='Delete Group' /></a>
- </td>
- </tr>
- <?php
- $count++;
- }
- ?>
-</table>
-<div>
-<?php echo $this->formButton('linkgroups', 'Link Groups', array(
- 'onclick' => 'self.location="/dev/group/link"',
- 'class' => 'addbutton'))?>
-</div>
diff --git a/application/modules/dev/views/scripts/group/link.phtml b/application/modules/dev/views/scripts/group/link.phtml
deleted file mode 100644
index 5bb2a9d..0000000
--- a/application/modules/dev/views/scripts/group/link.phtml
+++ /dev/null
@@ -1,5 +0,0 @@
-<h1>Link Groups</h1>
-<?php
-$this->linkForm->setAction($this->url());
-echo $this->linkForm;
-?> \ No newline at end of file
diff --git a/application/modules/dev/views/scripts/group/show.phtml b/application/modules/dev/views/scripts/group/show.phtml
deleted file mode 100644
index f8fbe1e..0000000
--- a/application/modules/dev/views/scripts/group/show.phtml
+++ /dev/null
@@ -1,123 +0,0 @@
-<h1>Group Details</h1>
-<?php
-if($this->groupID) {
- ?>
- <?php echo $this->formButton('deletegroup', 'Delete', array(
- 'onclick' => 'self.location="/dev/group/delete/groupID/' . $this->group->getID() .'"',
- 'class' => 'rightbutton'))?>
- <?php echo $this->formButton('editgroup', 'Edit', array(
- 'onclick' => 'self.location="/dev/group/edit/groupID/' . $this->group->getID() .'"',
- 'class' => 'rightbutton'))?>
-<span class="clear"></span>
-<table>
- <tr>
- <th>Title</th>
- <th>Description</th>
- </tr>
- <tr class="entry">
- <td><?php echo $this->group->getTitle(); ?></td>
- <td><?php echo $this->group->getDescription(); ?></td>
- </tr>
- <?php
- if(isset($parentGroup) && is_object($parentGroup)) {
- ?>
- <tr>
- <td><b>Superordinated Group:</b></td>
- <td><?php echo $this->parentGroup->getTitle(); ?></td>
- </tr>
- <?php
- }
- ?>
-</table>
- <?php
- if(isset($this->groupRequestList)) {
- ?>
-<br />
-<h2>Requests:</h2>
-<table>
- <tr>
- <th>Firstname</th>
- <th>Name</th>
- <th>email</th>
- <th>city</th>
- <th>grant</th>
- </tr>
- <?php
- foreach($this->groupRequestList as $grouprequest) {
- $grouprequestID = $grouprequest['grouprequestID'];
- $person = $grouprequest['person'];
- ?>
- <tr class="entry">
- <td><?php echo $person->getFirstname(); ?></td>
- <td><?php echo $person->getName(); ?></td>
- <td><?php echo $person->getEmail(); ?></td>
- <td><?php echo $person->getCity(); ?></td>
- <td>
- <form action="/dev/group/grantperson" method="post"><input
- type="hidden" name="grouprequestID"
- value="<?php echo $grouprequestID; ?>" /> <?php printRoleSelect($this->roleList); ?>
- <input type="image" src='/media/img/save.png' alt='Grant Person'
- name="confirm" value="confirm" /></form>
- </td>
- </tr>
- <?php
- }
- ?>
-</table>
- <?php
- }
- if(isset($this->membersList)) {
- ?>
-<br />
-<h2>Members:</h2>
-<table>
- <tr>
- <th>Firstname</th>
- <th>Name</th>
- <th>email</th>
- <th>city</th>
- <th>revoke</th>
- </tr>
-
- <?php
- foreach($this->membersList as $member) {
- $membershipID = $member['membershipID'];
- $person = $member['person'];
- ?>
- <tr class="entry">
- <td><?php echo $person->getFirstname(); ?></td>
- <td><?php echo $person->getName(); ?></td>
- <td><?php echo $person->getEmail(); ?></td>
- <td><?php echo $person->getCity(); ?></td>
- <td class='action'><a
- href="<?php echo $this->url(
- array(
- 'module' => 'dev',
- 'controller' => 'group',
- 'action' => 'revokeperson',
- 'membershipID' => $membershipID,
- ),
- 'default',
- true) ?>"> <img src='/media/img/delete.png' alt='Delete Group' /></a>
- </td>
- </tr>
- <?php
- }
- ?>
-</table>
- <?php
- }
-}
-
-function printRoleSelect($roleList) {
- if(!is_array($roleList)) {
- return;
- }
- echo "<select name=\"roleID\">";
- foreach($roleList as $role) {
- echo "<option value=\"" . $role['roleID'] . "\">" . $role['title'] . "</option>";
- }
- echo "</select>";
-}
-?>
-<br /><br /><br /><br /><br /> \ No newline at end of file