html部分
<include file="Public:head" title="交易详情" />
<style>
.top {
background-color: #eee;
height: 50px;
line-height: 50px;
font-size: 18px;
border-bottom: #ddd 1px solid;
margin-bottom: -1px;
}
.list-group{
border: 1px solid #DDDDDD;
}
.list-group .list-group-item {
text-align: left;
line-height: 25px;
border: none;
background-color: #F9F9F9;
font-size: 14px;
}
#select-date {
padding: 0px 10px;
}
#select-date .date-txt {
font-size: 18px;
}
#total {
width: 140px;
height: 140px;
background-color: #EC6C00;
margin: auto;
}
#total .money-txt {
color: white;
padding-top: 10px;
}
#datalist {
margin-top: 30px;
}
#relief .form-control{
margin-top: 10px;
margin-bottom: 10px;
/*background-color: #FFCE42;*/
}
.page{
margin-right: 10px;
margin-bottom: 20px;
}
.table th {
color: #C4C4C4;
}
.table tbody tr td+td+td {
color: #D3964F;
}
</style>
<script type="text/javascript">
function lastMonth(){
todo('last');
}
function nextMonth(){
todo('next');
}
function selectUser(){
todo('selectuser');
}
function todo(type){
var s_year = $('#s_year').val();
var s_month = $('#s_month').val();
var s_user_id = $('#s_user_id').val();
window.location.href="{sh::U('User/trade')}&s_year="+s_year+"&s_month="+s_month+"&s_user_id="+s_user_id+"&type="+type;
}
</script>
<body>
<div data-example-id="list-group-btns" class="bs-example">
<div id="select-date">
<ul class="pager">
<li class="previous"><a onclick="lastMonth();"><span aria-hidden="true">←</span> </a></li>
<span class="date-txt"><strong>{sh:$s_year}.{sh:$s_month}</strong>
<present name="paymentData"><span class="glyphicon glyphicon-ok-sign" aria-hidden="true"></span></present>
</span>
<input type="text" id="s_year" value="{sh:$s_year}" hidden="hidden">
<input type="text" id="s_month" value="{sh:$s_month}" hidden="hidden">
<li class="next"><a onclick="nextMonth();"><span aria-hidden="true">→</span></a></li>
</ul>
</div>
<div id="relief">
<select id="s_user_id" onchange="selectUser();" class="form-control btn-success">
<option value="">全部商户</option>
<volist name="user_list" id="vo">
<option value="{sh:$vo.id}" <eq name="vo.id" value="$s_user_id">selected="selected"</eq>>{sh:$vo.username}</option>
</volist>
</select>
</div>
<div id="total" class="img-circle">
<div class="text-center money-txt">
<h3>总交易金额</h3>
<h2>¥{sh:$totalprice}</h2>
</div>
</div>
<div id="datalist">
<table class="table table-striped">
<thead>
<tr>
<th>商户</th>
<th>日期</th>
<th>交易金额</th>
<!-- <th>状态</th> -->
</tr>
</thead>
<tbody>
<empty name="list"><tr><td class="text-center" colspan="4">暂无数据</td></tr></empty>
<volist name="list" id="vo">
<tr>
<td>{sh:$vo.username}</td>
<td>{sh:$vo.paytime|date="Y-m-d H:i",###}</td>
<td>{sh:$vo.price}</td>
<!-- <td>
<if condition="$vo.progress eq 1"><span class="text-primary">待发货</span>
<elseif condition="$vo.progress eq 2"/><span class="text-danger">待签收</span>
<elseif condition="$vo.progress eq 3"/><span class="text-success"><strong>已完成</strong></span>
</if>
</td> -->
</tr>
</volist>
</tbody>
</table>
<div class="page text-right">
{sh:$page}
</div>
</div>
</body>
</html>







