summaryrefslogtreecommitdiffstats
path: root/application/modules/user/views/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'application/modules/user/views/scripts')
-rw-r--r--application/modules/user/views/scripts/config/createconfig.phtml4
-rw-r--r--application/modules/user/views/scripts/config/editconfig.phtml4
-rw-r--r--application/modules/user/views/scripts/config/index.phtml55
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; ?>
+
+
+
+
+
+