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

                                                                 
                                
                                                                       
                                                                                                                                                


                                                                                  
                                                                                                                                      

                                                                                  















                                                       
                                             
                                                           
                                                        





                                                                                        



                                                                                       

                                                                                          


                                                                                                                                     



                                                                                                                        



                                                                             

                                                                                  

                                                  

                                                                                                                



                                                                               

                                                                                  

                                                  

























                                                                                                                       
                            
      
 
                                
 





                                                               
                                                               



                   
<h1>BootOS</h1>
<?php if($this->notification != ''){echo $this->notification;} ?>
<?php echo $this->searchform; ?>
<?php echo $this->formButton('checkupdate', 'Check for Updates', array(
							'onclick' => 'self.location="/user/bootos/index/page/'.$this->page.'/checkupdate/true"',
							'class' => 'updatebutton',
							))?>
<?php echo $this->formButton('createbootos', 'Create BootOS', array(
							'onclick' => 'self.location="/user/bootos/createbootos/page/'.$this->page.'"',
							'class' => 'addbutton'))?>

<div class='searchvars'>
	<div class='head'>Available searchfilter:</div>
	<div class='code'>bootosID</div>
	<div class='code'>title</div>
	<div class='code'>groupID</div>
	<div class='code'>configID</div>
	<div class='code'>init</div>
	<div class='code'>kernel</div>
	<div class='code'>kcl</div>
	<div class='code'>description</div>
	<div class='code'>changed</div>
	<div class='code'>expires</div>
	<div class='code'>public</div>
</div>

<div class='listelement'>
	<?php if(count($this->bootoslist)==0)
		echo "There are no BootOs's to display." ?>
	<?php foreach ($this->bootoslist as $bootos): ?>
	<div class='element'>
  		<div class='number'><?php echo $this->escape($bootos->getID()); ?></div>
  		<div class='content'>  			
	  		<div class='actions'>
	  			<?php if($this->update[$bootos->getID()]==true): ?>
				<a href="<?php echo $this->url(
						array(
							'module'	=> 'user',
							'controller' => 'bootos',
							'action'     => 'updatebootos',
							'bootosID'   =>  $bootos->getID(),
							'page'		=> $this->page
						),
						'default',
						true, false) ?>"><img src='/media/img/update.png' alt='Updates available' /></a></td>
				<?php else: ?>
					<a><img src='/media/img/update_grey.png' alt='No updates available' /></a>	
				<?php endif; ?>		
		  		<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>
	  			<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>
	  		</div>  
	  		<div class='title'><?php echo $this->escape($bootos->getTitle()); ?></div>
	  		<div class='subtitle'><?php echo $this->escape($bootos->getDescription()); ?></div>
	  		<div class='details dispnone'>
	  			<label>GroupID</label>
	  				<div class='item'><?php echo $this->escape($bootos->getGroupID()); ?></div>
	  			<label>ConfigID</label>
	  				<div class='item'><?php echo $this->escape($bootos->getConfigID()); ?></div>
	  			<label>initPath</label>
	  				<div class='item'><?php echo $this->escape($bootos->getPath_init()); ?></div>
	  			<label>kernelPath</label>
	  				<div class='item'><?php echo $this->escape($bootos->getPath_kernel()); ?></div>
	  			<label>Default KCL</label>
	  				<div class='item'><?php echo $this->escape($bootos->getDefaultkcl()); ?></div>
	  			<label>Created</label>
	  				<div class='item'><?php echo $this->escape($bootos->getCreated()); ?></div>
	  			<label>Expires</label>
	  				<div class='item'><?php echo $this->escape($bootos->getExpires()); ?></div>
	  			<label>Public</label>
	  				<div class='item'><?php echo $this->escape($bootos->getPublic()); ?></div>
	  				
	  		</div>
  		</div>
  		<div class='clear'></div>
	</div>
	<?php endforeach; ?>
</div>

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

<script>
$(document).ready(function(){
	if($('.element').find('.dispnone').length >= 1){
		$(this).find('.title').css('cursor','pointer');
		
		$('.title').click(function(){
			$(this).siblings('.dispnone').toggle();
		});
	}
});
</script>