Current File : /home/users/barii/public_html/finansenl.com.pl/wodki/application/views/account/order.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="wrapper">
<?php echo aurora::partial('frontend_sider'); ?>
<div id="content">
<h2><?php echo __t('Zarządzanie <span>profilem</span>'); ?>
</h2>
<?php echo aurora::partial('frontend_account_info'); ?>
<p><?php echo __t('Witaj w strefie dostępnej dla użytkowników systemu'); ?></p><br style="clear: both;"/><br style="clear: both;"/>
<?php if( Request::current()->action() == 'order' ) : ?>
<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('Kupujący'); ?></a></li>
<br style="clear: both;"/><br style="clear: both;"/>
<?php endif; ?>
<br style="clear: both;"/><br style="clear: both;"/>
<h3><?php echo __t('Sortowanie'); ?></h3><br style="clear: both;"/>
<form action="" method="get">
<fieldset>
<select name="sort" onchange="this.form.submit();">
<option value="date" <?php if( !empty( $sort ) AND $sort == 'date') echo 'SELECTED="SELECTED"'; ?>>Wg daty</option>
<option value="status" <?php if( !empty( $sort ) AND $sort == 'status') echo 'SELECTED="SELECTED"'; ?> >Wg statusu płatności</option>
</select>
<input type="submit" style="display: none;" value="<?php echo __t('Sort'); ?>"/>
</fieldset>
</form>
<?php if( !empty($_GET['controversy']) ) : ?>
<h2><?php echo __t('Załóż spór'); ?></h2>
<form action="" method="post">
<fieldset>
<input type="hidden" name="send" value="1"/>
<input type="hidden" name="order_id" value="<?php echo $_GET['order_id']; ?>"/>
<textarea type="textarea" class="note_order" name="note_text"><?php echo __t('Addon text'); ?></textarea>
<input type="submit" value="<?php echo __t('Wyślij'); ?>"/>
</fieldset>
</form>
<?php endif; ?>
<table class="dataTable" id="listing">
<thead>
<tr>
<th><?php echo __t('ID'); ?></th>
<th><?php echo __t('Status'); ?></th>
<th><?php echo __t('Kupujący'); ?></th>
<th><?php echo __t('Kwota'); ?></th>
<th><?php echo __t('Data zakupu'); ?></th>
<th><?php echo __t('Opcje'); ?></th>
</tr>
</thead>
<tbody>
<?php $i=0; $sum_amount_total_price= 0; foreach( $orders as $o ) : $sum_amount_total_price += $o->total_price; $i++; ?>
<tr class="<?php echo $i%2==0 ? 'even' : ''; ?>">
<td><?php echo $o->id; ?></td>
<td><?php echo $o->status==1 ? __t('zapłacone') : __t('niezapłacone'); ?></td>
<td>
<?php echo $o->customer->firstname; ?> <?php echo $o->customer->lastname; ?>
</td>
<td align="center"><?php echo $o->total_price; ?>zł</td>
<td align="center"><?php echo $o->date; ?></td>
<td align="center">
<a target="_blank" class="button_white" href="<?php echo $o->file_name; ?>"><?php echo __t('Pokaż PDF'); ?></a>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>