 <form action="statics_key.manage.php" method="post" id="form_p_list" onsubmit="return ajax_list();">
<table width="680" border="0" cellspacing="0" cellpadding="0"  class="from_table">
  <tr>
	<th colspan="3" style=" text-align:left; padding-left:10px;"><a href="javascript:;" onclick="ajax_link('');"><tpl> $langSysSKeywordFlux </tpl></a> | <tpl> $langSysSKeywordFluxDirection </tpl></th></tr>
<tr><th width="150">
		<tpl> $langSysSKeyword </tpl>：</th><td>
		<input name="key" id="key" class="txtinput_short" type="text" size="10" value="<tpl> $key </tpl>" />
		　<tpl> $langSysSPleaseSelectTime </tpl>：
		<input name="time" id="time" type="radio" value="4" <tpl> if $time eq '4' </tpl>checked="checked"<tpl> /if </tpl> /><tpl> $langSysSNonceWeek </tpl>
		<input name="time" id="time" type="radio" value="5" <tpl> if $time eq '5' </tpl>checked="checked"<tpl> /if </tpl> /><tpl> $langSysSUpWeek </tpl>
		<input name="time" id="time" type="radio" value="6" <tpl> if $time eq '6' </tpl>checked="checked"<tpl> /if </tpl> /><tpl> $langSysSNonceMonth </tpl>
		<input name="time" id="time" type="radio" value="7" <tpl> if $time eq '7' </tpl>checked="checked"<tpl> /if </tpl> /><tpl> $langSysSUpMonth </tpl>
		<input name="time" id="time" type="radio" value="8" <tpl> if $time eq '8' </tpl>checked="checked"<tpl> /if </tpl> /><tpl> $langSysSLatelyThirtyDay </tpl></td></tr>
		<tr><th>
		</th><td><span class="btn_left"><input type="submit" class="btn_submit" name="submit" value="<tpl> $langSysSSelect </tpl>" /><input type="hidden" name="action" value="trend" /></span></td></tr>
		<tr>
	<th width="150"><tpl> $langSysSNonceTimeSegment </tpl>：</th><td><tpl> $start_time </tpl> <tpl> $langSysSTo </tpl> <tpl> $end_time </tpl></td></tr></table></form>
		<table width="680" style="float:left; clear:both" border="0" cellspacing="0" cellpadding="0">
  <tr>
  <td  style="padding-left:10px">
  <tpl> $statics_flash </tpl>
  </td></tr></table>
 <table class="from_table2_one top-1">
  <thead>
   <tr class="area_ajax_list_title">
	<th class="pd-left" width="200"><tpl> $langSysSKeyword </tpl></th>
    <th width="200">PV</th>
	<th width="200"><tpl> $langSysSPercent </tpl></th>
  </tr>
  </thead>
  <tr>
  	<td class="pd-left" width="200" align="left"><tpl> $langSysSTotalize </tpl></td>
    <td width="200" align="left"><tpl> $num_sum|default:'0' </tpl></td>
	<td width="200" align="left">100%</td>
  </tr>
  <tpl> foreach from=$key_array item=one key=key </tpl>
	  <tr>
		<td class="pd-left" width="200" align="left"><tpl> $one.time </tpl></td>
		<td width="200" align="left"><tpl> $one.pv </tpl></td>
		<td width="200" align="left"><tpl> if $num_sum neq '' && $num_sum neq '0' </tpl>
			<tpl> $one.pv/$num_sum*100|string_format:'%.2f' </tpl>%
		<tpl> else </tpl>
			0.00%
		<tpl> /if </tpl>
		</td>
	  </tr>	  
	<tpl> /foreach </tpl>
</table>
<script type="text/javascript" language="javascript"> 
    
function ajax_list(){
	
	/* 取表单参数 */var queryString=$("#form_p_list").formSerialize();
	
	$.ajax({
		url: "statics_key.manage.php",
		data: queryString,
		type:'post',
		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=list',
		type:'get',
		dataType:"html",
		beforeSubmit:  showLoading(showText),   // 提交之前执行的方法
		success: function(msg){
			$("#result_content").html(msg);
			hideLoading();
		}
	});
	return false;
}
	
</script>
