summaryrefslogtreecommitdiffstats
path: root/application/modules/dev/views/scripts/person
diff options
context:
space:
mode:
Diffstat (limited to 'application/modules/dev/views/scripts/person')
-rw-r--r--application/modules/dev/views/scripts/person/edit.phtml4
-rw-r--r--application/modules/dev/views/scripts/person/index.phtml0
-rw-r--r--application/modules/dev/views/scripts/person/leave.phtml6
-rw-r--r--application/modules/dev/views/scripts/person/request.phtml6
-rw-r--r--application/modules/dev/views/scripts/person/show.phtml79
5 files changed, 95 insertions, 0 deletions
diff --git a/application/modules/dev/views/scripts/person/edit.phtml b/application/modules/dev/views/scripts/person/edit.phtml
new file mode 100644
index 0000000..955ed35
--- /dev/null
+++ b/application/modules/dev/views/scripts/person/edit.phtml
@@ -0,0 +1,4 @@
+<?php
+$this->editForm->setAction($this->url());
+echo $this->editForm;
+?> \ No newline at end of file
diff --git a/application/modules/dev/views/scripts/person/index.phtml b/application/modules/dev/views/scripts/person/index.phtml
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/application/modules/dev/views/scripts/person/index.phtml
diff --git a/application/modules/dev/views/scripts/person/leave.phtml b/application/modules/dev/views/scripts/person/leave.phtml
new file mode 100644
index 0000000..fc96431
--- /dev/null
+++ b/application/modules/dev/views/scripts/person/leave.phtml
@@ -0,0 +1,6 @@
+<?php
+if(!isset($_POST['groupID'])) {
+ ?>
+<div>No group has been chosen.</div>
+ <?php
+} \ No newline at end of file
diff --git a/application/modules/dev/views/scripts/person/request.phtml b/application/modules/dev/views/scripts/person/request.phtml
new file mode 100644
index 0000000..2da570f
--- /dev/null
+++ b/application/modules/dev/views/scripts/person/request.phtml
@@ -0,0 +1,6 @@
+<?php
+if(count($this->requestForm->getGrouplist())>0) {
+ $this->requestForm->setAction($this->url());
+ echo $this->requestForm;
+}
+?> \ No newline at end of file
diff --git a/application/modules/dev/views/scripts/person/show.phtml b/application/modules/dev/views/scripts/person/show.phtml
new file mode 100644
index 0000000..5386c06
--- /dev/null
+++ b/application/modules/dev/views/scripts/person/show.phtml
@@ -0,0 +1,79 @@
+<div align="right">
+<button onclick="location.href='/person/edit'">Edit</button>
+</div>
+<table>
+ <tr>
+ <td><b>Title:</b></td>
+ <td><?php echo $this->person->getTitle(); ?></td>
+ </tr>
+ <tr>
+ <td><b>Name:</b></td>
+ <td><?php echo $this->person->getName(); ?></td>
+ </tr>
+ <tr>
+ <td><b>Firstname:</b></td>
+ <td><?php echo $this->person->getFirstname(); ?></td>
+ </tr>
+ <tr>
+ <td><b>Street:</b></td>
+ <td><?php echo $this->person->getStreet(); ?></td>
+ </tr>
+ <tr>
+ <td><b>Housenumber:</b></td>
+ <td><?php echo $this->person->getHousenumber(); ?></td>
+ </tr>
+ <tr>
+ <td><b>City:</b></td>
+ <td><?php echo $this->person->getCity(); ?></td>
+ </tr>
+ <tr>
+ <td><b>Postalcode:</b></td>
+ <td><?php echo $this->person->getPostalcode(); ?></td>
+ </tr>
+ <tr>
+ <td><b>Email:</b></td>
+ <td><?php echo $this->person->getEmail(); ?></td>
+ </tr>
+ <tr>
+ <td><b>Last Login Date:</b></td>
+ <td><?php if( $this->person->getLogindate()) echo date ('d. F Y - H:i', $this->person->getLogindate()); ?> Uhr</td>
+ </tr>
+ <tr>
+ <td><b>Register Date:</b></td>
+ <td><?php echo date ('d. F Y - H:i', $this->person->getRegisterdate()); ?> Uhr</td>
+ </tr>
+</table>
+<?php
+if(isset($this->groups)) {
+ ?>
+<br />
+<div>Member in the following Groups:</div>
+<br />
+<table>
+<?php
+foreach($this->groups as $group) {
+ ?>
+ <tr>
+ <th>Title</th>
+ <th>Functions</th>
+ </tr>
+ <tr>
+ <td><?php echo $group['title']; ?></td>
+ <td>
+ <form name="leaveGroup<?php echo $group['id']; ?>"
+ action="/person/leave/" method="post"><input type="hidden"
+ name="groupID" value="<?php echo $group['id']; ?>" /> <a
+ href="javascript:document.leaveGroup<?php echo $group['id']; ?>.submit();">Remove
+ Membership</a></form>
+ </td>
+ </tr>
+ <?php
+}
+}
+?>
+</table>
+<br />
+<div>
+<button onclick="location.href='/person/request'">Add to additional
+Groups</button>
+</div>