Current File : /home/users/barii/public_html/finansenl.com.pl/wodki/application/views/admin/licence.php
	<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">
				
				<form action="">
				Sortuj wg.
					<select name="file_id">
						<option value="" >Wszystkie</option>
						<?php foreach( ORM::Factory('File')->find_all() as $f ) : ?>
						<option value="<?php echo $f->id; ?>" <?php if( $f->id == $file_id ) echo 'SELECTED="SELECTED"'; ?>><?php echo $f->title; ?></option>
						<?php endforeach; ?>
					</select>
					
						
					<input type="submit" value="Pokaż"/>
				</form>
				
						<div class="full_w">
						<div class="h_title">Licencje</div>
						<div class="entry">
							<div class="sep"></div>
						</div>
						<?php if( $orders->count() == 0 ) : ?>
						<p>Brak zamówień.</p>
						<?php else: ?>
						<table>
					<thead>
						<tr>
							<th scope="col" width="470">Data</th>
							<th scope="col">Zmień</th>
						</tr>
					</thead>	
					<tbody>
					<?php $n=0; foreach( $orders as $order ) : $n++; ?>
						<tr>
							<td>
							Licencja na <?php echo $order->file->title; ?> zakupiona w  <?php echo $order->date; ?> przez <?php echo $order->customer->username; ?>
							</td>
							<td>
								<a href="/admin/licence_edit/<?php echo $order->id; ?>"><img src="./static/images/edit.png" alt="Edytuj" title="Edytuj"/></a>
								<a href="/admin/licence_delete/<?php echo $order->id; ?>"><img src="./static/images/medialni_402.jpg" alt="Usuń" title="Usuń"/></a>
							</td>
						</tr>
					<?php endforeach; ?>
					</tbody>
					</table>
					<?php endif; ?>
					</div>
				
				</div>
				
				
			</div>
			
		</div>