Current File : /home/users/barii/public_html/finansenl.com.pl/wodki/application/views/admin/user.php
	<script>
	$(window).ready( function() {
	$('.del_now').click( function() {
		var c = confirm('Czy na pewno?');
		if( c ) {
			var wg = $(this).attr('rel');
			location.href = wg;
		}
	});
	});
	</script>
	<div id="page">
		
	
			<!--  start message-blue -->
			<?php if (isset($message_ok)):?>
			<div class="n_ok"><p><?php echo $message_ok;?></div>
			<?php endif;?>	
			<!--  start message-red -->
			<?php if (isset($message)):?>
			<div class="n_error"><p><?php echo $message;?></div>
					
			<?php endif;?>
			
			<div id="content">

				<div class="main">
				
					<div class="full_w">
				<div class="h_title">Zarządzaj</div>
				
				
				
				<form action="">
				Sortuj wg.
					<select name="sort">
						
						<option value="added" <?php if( $sort == 'added' ) echo 'SELECTED="SELECTED"'; ?>>Daty dodania</option>
						<option value="id" <?php if( $sort == 'id' ) echo 'SELECTED="SELECTED"'; ?>>ID</option>
						<option value="username" <?php if( $sort == 'username' ) echo 'SELECTED="SELECTED"'; ?>>Login</option>
						<option value="email" <?php if( $sort == 'email' ) echo 'SELECTED="SELECTED"'; ?>>Email</option>
						<option value="amount_licence" <?php if( $sort == 'amount_licence' ) echo 'SELECTED="SELECTED"'; ?>>Liczba licencji</option>
					</select>
					<select name="direct">
						<option value="asc" <?php if( $direct == 'asc' ) echo 'SELECTED="SELECTED"'; ?>>Rosnąco</option>
						<option value="desc" <?php if( $direct == 'desc' ) echo 'SELECTED="SELECTED"'; ?>>Malejąco</option>
					</select>
					<br/>
							Data Od <input type="text" name="date_start" value="<?php echo date('d-m-Y', $date_start); ?>"/><br/>
							Data Do <input type="text" name="date_end" value="<?php echo date('d-m-Y', $date_end); ?>"/><br/>
						<br/>
						Nazwa użytkownika <input type="text" name="keyword" value="" onclick="this.value=''"/>
					<input type="submit" value="Pokaż"/>
				</form>
				<div class="entry">
					<div class="sep"></div>
				</div>
				
				<h2>Użytkownicy zaakceptowani</h2>
				<table>
					<thead>
						<tr>
							
							
							<th scope="col" width="470">Dane</th>
						
							<th scope="col">Zmień</th>
						</tr>
					</thead>
						
					<tbody>
					
					
					
					
					
					<?php $n=0; foreach( $users as $user ) : $n++; ?>
					<?php 
						$layout = aurora::getProfileName( $user->profile_id );
						
						
						if( $user->status==0 ) $title = "<em>".$user->username."</em>"; else $title = "<strong>".$user->username."</strong>"; 
						
					?>
				
					
						<tr>
							
							<td class="title">
							
							<a href="/admin/user_detail/<?php echo $user->id; ?>?layout=<?php echo $user->profile_id; ?>&profile_id=<?php echo $user->profile_id; ?>&date_start=<?php echo @$_GET['date_start']; ?>&date_end=<?php echo @$_GET['date_end']; ?>&keyword=<?php echo @$_GET['keyword']; ?>"><?php echo $title; ?></a> &nbsp; <?php echo $user->firstname; ?> <?php echo $user->lastname; ?><br/><?php echo $user->email; ?></td>
							<td>
								<a href="mailto: <?php echo $user->email; ?>" style="color: #aaa;"><img src="./static/images/mail.png" alt="Wyślij" title="Wyślij" style="width: 26px; position: relative; top: 5px;"/></a>
								<?php if( $user->highlight == 0 ) : ?><a href="/admin/user/highlight/<?php echo $user->id; ?>"><img src="./static/images/star.png" alt="Wyróżnij VIP" title="Wyróżnij VIP"/></a><?php endif; ?>
								<?php if( $user->highlight == 1 ) : ?><a href="/admin/user/dehighlight/<?php echo $user->id; ?>"><img src="./static/images/destar.png" alt="Zabierz wyróżnienie" title="Zabierz wyróżnienie"/></a><?php endif; ?>
								<?php if( $user->status == 0 ) : ?><a href="/admin/user/accept/<?php echo $user->id; ?>"><img src="./static/images/accept.gif" alt="Akceptuj" title="Akceptuj"/></a><?php endif; ?>
								
								<?php if( $user->status == 1 ) : ?><a href="/admin/user/ban/<?php echo $user->id; ?>"><img src="./static/images/ban.png" alt="Banuj" title="Banuj"/></a><?php endif; ?>
								<a href="/admin/user_detail/<?php echo $user->id; ?>?layout=<?php echo $user->profile_id; ?>&profile_id=<?php echo $user->profile_id; ?>&date_start=<?php echo @$_GET['date_start']; ?>&date_end=<?php echo @$_GET['date_end']; ?>&keyword=<?php echo @$_GET['keyword']; ?>"><img src="./static/images/detail.png" alt="Szczegóły" style="width: 16px;" title="Szczegóły"/></a>
								<a href="/admin/user_edit/<?php echo $user->id; ?>?layout=<?php echo $user->profile_id; ?>&profile_id=<?php echo $user->profile_id; ?>&date_start=<?php echo @$_GET['date_start']; ?>&date_end=<?php echo @$_GET['date_end']; ?>&keyword=<?php echo @$_GET['keyword']; ?>"><img src="./static/images/edit.png" alt="Edytuj" title="Edytuj"/></a>
								<a class="del_now" rel="/admin/user/delete/<?php echo $user->id; ?>"><img src="./static/images/medialni_402.jpg" alt="Usuń" title="Usuń"/></a>
							</td>
						</tr>
						
					
					
					<?php endforeach; ?>
					</tbody>
					</table>
					
				<div class="entry">
					<div class="sep"></div>
				</div>
					<h2>Użytkownicy niezaakceptowani</h2>
				
				
				<table>
					<thead>
						<tr>
							
							
							<th scope="col">Dane</th>
						
							<th scope="col">Zmień</th>
						</tr>
					</thead>
						
					<tbody>
					
				
					
					
					<?php $n=0; foreach( $users2 as $user ) : $n++; ?>
					<?php 
						$layout = aurora::getProfileName( $user->profile_id );
						
						
						if( $user->status==0 ) $title = "<em>".$user->username."</em>"; else $title = "<strong>".$user->username."</strong>"; 
						
					?>
				
					
						<tr>
							
							<td class="title">
							
							<a href="/admin/user_detail/<?php echo $user->id; ?>?layout=<?php echo $user->profile_id; ?>&profile_id=<?php echo $user->profile_id; ?>&date_start=<?php echo @$_GET['date_start']; ?>&date_end=<?php echo @$_GET['date_end']; ?>&keyword=<?php echo @$_GET['keyword']; ?>"><?php echo $title; ?></a> &nbsp; <?php echo $user->firstname; ?> <?php echo $user->lastname; ?><br/><?php echo $user->email; ?></td>
							<td>
								<a href="mailto: <?php echo $user->email; ?>" style="color: #aaa;">Napisz</a>
								<?php if( $user->highlight == 0 ) : ?><a href="/admin/user/highlight/<?php echo $user->id; ?>"><img src="./static/images/star.png" alt="Wyróżnij VIP" title="Wyróżnij VIP"/></a><?php endif; ?>
								<?php if( $user->highlight == 1 ) : ?><a href="/admin/user/dehighlight/<?php echo $user->id; ?>"><img src="./static/images/destar.png" alt="Zabierz wyróżnienie" title="Zabierz wyróżnienie"/></a><?php endif; ?>
								<?php if( $user->status == 0 ) : ?><a href="/admin/user/accept/<?php echo $user->id; ?>"><img src="./static/images/accept.gif" alt="Akceptuj" title="Akceptuj"/></a><?php endif; ?>
								<?php if( $user->status == 1 ) : ?><a href="/admin/user/ban/<?php echo $user->id; ?>"><img src="./static/images/ban.png" alt="Banuj" title="Banuj"/></a><?php endif; ?>
								
								<a href="/admin/user_edit/<?php echo $user->id; ?>"><img src="./static/images/edit.png" alt="Edytuj" title="Edytuj"/></a>
								<a href="/admin/user/delete/<?php echo $user->id; ?>"><img src="./static/images/medialni_402.jpg" alt="Usuń" title="Usuń"/></a>
							</td>
						</tr>
						
					
					
					<?php endforeach; ?>
					</tbody>
					</table>
					<div class="entry">
					<div class="sep"></div>
				</div>
					
					<h2>Użytkownicy do usunięcia</h2>
				
				
				<table>
					<thead>
						<tr>
							
							
							<th scope="col">Dane</th>
						
							<th scope="col">Zmień</th>
						</tr>
					</thead>
						
					<tbody>
					
				
					
					
					<?php $n=0; foreach( $users_deleted as $user ) : $n++; ?>
					<?php 
						$layout = aurora::getProfileName( $user->profile_id );
						
						
						if( $user->status==0 ) $title = "<em>".$user->username."</em>"; else $title = "<strong>".$user->username."</strong>"; 
						
					?>
				
					
						<tr>
							
							<td class="title" width="200">
							
							<a href="/admin/user_detail/<?php echo $user->id; ?>?layout=<?php echo $user->profile_id; ?>&profile_id=<?php echo $user->profile_id; ?>&date_start=<?php echo @$_GET['date_start']; ?>&date_end=<?php echo @$_GET['date_end']; ?>&keyword=<?php echo @$_GET['keyword']; ?>"><?php echo $title; ?></a> &nbsp; <?php echo $user->firstname; ?> <?php echo $user->lastname; ?><br/><?php echo $user->email; ?></td>
							<td>
								<a href="mailto: <?php echo $user->email; ?>" style="color: #aaa;">Napisz</a>
								<?php if( $user->highlight == 0 ) : ?><a href="/admin/user/highlight/<?php echo $user->id; ?>"><img src="./static/images/star.png" alt="Wyróżnij VIP" title="Wyróżnij VIP"/></a><?php endif; ?>
								<?php if( $user->highlight == 1 ) : ?><a href="/admin/user/dehighlight/<?php echo $user->id; ?>"><img src="./static/images/destar.png" alt="Zabierz wyróżnienie" title="Zabierz wyróżnienie"/></a><?php endif; ?>
								<?php if( $user->status == 0 ) : ?><a href="/admin/user/accept/<?php echo $user->id; ?>"><img src="./static/images/accept.gif" alt="Akceptuj" title="Akceptuj"/></a><?php endif; ?>
								<?php if( $user->status == 1 ) : ?><a href="/admin/user/ban/<?php echo $user->id; ?>"><img src="./static/images/ban.png" alt="Banuj" title="Banuj"/></a><?php endif; ?>
								
								<a href="/admin/user_edit/<?php echo $user->id; ?>?layout=<?php echo $user->profile_id; ?>"><img src="./static/images/edit.png" alt="Edytuj" title="Edytuj"/></a>
								<a href="/admin/user/delete/<?php echo $user->id; ?>"><img src="./static/images/medialni_402.jpg" alt="Usuń" title="Usuń"/></a>
							</td>
						</tr>
						
					
					
					<?php endforeach; ?>
					</tbody>
					</table>
					
				<div class="entry">
					<div class="sep"></div>
				</div>
					</div>
				
				</div>
				
				
			</div>
			
		</div>