<table width="680" border="0" cellspacing="0" cellpadding="0" class="from_table">
  <tr>
<th colspan="3" style=" text-align:left; padding-left:10px;"><tpl> $langSysSByAccessPageFlux </tpl>  |  <a href="javascript:;" onclick="ajax_link('');"><tpl> $langSysSByAccessPageFluxDirection </tpl></a></th></tr>
<tr>
		<th><tpl> $langSysSPleaseSelectTime </tpl>：</th>
		<td width="300"><input name="time" type="radio" value="1" onclick="ajax_list(this.value);" <tpl> if $time eq '1' </tpl>checked="checked"<tpl> /if </tpl>/><tpl> $langSysSToday </tpl>
		<input name="time" type="radio" value="2" onclick="ajax_list(this.value);" <tpl> if $time eq '2' </tpl>checked="checked"<tpl> /if </tpl>/><tpl> $langSysSYesterday </tpl>
		<input name="time" type="radio" value="3" onclick="ajax_list(this.value);" <tpl> if $time eq '3' </tpl>checked="checked"<tpl> /if </tpl>/><tpl> $langSysSBeforeYesterday </tpl>
		
		<input type="text" name="txt_time" style="border:solid 1px #B0DF82; width:100px; background:url(../js/calendar/blue/cal_btn.gif) no-repeat right; height:18px; padding-right:19px; cursor:pointer;" id="txt_time" size="15" readonly="readonly"/></td>
		
		<td width="200"><span class="btn_left"><input type="button" id="button" class="btn_submit" onclick="ajax_list(document.getElementById('txt_time').value);" value="<tpl> $langSysSSubmit </tpl>" /></span>
        <label style="display:none;" for="f_date" class="error" metaDone="true" generated="true"></label>
</td></tr>
	<tr><th><tpl> $langSysSNonceTimeSegment </tpl>：</th><td><tpl> $date </tpl></td>
</tr></table>
<table width="680" border="0" style="float:left; clear:both" cellspacing="0" cellpadding="0" >

</table>
<table class="from_table2_one top-1">
  <thead>
   <tr class="area_ajax_list_title">
	<th class="pd-left" class="zhl_th1"><tpl> $langSysSByAccessPage </tpl></th>
    <th class="zhl_th1">PV</th>
	<th class="zhl_th1"><tpl> $langSysSPercent </tpl></th>
	<th class="zhl_th1"><tpl> $langSysSDirection </tpl></th>
  </tr>
  </thead>
  <tr>
  	<td class="pd-left" align="left"><tpl> $langSysSTotalize </tpl></td>
    <td align="left"><tpl> $num_sum|default:'0' </tpl></td>
	<td align="left">100%</td>
	<td align="left"></td>
  </tr>
  <tpl> if $go_array[0].url neq '' </tpl>
	  <tpl> section name=loop loop=$go_array </tpl>
			<tpl> if $smarty.section.loop.rownum <= '20' </tpl>
		  <tr>
			<td class="pd-left" align="left" class="td1" style="padding-left:20px;"><a href="<tpl> $go_array[loop].url </tpl>" target="_blank"><tpl> $go_array[loop].url|truncate:'50' </tpl>
			</a></td>
			<td align="left">		    <tpl> $go_array[loop].pv </tpl></td>
			<td align="left"><tpl> if $num_sum neq '' && $num_sum neq '0' </tpl>
				<tpl> $go_array[loop].pv/$num_sum*100|string_format:'%.2f' </tpl>%
			<tpl> else </tpl>
				0.00%
			<tpl> /if </tpl>
			</td>
			<td align="left"><a href="javascript:;" onclick="ajax_link('<tpl> $go_array[loop].url </tpl>');">
		    <tpl> $langSysSDirection </tpl></a></td>
		  </tr>
			<tpl> /if </tpl>
	  <tpl> /section </tpl>
	<tpl> else </tpl>
		<tr>
			<td class="pd-left" align="center" colspan="4" valign="middle"><tpl> $langSysSThisTimeNotData </tpl></td>
		</tr>
	<tpl> /if </tpl>
</table>
<script type="text/javascript" language="javascript"> 
//普通日历
$(function(){
	 //datepicker
	$("#txt_time").datepicker();
})

function ajax_list(time){
	document.getElementById('button').disabled = true;
	$.ajax({
		url: "statics_go.manage.php",
		data: 'action=list&time='+time,
		type:'get',
		dataType:"html",
		beforeSubmit:  showLoading(showText),   // 提交之前执行的方法
		success: function(msg){
			$("#result_content").html(msg);
			hideLoading();
		}
	});
	return false;
}

/* 切换页面 */function ajax_link(str){
	str = escape(str);
	$.ajax({
		url: "statics_go.manage.php",
		data: 'action=trend&url='+str,
		type:'post',
		dataType:"html",
		beforeSubmit:  showLoading(showText),   // 提交之前执行的方法
		success: function(msg){
			$("#result_content").html(msg);
			hideLoading();
		}
	});
	return false;
}
</script>
