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

                                                                 
                                                   
                                
                                                                        
                                                                                                                                          

                                                                                  










                                                            





                                                           

                                                                                          
                                                                         
                                                                                             
                                                                                                                   
                                                      









                                                                                              

                                                                                                                                
                                                               



                                                                               

                                                                                      

                                                  

                                                                                                                 



                                                                                 

                                                                                      

                                                  

                                                                                                              




                                                                                      

                                                                                                                  

                                                  









                                                                                                                                                                                    
                                                                                                    
















































                                                                                                                                                                                                                
                            


                                
 







                                                                                                
<h1>BootMenu</h1>
<?php if($this->notification != ''){echo $this->notification;} ?>
<div id='notification' style='display:none;'></div>
<?php echo $this->searchform; ?>
<?php echo $this->formButton('createbootmenu', 'Create BootMenu', array(
							'onclick' => 'self.location="/user/bootmenu/createbootmenu/page/'.$this->page.'"',
							'class' => 'addbutton'))?>

<div class='searchvars'>
	<div class='head'>Available searchfilter:</div>
	<div class='code'>bootmenuID</div>
	<div class='code'>title</div>
	<div class='code'>created</div>	
</div>

<div class='listelement'>
	<?php if(count($this->bootmenulist)==0)
		echo "There are no BootMenus to display." ?>
	<?php foreach ($this->bootmenulist as $bootmenu): ?>
	<?php 
		$class='';
		if($bootmenu->getDefaultbootmenu() == true)
			$class= 'highlight';
	?>
	<div class='element<?php echo " $class";?>'>
  		<div class='number'><?php echo $this->escape($bootmenu->getID()); ?></div>
  		<div class='content'>  			
	  		<div class='actions'>	  			 
					<?php if($bootmenu->getDefaultbootmenu() == true): ?>
						<a><img src='/media/img/default.png' alt='Checked as default'/></a>
					<?php else: ?>
						<a href="<?php echo $this->url(
						array(
							'module'	=> 'user',
							'controller' => 'bootmenu',
							'action'     => 'defaultbootmenu',
							'bootmenuID'   =>  $bootmenu->getID(),
							'page'		=> $this->page
						),
						'default',
						true, false) ?>">
						<img src='/media/img/default_grey.png' alt='Not checked as default' /></a>	
					<?php endif; ?>
	  			<a href="<?php echo $this->url(
					array(
						'module'	=> 'user',
						'controller' => 'bootmenu',
						'action'     => 'editbootmenu',
						'bootmenuID'   =>  $bootmenu->getID(),
						'page'		=> $this->page
					),
					'default',
					true, false) ?>"><img src='/media/img/edit.png' alt='Edit Bootmenu'/></a>
				<a href="<?php echo $this->url(
					array(
						'module'	=> 'user',
						'controller' => 'bootmenu',
						'action'     => 'deletebootmenu',
						'bootmenuID'   =>  $bootmenu->getID(),
						'page'		=> $this->page
					),
					'default',
					true) ?>"><img src='/media/img/delete.png' alt='Delete Bootmenu'/></a>
				<a href="<?php echo $this->url(
					array(
						'module'	=> 'user',
						'controller' => 'bootmenu',
						'action'     => 'addbootmenuentry',
						'bootmenuID'   =>  $bootmenu->getID(),
						'maxorder' => count($this->bootmenuentrylist[$bootmenu->getID()]),
						'page'		=> $this->page
					),
					'default',
					true) ?>"><img src='/media/img/add.png' alt='Add Entry'/></a>
	  		</div>  
	  		<div class='title'><?php echo $this->escape($bootmenu->getTitle()); ?></div>
	  		<div class='subtitle'><?php echo count($this->bootmenuentrylist[$bootmenu->getID()]);?> Entrys - <?php echo $this->escape($bootmenu->getCreated()); ?></div>
	  		<div class='details dispnone'>
	  			<?php foreach ($this->bootmenuentrylist[$bootmenu->getID()] as $bootmenuentry): ?>
	  			<div class='element'>
			  		<div class='number'><?php echo $this->escape($bootmenuentry->getID()); ?></div>
			  		<div class='content'>  			
				  		<div class='actions'>
				  			<a class='play' href="<?php echo $this->url(
								array(						
									'controller' => 'resource',
									'action'     => 'getbootmenuentry',
									'bootmenuentryID'   =>  $bootmenuentry->getID(),
									'page'		=> $this->page
								),
								'default',
								true, false) ?>"><img src='/media/img/play.gif'></a>
				  			<a href="<?php echo $this->url(
								array(
									'module'	=> 'user',
									'controller' => 'bootmenu',
									'action'     => 'editbootmenuentry',
									'bootmenuentryID'   =>  $bootmenuentry->getID(),
									'maxorder' => count($this->bootmenuentrylist[$bootmenu->getID()]),
									'oldorder' => $bootmenuentry->getOrder(),
									'page'		=> $this->page
								),
								'default',
								true, false) ?>"><img src='/media/img/edit.png' alt='Edit Entry'/></a>
					  		<a href="<?php echo $this->url(
								array(
									'module'	=> 'user',
									'controller' => 'bootmenu',
									'action'     => 'removebootmenuentry',
									'bootmenuentryID'   =>  $bootmenuentry->getID(),
									'page'		=> $this->page
								),
								'default',
								true) ?>"><img src='/media/img/delete.png' alt='Remove Entry'/></a>
				  		</div>  
				  		<div class='title'><?php echo $this->escape($bootmenuentry->getTitle()); ?></div>
				  		<div class='subtitle'><?php echo $this->escape($bootmenuentry->getBootosID()) ?></div>
				  		<div class='details dispnone'>
				  			<label>KCL</label>
				  				<div class='item'><?php echo $this->escape($bootmenuentry->getKcl()); ?></div>
				  			<label>KCL-Append</label>
				  				<div class='item'><?php echo $this->escape($bootmenuentry->getKclappend()); ?></div>
				  			<label>ConfigID</label>
				  				<div class='item'><?php echo $this->escape($bootmenuentry->getConfigID()) ?></div>				  				
				  		</div>
			  		</div>
			  		<div class='clear'></div>
				</div>
	  			<?php endforeach; ?>
	  		</div>
  		</div>
  		<div class='clear'></div>
	</div>
	<?php endforeach; ?>
</div>
 
<?php echo $this->pagination; ?>

<script>
$(document).ready(function(){ 
    $('.actions .play').click(function (){
    	$("#notification").load($(this).attr('href')).addClass('infobox').show();    		
        return false;
	});
});
</script>