summaryrefslogblamecommitdiffstats
path: root/application/modules/user/views/scripts/person/showall.phtml
blob: 893e95bb4d0d548236748b8b8c578a66e3b60c34 (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                         
                                

            



                                                                      











































































































                                                                                                                                      


                                        
<h1>Persons Overview</h1>
<br />
<br />
<?php echo $this->searchform; ?>
<table>
	<tr>
		<th>Title <span class='code'>title</span></th>
		<th>Name <span class='code'>name</span></th>
		<th>Firstname <span class='code'>firstname</span></th>
		<th>Email <span class='code'>email</span></th>
		<?php
		if($this->showRight === true || $this->editRight === true || $this->deleteRight === true) {
			?>
		<th colspan=3>Actions</th>
		<?php
		}
		?>
	</tr>
	<?php
	if(count($this->personList) > 0) {
		foreach($this->personList as $person) {
			?>
	<tr
	<?php if($person->getID() == $this->userIDsNamespace['personID']) echo 'class="selectedEntry"'; else echo 'class="entry"'; ?>>
		<td><?php echo $person->getTitle(); ?></td>
		<td><?php echo $person->getName(); ?></td>
		<td><?php echo $person->getFirstname(); ?></td>
		<td><?php echo $person->getEmail(); ?></td>
		<?php
		if($person->getID() == $this->userIDsNamespace['personID']) {
			if($this->showRight === true) {
				?>
		<td class='action'><a
			href="<?php echo $this->url(
					array(
						'module'	=> 'user',
						'controller' => 'person',
						'action'     => 'index'
					),
					'default',
					true);?>"> <img src='/media/img/show.png' alt='Show Person' /></a></td>
					<?php
			}
			if($this->editRight === true) { ?>
		<td class='action'><a
			href="<?php echo $this->url(
					array(
						'module'	=> 'user',
						'controller' => 'person',
						'action'     => 'edit'
					),
					'default',
					true);?>"> <img src='/media/img/edit.png' alt='Edit Person' /></a></td>
					<?php
			}
			if($this->deleteRight === true) { ?>
		<td class='action'><a
			href="<?php echo $this->url(
					array(
						'module'	=> 'user',
						'controller' => 'auth',
						'action'     => 'delete'
					),
					'default',
					true);?>"> <img src='/media/img/delete.png' alt='Delete Account' /></a></td>
					<?php
			}
		} else {
			if($this->showOtherRight === true) {
				?>
		<td class='action'><a
			href=" <?php echo $this->url(
					array(
						'module'	=> 'user',
						'controller' => 'person',
						'action'     => 'show',
						'personID'   =>  $person->getID()
					),
					'default',
					true); ?>"> <img src='/media/img/show.png' alt='Show Person' /></a></td>
					<?php
			}
			if($this->editOtherRight === true) {
				?>
		<td class='action'><a
			href=" <?php echo $this->url(
					array(
						'module'	=> 'user',
						'controller' => 'person',
						'action'     => 'edit',
						'personID'   =>  $person->getID()
					),
					'default',
					true); ?>"> <img src='/media/img/edit.png' alt='Edit Person' /></a></td>
					<?php
			}
			if($this->deleteOtherRight === true) {
				?>
		<td class='action'><a
			href=" <?php echo $this->url(
					array(
						'module'	=> 'user',
						'controller' => 'auth',
						'action'     => 'delete',
						'personID'   =>  $person->getID()
					),
					'default',
					true); ?>"> <img src='/media/img/delete.png' alt='Delete Account' /></a></td>
					<?php
			}
		}
		?>
	</tr>
	<?php
		}
	}
	?>
</table>
	<?php echo $this->pagination; ?>
<br />
<br />