<table width="100%" border="0" cellspacing="0" cellpadding="0" class="from_table">
  <tr>
<th colspan="3" style=" text-align:left; padding-left:10px;"><tpl> $langSysSKeywordFlux </tpl>   |  <a href="javascript:;" onclick="ajax_link('');"><tpl> $langSysSKeywordFluxDirection </tpl></a></th>
  </tr>
	<tr>
		<th><tpl> $langSysSPleaseSelectTime </tpl>：</th>
		<td width="500"><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 name="time" type="radio" value="4" onclick="ajax_list(this.value);" <tpl> if $time eq '4' </tpl>checked="checked"<tpl> /if </tpl>/><tpl> $langSysSNonceWeek </tpl>
		<input name="time" type="radio" value="5" onclick="ajax_list(this.value);" <tpl> if $time eq '5' </tpl>checked="checked"<tpl> /if </tpl>/><tpl> $langSysSUpWeek </tpl>
		<input name="time" type="radio" value="6" onclick="ajax_list(this.value);" <tpl> if $time eq '6' </tpl>checked="checked"<tpl> /if </tpl>/><tpl> $langSysSNonceMonth </tpl>
		<input name="time" type="radio" value="7" onclick="ajax_list(this.value);" <tpl> if $time eq '7' </tpl>checked="checked"<tpl> /if </tpl>/><tpl> $langSysSUpMonth </tpl>
		<input name="time" type="radio" value="8" onclick="ajax_list(this.value);" <tpl> if $time eq '8' </tpl>checked="checked"<tpl> /if </tpl>/><tpl> $langSysSLatelyThirtyDay </tpl>
</td></tr>
<tr><th width="150">
	<tpl> $langSysSNonceTimeSegment </tpl>：</th><td><tpl> $end_time </tpl> <tpl> $langSysSTo </tpl> <tpl> $start_time </tpl></td>
</tr></table>
<table width="680" style="float:left; clear:both" border="0" cellspacing="0" cellpadding="0" >

</table>
 <table class="from_table2_one top-1">
  <thead>
   <tr class="area_ajax_list_title">
	<th class="p-left" width="170"><tpl> $langSysSKeyword </tpl></th>
    <th width="170">PV</th>
	<th width="170"><tpl> $langSysSSource </tpl></th>
	<th width="170"><tpl> $langSysSDirection </tpl></th>
  </tr>
  </thead>
  <tpl> if $key_array[0].key neq '' </tpl>
	  <tpl> section name=loop loop=$key_array </tpl>
		  <tr>
			<td class="pd-left" width="170" align="left">
		    <tpl> $key_array[loop].key </tpl></td>
			<td width="170" align="left"><tpl> $key_array[loop].num </tpl></td>
			<td width="170" align="left"><a href="<tpl> $key_array[loop].url </tpl>" target="_blank"><tpl> $langSysSUrl </tpl></a></td>
			<td width="170" align="left"><a href="javascript:;" onclick="ajax_link('<tpl> $key_array[loop].key </tpl>');">
		    <tpl> $langSysSDirection </tpl></a></td>
		  </tr>	  
		<tpl> /section </tpl>
	<tpl> else </tpl>
		<tr>
			<td align="center" colspan="4" valign="middle"><tpl> $langSysSThisTimeNotData </tpl></td>
		</tr>
	<tpl> /if </tpl>
</table>
<script type="text/javascript" language="javascript"> 
function ajax_list(time){
	$.ajax({
		url: "statics_key.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){
	$.ajax({
		url: "statics_key.manage.php",
		data: 'action=trend&key='+str,
		type:'get',
		dataType:"html",
		beforeSubmit:  showLoading(showText),   // 提交之前执行的方法
		success: function(msg){
			$("#result_content").html(msg);
			hideLoading();
		}
	});
	return false;
}
</script>
