summaryrefslogblamecommitdiffstats
path: root/application/modules/user/views/scripts/bootiso/index.phtml
blob: cd94f9a189be26eedfc666ff3700535054a867dc (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                                           
                                                                 


                                                                                                                                                                     
                                

                                       
                                                                         
                                                                                                                                        
                                                                                  
              

                                                       





                                                    
                                     
                                           
                                       

                                       

        



                                                
                                                                     
                                                                                                                        
                             
                                    
                                                              

                                           

                                                        





















                                                                                                                                    
                                                                                                                            










                                                                                            
                                                                                                                        
                                               
                                



                                                                                                                    
                                                                                                   
                                                                                                                                                   
                              
                                                      


                                                                                                                       

                                                                                                                                                                        



                                                                                                                      

                                                                                                                    




                                                                                                                           





                                         
 
                                
 
<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'>prebootID</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')): ?>
		  			<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->setPrebootID(preg_replace("!^\[[0-9]+\]\s!",'',$bootiso->getPrebootID()));
  				$bootiso->setGroupID(preg_replace("!^\[[0-9]+\]\s!",'',$bootiso->getGroupID()));
  			} ?>
	  		<div class='title'><?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>PrebootID</label>
		  			<div class='item'><?php echo $this->escape($bootiso->getPrebootID()); ?></div>
	  			<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; ?>