<html>

<!--#include file="S_Sq.asp"-->
<!--连接数据库--><%'本月生日
  Sql="select S_UserGh,S_UserXm,S_UserSr,datediff(day,getdate(),(convert(varchar(4),year(getdate()))+'-'+convert(varchar(2),month(S_userSr))+'-'+convert(varchar(2),day(S_userSr)))) from usertb where month(s_usersr)=month(getdate())+2"
  Sql=Sql&" select S_UserGh,S_UserXm,S_UserSr,datediff(day,getdate(),(convert(varchar(4),year(getdate()))+'-'+convert(varchar(2),month(S_userSr))+'-'+convert(varchar(2),day(S_userSr)))) from usertb where month(s_usersr)=month(getdate())+1"
  Sql=CheckSqlStr(Sql)
  response.write sql
  Set Rs=conn.execute(sql)
  arrA=rs.GetRows '本月生日
  set rs=rs.NextRecordset   '最关键的一步
  arrB=rs.GetRows '下月生日
  Rs.close
  set rs=nothing
  CONN.close
  set CONN=Nothing
  rowsA=ubound(arrA,2) '----提取本月生日
  rowsB=ubound(arrB,2) '-----同上,提取下月生日
%>

<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>本月寿星</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>

<script>
function opxx(s)
{ open(""+s,'','resizable=0,scrollbars=0,status=no,menubar=no,toolbar=no,location=no,height=250, width=300, top=150,left=250,menu=no','fullscreen,scrollbars' );
};
</script>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
//-->
</script>

<body bgcolor="#499ABA">

<table width="100%" ></td>
      </tr>
     </table>
    </div>
    </td>
   </tr>
  </table>
  </td>
 </tr>
</table>

</body>

</html>

相关文章: