summaryrefslogtreecommitdiffstats
path: root/application/modules/user/views/scripts/bootiso/index.phtml
blob: c46c088f18c3745e501825641d2789e4252627ae (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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<h1>BootMedien<img class='helpericon' src='/media/img/bulb_off.png' /></h1>
<?php if($this->notification != ''){echo $this->notification;} ?>

<div class='helper infobox'>This are the available BootMedia. You can download this BootMedia to your Computer to create a bootable USB stick or a bootable CD.</div>

<?php echo $this->searchform; ?>

<?php if(Pbs_Acl::checkRight('bc')): ?>
<?php echo $this->formButton('createbootiso', 'Create BootMedium', array(
							'onclick' => 'self.location="/user/bootiso/createbootiso/page/'.$this->page.'"',
							'class' => 'addbutton'))?>
<?php endif;?>
<div class='searchvars'>
	<div class='head'>Available searchfilter:</div>
	<?php if(Pbs_Acl::checkRight('bai')): ?>
		<div class='code'>bootmediumID</div>
		<div class='code'>serialnumber</div>
		<div class='code'>public</div>
	<?php endif; ?>
	<div class='code'>preboottypeID</div>	
	<div class='code'>title</div>
	<div class='code'>description</div>
	<div class='code'>groupID</div>
	<div class='code'>created</div>
	<div class='code'>expires</div>
	
	
</div>	
						
<div class='listelement'>
	<?php if(count($this->bootisolist)==0)
  		echo "There are no BootMedium entries to display." ?>
	<?php foreach ($this->bootisolist as $k => $bootiso): ?>							
	<div class='element'>
  		<div class='number'>
			<div class='smallnumber'>BootMed</div>
			<?php echo $k+1; ?>
		</div>
  		<div class='content'>  			
	  		<div class='actions'>
	  			<?php if(Pbs_Acl::checkRight('bdld') && $this->download[$bootiso->getID()] ): ?>
		  			<a href="<?php echo $this->url(
						array(
							'module'	=> 'user',
							'controller' => 'bootiso',
							'action'     => 'downloadbootiso',
							'bootisoID' => $bootiso->getID(),
							'page'		=> $this->page
						),
						'default',
						true, false) ?>"><img src='/media/img/download.png' alt='Download BootMedium' /></a>
				<?php endif; ?>
				<?php if(Pbs_Acl::checkRight('be') || Pbs_Acl::checkRight('bem')): ?>
			  		<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 BootMedium' /></a>
				<?php endif; ?>
				<?php if(Pbs_Acl::checkRight('bd')): ?>
		  			<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 BootMedium'/></a>
				<?php endif; ?>
	  		</div>  
	  		<?php if(!Pbs_Acl::checkRight('bai')){
  				$bootiso->setGroupID(preg_replace("!^\[[0-9]+\]\s!",'',$bootiso->getGroupID()));
  			} ?>
	  		<div class='title'>[<?php echo $this->escape($bootiso->getPreBootTypeID()); ?>] <?php echo $this->escape($bootiso->getTitle()); ?></div>
	  		<div class='subtitle'><?php echo $this->escape($bootiso->getGroupID())." - ".$this->escape($bootiso->getDescription()); ?> 
	  		</div>
	  		<div class='details dispnone'>
	  			<?php if(Pbs_Acl::checkRight('bai')): ?>
		  			<label>BootmediumID</label>
		  				<div class='item'><?php echo $this->escape($bootiso->getID()); ?></div>
		  			<label>Serialnumber</label>
		  				<div class='item'><?php echo $this->escape($bootiso->getSerialnumber()); ?></div>		  			
	  			<?php endif; ?>
	  			<label>Changed</label>
	  				<div class='item'><?php echo $this->escape($bootiso->getCreated()); ?></div>
	  			<label>Expires</label>
	  				<div class='item'><?php echo $this->escape($bootiso->getExpires()); ?></div>
	  			<?php if(Pbs_Acl::checkRight('bai')): ?>	  				
	  				<label>Public</label>
	  					<div class='item'><?php echo $this->escape($bootiso->getPublic()); ?></div>
	  			<?php endif; ?>
	  		</div>
  		</div>
  		<div class='clear'></div>
	</div>			
	<?php endforeach; ?>
</div>

<?php echo $this->pagination; ?>