summaryrefslogtreecommitdiffstats
path: root/application/modules/user/views/scripts/preboot/index.phtml
blob: 295f1caf92a034f81dbb69e5f0686f2f16e36d82 (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
<h1>Preboot</h1>
<?php if($this->notification != ''){echo $this->notification;} ?>
<?php echo $this->searchform; ?>
<?php echo $this->formButton('checkupdate', 'Check for Updates', array(
							'onclick' => 'self.location="/user/preboot/index/checkupdate/true"',
							'class' => 'updatebutton',
							))?>
<?php echo $this->formButton('createpreboot', 'Create PreBoot', array(
							'onclick' => 'self.location="/user/preboot/createpreboot/page/'.$this->page.'"',
							'class' => 'addbutton'))?>
<table>
  <tr>
    <th>ID <span class='code'>prebootID</span></th>
    <th>Title <span class='code'>title</span></th>
    <th>GroupID <span class='code'>groupID</span></th>
    <th>MembershipID <span class='code'>membershipID</span></th>
    <th>Preboot Path <span class='code'>path_preboot</span></th>
 	<th colspan=3>Actions</th>
  </tr>
  <?php if(count($this->prebootlist)==0)
  		echo "</table> There are no Preboot entries to display." ?>
  <?php foreach ($this->prebootlist as $preboot): ?>
  <tr class=entry>
    <td><?php echo $this->escape($preboot->getID()); ?></td>
    <td><?php echo $this->escape($preboot->getTitle()); ?></td>
    <td><?php echo $this->escape($preboot->getGroupID()); ?></td>
    <td><?php echo $this->escape($preboot->getMembershipID()); ?></td>    
	<td><?php echo $this->escape($preboot->getPath_preboot()); ?></td>
	<?php if($this->update[$preboot->getID()]==true): ?>
		<td class='action'><a href="<?php echo $this->url(
					array(
						'module'	=> 'user',
						'controller' => 'preboot',
						'action'     => 'updatepreboot',
						'prebootID'   =>  $preboot->getID(),
						'page'		=> $this->page
					),
					'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'	=> 'user',
						'controller' => 'preboot',
						'action'     => 'editpreboot',
						'prebootID'   =>  $preboot->getID(),
						'page'		=> $this->page
					),
					'default',
					true, false) ?>"><img src='/media/img/edit.png' alt='Edit Preboot' /></a></td>
	<td class='action'><a href="<?php echo $this->url(
					array(
						'module'	=> 'user',
						'controller' => 'preboot',
						'action'     => 'deletepreboot',
						'prebootID'   =>  $preboot->getID(),
						'page'		=> $this->page
					),
					'default',
					true) ?>"><img src='/media/img/delete.png' alt='Delete Preboot'/></a></td>
  </tr>
  <?php endforeach; ?>
</table>
<?php echo $this->pagination; ?>