salereport.html
8.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
{template 'common/header'}
{template 'common'}
<ul class="nav nav-tabs">
<li {if $op == 'salereport'}class="active"{/if}><a href="{php echo $this->createWebUrl('statistics', array('op' => 'salereport'))}">零售生意报告</a></li>
<li {if $op == 'orderstatistics' }class="active"{/if}><a href="{php echo $this->createWebUrl('statistics', array('op' => 'orderstatistics'))}">订单统计</a></li>
<li {if $op == 'saledetails' }class="active"{/if}><a href="{php echo $this->createWebUrl('statistics', array('op' => 'saledetails'))}">商品销售明细</a></li>
<li {if op == 'saletargets' }class="active"{/if}><a href="{php echo $this->createWebUrl('statistics', array('op' => 'saletargets'))}">销售指标分析</a></li>
<li {if $op == 'productsaleranking' }class="active"{/if}><a href="{php echo $this->createWebUrl('statistics', array('op' => 'productsaleranking'))}">商品销售排行</a></li>
<li {if $op == 'productsalestatistics'}class="active"{/if}><a href="{php echo $this->createWebUrl('statistics', array('op' => 'productsalestatistics'))}">商品访问与购买比</a></li>
<li {if $op == 'memberranking' }class="active"{/if}><a href="{php echo $this->createWebUrl('statistics', array('op' => 'memberranking'))}">会员消费排行</a></li>
<li {if $op == 'fansrange' }class="active"{/if}><a href="{php echo $this->createWebUrl('statistics', array('op' => 'fansrange'))}">代理粉丝排行</a></li>
<li {if $op == 'userincreasestatistics'&&$usertype=='user' }class="active"{/if}><a href="{php echo $this->createWebUrl('statistics', array('op' => 'userincreasestatistics'))}">会员增长统计</a></li>
<li {if $op == 'userincreasestatistics'&&$usertype=='agent' }class="active"{/if}><a href="{php echo $this->createWebUrl('statistics', array('op' => 'userincreasestatistics','usertype'=>'agent'))}">代理增长统计</a></li>
</ul>
<div class="main">
<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="wwx_fxxt" />
<input type="hidden" name="do" value="statistics" />
<input type="hidden" name="op" value="salereport" />
<div class="alert alert-info">说明:查看生意情况,您可以按月或按日分别查看商城订单交易量、交易额信息!</div>
<div class="panel panel-default">
<div class="panel-heading">按月统计</div>
<div class="panel-body">
<div class="form-group">
<label class="col-xs-1 col-sm-1 col-md-1 control-label"></label>
<div class="col-sm-3 col-xs-12">
<div class="input-group input-medium">
<span class="input-group-addon">年份</span>
<select name="dropMonthForYaer" class="form-control">
{loop $years $v}
<option value="{$v['year']}" {if $v['checked'] == 1}selected="selected"{/if}>{$v['year']}</option>
{/loop}
</select>
<span class="input-group-addon">年</span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-xs-1 col-sm-1 col-md-1 control-label"></label>
<div class="col-sm-12 col-xs-12">
<label class="radio-inline"><input type="radio" name="radioMonthForSaleType" value="0" {if $radioMonthForSaleType == 0}checked=""{/if}>交易量</label>
<label class="radio-inline"><input type="radio" name="radioMonthForSaleType" value="1" {if $radioMonthForSaleType == 1}checked=""{/if}>交易额</label></br></br>
<input type="submit" name="" value="查询" class="btn btn-primary">
<button type="submit" name="salereportEXP01" value="salereportEXP01" class="btn btn-warning btn-lg">导出excel</button>
<span class="pull-right" style="padding:10px 10px 0 0;">总{if $radioMonthForSaleType == 1 }交易额{else}交易量{/if}:<span style="color:red; ">{$allcount}</span>,最高峰{if $radioMonthForSaleType == 1 }交易额{else}交易量{/if}:<span style="color:red; ">{$topcount}</span></span>
<div class="sub-content">
<table class="table table-hover">
<thead class="navbar-inner">
<tr>
<th class="row-hover" style="width:20%;">月份</th>
<th class="row-hover" style="width:30%;">{if $radioMonthForSaleType == 1 }交易额 {else} 交易量{/if}</th>
<th class="row-hover">比例示意图</th>
</tr>
</thead>
<tbody>
{loop $datas $v}
<tr>
<td style="text-align: left;">{$v['month']}</td>
<td style="text-align: left;">{$v['count']}</td>
<td style="text-align: left;">
<img width="{php echo (3*$v['persent'])}px" height="15" style="margin-left:20px;background: url({WWX_FXXT_ROOT}/recouse/images/lenth.gif);height: 15px;">{$v['persent']}%
</td>
</tr>
{/loop}
</tbody>
</table>
</div>
{$pager}
</div>
</div>
</div>
</div></br>
<div class="panel panel-default">
<div class="panel-heading">按日统计</div>
<div class="panel-body">
<div class="form-group">
<label class="col-xs-1 col-sm-1 col-md-1 control-label"></label>
<div class="col-sm-3 col-xs-12">
<div class="input-group input-medium">
<span class="input-group-addon">年份</span>
<select name="dropdayForYaer" class="form-control">
{loop $years $v}
<option value="{$v['year']}" {if $v['checked'] == 1}selected="selected"{/if}>{$v['year']}</option>
{/loop}
</select>
<span class="input-group-addon">年</span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-xs-1 col-sm-1 col-md-1 control-label"></label>
<div class="col-sm-3 col-xs-12">
<div class="input-group input-medium">
<span class="input-group-addon">月份</span>
<select name="selectmonthSale" class="form-control">
<option value="1" {if $selectmonthSale == 1 }selected="selected" {/if}>1</option>
<option value="2" {if $selectmonthSale == 2 }selected="selected" {/if}>2</option>
<option value="3" {if $selectmonthSale == 3 }selected="selected" {/if}>3</option>
<option value="4" {if $selectmonthSale == 4 }selected="selected" {/if}>4</option>
<option value="5" {if $selectmonthSale == 5 }selected="selected" {/if}>5</option>
<option value="6" {if $selectmonthSale == 6 }selected="selected" {/if}>6</option>
<option value="7" {if $selectmonthSale == 7 }selected="selected" {/if}>7</option>
<option value="8" {if $selectmonthSale == 8 }selected="selected" {/if}>8</option>
<option value="9" {if $selectmonthSale == 9 }selected="selected" {/if}>9</option>
<option value="10" {if $selectmonthSale == 10 }selected="selected" {/if}>10</option>
<option value="11" {if $selectmonthSale == 11 }selected="selected" {/if}>11</option>
<option value="12" {if $selectmonthSale == 12 }selected="selected" {/if}>12</option>
</select>
<span class="input-group-addon">月</span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-xs-1 col-sm-1 col-md-1 control-label"></label>
<div class="col-sm-12 col-xs-12">
<label class="radio-inline"><input type="radio" name="radiodayForSaleType" value="0" {if $radiodayForSaleType == 0}checked=""{/if}>交易量</label>
<label class="radio-inline"><input type="radio" name="radiodayForSaleType" value="1" {if $radiodayForSaleType == 1}checked=""{/if}>交易额</label></br></br>
<input type="submit" name="t2" value="查询" class="btn btn-primary">
<button type="submit" name="salereportEXP02" value="salereportEXP02" class="btn btn-warning btn-lg">导出excel</button>
<span class="pull-right" style="padding:10px 10px 0 0;">总{if $radiodayForSaleType == 1 }交易额{else}交易量{/if}:<span style="color:red; ">{$dayallcount}</span>,最高峰{if $radiodayForSaleType == 1 }交易额{else}交易量{/if}:<span style="color:red; ">{$daytopcount}</span></span>
<div class="sub-content">
<table class="table table-hover">
<thead class="navbar-inner">
<tr>
<th class="row-hover" style="width:20%;">日期</th>
<th class="row-hover" style="width:30%;">{if $radiodayForSaleType == 1 }交易额{else}交易量{/if}</th>
<th class="row-hover" >比例示意图</th>
</tr>
</thead>
<tbody>
{loop $daydatas $v}
<tr>
<td style="text-align: left;">{$v['day']}</td>
<td style="text-align: left;">{$v['count']}</td>
<td style="text-align: left;">
<img width="{php echo (3*$v['persent'])}px" height="15" style="margin-left:20px;background: url({WWX_FXXT_ROOT}/recouse/images/lenth.gif);height: 15px;">{$v['persent']}%
</td>
</tr>
{/loop}
</tbody>
</table>
</div>
{$pager}
</div>
</div>
</div>
</div>
</form>
</div>
{template 'common/footer'}