diff options
author | Simon | 2011-03-14 16:09:03 +0100 |
---|---|---|
committer | Simon | 2011-03-14 16:09:03 +0100 |
commit | b5cbdd6b400aa1ec77c9846e9cc8d4257f437e3c (patch) | |
tree | fcef50ad1ddf831f457d6aecd83e7fdc63297a1c | |
parent | footer bleibt am fensterbottom (diff) | |
download | pbs2-b5cbdd6b400aa1ec77c9846e9cc8d4257f437e3c.tar.gz pbs2-b5cbdd6b400aa1ec77c9846e9cc8d4257f437e3c.tar.xz pbs2-b5cbdd6b400aa1ec77c9846e9cc8d4257f437e3c.zip |
Application in 3 Modules gesplittet, Dev = unsere entwicklungsumgebung, user = die weboberfläche fr anwender mit acl etc, fbgui = für die fbgui truppe - links in dev müssen noch angepasst werden
106 files changed, 1055 insertions, 0 deletions
diff --git a/application/controllers/AuthController.php b/application/modules/dev/controllers/AuthController.php index 097417b..097417b 100644 --- a/application/controllers/AuthController.php +++ b/application/modules/dev/controllers/AuthController.php diff --git a/application/controllers/BootisoController.php b/application/modules/dev/controllers/BootisoController.php index 078c962..078c962 100644 --- a/application/controllers/BootisoController.php +++ b/application/modules/dev/controllers/BootisoController.php diff --git a/application/controllers/BootmenuController.php b/application/modules/dev/controllers/BootmenuController.php index 641b547..641b547 100644 --- a/application/controllers/BootmenuController.php +++ b/application/modules/dev/controllers/BootmenuController.php diff --git a/application/controllers/BootosController.php b/application/modules/dev/controllers/BootosController.php index 3a7ab90..3a7ab90 100644 --- a/application/controllers/BootosController.php +++ b/application/modules/dev/controllers/BootosController.php diff --git a/application/controllers/ClientController.php b/application/modules/dev/controllers/ClientController.php index affa780..affa780 100644 --- a/application/controllers/ClientController.php +++ b/application/modules/dev/controllers/ClientController.php diff --git a/application/controllers/ConfigController.php b/application/modules/dev/controllers/ConfigController.php index 3eff0cc..3eff0cc 100644 --- a/application/controllers/ConfigController.php +++ b/application/modules/dev/controllers/ConfigController.php diff --git a/application/controllers/ErrorController.php b/application/modules/dev/controllers/ErrorController.php index 5bb2749..5bb2749 100644 --- a/application/controllers/ErrorController.php +++ b/application/modules/dev/controllers/ErrorController.php diff --git a/application/controllers/FilterController.php b/application/modules/dev/controllers/FilterController.php index da52c34..da52c34 100644 --- a/application/controllers/FilterController.php +++ b/application/modules/dev/controllers/FilterController.php diff --git a/application/controllers/GroupController.php b/application/modules/dev/controllers/GroupController.php index fbc7943..fbc7943 100644 --- a/application/controllers/GroupController.php +++ b/application/modules/dev/controllers/GroupController.php diff --git a/application/controllers/IndexController.php b/application/modules/dev/controllers/IndexController.php index df2f91c..df2f91c 100644 --- a/application/controllers/IndexController.php +++ b/application/modules/dev/controllers/IndexController.php diff --git a/application/controllers/PersonController.php b/application/modules/dev/controllers/PersonController.php index 0b6db2e..0b6db2e 100644 --- a/application/controllers/PersonController.php +++ b/application/modules/dev/controllers/PersonController.php diff --git a/application/controllers/PoolController.php b/application/modules/dev/controllers/PoolController.php index f27ee45..f27ee45 100644 --- a/application/controllers/PoolController.php +++ b/application/modules/dev/controllers/PoolController.php diff --git a/application/controllers/ResourceController.php b/application/modules/dev/controllers/ResourceController.php index aef8649..aef8649 100644 --- a/application/controllers/ResourceController.php +++ b/application/modules/dev/controllers/ResourceController.php diff --git a/application/controllers/RoleController.php b/application/modules/dev/controllers/RoleController.php index 7a6c304..7a6c304 100644 --- a/application/controllers/RoleController.php +++ b/application/modules/dev/controllers/RoleController.php diff --git a/application/controllers/SessionController.php b/application/modules/dev/controllers/SessionController.php index ddb6fac..ddb6fac 100644 --- a/application/controllers/SessionController.php +++ b/application/modules/dev/controllers/SessionController.php diff --git a/application/forms/AuthDelete.php b/application/modules/dev/forms/AuthDelete.php index 4e9c92d..4e9c92d 100644 --- a/application/forms/AuthDelete.php +++ b/application/modules/dev/forms/AuthDelete.php diff --git a/application/forms/AuthLogin.php b/application/modules/dev/forms/AuthLogin.php index adffa29..adffa29 100644 --- a/application/forms/AuthLogin.php +++ b/application/modules/dev/forms/AuthLogin.php diff --git a/application/forms/AuthRecoverPassword.php b/application/modules/dev/forms/AuthRecoverPassword.php index fc9478b..fc9478b 100644 --- a/application/forms/AuthRecoverPassword.php +++ b/application/modules/dev/forms/AuthRecoverPassword.php diff --git a/application/forms/AuthRegister.php b/application/modules/dev/forms/AuthRegister.php index ae6e766..ae6e766 100644 --- a/application/forms/AuthRegister.php +++ b/application/modules/dev/forms/AuthRegister.php diff --git a/application/forms/BootisoCreate.php b/application/modules/dev/forms/BootisoCreate.php index 6efb0c2..6efb0c2 100644 --- a/application/forms/BootisoCreate.php +++ b/application/modules/dev/forms/BootisoCreate.php diff --git a/application/forms/BootisoEdit.php b/application/modules/dev/forms/BootisoEdit.php index 17c87d6..17c87d6 100644 --- a/application/forms/BootisoEdit.php +++ b/application/modules/dev/forms/BootisoEdit.php diff --git a/application/forms/BootmenuCreate.php b/application/modules/dev/forms/BootmenuCreate.php index a6b4272..a6b4272 100644 --- a/application/forms/BootmenuCreate.php +++ b/application/modules/dev/forms/BootmenuCreate.php diff --git a/application/forms/BootmenuEdit.php b/application/modules/dev/forms/BootmenuEdit.php index 0b33643..0b33643 100644 --- a/application/forms/BootmenuEdit.php +++ b/application/modules/dev/forms/BootmenuEdit.php diff --git a/application/forms/BootmenuEntriesAdd.php b/application/modules/dev/forms/BootmenuEntriesAdd.php index 6981619..6981619 100644 --- a/application/forms/BootmenuEntriesAdd.php +++ b/application/modules/dev/forms/BootmenuEntriesAdd.php diff --git a/application/forms/BootmenuEntriesEdit.php b/application/modules/dev/forms/BootmenuEntriesEdit.php index 6dc1aab..6dc1aab 100644 --- a/application/forms/BootmenuEntriesEdit.php +++ b/application/modules/dev/forms/BootmenuEntriesEdit.php diff --git a/application/forms/BootosCreate.php b/application/modules/dev/forms/BootosCreate.php index 0377197..0377197 100644 --- a/application/forms/BootosCreate.php +++ b/application/modules/dev/forms/BootosCreate.php diff --git a/application/forms/BootosEdit.php b/application/modules/dev/forms/BootosEdit.php index 641429d..641429d 100644 --- a/application/forms/BootosEdit.php +++ b/application/modules/dev/forms/BootosEdit.php diff --git a/application/forms/Client.php b/application/modules/dev/forms/Client.php index 83df97e..83df97e 100644 --- a/application/forms/Client.php +++ b/application/modules/dev/forms/Client.php diff --git a/application/forms/ConfigCreate.php b/application/modules/dev/forms/ConfigCreate.php index 3aa142c..3aa142c 100644 --- a/application/forms/ConfigCreate.php +++ b/application/modules/dev/forms/ConfigCreate.php diff --git a/application/forms/ConfigEdit.php b/application/modules/dev/forms/ConfigEdit.php index 53219d9..53219d9 100644 --- a/application/forms/ConfigEdit.php +++ b/application/modules/dev/forms/ConfigEdit.php diff --git a/application/forms/FilterAdd.php b/application/modules/dev/forms/FilterAdd.php index b720089..b720089 100644 --- a/application/forms/FilterAdd.php +++ b/application/modules/dev/forms/FilterAdd.php diff --git a/application/forms/FilterEntriesAdd.php b/application/modules/dev/forms/FilterEntriesAdd.php index 9f9c642..9f9c642 100644 --- a/application/forms/FilterEntriesAdd.php +++ b/application/modules/dev/forms/FilterEntriesAdd.php diff --git a/application/forms/FilterEvaluate.php b/application/modules/dev/forms/FilterEvaluate.php index b7c2b51..b7c2b51 100644 --- a/application/forms/FilterEvaluate.php +++ b/application/modules/dev/forms/FilterEvaluate.php diff --git a/application/forms/GroupAdd.php b/application/modules/dev/forms/GroupAdd.php index 7df3af5..7df3af5 100644 --- a/application/forms/GroupAdd.php +++ b/application/modules/dev/forms/GroupAdd.php diff --git a/application/forms/GroupEdit.php b/application/modules/dev/forms/GroupEdit.php index ef38d83..ef38d83 100644 --- a/application/forms/GroupEdit.php +++ b/application/modules/dev/forms/GroupEdit.php diff --git a/application/forms/GroupLink.php b/application/modules/dev/forms/GroupLink.php index 231c4a7..231c4a7 100644 --- a/application/forms/GroupLink.php +++ b/application/modules/dev/forms/GroupLink.php diff --git a/application/forms/GroupRequest.php b/application/modules/dev/forms/GroupRequest.php index ec717de..ec717de 100644 --- a/application/forms/GroupRequest.php +++ b/application/modules/dev/forms/GroupRequest.php diff --git a/application/forms/PersonEdit.php b/application/modules/dev/forms/PersonEdit.php index 664daac..664daac 100644 --- a/application/forms/PersonEdit.php +++ b/application/modules/dev/forms/PersonEdit.php diff --git a/application/forms/Pool.php b/application/modules/dev/forms/Pool.php index be30444..be30444 100644 --- a/application/forms/Pool.php +++ b/application/modules/dev/forms/Pool.php diff --git a/application/forms/PoolClient.php b/application/modules/dev/forms/PoolClient.php index 0c4ef6a..0c4ef6a 100644 --- a/application/forms/PoolClient.php +++ b/application/modules/dev/forms/PoolClient.php diff --git a/application/forms/Session.php b/application/modules/dev/forms/Session.php index 8603f75..8603f75 100644 --- a/application/forms/Session.php +++ b/application/modules/dev/forms/Session.php diff --git a/application/modules/dev/views/scripts/auth/delete.phtml b/application/modules/dev/views/scripts/auth/delete.phtml new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/application/modules/dev/views/scripts/auth/delete.phtml diff --git a/application/modules/dev/views/scripts/auth/index.phtml b/application/modules/dev/views/scripts/auth/index.phtml new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/application/modules/dev/views/scripts/auth/index.phtml diff --git a/application/modules/dev/views/scripts/auth/login.phtml b/application/modules/dev/views/scripts/auth/login.phtml new file mode 100644 index 0000000..4e642a3 --- /dev/null +++ b/application/modules/dev/views/scripts/auth/login.phtml @@ -0,0 +1,5 @@ +<?php +$this->loginForm->setAction($this->url()); +echo $this->loginForm; +?> +<div><button onclick="location.href='/auth/recoverpassword'">Recover Password</button></div>
\ No newline at end of file diff --git a/application/modules/dev/views/scripts/auth/logout.phtml b/application/modules/dev/views/scripts/auth/logout.phtml new file mode 100644 index 0000000..a709bd9 --- /dev/null +++ b/application/modules/dev/views/scripts/auth/logout.phtml @@ -0,0 +1 @@ +<br /><br /><center>View script for controller <b>Auth</b> and script/action name <b>logout</b></center>
\ No newline at end of file diff --git a/application/modules/dev/views/scripts/auth/recoverpassword.phtml b/application/modules/dev/views/scripts/auth/recoverpassword.phtml new file mode 100644 index 0000000..881e00e --- /dev/null +++ b/application/modules/dev/views/scripts/auth/recoverpassword.phtml @@ -0,0 +1,4 @@ +<?php +$this->recoverPasswordForm->setAction($this->url()); +echo $this->recoverPasswordForm; +?> diff --git a/application/modules/dev/views/scripts/auth/register.phtml b/application/modules/dev/views/scripts/auth/register.phtml new file mode 100644 index 0000000..5196738 --- /dev/null +++ b/application/modules/dev/views/scripts/auth/register.phtml @@ -0,0 +1,4 @@ +<?php +$this->registerForm->setAction($this->url()); +echo $this->registerForm; +?> diff --git a/application/modules/dev/views/scripts/bootiso/createbootiso.phtml b/application/modules/dev/views/scripts/bootiso/createbootiso.phtml new file mode 100644 index 0000000..a5ad609 --- /dev/null +++ b/application/modules/dev/views/scripts/bootiso/createbootiso.phtml @@ -0,0 +1,4 @@ +<?php +$this->createbootisoForm->setAction($this->url()); +echo $this->createbootisoForm; +?> diff --git a/application/modules/dev/views/scripts/bootiso/editbootiso.phtml b/application/modules/dev/views/scripts/bootiso/editbootiso.phtml new file mode 100644 index 0000000..9b04c95 --- /dev/null +++ b/application/modules/dev/views/scripts/bootiso/editbootiso.phtml @@ -0,0 +1,4 @@ +<?php +$this->editbootisoForm->setAction($this->url()); +echo $this->editbootisoForm; +?> diff --git a/application/modules/dev/views/scripts/bootiso/index.phtml b/application/modules/dev/views/scripts/bootiso/index.phtml new file mode 100644 index 0000000..5e7da1e --- /dev/null +++ b/application/modules/dev/views/scripts/bootiso/index.phtml @@ -0,0 +1,56 @@ +<h1>BootISO</h1> +<?php echo $this->formButton('createbootiso', 'Create BootISO', array( + 'onclick' => 'self.location="/bootiso/createbootiso"', + 'class' => 'addbutton'))?> +<table> + <tr> + <th>ID</th> + <th>Title</th> + <th>GroupID</th> + <th>MembershipID</th> + <th>Path</th> + <th>Serialnumber</th> + <th>Created</th> + <th>Expires</th> + <th>Public</th> + <th colspan=2>Actions</th> + </tr> + <?php if(count($this->bootisolist)==0) + echo "</table> There are no BootISO's entries for the Bootmenuto display." ?> + <?php foreach ($this->bootisolist as $bootiso): ?> + <tr class=entry> + <td><?php echo $this->escape($bootiso->getID()); ?></td> + <td><?php echo $this->escape($bootiso->getTitle()); ?></td> + <td><?php echo $this->escape($bootiso->getGroupID()); ?></td> + <td><?php echo $this->escape($bootiso->getMembershipID()); ?></td> + <td><?php echo $this->escape($bootiso->getPath()); ?></td> + <td><?php echo $this->escape($bootiso->getSerialnumber()); ?></td> + <td><?php echo $this->escape(date('Y-m-d H:i:s', $bootiso->getCreated())); ?></td> + <td><?php echo $this->escape($bootiso->getExpires()); ?></td> + <td><?php echo $this->escape($bootiso->getPublic()); ?></td> + <td class='action'><a href="<?php echo $this->url( + array( + 'controller' => 'bootiso', + 'action' => 'editbootiso', + 'bootisoID' => $bootiso->getID() + ), + 'default', + true, false) ?>"><img src='/media/img/edit.png' alt='Edit BootISO' /></a></td> + <td class='action'><a href="<?php echo $this->url( + array( + 'controller' => 'bootiso', + 'action' => 'deletebootiso', + 'bootisoID' => $bootiso->getID() + ), + 'default', + true) ?>"><img src='/media/img/delete.png' alt='Delete BootISO'/></a></td> + </tr> + <?php endforeach; ?> +</table> + + + + + + + diff --git a/application/modules/dev/views/scripts/bootmenu/addbootmenuentry.phtml b/application/modules/dev/views/scripts/bootmenu/addbootmenuentry.phtml new file mode 100644 index 0000000..914cc9c --- /dev/null +++ b/application/modules/dev/views/scripts/bootmenu/addbootmenuentry.phtml @@ -0,0 +1,4 @@ +<?php +$this->addbootmenuentryForm->setAction($this->url()); +echo $this->addbootmenuentryForm; +?>
\ No newline at end of file diff --git a/application/modules/dev/views/scripts/bootmenu/createbootmenu.phtml b/application/modules/dev/views/scripts/bootmenu/createbootmenu.phtml new file mode 100644 index 0000000..2d2c2df --- /dev/null +++ b/application/modules/dev/views/scripts/bootmenu/createbootmenu.phtml @@ -0,0 +1,4 @@ +<?php +$this->createbootmenuForm->setAction($this->url()); +echo $this->createbootmenuForm; +?> diff --git a/application/modules/dev/views/scripts/bootmenu/editbootmenu.phtml b/application/modules/dev/views/scripts/bootmenu/editbootmenu.phtml new file mode 100644 index 0000000..b7adc4a --- /dev/null +++ b/application/modules/dev/views/scripts/bootmenu/editbootmenu.phtml @@ -0,0 +1,4 @@ +<?php +$this->editbootmenuForm->setAction($this->url()); +echo $this->editbootmenuForm; +?> diff --git a/application/modules/dev/views/scripts/bootmenu/editbootmenuentry.phtml b/application/modules/dev/views/scripts/bootmenu/editbootmenuentry.phtml new file mode 100644 index 0000000..5680d65 --- /dev/null +++ b/application/modules/dev/views/scripts/bootmenu/editbootmenuentry.phtml @@ -0,0 +1,4 @@ +<?php +$this->editbootmenuentryForm->setAction($this->url()); +echo $this->editbootmenuentryForm; +?>
\ No newline at end of file diff --git a/application/modules/dev/views/scripts/bootmenu/index.phtml b/application/modules/dev/views/scripts/bootmenu/index.phtml new file mode 100644 index 0000000..fa722e4 --- /dev/null +++ b/application/modules/dev/views/scripts/bootmenu/index.phtml @@ -0,0 +1,119 @@ +<h1>BootMenu</h1> +<?php echo $this->formButton('createbootmenu', 'Create BootMenu', array( + 'onclick' => 'self.location="/bootmenu/createbootmenu"', + 'class' => 'addbutton'))?> + + +<table> + <tr> + <th>ID</th> + <th>Title</th> + <th>GroupID</th> + <th>MembershipID</th> + <th>Changed</th> + <th colspan=3>Actions</th> + </tr> + <?php if(count($this->bootmenulist)==0) + echo "</table> There are no BootMenus to display." ?> + <?php foreach ($this->bootmenulist as $bootmenu): ?> + <tr class=entry> + <td><?php echo $this->escape($bootmenu->getID()); ?></td> + <td><?php echo $this->escape($bootmenu->getTitle()); ?></td> + <td><?php echo $this->escape($bootmenu->getGroupID()); ?></td> + <td><?php echo $this->escape($bootmenu->getMembershipID()); ?></td> + <td><?php echo $this->escape(date('Y-m-d H:i:s', $bootmenu->getCreated())); ?></td> + <td class='action'><a href="<?php echo $this->url( + array( + 'controller' => 'bootmenu', + 'action' => 'editbootmenu', + 'bootmenuID' => $bootmenu->getID() + ), + 'default', + true, false) ?>"><img src='/media/img/edit.png' alt='Edit Bootmenu'/></a></td> + <td class='action'><a href="<?php echo $this->url( + array( + 'controller' => 'bootmenu', + 'action' => 'deletebootmenu', + 'bootmenuID' => $bootmenu->getID() + ), + 'default', + true) ?>"><img src='/media/img/delete.png' alt='Delete Bootmenu'/></a></td> + <td class='action'><a href="<?php echo $this->url( + array( + 'controller' => 'bootmenu', + 'action' => 'addbootmenuentry', + 'bootmenuID' => $bootmenu->getID(), + 'maxorder' => count($this->bootmenuentrylist[$bootmenu->getID()]) + ), + 'default', + true) ?>"><img src='/media/img/add.png' alt='Add Entry'/></a></td> + </tr> + +<?php if(count($this->bootmenuentrylist[$bootmenu->getID()]) > 0):?> + <tr class=detail> + <td class=arrowtop>↳</td> + <td colspan=7> + <table> + <tr> + <th></th> + <th>ID</th> + <th>Title</th> +<!-- <th>BootmenuID</th>--> + <th>BootOS</th> + <th>kcl</th> + + <th>Config</th> + <th>Position</th> + <th colspan=2>Actions</th> + + </tr> + <?php foreach ($this->bootmenuentrylist[$bootmenu->getID()] as $bootmenuentry): ?> + <?php $bootos = $this->bootosmapper->find($bootmenuentry->getBootosID());?> + <?php $config = $this->configmapper->find($bootmenuentry->getConfigID());?> + <tr> + <td class='action'> + <a href='/resource/getbootmenuentry/bootmenuentryID/<?php echo $bootmenuentry->getID();?>'> + <img src='/media/img/play.gif'> + </a> + </td> + <td><?php echo $this->escape($bootmenuentry->getID()); ?></td> + <td><?php echo $this->escape($bootmenuentry->getTitle()); ?></td> + <!--<td><?php echo $this->escape($bootmenuentry->getBootmenuID()); ?></td> + --><td><?php echo "[".$this->escape($bootmenuentry->getBootosID()."] ". $bootos->getTitle()); ?></td> + <td><?php echo $this->escape($bootmenuentry->getkcl()); ?></td> + <td><?php echo "[".$this->escape($bootmenuentry->getConfigID()."] ". $config->getTitle()); ?></td> + <td><?php echo $this->escape($bootmenuentry->getOrder() + 1); ?></td> + <td class='action'><a href="<?php echo $this->url( + array( + 'controller' => 'bootmenu', + 'action' => 'editbootmenuentry', + 'bootmenuentryID' => $bootmenuentry->getID(), + 'bootmenuID' => $bootmenu->getID(), + 'maxorder' => count($this->bootmenuentrylist[$bootmenu->getID()]), + 'oldorder' => $bootmenuentry->getOrder() + ), + 'default', + true, false) ?>"><img src='/media/img/edit.png' alt='Edit Entry'/></a></td> + <td class='action'><a href="<?php echo $this->url( + array( + 'controller' => 'bootmenu', + 'action' => 'removebootmenuentry', + 'bootmenuentryID' => $bootmenuentry->getID() + ), + 'default', + true) ?>"><img src='/media/img/delete.png' alt='Remove Entry'/></a></td> + </tr> + <?php endforeach; ?> + </table> + </td> + </tr> + <?php endif; ?> + <?php endforeach; ?> +</table> + + + + + + + diff --git a/application/modules/dev/views/scripts/bootos/createbootos.phtml b/application/modules/dev/views/scripts/bootos/createbootos.phtml new file mode 100644 index 0000000..3d35695 --- /dev/null +++ b/application/modules/dev/views/scripts/bootos/createbootos.phtml @@ -0,0 +1,4 @@ +<?php +$this->createbootosForm->setAction($this->url()); +echo $this->createbootosForm; +?> diff --git a/application/modules/dev/views/scripts/bootos/editbootos.phtml b/application/modules/dev/views/scripts/bootos/editbootos.phtml new file mode 100644 index 0000000..43813de --- /dev/null +++ b/application/modules/dev/views/scripts/bootos/editbootos.phtml @@ -0,0 +1,4 @@ +<?php +$this->editbootosForm->setAction($this->url()); +echo $this->editbootosForm; +?> diff --git a/application/modules/dev/views/scripts/bootos/index.phtml b/application/modules/dev/views/scripts/bootos/index.phtml new file mode 100644 index 0000000..6da7a16 --- /dev/null +++ b/application/modules/dev/views/scripts/bootos/index.phtml @@ -0,0 +1,62 @@ +<h1>BootOS</h1> +<?php echo $this->formButton('createbootos', 'Create BootOS', array( + 'onclick' => 'self.location="/bootos/createbootos"', + 'class' => 'addbutton'))?> + +<table> + <tr> + <th>ID</th> + <th>Title</th> + <th>GroupID</th> + <th>MembershipID</th> + <th>ConfigID</th> + <th>Init</th> + <th>Kernel</th> + <th>Kcl</th> + <th>Description</th> + <th>Changed</th> + <th>Expires</th> + <th>Public</th> + <th colspan=2>Actions</th> + </tr> + <?php if(count($this->bootoslist)==0) + echo "</table> There are no BootOs's to display." ?> + <?php foreach ($this->bootoslist as $bootos): ?> + <tr class=entry> + <td><?php echo $this->escape($bootos->getID()); ?></td> + <td><?php echo $this->escape($bootos->getTitle()); ?></td> + <td><?php echo $this->escape($bootos->getGroupID()); ?></td> + <td><?php echo $this->escape($bootos->getMembershipID()); ?></td> + <td><?php echo $this->escape($bootos->getConfigID()); ?></td> + <td><?php echo $this->escape($bootos->getPath_init()); ?></td> + <td><?php echo $this->escape($bootos->getPath_kernel()); ?></td> + <td><?php echo $this->escape($bootos->getDefaultkcl()); ?></td> + <td><?php echo $this->escape($bootos->getDescription()); ?></td> + <td><?php echo $this->escape(date('Y-m-d H:i:s', $bootos->getCreated())); ?></td> + <td><?php echo $this->escape($bootos->getExpires()); ?></td> + <td><?php echo $this->escape($bootos->getPublic()); ?></td> + <td class='action'><a href="<?php echo $this->url( + array( + 'controller' => 'bootos', + 'action' => 'editbootos', + 'bootosID' => $bootos->getID() + ), + 'default', + true, false) ?>"><img src='/media/img/edit.png' alt='Edit BootOS'/></a></td> + <td class='action'><a href="<?php echo $this->url( + array( + 'controller' => 'bootos', + 'action' => 'deletebootos', + 'bootosID' => $bootos->getID() + ), + 'default', + true) ?>"><img src='/media/img/delete.png' alt='Delete BootOS'/></a></td> + </tr> + <?php endforeach; ?> +</table> + + + + + + diff --git a/application/modules/dev/views/scripts/client/addclient.phtml b/application/modules/dev/views/scripts/client/addclient.phtml new file mode 100644 index 0000000..e5b0bcf --- /dev/null +++ b/application/modules/dev/views/scripts/client/addclient.phtml @@ -0,0 +1,3 @@ +<?php + +echo $this->addclient; diff --git a/application/modules/dev/views/scripts/client/editclient.phtml b/application/modules/dev/views/scripts/client/editclient.phtml new file mode 100644 index 0000000..94d6b34 --- /dev/null +++ b/application/modules/dev/views/scripts/client/editclient.phtml @@ -0,0 +1,3 @@ +<?php + +echo $this->editclient; diff --git a/application/modules/dev/views/scripts/client/index.phtml b/application/modules/dev/views/scripts/client/index.phtml new file mode 100644 index 0000000..fd7725c --- /dev/null +++ b/application/modules/dev/views/scripts/client/index.phtml @@ -0,0 +1,44 @@ +<h1>Clients</h1> +<?php echo $this->formButton('createbootos', 'Create Client', array( + 'onclick' => 'self.location="/client/addclient"', + 'class' => 'addbutton'))?> + +<?php if ($this->clients): ?> + <table> + <tr> + <th>ID</th> + <th>MAC</th> + <th>Hardwarehash</th> + <th colspan=2>Actions</th> + </tr> + <?php foreach ($this->clients as $client): ?> + <tr class=entry> + <td><?php echo $this->escape($client->getID()) ?></td> + <td class='monospace'><?php echo $this->escape($client->getMacadress()) ?></td> + <td class='monospace'><?php echo $this->escape($client->getHardwarehash()) ?></td> + <td class='action'><a href="<?php echo $this->url( + array( + 'controller' => 'client', + 'action' => 'editclient', + 'clientID' => $client->getID() + ), + 'default', + true) ?>"><img src='/media/img/edit.png' alt='Edit Client'/></a></td> + <td class='action'><a href="<?php echo $this->url( + array( + 'controller' => 'client', + 'action' => 'removeclient', + 'clientID' => $client->getID() + ), + 'default', + true) ?>"><img src='/media/img/delete.png' alt='Delete Client'/></a></td> + </tr> + <?php endforeach ?> + </table> + +<?php else: ?> + + + <p>There are no clients to display.</p> + +<?php endif;?> diff --git a/application/modules/dev/views/scripts/client/removeclient.phtml b/application/modules/dev/views/scripts/client/removeclient.phtml new file mode 100644 index 0000000..7b5f64f --- /dev/null +++ b/application/modules/dev/views/scripts/client/removeclient.phtml @@ -0,0 +1 @@ +<br /><br /><center>View script for controller <b>Client</b> and script/action name <b>deleteclient</b></center>
\ No newline at end of file diff --git a/application/modules/dev/views/scripts/config/createconfig.phtml b/application/modules/dev/views/scripts/config/createconfig.phtml new file mode 100644 index 0000000..e6edf7b --- /dev/null +++ b/application/modules/dev/views/scripts/config/createconfig.phtml @@ -0,0 +1,4 @@ +<?php +$this->createconfigForm->setAction($this->url()); +echo $this->createconfigForm; +?> diff --git a/application/modules/dev/views/scripts/config/editconfig.phtml b/application/modules/dev/views/scripts/config/editconfig.phtml new file mode 100644 index 0000000..4971f2e --- /dev/null +++ b/application/modules/dev/views/scripts/config/editconfig.phtml @@ -0,0 +1,4 @@ +<?php +$this->editconfigForm->setAction($this->url()); +echo $this->editconfigForm; +?> diff --git a/application/modules/dev/views/scripts/config/index.phtml b/application/modules/dev/views/scripts/config/index.phtml new file mode 100644 index 0000000..5562b86 --- /dev/null +++ b/application/modules/dev/views/scripts/config/index.phtml @@ -0,0 +1,50 @@ +<h1>Config</h1> +<?php echo $this->formButton('createconfig', 'Create Config', array( + 'onclick' => 'self.location="/config/createconfig"', + 'class' => 'addbutton'))?> + +<table> + <tr> + <th>ID</th> + <th>Title</th> + <th>GroupID</th> + <th>MembershipID</th> + <th>Shellscript</th> + <th>Changed</th> + <th colspan=2>Actions</th> + </tr> + <?php if(count($this->configlist)==0) + echo "</table> There are no Config's to display." ?> + <?php foreach ($this->configlist as $config): ?> + <tr class=entry> + <td><?php echo $this->escape($config->getID()); ?></td> + <td><?php echo $this->escape($config->getTitle()); ?></td> + <td><?php echo $this->escape($config->getGroupID()); ?></td> + <td><?php echo $this->escape($config->getMembershipID()); ?></td> + <td><?php echo $this->escape($config->getShellscript()); ?></td> + <td><?php echo $this->escape(date('Y-m-d H:i:s', $config->getCreated())); ?></td> + <td class='action'><a href="<?php echo $this->url( + array( + 'controller' => 'config', + 'action' => 'editconfig', + 'configID' => $config->getID() + ), + 'default', + true, false) ?>"><img src='/media/img/edit.png' alt='Edit Config'/></a></td> + <td class='action'><a href="<?php echo $this->url( + array( + 'controller' => 'config', + 'action' => 'deleteconfig', + 'configID' => $config->getID() + ), + 'default', + true) ?>"><img src='/media/img/delete.png' alt='Delete Config'/></a></td> + </tr> + <?php endforeach; ?> +</table> + + + + + + diff --git a/application/modules/dev/views/scripts/error/error.phtml b/application/modules/dev/views/scripts/error/error.phtml new file mode 100644 index 0000000..1997506 --- /dev/null +++ b/application/modules/dev/views/scripts/error/error.phtml @@ -0,0 +1,28 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> + <title>Zend Framework Default Application</title> +</head> +<body> + <h1>An error occurred</h1> + <h2><?php echo $this->message ?></h2> + + <?php if (isset($this->exception)): ?> + + <h3>Exception information:</h3> + <p> + <b>Message:</b> <?php echo $this->exception->getMessage() ?> + </p> + + <h3>Stack trace:</h3> + <pre><?php echo $this->exception->getTraceAsString() ?> + </pre> + + <h3>Request Parameters:</h3> + <pre><?php echo var_export($this->request->getParams(), true) ?> + </pre> + <?php endif ?> + +</body> +</html> diff --git a/application/modules/dev/views/scripts/filter/addfilter.phtml b/application/modules/dev/views/scripts/filter/addfilter.phtml new file mode 100644 index 0000000..40b4ccf --- /dev/null +++ b/application/modules/dev/views/scripts/filter/addfilter.phtml @@ -0,0 +1,3 @@ +<?php +#$this->addfilterform->setAction($this->url()); +echo $this->addfilterform; diff --git a/application/modules/dev/views/scripts/filter/addfilterentry.phtml b/application/modules/dev/views/scripts/filter/addfilterentry.phtml new file mode 100644 index 0000000..8bf501a --- /dev/null +++ b/application/modules/dev/views/scripts/filter/addfilterentry.phtml @@ -0,0 +1,3 @@ +<?php +$this->editfilterform->setAction($this->url()); +echo $this->editfilterform; diff --git a/application/modules/dev/views/scripts/filter/editfilter.phtml b/application/modules/dev/views/scripts/filter/editfilter.phtml new file mode 100644 index 0000000..8bc38f7 --- /dev/null +++ b/application/modules/dev/views/scripts/filter/editfilter.phtml @@ -0,0 +1,8 @@ +<h1>Edit Filter</h1> +<?php + +$this->editfilterform->setAction($this->url()); +echo $this->editfilterform; + + +?> diff --git a/application/modules/dev/views/scripts/filter/editfilterentry.phtml b/application/modules/dev/views/scripts/filter/editfilterentry.phtml new file mode 100644 index 0000000..038f16a --- /dev/null +++ b/application/modules/dev/views/scripts/filter/editfilterentry.phtml @@ -0,0 +1,2 @@ +<?php +echo $this->editfilterform; diff --git a/application/modules/dev/views/scripts/filter/evaluate.phtml b/application/modules/dev/views/scripts/filter/evaluate.phtml new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/application/modules/dev/views/scripts/filter/evaluate.phtml diff --git a/application/modules/dev/views/scripts/filter/index.phtml b/application/modules/dev/views/scripts/filter/index.phtml new file mode 100644 index 0000000..188bed3 --- /dev/null +++ b/application/modules/dev/views/scripts/filter/index.phtml @@ -0,0 +1,117 @@ +<h1>Filters</h1> +<?php echo $this->formButton('createconfig', 'Create Filter', array( + 'onclick' => 'self.location="/filter/addfilter"', + 'class' => 'addbutton'))?> + +<?php if ($this->filters): ?> + <table> + <tr> + <th>ID</th> + <th>Title</th> + <th>Description</th> + <th>Priority</th> + <th>TargetBootMenu</th> + <th colspan=3>Actions</th> + </tr> + <?php foreach ($this->filters as $filter): ?> + <tr class='entry'> + <td><?php echo $this->escape($filter->getID()) ?></td> + <td><?php echo $this->escape($filter->title) ?></td> + <td><?php echo $this->escape($filter->Description) ?></td> + <td><?php echo $this->escape($filter->priority) ?></td> + <td><?php echo $this->escape($filter->bootmenuID) ?></td> + <td class='action'><a href="<?php echo $this->url( + array( + 'controller' => 'filter', + 'action' => 'editfilter', + 'filterID' => $filter->getID() + ), + 'default', + true) ?>"><img src='/media/img/edit.png' alt='Edit Filter'/></a></td> + <td class='action'><a href="<?php echo $this->url( + array( + 'controller' => 'filter', + 'action' => 'removefilter', + 'filterID' => $filter->getID() + ), + 'default', + true) ?>"><img src='/media/img/delete.png' alt='Delete Filter'/></a></td> + <td class='action'><a href="<?php echo $this->url( + array( + 'controller' => 'filter', + 'action' => 'addfilterentry', + 'filterID' => $filter->getID() + ), + 'default', + true) ?>"><img src='/media/img/add.png' alt='Add Filterentry'/></a></td> + </tr> + <?php + $fe = new Application_Model_FilterEntriesMapper(); + # print_a($erg = $fe->findBy('filterID',$filter->getID())); + $erg = $fe->findBy('filterID',$filter->getID()); + ?> + <?php if (count($erg)>0): ?> + <tr class=detail> + <td class=arrowtop>↳</td> + <td colspan=7> + <?php + + ?> + <table> + <tr> + <th>Filtertype</th> + <th>Value</th> + <th>Value2</th> + <th colspan=2>Actions</th> + </tr> + <?php foreach ($erg as $filterentry): ?> + + <tr> + <td><?php + + $filter2 = new Application_Model_FilterTypeMapper(); + $erg = new Application_Model_FilterType(); + $filter2->find($filterentry['filtertypeID'],$erg); + //name zur ID finden + echo "[".$filterentry['filtertypeID']."] "; + echo $erg->getFiltertypename(); + + + ?></td> + <td><?php echo $filterentry['filtervalue'];?></td> + <td><?php echo $filterentry['filtervalue2'];?></td> + <td class='action'><a href="<?php echo $this->url( + array( + 'controller' => 'filter', + 'action' => 'editfilterentry', + 'filterentriesID' => $filterentry['filterentriesID'] + ), + 'default', + true) ?>"><img src='/media/img/edit.png' alt='Edit Filterentry'/></a> + <td class='action'><a href="<?php echo $this->url( + array( + 'controller' => 'filter', + 'action' => 'removefilterentry', + 'filterentriesID' => $filterentry['filterentriesID'] + ), + 'default', + true) ?>"><img src='/media/img/delete.png' alt='Delete Filterentry'/></a> + </tr> + + <?php endforeach ?> + </table> + </td> + </tr> + <?php endif;?> + <?php endforeach ?> + </table> + + +<?php else: ?> + + <p>There are no filters to display.</p> + +<?php endif;?> +<?php echo $this->formButton('createconfig', 'Test Filters', array( + 'onclick' => 'self.location="/filter/testevaluate"', + 'class' => 'addbutton'))?> diff --git a/application/modules/dev/views/scripts/filter/testevaluate.phtml b/application/modules/dev/views/scripts/filter/testevaluate.phtml new file mode 100644 index 0000000..8a10629 --- /dev/null +++ b/application/modules/dev/views/scripts/filter/testevaluate.phtml @@ -0,0 +1,4 @@ +<h1>Test Filters</h1> + +<?php +echo $this->filterevaluate; diff --git a/application/modules/dev/views/scripts/group/add.phtml b/application/modules/dev/views/scripts/group/add.phtml new file mode 100644 index 0000000..4f96cf0 --- /dev/null +++ b/application/modules/dev/views/scripts/group/add.phtml @@ -0,0 +1,4 @@ +<?php +$this->addForm->setAction($this->url()); +echo $this->addForm; +?>
\ No newline at end of file diff --git a/application/modules/dev/views/scripts/group/delete.phtml b/application/modules/dev/views/scripts/group/delete.phtml new file mode 100644 index 0000000..fc96431 --- /dev/null +++ b/application/modules/dev/views/scripts/group/delete.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/group/edit.phtml b/application/modules/dev/views/scripts/group/edit.phtml new file mode 100644 index 0000000..64dde9d --- /dev/null +++ b/application/modules/dev/views/scripts/group/edit.phtml @@ -0,0 +1,10 @@ +<?php +if(isset($this->addForm)) { + $this->addForm->setAction('/group/add'); + echo $this->addForm; +} +else { + $this->editForm->setAction($this->url()); + echo $this->editForm; +} +?>
\ No newline at end of file diff --git a/application/modules/dev/views/scripts/group/grantperson.phtml b/application/modules/dev/views/scripts/group/grantperson.phtml new file mode 100644 index 0000000..f15d08a --- /dev/null +++ b/application/modules/dev/views/scripts/group/grantperson.phtml @@ -0,0 +1,11 @@ +<?php +if(!isset($_POST['grouprequestID'])) { + ?> +<div>No Request has been chosen.</div> + <?php +} +if(!isset($_POST['roleID'])) { + ?> +<div>No Role has been chosen.</div> + <?php +}
\ No newline at end of file diff --git a/application/modules/dev/views/scripts/group/index.phtml b/application/modules/dev/views/scripts/group/index.phtml new file mode 100644 index 0000000..b8178dc --- /dev/null +++ b/application/modules/dev/views/scripts/group/index.phtml @@ -0,0 +1,35 @@ +<table> + <tr> + <th>Title:</th> + <th>Functions:</th> + </tr> + <?php + $count = 0; + foreach($this->groupList as $group) { + ?> + <tr> + <td><?php echo $group->getTitle(); ?></td> + <td> + <form name="show<?php echo $count; ?>" action="/group/show" + method="post"><input type="hidden" name="groupID" + value="<?php echo $group->getID(); ?>" /><a + href="javascript:document.show<?php echo $count; ?>.submit();">Details</a></form> + <form name="edit<?php echo $count; ?>" action="/group/edit" + method="post"><input type="hidden" name="groupID" + value="<?php echo $group->getID(); ?>" /><a + href="javascript:document.edit<?php echo $count; ?>.submit();">Edit</a></form> + <form name="delete<?php echo $count; ?>" action="/group/delete" + method="post"><input type="hidden" name="groupID" + value="<?php echo $group->getID(); ?>" /><a + href="javascript:document.delete<?php echo $count; ?>.submit();">Delete</a></form> + </td> + </tr> + <?php + $count++; + } + ?> +</table> +<br /> +<div> +<button onclick="location.href='/group/link'">Link Groups</button> +</div> diff --git a/application/modules/dev/views/scripts/group/link.phtml b/application/modules/dev/views/scripts/group/link.phtml new file mode 100644 index 0000000..94ad343 --- /dev/null +++ b/application/modules/dev/views/scripts/group/link.phtml @@ -0,0 +1,4 @@ +<?php +$this->linkForm->setAction($this->url()); +echo $this->linkForm; +?>
\ No newline at end of file diff --git a/application/modules/dev/views/scripts/group/revokeperson.phtml b/application/modules/dev/views/scripts/group/revokeperson.phtml new file mode 100644 index 0000000..6af5564 --- /dev/null +++ b/application/modules/dev/views/scripts/group/revokeperson.phtml @@ -0,0 +1,6 @@ +<?php +if(!isset($_POST['membershipID'])) { + ?> +<div>No Membership has been chosen.</div> + <?php +}
\ 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 new file mode 100644 index 0000000..addf3db --- /dev/null +++ b/application/modules/dev/views/scripts/group/show.phtml @@ -0,0 +1,122 @@ +<?php +if($_POST['groupID']) { + ?> +<div align="right"> +<form name="editForm" action="/group/edit/" method="post"><input + type="hidden" name="groupID" + value="<?php echo $this->group->getID(); ?>" /> <input type="submit" + name="edit" value="Edit" /></form> +<form name="deleteForm" action="/group/delete/" method="post"><input + type="hidden" name="groupID" + value="<?php echo $this->group->getID(); ?>" /> <input type="submit" + name="delete" value="Delete" /></form> +</div> +<table> + <tr> + <td><b>Title:</b></td> + <td><?php echo $this->group->getTitle(); ?></td> + </tr> + <tr> + <td><b>Description:</b></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 /> +<div>Grouprequests:</div> +<br /> +<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> + <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="/group/grantperson" method="post"><input type="hidden" + name="grouprequestID" value="<?php echo $grouprequestID; ?>" /> <?php printRoleSelect($this->roleList); ?> + <input type="submit" name="confirm" value="confirm" /></form> + </td> + </tr> + <?php + } + ?> +</table> + <?php + } + if(isset($this->memberslist)) { + ?> +<br /> +<div>Members:</div> +<br /> +<table> + <tr> + <th>Firstname:</th> + <th>Name:</th> + <th>email:</th> + <th>city:</th> + <th></th> + </tr> + + <?php + foreach($this->memberslist as $member) { + $membershipID = $member['membershipID']; + $person = $member['person']; + ?> + <tr> + <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="/group/revokeperson" method="post"><input type="hidden" + name="membershipID" value="<?php echo $membershipID; ?>" /><input + type="hidden" name="personID" value="<?php echo $person->getID(); ?>" /> + <input type="submit" name="revoke" value="revoke" /></form> + </td> + </tr> + <?php + } + ?> +</table> + <?php + } +} else { + ?> +<div>No Group has been chosen.</div> + <?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>"; +}
\ No newline at end of file diff --git a/application/modules/dev/views/scripts/index/index.phtml b/application/modules/dev/views/scripts/index/index.phtml new file mode 100644 index 0000000..57e6edb --- /dev/null +++ b/application/modules/dev/views/scripts/index/index.phtml @@ -0,0 +1 @@ +<h1>Welcome</h1> 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> diff --git a/application/modules/dev/views/scripts/pool/createpool.phtml b/application/modules/dev/views/scripts/pool/createpool.phtml new file mode 100644 index 0000000..305b36e --- /dev/null +++ b/application/modules/dev/views/scripts/pool/createpool.phtml @@ -0,0 +1,2 @@ +<?php +echo $this->addpool; diff --git a/application/modules/dev/views/scripts/pool/deletepool.phtml b/application/modules/dev/views/scripts/pool/deletepool.phtml new file mode 100644 index 0000000..622e663 --- /dev/null +++ b/application/modules/dev/views/scripts/pool/deletepool.phtml @@ -0,0 +1 @@ +<br /><br /><center>View script for controller <b>Pool</b> and script/action name <b>deletepool</b></center>
\ No newline at end of file diff --git a/application/modules/dev/views/scripts/pool/editpool.phtml b/application/modules/dev/views/scripts/pool/editpool.phtml new file mode 100644 index 0000000..359a5f9 --- /dev/null +++ b/application/modules/dev/views/scripts/pool/editpool.phtml @@ -0,0 +1,4 @@ +<h1>Edit Pool</h1> +<?php + +echo $this->editpoolform; diff --git a/application/modules/dev/views/scripts/pool/index.phtml b/application/modules/dev/views/scripts/pool/index.phtml new file mode 100644 index 0000000..2c6ba16 --- /dev/null +++ b/application/modules/dev/views/scripts/pool/index.phtml @@ -0,0 +1,126 @@ +<h1>Pools</h1> +<?php echo $this->formButton('createconfig', 'Create Pool', array( + 'onclick' => 'self.location="/pool/createpool"', + 'class' => 'addbutton'))?> + +<?php if ($this->pools): ?> + <table > + <tr> + <th>ID</th> + <th>Title</th> + <th>Description</th> + <th>Location</th> + <th colspan=3>Actions</th> + </tr> + <?php foreach ($this->pools as $pool): ?> + <tr class=entry> + <td><?php echo $this->escape($pool->getID()) ?></td> + <td><?php echo $this->escape($pool->getTitle()) ?></td> + <td><?php echo $this->escape($pool->getDescription()) ?></td> + <td><?php echo $this->escape($pool->getLocation()) ?></td> + <td class='action'><a href="<?php echo $this->url( + array( + 'controller' => 'pool', + 'action' => 'editpool', + 'poolID' => $pool->getID() + ), + 'default', + true) ?>"><img src='/media/img/edit.png' alt='Edit Pool'/></a></td> + <td class='action'><a href="<?php echo $this->url( + array( + 'controller' => 'pool', + 'action' => 'deletepool', + 'poolID' => $pool->getID() + ), + 'default', + true) ?>"><img src='/media/img/delete.png' alt='Delete Pool'/></a></td> + <td class='action'><a href="<?php echo $this->url( + array( + 'controller' => 'pool', + 'action' => 'linkclient', + 'poolID' => $pool->getID() + ), + 'default', + true) ?>"><img src='/media/img/add.png' alt='Link Client'/></a></td> + </tr> + <?php + $poolentriesMapper = new Application_Model_PoolEntriesMapper(); + $clients = $poolentriesMapper->findBy('poolID',$pool->getID()); + ?> + <?php if (count($clients)>0): ?> + <tr class=detail> + <td class=arrowtop>↳</td> + <td colspan=6> + <table> + <tr> + <th>ClientID</th> + <th>Mac</th> + <th>Hardwarehash</th> + <th>Actions</th> + </tr> + <?php + foreach ($clients as $client): ?> + <tr> + <td><?php echo $client['clientID'];?></td> + <?php + $cli = new Application_Model_Client(); + $clientMapper = new Application_Model_ClientMapper(); + $clientMapper->find($client['clientID'],$cli); + ?> + <td><?php echo ($cli->macAdress); ?></td> + <td><?php echo ($cli->hardwarehash); ?></td> + <td class='action'><a href="<?php echo $this->url( + array( + 'controller' => 'pool', + 'action' => 'unlinkclient', + 'poolentriesID' => $client['poolentriesID'] + ), + 'default', + true) ?>"><img src='/media/img/delete.png' alt='Unlink Client'/></a></td> + </tr> + <?php endforeach ?> + </table> + </td> + </tr> + <?php endif;?> + <?php endforeach ?> + </table> +<h2>Free clients</h2> +<table > +<tr> +<th>ClientID</th> +<th>MacAdress</th> +<th>Hardwarehash</th> +<th>Actions</th> +</tr> +<?php +foreach ($this->freeclients as $client): ?> + <tr> + <td><?php echo $client['clientID']; ?></td> + <td><?php echo $client['macadress']; ?></td> + <td><?php echo $client['hardwarehash']; ?></td> + <td><select onChange="location.href=this.options[this.selectedIndex].value"> + <option></option> + <?php foreach ($this->pools as $pool): ?> + <option value="<?php echo $this->url( + array( + 'controller' => 'pool', + 'action' => 'linkclient', + 'clientID' => $client['clientID'], + 'poolID' => $pool->getID(), + ), + 'default', + true) ?>"><?php echo $pool->getTitle(); ?></option> + <?php //<img src='/media/img/add.png' alt='Link to Pool'/></a></td> ?> + <?php endforeach ?> + </select> + </td> + </tr> +<?php endforeach ?> +</table> +<?php else: ?> + + + <p>There are no pools to display.</p> + +<?php endif;?> diff --git a/application/modules/dev/views/scripts/pool/linkclient.phtml b/application/modules/dev/views/scripts/pool/linkclient.phtml new file mode 100644 index 0000000..cbd2dd4 --- /dev/null +++ b/application/modules/dev/views/scripts/pool/linkclient.phtml @@ -0,0 +1,3 @@ +<h1>Link Clients</h1> +<?php +echo $this->poolclient; diff --git a/application/modules/dev/views/scripts/pool/unlinkclient.phtml b/application/modules/dev/views/scripts/pool/unlinkclient.phtml new file mode 100644 index 0000000..35aa9c5 --- /dev/null +++ b/application/modules/dev/views/scripts/pool/unlinkclient.phtml @@ -0,0 +1 @@ +<br /><br /><center>View script for controller <b>Pool</b> and script/action name <b>unlinkclient</b></center>
\ No newline at end of file diff --git a/application/modules/dev/views/scripts/resource/get-bootmenu-entry.phtml b/application/modules/dev/views/scripts/resource/get-bootmenu-entry.phtml new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/application/modules/dev/views/scripts/resource/get-bootmenu-entry.phtml diff --git a/application/modules/dev/views/scripts/resource/index.phtml b/application/modules/dev/views/scripts/resource/index.phtml new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/application/modules/dev/views/scripts/resource/index.phtml diff --git a/application/modules/dev/views/scripts/role/add.phtml b/application/modules/dev/views/scripts/role/add.phtml new file mode 100644 index 0000000..5277b9d --- /dev/null +++ b/application/modules/dev/views/scripts/role/add.phtml @@ -0,0 +1 @@ +<br /><br /><center>View script for controller <b>Role</b> and script/action name <b>add</b></center>
\ No newline at end of file diff --git a/application/modules/dev/views/scripts/role/delete.phtml b/application/modules/dev/views/scripts/role/delete.phtml new file mode 100644 index 0000000..6b0ebf1 --- /dev/null +++ b/application/modules/dev/views/scripts/role/delete.phtml @@ -0,0 +1 @@ +<br /><br /><center>View script for controller <b>Role</b> and script/action name <b>delete</b></center>
\ No newline at end of file diff --git a/application/modules/dev/views/scripts/role/edit.phtml b/application/modules/dev/views/scripts/role/edit.phtml new file mode 100644 index 0000000..c30d295 --- /dev/null +++ b/application/modules/dev/views/scripts/role/edit.phtml @@ -0,0 +1 @@ +<br /><br /><center>View script for controller <b>Role</b> and script/action name <b>edit</b></center>
\ No newline at end of file diff --git a/application/modules/dev/views/scripts/role/index.phtml b/application/modules/dev/views/scripts/role/index.phtml new file mode 100644 index 0000000..d30131e --- /dev/null +++ b/application/modules/dev/views/scripts/role/index.phtml @@ -0,0 +1 @@ +<br /><br /><center>View script for controller <b>Role</b> and script/action name <b>index</b></center>
\ No newline at end of file diff --git a/application/modules/dev/views/scripts/role/linkright.phtml b/application/modules/dev/views/scripts/role/linkright.phtml new file mode 100644 index 0000000..bfba9db --- /dev/null +++ b/application/modules/dev/views/scripts/role/linkright.phtml @@ -0,0 +1 @@ +<br /><br /><center>View script for controller <b>Role</b> and script/action name <b>linkright</b></center>
\ No newline at end of file diff --git a/application/modules/dev/views/scripts/role/show.phtml b/application/modules/dev/views/scripts/role/show.phtml new file mode 100644 index 0000000..dcd232b --- /dev/null +++ b/application/modules/dev/views/scripts/role/show.phtml @@ -0,0 +1 @@ +<br /><br /><center>View script for controller <b>Role</b> and script/action name <b>show</b></center>
\ No newline at end of file diff --git a/application/modules/dev/views/scripts/role/unlinkright.phtml b/application/modules/dev/views/scripts/role/unlinkright.phtml new file mode 100644 index 0000000..8c7615d --- /dev/null +++ b/application/modules/dev/views/scripts/role/unlinkright.phtml @@ -0,0 +1 @@ +<br /><br /><center>View script for controller <b>Role</b> and script/action name <b>unlinkright</b></center>
\ No newline at end of file diff --git a/application/modules/dev/views/scripts/session/createsession.phtml b/application/modules/dev/views/scripts/session/createsession.phtml new file mode 100644 index 0000000..11fe7ce --- /dev/null +++ b/application/modules/dev/views/scripts/session/createsession.phtml @@ -0,0 +1,5 @@ +<h1>create session</h1> + +<?php +echo $this->createsession; +?> diff --git a/application/modules/dev/views/scripts/session/deletesession.phtml b/application/modules/dev/views/scripts/session/deletesession.phtml new file mode 100644 index 0000000..57f8698 --- /dev/null +++ b/application/modules/dev/views/scripts/session/deletesession.phtml @@ -0,0 +1 @@ +<br /><br /><center>View script for controller <b>Session</b> and script/action name <b>deletesession</b></center>
\ No newline at end of file diff --git a/application/modules/dev/views/scripts/session/editsession.phtml b/application/modules/dev/views/scripts/session/editsession.phtml new file mode 100644 index 0000000..88fb273 --- /dev/null +++ b/application/modules/dev/views/scripts/session/editsession.phtml @@ -0,0 +1,5 @@ +<h1>edit session</h1> + +<?php +echo $this->editsession; +?> diff --git a/application/modules/dev/views/scripts/session/index.phtml b/application/modules/dev/views/scripts/session/index.phtml new file mode 100644 index 0000000..c9f726b --- /dev/null +++ b/application/modules/dev/views/scripts/session/index.phtml @@ -0,0 +1,49 @@ +<h1>Session</h1> +<?php echo $this->formButton('createconfig', 'Create Session', array( + 'onclick' => 'self.location="/session/createsession"', + 'class' => 'addbutton'))?> +<table> +<tr> + <th>ID</th> + <th>alphasessionID</th> + <th>ClientID</th> + <th>BootmenuentryID</th> + <th>BootOsID</th> + <th>BootIsoID</th> + <th>MembershipID</th> + <th>Time</th> + <th>IP</th> + <th>IPv6</th> + <th colspan=2>Actions</th> +</tr> +<?php foreach ($this->sessions as $session): ?> + <tr class=entry> + <td><?php echo $this->escape($session->getID()) ?></td> + <td><?php echo $this->escape($session->getAlphasessionID()) ?></td> + <td><?php echo $this->escape($session->getClientID()) ?></td> + <td><?php echo $this->escape($session->getBootmenuentryID()) ?></td> + <td><?php echo $this->escape($session->getBootosID()) ?></td> + <td><?php echo $this->escape($session->getBootisoID()) ?></td> + <td><?php echo $this->escape($session->getMembershipID()) ?></td> + <td><?php echo date('d.m.Y H:i',$this->escape($session->getTime())) ?></td> + <td><?php echo $this->escape($session->getIp()) ?></td> + <td><?php echo $this->escape($session->getIp6()) ?></td> + <td class='action'><a href="<?php echo $this->url( + array( + 'controller' => 'session', + 'action' => 'editsession', + 'sessionID' => $session->getID() + ), + 'default', + true) ?>"><img src='/media/img/edit.png' alt='Edit Filter'/></a></td> + <td class='action'><a href="<?php echo $this->url( + array( + 'controller' => 'session', + 'action' => 'deletesession', + 'sessionID' => $session->getID() + ), + 'default', + true) ?>"><img src='/media/img/delete.png' alt='Delete Filter'/></a></td> + </tr> +<?php endforeach ?> +</table> |