summaryrefslogblamecommitdiffstats
path: root/application/modules/user/views/scripts/person/showall.phtml
blob: d605f707c6f6b401f9d4527e1245e40402e683c1 (plain) (tree)




















































































































                                                                                                                                      


                                        
<h1>Persons Overview</h1>
<br />
<br />
<table>
	<tr>
		<th>Title</th>
		<th>Name</th>
		<th>Firstname</th>
		<th>Email</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 />