summaryrefslogtreecommitdiffstats
path: root/application/modules/user/views/scripts/bootiso/index.phtml
blob: 23f778074431f73b968d09ee91a22a30d86d6a6b (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
<h1>BootMedien</h1>
<?php if($this->notification != ''){echo $this->notification;} ?>
<?php echo $this->searchform; ?>
<?php echo $this->formButton('createbootiso', 'Create BootISO', array(
							'onclick' => 'self.location="/user/bootiso/createbootiso/page/'.$this->page.'"',
							'class' => 'addbutton'))?>
<table>
  <tr>
    <th>ID <span class='code'>bootosID</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>PrebootID <span class='code'>prebootID</span></th>
    <th>Serialnumber <span class='code'>serialnumber</span></th>
    <th>Created <span class='code'>created</span></th>    
    <th>Expires <span class='code'>expires</span></th>
    <th>Public <span class='code'>public</span></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(),
						'page'		=> $this->page
					),
					'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(),
						'page'		=> $this->page
					),
					'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(),
						'page'		=> $this->page
					),
					'default',
					true) ?>"><img src='/media/img/delete.png' alt='Delete BootISO'/></a></td>
  </tr>
  <?php endforeach; ?>
</table>
<?php echo $this->pagination; ?>