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


                                                                                                                                                                      
                                
                                                                
                                                                    
                                                                                                                                      
                                                                                  
              

                                                       


                                                 
                                                  




                                                     
                        

                                       
                                           
                                       
                                       


                         
                                             
                                                           
                                                              
                                                                             
                             



                                                             

                                                        













                                                                                                                        


                                                                                  
                                                                                       

                                                                                          

                                                          

                                                                                                                     
                                
                                                               

                                                                                                              
                                                                                                  
                                                                                                                                                                 
                                                      

                                                                         
                                                                                                                            
                                                                  










                                                                                                                                       

                                                      
                                                                                                                         
                                                      
                                                                                                                         

                                                                         
                                                                                                                                
                                               




                                         
                            
      
 
                                
 
<h1>BootOS<img class='helpericon' src='/media/img/bulb_off.png' /></h1>
<?php if($this->notification != ''){echo $this->notification;} ?>

<div class='helper infobox'>Here you can see all available BootOs you can select to start. Before you can boot one of these you have to add it to your BootMenu.</div>

<?php echo $this->searchform; ?>
<?php if(Pbs_Acl::checkRight('boc')): ?>			
<?php echo $this->formButton('createbootos', 'Create BootOS', array(
							'onclick' => 'self.location="/user/bootos/createbootos/page/'.$this->page.'"',
							'class' => 'addbutton'))?>
<?php endif;?>
<div class='searchvars'>
	<div class='head'>Available searchfilter:</div>
	<?php if(Pbs_Acl::checkRight('boai')): ?>
		<div class='code'>bootosID</div>
		<div class='code'>public</div>
		<div class='code'>defaultkcl</div>
		<div class='code'>distro</div>
		<div class='code'>distroversion</div>
		<div class='code'>share</div>
		<div class='code'>shortname</div>
		<div class='code'>source</div>
	<?php endif; ?>	
	<div class='code'>title</div>
	<div class='code'>groupID</div>
	<div class='code'>description</div>
	<div class='code'>created</div>
	<div class='code'>expires</div>
</div>

<div class='listelement'>
	<?php if(count($this->bootoslist)==0)
		echo "There are no BootOs's to display." ?>
	<?php foreach ($this->bootoslist as $k => $bootos): ?>
	<?php if($bootos->getPublic() != -1 || Pbs_Acl::checkRight('boai'))?>
	<div class='element'>
  		<div class='number'>
			<div class='smallnumber'>BootOs</div>
  			<?php echo $k+1 ?>
  		</div>
  		<div class='content'>  			
	  		<div class='actions'>
				<?php if(Pbs_Acl::checkRight('boe') || Pbs_Acl::checkRight('boem')): ?>
			  		<a href="<?php echo $this->url(
						array(
							'module'	=> 'user',
							'controller' => 'bootos',
							'action'     => 'editbootos',
							'bootosID'   =>  $bootos->getID(),
							'page'		=> $this->page
						),
						'default',
						true, false) ?>"><img src='/media/img/edit.png' alt='Edit BootOS' /></a>
				<?php endif; ?>	
				<?php if(Pbs_Acl::checkRight('bod')): ?>
		  			<a href="<?php echo $this->url(
						array(
							'module'	=> 'user',
							'controller' => 'bootos',
							'action'     => 'deletebootos',
							'bootosID'   =>  $bootos->getID(),
							'page'		=> $this->page
						),
						'default',
						true) ?>"><img src='/media/img/delete.png' alt='Delete BootOS' /></a>
				<?php endif; ?>
	  		</div>  
  			<?php if(!Pbs_Acl::checkRight('boai')){
  				$bootos->setGroupID(preg_replace("!^\[[0-9]+\]\s!",'',$bootos->getGroupID()));
  			} ?>
	  		<div class='title'><?php echo $this->escape($bootos->getTitle()); ?></div>
	  		<div class='subtitle'><?php echo $this->escape($bootos->getGroupID()); ?> - <?php echo $this->escape($bootos->getDescription()); ?></div>
	  		<div class='details dispnone'>
	  			<?php if(Pbs_Acl::checkRight('boai')): ?>
	  		  		<label>BootosID</label>
	  					<div class='item'><?php echo $this->escape($bootos->getID()); ?>&nbsp;</div>
	  				<label>Default KCL</label>
	  					<div class='item'><?php echo $this->escape($bootos->getDefaultkcl()); ?>&nbsp;</div>
	  				<label>Source</label>
	  					<div class='item'><?php echo $this->escape($bootos->getSource()); ?>&nbsp;</div>
	  				<label>Distro</label>
	  					<div class='item'><?php echo $this->escape($bootos->getDistro()); ?>&nbsp;</div>
	  				<label>Distroversion</label>
	  					<div class='item'><?php echo $this->escape($bootos->getDistroversion()); ?>&nbsp;</div>
	  		  		<label>Shortname</label>
	  					<div class='item'><?php echo $this->escape($bootos->getShortname()); ?>&nbsp;</div>
	 	  			<label>Share</label>
	  					<div class='item'><?php echo $this->escape($bootos->getShare()); ?>&nbsp;</div>
	  			<?php endif; ?>
	  			<label>Changed</label>
	  				<div class='item'><?php echo $this->escape($bootos->getCreated()); ?>&nbsp;</div>
	  			<label>Expires</label>
	  				<div class='item'><?php echo $this->escape($bootos->getExpires()); ?>&nbsp;</div>
	  			<?php if(Pbs_Acl::checkRight('boai')): ?>
	  				<label>Public</label>
	  					<div class='item'><?php echo $this->escape($bootos->getPublic()); ?>&nbsp;</div>
	  			<?php endif; ?>
	  				
	  		</div>
  		</div>
  		<div class='clear'></div>
	</div>
	<?php endforeach; ?>
</div>

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