diff options
| author | michael pereira | 2011-04-04 03:47:22 +0200 |
|---|---|---|
| committer | michael pereira | 2011-04-04 03:47:22 +0200 |
| commit | d26f46ed221f9e833e558747033657e8a58abdbc (patch) | |
| tree | cf7dc4e3e0b601938b4dc937f7dd9c281ba6336d /application/modules/user/views/scripts/config | |
| parent | Bootmenu im User Controller fertig (diff) | |
| download | pbs2-d26f46ed221f9e833e558747033657e8a58abdbc.tar.gz pbs2-d26f46ed221f9e833e558747033657e8a58abdbc.tar.xz pbs2-d26f46ed221f9e833e558747033657e8a58abdbc.zip | |
Config in User fertig mit pagination
Diffstat (limited to 'application/modules/user/views/scripts/config')
3 files changed, 62 insertions, 1 deletions
diff --git a/application/modules/user/views/scripts/config/createconfig.phtml b/application/modules/user/views/scripts/config/createconfig.phtml new file mode 100644 index 0000000..e3939f5 --- /dev/null +++ b/application/modules/user/views/scripts/config/createconfig.phtml @@ -0,0 +1,4 @@ +<?php +$this->configForm; +echo $this->configForm; +?> diff --git a/application/modules/user/views/scripts/config/editconfig.phtml b/application/modules/user/views/scripts/config/editconfig.phtml new file mode 100644 index 0000000..e3939f5 --- /dev/null +++ b/application/modules/user/views/scripts/config/editconfig.phtml @@ -0,0 +1,4 @@ +<?php +$this->configForm; +echo $this->configForm; +?> diff --git a/application/modules/user/views/scripts/config/index.phtml b/application/modules/user/views/scripts/config/index.phtml index 4d9a1fb..478a12d 100644 --- a/application/modules/user/views/scripts/config/index.phtml +++ b/application/modules/user/views/scripts/config/index.phtml @@ -1 +1,54 @@ -<br /><br /><center>View script for controller <b>Config</b> and script/action name <b>index</b></center>
\ No newline at end of file +<h1>Config</h1> +<?php if($this->notification != ''){echo $this->notification;} ?> +<?php echo $this->formButton('createconfig', 'Create Config', array( + 'onclick' => 'self.location="/user/config/createconfig/page/'.$this->page.'"', + 'class' => 'addbutton'))?> + +<table> + <tr> + <th>ID</th> + <th>Title</th> + <th>GroupID</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->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( + 'module' => 'user', + 'controller' => 'config', + 'action' => 'editconfig', + 'configID' => $config->getID(), + 'page' => $this->page + ), + 'default', + true, false) ?>"><img src='/media/img/edit.png' alt='Edit Config'/></a></td> + <td class='action'><a href="<?php echo $this->url( + array( + 'module' => 'user', + 'controller' => 'config', + 'action' => 'deleteconfig', + 'configID' => $config->getID(), + 'page' => $this->page + ), + 'default', + true) ?>"><img src='/media/img/delete.png' alt='Delete Config'/></a></td> + </tr> + <?php endforeach; ?> +</table> +<?php echo $this->pagination; ?> + + + + + + |
