summaryrefslogtreecommitdiffstats
path: root/application/modules/user/views/scripts/bootiso/index.phtml
blob: 4e1d15d58ac2c03e1dcb9114d458cb60e77f9843 (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
<h1>BootMedien</h1>
<?php if($this->notification != ''){echo $this->notification;} ?>
<?php echo $this->formButton('createbootiso', 'Create BootISO', array(
							'onclick' => 'self.location="/user/bootiso/createbootiso"',
							'class' => 'addbutton'))?>
<table>
  <tr>
    <th>ID</th>
    <th>Title</th>
    <th>GroupID</th>
    <th>MembershipID</th>
    <th>PrebootID</th>
    <th>Serialnumber</th>
    <th>Created</th>    
    <th>Expires</th>
    <th>Public</th>
 	<th colspan=3>Actions</th>
  </tr>
  <?php if(count($this->bootisolist)==0)
  		echo "</table> There are no BootISO's entries to display." ?>
  <?php foreach ($this->bootisolist as $bootiso): ?>
  <tr class=entry>
    <td><?php echo $this->escape($bootiso->getID()); ?></td>
    <td><?php echo $this->escape($bootiso->getTitle()); ?></td>
    <td><?php echo $this->escape($bootiso->getGroupID()); ?></td>
    <td><?php echo $this->escape($bootiso->getMembershipID()); ?></td>    
    <td><?php echo "[" . $this->escape($bootiso->getPrebootID()) . "] " . $this->prebootlist[$bootiso->getID()]; ?></td>
	<td><?php echo $this->escape($bootiso->getSerialnumber()); ?></td>
    <td><?php echo $this->escape(date('Y-m-d H:i:s', $bootiso->getCreated())); ?></td>
    <td><?php echo $this->escape($bootiso->getExpires()); ?></td>
    <td><?php echo $this->escape($bootiso->getPublic()); ?></td>
    <td class='action'><a href="<?php echo $this->url(
					array(
						'module'	=> 'user',
						'controller' => 'bootiso',
						'action'     => 'downloadbootiso',
						'prebootID'   =>  $bootiso->getprebootID(),
						'bootisoID' => $bootiso->getID()
					),
					'default',
					true, false) ?>"><img src='/media/img/download.png' alt='Download BootMedium' /></a></td>
    <td class='action'><a href="<?php echo $this->url(
					array(
						'module'	=> 'user',
						'controller' => 'bootiso',
						'action'     => 'editbootiso',
						'bootisoID'   =>  $bootiso->getID()
					),
					'default',
					true, false) ?>"><img src='/media/img/edit.png' alt='Edit BootISO' /></a></td>
	<td class='action'><a href="<?php echo $this->url(
					array(
						'module'	=> 'user',
						'controller' => 'bootiso',
						'action'     => 'deletebootiso',
						'bootisoID'   =>  $bootiso->getID()
					),
					'default',
					true) ?>"><img src='/media/img/delete.png' alt='Delete BootISO'/></a></td>
  </tr>
  <?php endforeach; ?>
</table>