summaryrefslogtreecommitdiffstats
path: root/application/modules/user/views/scripts/person
diff options
context:
space:
mode:
authorBjörn Geiger2011-03-24 13:47:33 +0100
committerBjörn Geiger2011-03-24 13:47:33 +0100
commit06cfaf4e0a9b521a151cc214dd217018f4c83389 (patch)
tree1a0b6598b18d9579847d087f9ae96b63b13d143a /application/modules/user/views/scripts/person
parentTestdaten Rechtetabelle (diff)
downloadpbs2-06cfaf4e0a9b521a151cc214dd217018f4c83389.tar.gz
pbs2-06cfaf4e0a9b521a151cc214dd217018f4c83389.tar.xz
pbs2-06cfaf4e0a9b521a151cc214dd217018f4c83389.zip
PersonController im user Module
Diffstat (limited to 'application/modules/user/views/scripts/person')
-rw-r--r--application/modules/user/views/scripts/person/edit.phtml4
-rw-r--r--application/modules/user/views/scripts/person/index.phtml61
-rw-r--r--application/modules/user/views/scripts/person/request.phtml6
3 files changed, 70 insertions, 1 deletions
diff --git a/application/modules/user/views/scripts/person/edit.phtml b/application/modules/user/views/scripts/person/edit.phtml
new file mode 100644
index 0000000..955ed35
--- /dev/null
+++ b/application/modules/user/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/user/views/scripts/person/index.phtml b/application/modules/user/views/scripts/person/index.phtml
index 7a96e97..3826d25 100644
--- a/application/modules/user/views/scripts/person/index.phtml
+++ b/application/modules/user/views/scripts/person/index.phtml
@@ -1 +1,60 @@
-<br /><br /><center>View script for controller <b>Person</b> and script/action name <b>index</b></center> \ No newline at end of file
+<h1>Person</h1>
+<?php echo $this->formButton('editperson', 'Edit', array(
+ 'onclick' => 'self.location="/user/person/edit/"',
+ 'class' => 'rightbutton'))?>
+<br />
+<br />
+<div class="personColorDiv"><span class="bold">Title:</span>&nbsp;<?php echo $this->person->getTitle(); ?></div>
+<div class="personDiv"><span class="bold">Name:</span>&nbsp;<?php echo $this->person->getName(); ?></div>
+<div class="personColorDiv"><span class="bold">Firstname:</span>&nbsp;<?php echo $this->person->getFirstname(); ?></div>
+<div class="personDiv"><span class="bold">Street:</span>&nbsp;<?php echo $this->person->getStreet(); ?></div>
+<div class="personColorDiv"><span class="bold">Housenumber:</span>&nbsp;<?php echo $this->person->getHousenumber(); ?></div>
+<div class="personDiv"><span class="bold">City:</span>&nbsp;<?php echo $this->person->getCity(); ?></div>
+<div class="personColorDiv"><span class="bold">Postalcode:</span>&nbsp;<?php echo $this->person->getPostalcode(); ?></div>
+<div class="personDiv"><span class="bold">Email:</span>&nbsp;<?php echo $this->person->getEmail(); ?></div>
+<div class="personColorDiv"><span class="bold">Last Login Date:</span>&nbsp;<?php if( $this->person->getLogindate()) echo date ('d. F Y - H:i', $this->person->getLogindate()) . " Uhr"; ?></div>
+<div class="personDiv"><span class="bold">Register Date:</span>&nbsp;<?php echo date ('d. F Y - H:i', $this->person->getRegisterdate()) . ' Uhr'; ?></div>
+<?php
+if(isset($this->groups)) {
+ ?>
+<br />
+<h2>Member in the following Groups:</h2>
+<table>
+<?php
+foreach($this->groups as $group) {
+ ?>
+ <tr>
+ <th>Title</th>
+ <th>Description</th>
+ <th>Leave</th>
+ </tr>
+ <tr>
+ <td><?php echo $group['title']; ?></td>
+ <td><?php echo $group['description']; ?></td>
+ <td class='action'><a
+ href="<?php echo $this->url(
+ array(
+ 'module' => 'user',
+ 'controller' => 'person',
+ 'action' => 'leave',
+ 'membershipID' => $group['membershipID']
+ ),
+ 'default',
+ true) ?>"> <img src='/media/img/delete.png' alt='Delete Group' /></a>
+ </td>
+ </tr>
+ <?php
+}
+}
+?>
+</table>
+<?php echo $this->formButton('addtogroup', 'Add to additional
+Groups', array(
+ 'onclick' => 'self.location="/user/person/request/"',
+ 'class' => 'addbutton'));
+?>
+<br />
+<br />
+<br />
+<br />
+<br />
diff --git a/application/modules/user/views/scripts/person/request.phtml b/application/modules/user/views/scripts/person/request.phtml
new file mode 100644
index 0000000..2da570f
--- /dev/null
+++ b/application/modules/user/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