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



                                                       

                                   
                                            
                                       
      
 


                                                          
                                                     
                             


                                                                              

                                                        
                                                                        
                                                               



                                                                                     

                                                                                               

                                                          
                                                                                                                

                                                                        
                                                               



                                                                                       

                                                                                               

                                                          
                                                                                                                    
                                               



                                                                   
                                                         
                                                                                                                 
                                                        
                                                                                                                 
                                                         
                                                                                                                  

                                                                                                                    

                                                                                                               








                                         
                               




                                                               
                                                               



                   
<h1>Clients</h1>
<?php if($this->notification != ''){echo $this->notification;} ?>
<?php echo $this->searchform; ?>
<?php if(Pbs_Acl::checkRight('cla')): ?>
<?php echo $this->formButton('createbootos', 'Create Client', array(
							'onclick' => 'self.location="/user/client/addclient/page/'.$this->page.'"',
							'class' => 'addbutton'))?>
<?php endif;?>
<div class='searchvars'>
	<div class='head'>Available searchfilter:</div>
	<div class='code'>clientID</div>
	<div class='code'>macadress</div>
	<div class='code'>ip</div>
	<div class='code'>ip6</div>
	<div class='code'>hardwarehash</div>
	<div class='code'>created</div>
</div>

<div class='listelement'>
	<?php if(count($this->clients)==0)
		echo "There are no Clients to display." ?>
	<?php foreach ($this->clients as $client): ?>
	<div class='element'>
  		<div class='number'>
			<div class='smallnumber'>Client</div>
			<?php echo $this->escape($client['clientID']) ?></div>
  		<div class='content'>  			
	  		<div class='actions'>
	  			<?php if(Pbs_Acl::checkRight('cle')): ?>
	  			<a href="<?php echo $this->url(
						array(
							'module'	=> 'user',
							'controller' => 'client',
							'action'     => 'editclient',
							'clientID'	=> $client['clientID'],
							'page'		=> $this->page
						),
						'default',
						true) ?>"><img src='/media/img/edit.png' alt='Edit Client'/></a>
				<?php endif; ?>
				<?php if(Pbs_Acl::checkRight('cld')): ?>
		  		<a href="<?php echo $this->url(
						array(
							'module'	=> 'user',
							'controller' => 'client',
							'action'     => 'removeclient',
							'clientID'	=> $client['clientID'],
							'page'		=> $this->page
						),
						'default',
						true) ?>"><img src='/media/img/delete.png' alt='Delete Client'/></a>
				<?php endif; ?>
	  		</div>  
	  		<!--<div class='title'>Title</div>-->
	  		<!--<div class='subtitle'>Subtitle</div>-->
	  		<div class='details'>
	  			<label>MacAddress</label>
	  				<div class='item'><?php echo $this->escape($client['macadress']) ?></div>
	  			<label>IpAddress</label>
					<div class='item'><?php echo $this->escape($client['ip']); ?>&nbsp;</div>
				<label>Ip6Address</label>
					<div class='item'><?php echo $this->escape($client['ip6']); ?>&nbsp;</div>
	  			<label>Hardwarehash</label>
	  				<div class='item'><?php echo $this->escape($client['hardwarehash']) ?></div>
	  			<label>Created</label>
	  				<div class='item'><?php echo $this->escape($client['created']) ?></div>
	  		</div>
  		</div>
  		<div class='clear'></div>
	</div>
	<?php endforeach ?> 
</div>

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

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