Current File : /home/users/barii/public_html/finansenl.com.pl/wodki/application/views/account/earning.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('Zarządzanie <span>profilem</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;"/>
<a class="button_gray <?php if( Request::current()->controller() == 'Account' AND Request::current()->action() == 'order' AND Request::current()->param('act') == '' ) echo 'button_gray_active'; ?>" href="account/order"><?php echo __t('Twoja sprzedaż'); ?></a></li>
<a class="button_gray <?php if( Request::current()->controller() == 'Account' AND Request::current()->action() == 'item' AND Request::current()->param('act') == '' ) echo 'button_gray_active'; ?>" href="account/item"><?php echo __t('Twoje prace'); ?></a></li>
<a class="button_gray <?php if( Request::current()->controller() == 'Account' AND Request::current()->action() == 'item' AND Request::current()->param('act') == 'edit') echo 'button_gray_active'; ?>" href="account/item/edit"><?php echo __t('Dodaj prace'); ?></a></li>
<a class="button_gray <?php if( Request::current()->controller() == 'Account' AND Request::current()->action() == 'earning' ) echo 'button_gray_active'; ?>" href="account/earning"><?php echo __t('Finanse'); ?></a>
<br style="clear: both;"/>
<br style="clear: both;"/>
<form action="" method="get">
<fieldset class="forms">
<label for="f">Wybierz okres</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>Rozliczenie <span>sprzedaży</span></h2>
<table class="dataTable" id="listing">
<thead>
<tr>
<th>Prowizje dla użytkownika</th>
</tr>
</thead>
<tbody>
<?php $i=0; foreach( $invoices as $o ) : $i++; ?>
<tr class="<?php echo $i%2==0 ? 'even' : ''; ?>">
<td>
Faktura [<?php echo $o->title; ?>] z dnia <?php echo $o->date; ?> o ID <?php echo $o->id; ?> - kwota: <?php echo $o->price; ?> <a href="account/invoice/<?php echo $o->id; ?>" class="button toRight" style="color: #fff;" target="_blank">Pobierz Fakturę</a>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<h2>Statystyki <span>sprzedaży</span></h2>
<table class="dataTable" id="listing">
<thead>
<tr>
<th>Sprzedaż</th>
</tr>
</thead>
<tbody>
<?php $i=0; foreach( $sold as $o ) : $i++; ?>
<tr class="<?php echo $i%2==0 ? 'even' : ''; ?>">
<td>
Zamówienie (<?php echo $o->status==1 ? 'opłacone' : 'nieopłacone'; ?>) z dnia <?php echo $o->date; ?> o ID <?php echo $o->id; ?> na <?php echo $o->file->title; ?> - kwota: <?php echo $o->file->price; ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<h2>Saldo <span>bieżące</span></h2>
<p>Suma prowizji: <?php echo round((float)$commission->total, 2); ?>zł</p>
</div>
</div>