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

                                                                 
                                

                                       
                                                                      
                                                                                                                                        
                                                                                  
              

                                                       





                                                    

                                       

                                       

        




                                                                  
                                                                                                                        
                             
                                                             

                                                        



































                                                                                                                                    
                                



                                                                                                                    
                                                                                                   




                                                                                                         
                                                      






                                                                                                                       

                                                                                                                    




                                                                                                                           





                                         
 
                                
 
<h1>BootMedien</h1>
<?php if($this->notification != ''){echo $this->notification;} ?>
<?php echo $this->searchform; ?>

<?php if(Pbs_Acl::checkRight('bc')): ?>
<?php echo $this->formButton('createbootiso', 'Create BootISO', 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'>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 BootISO entries to display." ?>
	<?php foreach ($this->bootisolist as $k => $bootiso): ?>							
	<div class='element'>
  		<div class='number'><?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 BootISO' /></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 BootISO'/></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()); ?> 
	  		<?php if(Pbs_Acl::checkRight('bai')): ?>
	  			- Serialnumber: <?php echo $this->escape($bootiso->getSerialnumber()); ?>
	  		<?php endif; ?>
	  		</div>
	  		<div class='details dispnone'>
	  			<?php if(Pbs_Acl::checkRight('bai')): ?>
		  			<label>BootmediumID</label>
		  				<div class='item'><?php echo $this->escape($bootiso->getID()); ?></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; ?>