<?php if(!defined('IN_PATH')){exit('Access Denied.');}?>
{inc:home:header.htm}
{inc:left.htm}
<div class="row">
	<div class="col-sm-12">
		<div class="alert alert-success"><span class="icon-location"></span> 当前位置：我的推广</div>
	</div>
	<div class="col-sm-12">
		<ul class="nav nav-tabs no-margin myTabBeauty">
			<li class="{if:$navkey=='promotion-index'}active{/if}"> <a href="index.php?u=promotion-index">下线名单</a> </li>
			<li class="{if:$navkey=='promotion-mylist'}active{/if}"> <a href="index.php?u=promotion-mylist">收益明细</a> </li>
		</ul>
		<div class="panel panel-default mt10">
		<div class="table-responsive">
			<table class="table table-condensed table-striped table-bordered table-hover no-margin">
				<thead>
					<tr>
						<th class="text-center" width="180">时间</th>
						<th class="text-center" width="100">金额</th>
						<th class="text-center" width="220">订单号码</th>
						<th class="text-center">备注</th>
					</tr>
				</thead>
				<tbody>
				{if:!empty($lists)}
					{loop:$lists $v}
					<tr id="{$v[order_id]}">
						<td class="text-center">{php} echo date('Y-m-d H:i', $v['created']);{/php}</td>
						<td style="text-align:right;">{$v[money]}</td>
						<td class="text-center">{if:$v['order_id']}{$v['order_id']}{else}-{/if}</td>
						<td class="">{$v[comment]}</td>
					</tr>
					{/loop}
				{/if}
				</tbody>
			</table>
		</div>
			{if:!empty($pages)}
		<nav class="text-center">
			<ul class="pagination">
				{$pages}
			</ul>
		</nav>
			{/if}
		</div>
	</div>
</div>
{inc:footer.htm}