Current File : /home/users/barii/public_html/finansenl.com.pl/wodki/application/views/account/stat.php
			<?php if (isset($message)):?>
					<div id="message-red" >
						<table border="0" width="100%" cellpadding="0" cellspacing="0">
							<tr>
								<td class="red-left">
									<?php echo $message;?>
								</td>
								<td class="red-right"><a class="close-red"><?php echo HTML::image('static/images/table/icon_close_red.gif');?></a></td>
							</tr>
						</table>
					</div>
			<?php endif;?>	
			<?php echo Message::render(); ?>
			<div class="container">
			<?php echo aurora::partial('frontend_sider'); ?>
		
				<div id="content">
					<h2><?php echo __t('Account <span>statistics</span>'); ?>
				</h2>
			
				
					<p><?php echo __t('Witaj w strefie dostępnej dla użytkowników systemu'); ?></p>
					
					
					<br style="clear: both;"/><br style="clear: both;"/>
					<div class="account_point_layer layer_module">
					
					<form action="" method="get">
					<fieldset class="forms">
						<label for="f"><?php echo __t('Select period'); ?></label>
						<select name="m" style="width: 100px;" onchange="this.form.submit();">
							<?php for( $i=1; $i<=12; $i++ ) : ?>
							<option value="<?php echo $i; ?>" <?php if( $i==date('n') OR $i==(int)$m) echo 'SELECTED="SELECTED"'; ?>><?php echo $i; ?></option>
							<?php endfor; ?>
						</select>
						<select name="y" style="width: 160px;" onchange="this.form.submit();">
							<?php for( $i=2012; $i<=2014; $i++ ) : ?>
							<option value="<?php echo $i; ?>" <?php if( $i==date('Y') OR $i==(int)$y) echo 'SELECTED="SELECTED"'; ?>><?php echo $i; ?></option>
							<?php endfor; ?>
						</select>
						<input type="submit" style="display: none;" value=""/>
					</fieldset>
					</form>
					
					
					<h2><?php echo __t('Activity'); ?></h2>
					
					<table class="dataTable" id="listing">
					<thead>
						<tr>
							<th><?php echo __t('Sale'); ?></th>
						
						</tr>
					</thead>
					<tbody>
					<?php $i=0; foreach( $sold as $o ) : $i++; ?>
					<tr class="<?php echo $i%2==0 ? 'even' : ''; ?>">
							<td>
								<?php echo __t('Order'); ?> (<?php echo $o->status==1 ? __t('paid') : __t('unpaid'); ?>), <?php echo $o->date; ?> - ID <?php echo $o->id; ?>
								
							</td>
							
						</tr>
					<?php endforeach; ?>
					</tbody>
					</table>
					
					
					<h2><?php echo __t('Current <span>balance</span>'); ?></h2>
					
					<p><?php echo __t('Total commissions on sales'); ?>: <?php echo round((float)$commission->total, 2); ?>&euro;</p>
						
					</div>
					
				</div>
			</div>

		
		<script>
					$(window).ready( function() {
						$('.button_gray').click( function() {
							$('.button_gray').removeClass('button_gray_active');
							$(this).addClass('button_gray_active');
							var r = $(this).attr('rel');
							if( r != "account_level_layer" ) {
								$('.your_acc').hide();
							} else {
								$('.your_acc').show();
							}
							$('.layer_module').hide();
							$('.'+r).show();
							return false;
						});
					});
				</script>