  	<table width="680" border="0" cellspacing="0" cellpadding="0" class="from_table">
  <tr>
<th colspan="3" style=" text-align:left; padding-left:10px;"><tpl> if $type eq 'os' </tpl> <tpl> $langSysSOperatorSystem </tpl> <tpl> else </tpl> <a href="javascript:;" onclick="ajax_link('os');" ><tpl> $langSysSOperatorSystem </tpl></a> <tpl> /if </tpl> | 
	<tpl> if $type eq 'browse' </tpl> <tpl> $langSysSBrowserKemel </tpl> <tpl> else </tpl> <a href="javascript:;" onclick="ajax_link('browse');"><tpl> $langSysSBrowserKemel </tpl></a> <tpl> /if </tpl> | 
	<tpl> if $type eq 'screen' </tpl> <tpl> $langSysTellApart </tpl> <tpl> else </tpl> <a href="javascript:;" onclick="ajax_link('screen');"><tpl> $langSysTellApart </tpl></a> <tpl> /if </tpl>
</th><td></td><td></td></tr>
		<tr><th><tpl> $langSysSPleaseSelectTime </tpl>：</th>
		<td width="200"><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="all" onclick="ajax_list(this.value);" <tpl> if $time eq 'all' </tpl>checked="checked"<tpl> /if </tpl>/><tpl> $langSysSAll </tpl></td>
		<td width="200"><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" value="<tpl> if $time neq '1' && $time neq '2' && $time neq '3' && $time neq 'all' </tpl><tpl> $time </tpl><tpl> /if </tpl>" /> </td>
		<td width="100"><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" >
 <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" class="zhl_th"></th>
    <th class="zhl_th">PV</th>
	<th class="zhl_th"><tpl> $langSysSPercent </tpl></th>
  </tr>
  </thead>
  <tr>
  	<td class="pd-left" align="left" class="zhl_th"><tpl> $langSysSTotalize </tpl></td>
    <td align="left" class="zhl_th"><tpl> $num_sum|default:'0' </tpl></td>
	<td align="left" class="zhl_th">100%</td>
  </tr>
  <tpl> section name=loop loop=$system_array </tpl>
		<tpl> if $smarty.section.loop.rownum <= '20' </tpl>
	  <tr>
		<td class="pd-left" align="left" class="zhl_th"><tpl> $system_array[loop].name </tpl></td>
		<td align="left" class="zhl_th"><tpl> $system_array[loop].pv </tpl></td>
		<td align="left" class="zhl_th"><tpl> $system_array[loop].perc </tpl>%</td>
	  </tr>
		<tpl> /if </tpl>
  <tpl> /section </tpl>
</table>
<script type="text/javascript" language="javascript"> 
//普通日历
$(function(){
	 //datepicker
	$("#txt_time").datepicker();
})
function viewSys(str){
	location.href = "statics_sys.manage.php?action=list&time="+str;
	document.getElementById('button').disabled = true;
}

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

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