wpfw_ewei_shopv2/template/web/statistics/o2o_verifynum.html
2023-02-14 19:57:32 +08:00

116 lines
4.1 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{template '_header'}
<div class="page-heading"> <h2>门店月度消费数</h2></div>
<form action="./index.php" method="get" class="form-horizontal" role="form" id="form1">
<input type="hidden" name="c" value="site" />
<input type="hidden" name="a" value="entry" />
<input type="hidden" name="m" value="{EWEI_SHOP_V2_MODULE_NAME}" />
<input type="hidden" name="do" value="web" />
<input type="hidden" name="r" value="statistics.o2o_verifynum" />
<div class="page-toolbar row m-b-sm m-t-sm">
<div class="col-sm-12 pull-right">
<select name="year" class='form-control input-sm select-sm'>
{loop $years $y}
<option value="{$y['data']}" {if $y['selected']}selected="selected"{/if}>{$y['data']}年</option>
{/loop}
</select>
<select name="month" class='form-control input-sm select-sm'>
<option value=''>月份</option>
{loop $months $m}
<option value="{$m['data']}" {if $m['selected']}selected="selected"{/if}>{$m['data']}月</option>
{/loop}
</select>
<select name="day" class='form-control input-sm select-sm'>
<option value=''>日期</option>
</select>
<div class="input-group">
<input type="text" class="input-sm form-control" name='keyword' value="{$_GPC['keyword']}" placeholder="门店名称"> <span class="input-group-btn">
<button class="btn btn-sm btn-primary" type="submit"> 搜索</button>
{ifp 'statistics.member_cost.export'}
<button type="submit" name="export" value='1' class="btn btn-success btn-sm">导出 Excel</button> </span>
{/if}
</div>
</div>
</div>
</form>
<div class="panel panel-default">
<div class='panel-heading'>
{if !empty($year)}当前查询时间段为<span style="color:red; ">{$btime}-{$etime} </span>{/if}
目前门店总数为:<span style="color:red; ">{$total}</span>
</div>
<div class="panel-body">
<table class="table table-hover">
<thead>
<tr>
<th style='width:100px;'>排行</th>
<th style='width:200px;'>门店名称</th>
<th>核销订单数量</th>
</tr>
</thead>
<tbody>
{loop $list $key $item}
<tr>
<td>{if ($pindex -1)* $psize + $key + 1<=3}
<labe class='label label-danger' style='padding:8px;'>&nbsp;{php echo ($pindex -1)* $psize + $key + 1}&nbsp;</labe>
{else}
<labe class='label label-default' style='padding:8px;'>&nbsp;{php echo ($pindex -1)* $psize + $key + 1}&nbsp;</labe>
{/if}
</td>
<td>{$item['storename']}</td>
<td>{$item['num']}</td>
</tr>
{/loop}
</tbody>
</table>
</div>
</div>
{$pager}
<script language='javascript'>
function get_days(){
var year = $('select[name=year]').val();
var month =$('select[name=month]').val();
var day = $('select[name=day]');
day.get(0).options.length = 0 ;
if(month==''){
day.append("<option value=''>日期</option");
return;
}
day.get(0).options.length = 0 ;
day.append("<option value=''>...</option").attr('disabled',true);
$.post("{php echo webUrl('util/days')}",{year:year,month:month},function(days){
day.get(0).options.length = 0 ;
day.removeAttr('disabled');
days =parseInt(days);
day.append("<option value=''>日期</option");
for(var i=1;i<=days;i++){
day.append("<option value='" + i +"'>" + i + "日</option>");
}
{if !empty($day)}
day.val( {$day});
{/if}
})
}
$('select[name=month]').change(function(){
get_days();
})
get_days();
</script>
{template '_footer'}