saledetails.html 4.15 KB
{template 'common/header'}
<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>
<script type="text/javascript" src="resource/js/lib/jquery-ui-1.10.3.min.js"></script>

<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="saledetails" />

		<div class="alert alert-info">
			<i class="icon-lightbulb"></i>查询一段时间内商品销售量和销售额,默认排序为销售量从高到低!
		</div>

		<div class="panel panel-default">
			<div class="panel-heading">筛选</div>
			<div class="panel-body">

				<div class="form-group">
					<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">起始日期</label>
					<div class="col-sm-7 col-lg-9 col-xs-12">
						{php echo tpl_form_field_daterange('time', array('start'=>date('Y-m-d', $start_time),'end'=>date('Y-m-d', $end_time)));}
					</div>
				</div>

				<div class="form-group">
					<input type="submit" name="" value="查询" class="btn btn-primary" style="height:30px">
					<button type="submit" name="saledetailsEXP01" value="saledetailsEXP01" class="btn btn-warning btn-lg">导出excel</button>
				</div>
			</div>
		</div>

		<div class="panel panel-default">
			<div class="panel-heading">商品销售明细</div>
			<div class="panel-body">

				<div class="form-group">
					<table class="table table-hover" id="TabOrders" style="width:100%;border-collapse:collapse;">
						<thead class="navbar-inner">
							<tr class="table_title">
								<th style="width:20%;">订单号</th>
								<th style="width:40%;">商品名称</th>
								<th style="width:10%;">数量</th>
								<th style="width:10%;">价格</th>
								<th style="width:20%;">成交时间</th>
							</tr>
						</thead>
						<tbody>
						{loop $list $item}
							<tr>
								<td>{$item['ordersn']}</td>
								<td>{$item['titles']}</td>
								<td>{$item['total']}</td>
								<td>{$item['price']}</td>
								<td>{php echo date('Y-m-d  H:i:s',$item['createtime'])}</td>
							</tr>
						{/loop}
						<tr>
							<td colspan="10">
								<input name="token" type="hidden" value="{$_W['token']}" />
							</td>
						</tr>
					</table>
					{$pager}
				</div>
			</div>
		</div>
	</form>
</div>


{template 'common/footer'}