if isempty(ni) then ni=year(now())
if isempty(yu1) then yu1=month(now())
if isempty(yu2) then yu2=month(now())
function sele(firstval,lastval)
if trim(firstval)=trim(lastval) then
sele="SELECTED"
end if
end function
%>
<!-- #include File=head.inc -->
<%
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select yongliao,str(sum(shuliang*danjia),11,3) from v_output "& _
"where year(riqi)="& ni & " and month(riqi)<=" & yu2 & _
" and month(riqi)>=" & yu1 & _
" group by yongliao order by yongliao"
rs.open sql,ConnectionString,1,1,1
%>