<!-------------------网站统计 开始------------------->
<table border=0 cellspacing=0 cellpadding=0 width='100%'>
  <%
    dim now_online
    sql="select count(l_id) from user_login"
  set rs=joekoe_cms.exec(sql,1)
  now_online=rs(0)
  rs.close
  if not joekoe_cms.int_true(now_online) then now_online=0
  sql="select top 1 * from configs where id=1"
  set rs=joekoe_cms.exec(sql,1)
  if rs.eof then
    sql="insert into configs(id,num_topic,num_data,num_reg,new_username,num_article,num_down,num_product,counter,max_online,max_tim,start_tim,num_new,today_tim) " & _
	"values(1,0,0,0,'',0,0,0,0,0,0,'"&joekoe_cms.now_time&"','"&joekoe_cms.time_type(joekoe_cms.now_time,5)&"',0,'"&joekoe_cms.time_type(joekoe_cms.now_time,4)&"')"
    call joekoe_cms.exec(sql,0)
    sql="select top 1 * from configs where id=1"
    set rs=joekoe_cms.exec(sql,1)
  end if

%>
<TR>
 <TD height="20">  <IMG SRC='skin/skin_1/main/user_jt_put.gif'  BORDER='0'> 主题数</td><td align='right' height="18"><font class=red><%response.write rs("num_topic")%></font></td><td align='right' height="18">贴</TD>
</TR>
<TR>
 <TD height="20">  <IMG SRC='skin/skin_1/main/user_jt_put.gif'  BORDER='0'> 贴子数</td><td align='right' height="18"><font class=red><%response.write rs("num_data")%></font></td><td align='right' height="18">贴</TD>
</TR>
<TR>
 <TD height="20">  <IMG SRC='skin/skin_1/main/user_jt_put.gif'  BORDER='0'> 用户数</td><td align='right' height="18"><font class=red><%response.write rs("num_reg")%></font></td><td align='right' height="18">人</TD>
</TR>
<TR>
 <TD height="20">  <IMG SRC='skin/skin_1/main/user_jt_put.gif'  BORDER='0'> 在线数</td><td align='right' height="18"><font class=red><script>document.write(img[n]);</script><%response.write now_online%></font></td><td align='right' height="18">人</TD>
</TR>
<TR>
 <TD height="20">  <IMG SRC='skin/skin_1/main/user_jt_put.gif'  BORDER='0'> 新注册</td><td align='right' colspan=2 height="18"> <a href='user_view.asp?username=<%response.write rs("new_username")%>' alt='查看 "<%response.write joekoe_cms.code_html(rs("new_username"),1,0)%>" 的详细资料' target=_blank><%response.write joekoe_cms.code_html(rs("new_username"),1,6)%></a></td>
</TR>
<TR>
 <TD height="20">  <IMG SRC='skin/skin_1/main/user_jt_put.gif'  BORDER='0'> 访问量</td><td align='right' height="18"><font class=red><%response.write rs("counter")%></font></td><td align='center' height="18">次</TD>
</TR>
</TABLE>
<!-------------------网站统计 结束------------------->