ajaxbusinessdata.html 2.81 KB
<style type="text/css">
	.flexigrid .bDiv tr{display: block;}
	.bd-line{font-size: 0;}
	.flexigrid .bDiv td{border: 0;}
	.flexigrid div.bDiv tr:hover td{background-color: #F4FCFA;}
	.flexigrid div.bDiv tr.trSelected td{ background: #ffffdf none repeat scroll 0 0;}
	.flexigrid .bDiv a{color: #999;}
	.flexigrid .bDiv .active a,.flexigrid .bDiv span a:hover{color: #FFF;}
	.flexigrid .bDiv .w100 a:hover{text-decoration: none;color: #C4182E;background-color: #EEEEEE;text-decoration: underline;}
	.flexigrid .bDiv .row .active a:hover{text-decoration: none;color: #fff;background-color: #999;text-decoration: underline;}
	.ncsc-default-table thead {font-size: 0;}
	.ncsc-default-table thead th{font-size: 12px; vertical-align: middle;display: inline-block;*display: inline;*zoom: 1;}
	.w50{width: 5% !important;}
	.w60{width: 6% !important;}
	.w80{width: 10% !important;}
	.w120{width: 20% !important;}
	.w150{width: 15% !important;}
	.w250{width: 30% !important;}
</style>
<table class="ncsc-default-table">
	<thead>
		<tr>
			<th class="w200">时间</th>
			<th class="w100">浏览量</th>
			<th class="w100">访客数</th>
			<th class="w100">分享数</th>
			<th class="w100">下单数</th>
			<th class="w100">支付数</th>
			<th class="w100">兑换数</th>
			<th class="w100">销售额(¥)</th>
		</tr>
	</thead>
	<tbody>
		<empty name="goodsList">
			<tr>
				<td colspan="6" class="norecord">
					<div class="warning-option"><i class="icon-warning-sign"></i><span>暂无符合条件的数据记录</span></div>
				</td>
			</tr>
			<else/>
			<volist name="goodsList" id="list">
				<tr>
					<td class="w200">
						<span>{:date("Y-m-d",strtotime($list['recordTime']))}
						</span>
					</td>
					<td class="w100">
						<span>{$list.pv}</span>
					</td>

					<td class="w100"><span>{$list.uv}</span></td>

					<td  class="w100"><span>{$list.shareCount}</span></td>
					<td  class="w100"><span>{$list.orderCount}</span></td>
					<td  class="w100"><span>{$list.payCount}</span></td>
					<td  class="w100"><span>{$list.exchangeCount}</span></td>
					<td  class="w100"><span>{$list.totalMoney}</span></td>
				</tr>
			</volist>
		</empty>

	</tbody>


</table>

<!--分页位置--> {$page}

<script>
    // 点击分页触发的事件
    $(".pagination  a").click(function(){
        cur_page = $(this).data('p');
        ajax_get_table('search-form2',cur_page);
    });

    $(document).ready(function(){
        // 表格行点击选中切换
        $('#flexigrid >table>tbody>tr').click(function(){
            $(this).toggleClass('trSelected');
        });
        $('#good_count').empty().html("{$pager->totalRows}");
        $('#btnexcel').attr('href','{$excelurl}');
    });

	// 点击分页触发的事件
	$(".pagination  a").click(function() {
		cur_page = $(this).data('p');
		ajax_get_table('search-form2', cur_page);
	});


</script>