summaryrefslogtreecommitdiffstats
path: root/application/modules/dev/views/scripts/bootos/index.phtml
blob: 2f7f86ffebe4bff334fbcd9bf6c1598baf9ca016 (plain) (blame)
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<h1>BootOS</h1>
<?php echo $this->formButton('createbootos', 'Create BootOS', array(
							'onclick' => 'self.location="/dev/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=3>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>
		<?php if($this->update[$bootos->getID()]==true): ?>
		<td class='action'><a
				href="<?php echo $this->url(
						array(
							'module'	=> 'dev',
							'controller' => 'bootos',
							'action'     => 'updatebootos',
							'bootosID'   =>  $bootos->getID()
						),
						'default',
						true, false) ?>"><img src='/media/img/update.png' alt='Updates available' /></a></td>
		<?php else: ?>
			<td class='action'><img src='/media/img/update_grey.png' alt='No updates available' /></td>	
		<?php endif; ?>		
		<td class='action'><a
			href="<?php echo $this->url(
					array(
						'module'	=> 'dev',
						'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(
						'module'	=> 'dev',
						'controller' => 'bootos',
						'action'     => 'deletebootos',
						'bootosID'   =>  $bootos->getID()
					),
					'default',
					true) ?>"><img src='/media/img/delete.png' alt='Delete BootOS' /></a></td>			
	</tr>
	<?php endforeach; ?>
</table>