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 /application/modules/dev/views/scripts/config | |
| 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
Diffstat (limited to 'application/modules/dev/views/scripts/config')
3 files changed, 58 insertions, 0 deletions
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> + + + + + + |
