<div class="grid_40col">
	<div id="sub_content_header" class="grid_40col">
		<div class="grid_10col">
			<div class="grid_7col button new">
				<a href="index.php?siteId=2&amp;todoId=2"><?php echo $this -> _lang[ 'new' ]; ?></a>
			</div>
		</div>
		<div class="grid_20col spacer"></div>
		<div class="grid_10col right">
			<form action="index.php" name="filterForm" id="filterForm" method="get">
				<input type="hidden" name="siteId" id="siteId" value="3"/>
				<input type="hidden" name="todoId" id="todoId" value="1"/>
				<div class="grid_9col">
					<input type="text" name="filter" id="filter" onclick="$( this ).val( '' );"/>
					<label for="filter" class="grid_9col left"><?php echo $this -> _lang[ 'search' ]; ?></label>
				</div>
				<img src="../../images/icon-lupe.png" onclick="$( '#filterForm' ).submit( );"/>
			</form>
		</div>
	</div>
	<div class="grid_40col spacer"></div>
	<div class="grid_40col spacer"></div>
	<div class="grid_40col tbl_head">
		<?php echo $this -> _lang[ 'name' ]; ?>
	</div>
	<div id="sub_content_main" class="grid_40col">
	<?php
	
		foreach ( $this -> _data as $userData )
			{
				if ( ! empty ( $userData ) )
					{
						extract( $userData );
						
						?>
						<div class="grid_40col">
							<div class="grid_40col main_row clickable">
								<div class="grid_10col tbl_cell highlight">
									<?php echo $userLastname; ?>, <?php echo $userFirstname; ?>
								</div>
								<div class="grid_30col tbl_cell highlight"></div>
							</div>
							<div class="grid_40col hidden_row">
								<div class="grid_40col">
									<div class="grid_40col">
										<div class="grid_2col spacer"></div>
										<div class="grid_36col">
											<div class="grid_8col tbl_cell"><?php echo $this -> _lang[ 'email:' ]; ?></div>
											<div class="grid_28col tbl_cell"><?php echo $userEmail; ?></div>
										</div>
										<div class="grid_2col spacer"></div>
									</div>
									<div class="grid_40col spacer"></div>
									<div class="grid_40col">
										<div class="grid_2col spacer"></div>
										<div class="grid_36col">
											<div class="grid_8col tbl_cell"><?php echo $this -> _lang[ 'createdBy:' ]; ?></div>
											<div class="grid_28col tbl_cell"><?php echo $userCreateUser; ?></div>
										</div>
										<div class="grid_2col spacer"></div>
									</div>
									<div class="grid_40col">
										<div class="grid_2col spacer"></div>
										<div class="grid_36col">
											<div class="grid_8col tbl_cell"><?php echo $this -> _lang[ 'createdOn:' ]; ?></div>
											<div class="grid_28col tbl_cell"><?php echo $userCreateTS; ?></div>
										</div>
										<div class="grid_2col spacer"></div>
									</div>
									<?php
									
										if ( $userActive === 'N' )
											{
												?>
												<div class="grid_40col">
													<div class="grid_40col spacer"></div>
													<div class="grid_40col">
														<div class="grid_2col spacer"></div>
														<div class="grid_36col">
															<div class="grid_8col tbl_cell"><?php echo $this -> _lang[ 'disabledBy:' ]; ?></div>
															<div class="grid_28col tbl_cell"><?php echo $userActiveUser; ?></div>
														</div>
														<div class="grid_2col spacer"></div>
													</div>
													<div class="grid_40col">
														<div class="grid_2col spacer"></div>
														<div class="grid_36col">
															<div class="grid_8col tbl_cell"><?php echo $this -> _lang[ 'disabledOn:' ]; ?></div>
															<div class="grid_28col tbl_cell"><?php echo $userActiveTS; ?></div>
														</div>
														<div class="grid_2col spacer"></div>
													</div>
												</div>
												<?php
											}
											
									?>
									<div class="grid_40col">
										<div class="grid_2col spacer"></div>
										<div class="grid_36col">
											<?php
											
												if ( $userActive === 'N' )
													{
														?>
														<div class="grid_7col button activate">
															<a href="index.php?siteId=2&amp;todoId=3&userId=<?php echo $userId; ?>"><?php echo $this -> _lang[ 'activate' ]; ?></a>
														</div>
														<?php
													}
												else
													{
														?>
														<div class="grid_7col button deactivate">
															<a href="index.php?siteId=2&amp;todoId=4&userId=<?php echo $userId; ?>"><?php echo $this -> _lang[ 'deactivate' ]; ?></a>
														</div>
														<?php
													}
											?>
											<div class="grid_1col spacer"></div>
											<div class="grid_7col button edit">
												<a href="index.php?siteId=2&amp;todoId=5&userId=<?php echo $userId; ?>"><?php echo $this -> _lang[ 'edit' ]; ?></a>
											</div>
											<div class="grid_1col spacer"></div>
											<div class="grid_7col button delete">
												<a href="index.php?siteId=2&amp;todoId=6&userId=<?php echo $userId; ?>"><?php echo $this -> _lang[ 'delete' ]; ?></a>
											</div>
											<div class="grid_1col spacer"></div>
											<div class="grid_7col button pw_reset">
												<a href="index.php?siteId=2&amp;todoId=7&userId=<?php echo $userId; ?>"><?php echo $this -> _lang[ 'pw_reset' ]; ?></a>
											</div>
										</div>
										<div class="grid_2col spacer"></div>
									</div>
									<div class="grid_40col spacer"></div>
								</div>
							</div>
						</div>
						<?php
					}
			}
	?>
	</div>
</div>