Example #1
0
<?php

$type = isset($_POST['type']) ? $_POST['type'] : 'jifen';
if (!in_array($type, array('jifen', 'order', 'item'))) {
    $type = 'jifen';
}
if ($type == 'jifen') {
    $_result = query_jifens(array('user_id' => get_current_user_id(), 'page' => absint($_POST['page']), 'jifen_per_page' => 10));
    $_jifens = $_result['jifens'];
    $_total = $_result['total'];
    ?>
<table class="table table-striped table-hover table-bordered">
	<colgroup>
		<col style="width:150px;"/>
		<col style="width:80px;"/>
        <col style="width:150px;"/>
        <col/>
	</colgroup>
	<thead>
		<tr>
			<th>时间</th>
			<th><?php 
    echo xt_jifenbao_text();
    ?>
</th>
			<th>类型</th>
			<th>备注</th>
		</tr>
	</thead>
	<tbody>
		<?php 
Example #2
0
?>
>商品管理</a> |</li>
	<li><a href="http://<?php 
echo add_query_arg(array('type' => 'jifen', 'paged' => 1), $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
?>
"<?php 
echo $type == 'jifen' ? ' class="current"' : '';
?>
><?php 
echo xt_jifenbao_text();
?>
记录</a></li>
</ul>
<?php 
if ($type == 'jifen') {
    $_result = query_jifens(array('jifen_per_page' => 50, 'page' => isset($_GET['paged']) ? intval($_GET['paged']) : 1));
    $_jifens = $_result['jifens'];
    ?>

<div class="tablenav top">
	<div class="alignleft actions">
		
	</div>
	<div class="tablenav-pages">
		<span class="displaying-num">
			<?php 
    xt_jifens_paging_text();
    ?>


		</span> <span class="pagination-links">