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




                                                                                                                                                                                                                                         
                                
 

                                                        


                                                                                                                                                   
                                                                                  

              

                                                       

                                                 
                                               
                       
                                           
                                     

                                       
 
                         



                                                                             
                             
                                    
                                                             
                                          
                      



                                                                                                                                                             


                                                                          
                                                                               
                                                                               
                                                                                  


                                                                              
                                                                                                             
                                               







                                                                                                                                                                 
                                                      

















































                                                                                                                                                                                                                           
                                                                                      













                                                                                                                                                           




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

<?php if(Pbs_Acl::checkRight('csui')): ?>
<div class='helper infobox'>Here you the the available Configs which you can select to your BootOS. The Config does some modification to the selected BootOs after the start. In Most Cases you don't have to change here anything.</div>
<?php endif; ?>

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

<?php $conflabel = $this->type == 'own'?'group':'own';?>

<?php if(Pbs_Acl::checkRight('csui')): ?>
<?php echo $this->formButton('ownconfig', 'Show '.$conflabel.' configs', array(
							'onclick' => 'self.location="/user/config/index/type/'.$conflabel.'/page/'.$this->page.'"',
							'class' => 'addbutton'))?>
<?php endif;?>

<div class='searchvars'>
	<div class='head'>Available searchfilter:</div>
	<?php if(Pbs_Acl::checkRight('csai')): ?>
		<div class='code'>configID</div>
		<div class='code'>visible</div>
	<?php endif; ?>
	<div class='code'>description</div>
	<div class='code'>title</div>
	<div class='code'>created</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('cc') &&  $this->type == 'group') || (Pbs_Acl::checkRight('cco') &&  $this->type == 'own')): ?>
  					<a href="<?php echo $this->url(
					array(
						'module'	=> 'user',
						'controller' => 'config',
						'action'     => 'createconfig',
						'type'		=> $this->type,
						'bootosID'   =>  $bootos->getID(),
						'page'		=> $this->page
					),
					'default',
					true, false) ?>"><img src='/media/img/add.png' alt='Add Config'/></a>
				<?php endif; ?>
  			</div>		 
  			<?php if(!Pbs_Acl::checkRight('boai')){
  				$bootos->setGroupID(preg_replace("!^\[[0-9]+\]\s!",'',$bootos->getGroupID()));
  			} ?>
  			
  			<?php  ?>
	  		<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(count($this->configlist[$bootos->getID()])==0)
					echo "There are no Config's to display." ?>
				<?php foreach ($this->configlist[$bootos->getID()] as $k => $config): ?>
					<div class='element'>
		  				<div class='number'>
							<div class='smallnumber'>Config</div>
		  					<?php echo $k+1; ?>
		  				</div>
		  				<div class='content'>  			
			  				<div class='actions'>
			  					<?php if(((Pbs_Acl::checkRight('ce') || Pbs_Acl::checkRight('cem')) && $this->type == 'group') || ($this->type == 'own' && Pbs_Acl::checkRight('ceo'))): ?>
			  						<a href="<?php echo $this->url(
										array(
											'module'	=> 'user',
											'controller' => 'config',
											'action'     => 'showconfig',
											'type'		=> $this->type,
											'configID'   =>  $config->getID()
										),
										'default',
										true, false) ?>"><img src='/media/img/show.png' alt='Show Config'/></a>
			  						<a href="<?php echo $this->url(
										array(
											'module'	=> 'user',
											'controller' => 'config',
											'action'     => 'editconfig',
											'type'		=> $this->type,
											'configID'   =>  $config->getID(),
							
											'page'		=> $this->page
										),
										'default',
										true, false) ?>"><img src='/media/img/edit.png' alt='Edit Config'/></a>
								<?php endif; ?>
								<?php if((Pbs_Acl::checkRight('cd') && $this->type == 'group') || ($this->type == 'own' && Pbs_Acl::checkRight('cdo'))): ?>
							  		<a href="<?php echo $this->url(
										array(
											'module'	=> 'user',
											'controller' => 'config',
											'action'     => 'deleteconfig',
											'type'		=> $this->type,
											'configID'   =>  $config->getID(),
											'page'		=> $this->page
										),
										'default',
										true) ?>"><img src='/media/img/delete.png' alt='Delete Config'/></a>
								<?php endif; ?>	
			  				</div>  
			  				<div class='title'><?php echo $this->escape($config->getTitle()); ?></div>
			  				<div class='subtitle'><?php echo $this->escape($config->getDescription()) ?></div>	
			  				<div class='details dispnone'>
			  					<?php if(Pbs_Acl::checkRight('csai')): ?>
			  						<label>ConfigID</label>
			  							<div class='item'><?php echo $this->escape($config->getID()); ?></div>
			  						<label>Visible</label>
			  							<div class='item'><?php echo $this->escape($config->getVisible()); ?></div>
								<?php endif; ?>	  			
			  					<label>Created</label>
			  						<div class='item'><?php echo $this->escape($config->getCreated()); ?></div>
			  				</div>
		  				</div>
		  				<div class='clear'></div>
					</div>
				<?php endforeach; ?>
				
	  		</div>
  		</div>
  		<div class='clear'></div>
	</div>
	<?php endforeach; ?>

</div>

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