1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
<h1>Config</h1>
<?php if($this->notification != ''){echo $this->notification;} ?>
<?php echo $this->searchform; ?>
<?php echo $this->formButton('createconfig', 'Create Config', array(
'onclick' => 'self.location="/user/config/createconfig/page/'.$this->page.'"',
'class' => 'addbutton'))?>
<table>
<tr>
<th>ID <span class='code'>configID</span></th>
<th>Title <span class='code'>title</span></th>
<th>GroupID <span class='code'>groupID</span></th>
<th>Shellscript <span class='code'>shellscript</span></th>
<th>Changed <span class='code'>created</span></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; ?>
|