<!--#include file="checkLogin.asp"-->
<!--#include file="SQLconn.asp"-->


<html">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>办公OA主桌面</title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script Language=JavaScript>
<!--
window.setTimeout('this.location.reload();',480000);

//-->
</script>
<style type="text/css">
<!--
.STYLEshuzi {font-size: 18px}

-->
</style>
 

<STYLE type=text/css>
BODY {
	FONT-SIZE: 14px;
	background-image: url();
}
OL LI {
	MARGIN: 8px
}
#con {
	FONT-SIZE: 12px; MARGIN: 0px auto; WIDTH: 600px
}
#tags {
	PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px 0px 0px 10px; WIDTH: 610; PADDING-TOP: 0px; HEIGHT: 23px
}
#tags LI {
	BACKGROUND: url(images/<%=request.cookies("imgdir")%>/tagleft.gif) no-repeat left bottom; FLOAT: left; MARGIN-RIGHT: 1px; LIST-STYLE-TYPE: none; HEIGHT: 23px
}
#tags LI A {
	PADDING-RIGHT: 10px; PADDING-LEFT: 10px; BACKGROUND: url(images/<%=request.cookies("imgdir")%>/tagright.gif) no-repeat right bottom; FLOAT: left; PADDING-BOTTOM: 0px; COLOR: #999;LINE-HEIGHT: 23px; PADDING-TOP: 0px; HEIGHT: 23px; TEXT-DECORATION: none
}
#tags LI.emptyTag {
	BACKGROUND: none transparent scroll repeat 0% 0%; WIDTH: 4px
}
#tags LI.selectTag {
	BACKGROUND-POSITION: left top;
	MARGIN-BOTTOM: -2px;
	POSITION: relative;
	HEIGHT: 25px;
	background-image: url(images/<%=request.cookies("imgdir")%>/tagleft.gif);
}
#tags LI.selectTag A {
	BACKGROUND-POSITION: right top; COLOR: #000; LINE-HEIGHT: 25px; HEIGHT: 25px
}
#tagContent {
	BORDER-RIGHT: #666666 1px solid; PADDING-RIGHT: 1px; BORDER-TOP: #666666 1px solid; PADDING-LEFT: 1px; PADDING-BOTTOM: 1px; BORDER-LEFT: #666666 1px solid;PADDING-TOP:1px; BORDER-BOTTOM: #666666 1px solid
}
.tagContent {
PADDING-RIGHT: 10px; DISPLAY: none; PADDING-LEFT: 10px; BACKGROUND: url(bg111.gif) repeat-x; PADDING-BOTTOM: 10px; WIDTH: 206px; COLOR: #474747; PADDING-TOP: 10px; HEIGHT: 450px
}
#tagContent DIV.selectTag {
DISPLAY: block
}
</STYLE>

<!--服务器时钟-->
<SCRIPT language=javascript> 
<!-- 
var now = new Date(<%=year(now())%>,<%=month(now())%>,<%=day(now())%>,<%=hour(now())%>,<%=minute(now())%>,<%=second(now())%> );//在此处填写服务器当前时间即可 
function CurentTime(){  
    var mm = now.getMinutes();  
    var ss = now.getTime() % 60000;ss = (ss - (ss % 1000)) / 1000;  
    var clock = now.getHours() +':';  
    if (mm < 10) clock += '0'; 
    clock += mm+':';  
    if (ss < 10) clock += '0';  
    return(clock + ss); 
}  
function refresh(){  
    document.getElementById("clock").innerHTML = "<b style='font-size:12;color:black;'>"+CurentTime();now.setSeconds(now.getSeconds()+1)+"</b>";} 
setInterval('refresh()',1000); 
//--> 
</SCRIPT>
<!--时钟结束-->

</head>

<body>


<% '登陆控制，放置未登录查看
    if request.cookies("tname")="" then
        response.redirect("Index.asp")
     end if
    %>

<% imgdir=request.cookies("imgdir") 
   nowxueqi=request.cookies("nowxueqi") 
   tname=request.cookies("tname")
   today=now()
   
  
%>
<script>

<!--打开校历管理-->
function open_xiaolimanage(NOTIFY_ID,FORMAT)
{
 URL="xiaoli/manage.asp?dtondate="+NOTIFY_ID;
  myleft=150;
 mytop=150
 mywidth=(screen.availWidth-300);
 myheight=(screen.availHeight-220);
 if(FORMAT=="1")
 {
    myleft=0;
    mytop=0 
    mywidth=screen.availWidth-10;
    myheight=screen.availHeight-40;
 }
 window.open(URL,'_blank',"height="+myheight+",width="+mywidth+",status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,top="+mytop+",left="+myleft+",resizable=yes");
}



</script>





<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">

<tr>
<td  height="496" align="center" valign="top">


<table width="98%" height="493"   border="0" cellpadding="0" cellspacing="0"  style="border-collapse:collapse">

<tr>
<td height="370" align="left" valign="top">


	
	<!--公告开始公告开始公告开始公告开始公告开始公告开始公告开始公告开始公告开始公告开始公告开始公告开始-->
	
		<% Set MyOAASPObj = Server.CreateObject("YFSchoolOApro.YFSchoolDll")
        call   MyOAASPObj.MainBiaoQian(Tname,imgdir,"1")
		   set MyOAASPObj=nothing
        %>
	
	<!--公告结束公告结束公告结束公告结束公告结束公告结束公告结束公告结束公告结束公告结束-->
	
	 
	<DIV  style="width:auto"  id=tagContent>
	 <DIV  style="width:auto"  class="tagContent selectTag" id=tagContent1>

		 	<table width="100%" height="451"  border="0" cellspacing="0" cellpadding="0">
  <tr>
   
    <td  valign="top"> 	
	
	<!--校历查看校历查看校历查看校历查看校历查看校历查看校历查看校历查看校历查看校历查看校历查看校历查看校历查看校历查看校历查看校历查看校历查看校历查看校历查看-->
	
 
<% 
  dim strnewdate 
  set RSxueqibegindate= Conn.Execute("select * from varset where  name='xueqi' and vname='"&nowxueqi&"'")
  xueqibegindate=RSxueqibegindate( "shuoming" )
  RSxueqibegindate.close 
  
  ddate=DateAdd("d",datediff("w",xueqibegindate,date)*7,xueqibegindate)                    'DateAdd("d",-2,date)  
  %>
<table width="100%" align="center" border="0" cellpadding="0"   cellspacing="0"  bordercolor="#6D8DD8">   
<tr    class="TableHeader">
  <td  width="20%" align=middle class="STYLE1"><div align="center" class="STYLETITLE"><%'=xueqibegindate%>第<%=(datediff("w",xueqibegindate,date))%>周</div></td>
   
    <td  width="30%" height="25" colspan="5" align=middle class="STYLE1"> 
      <div align="center">上午</div></td>
    <td width="30%" height="25" align=middle class="STYLE1"> 
      <div align="center">下午</div>
    <div align="center"></div></td>
    <td width="10%" align=middle class="STYLE1"> <div align="center"><img src="images/<%=request.cookies("imgdir")%>/more.gif" width="34" height="9"><a href="xiaoli/xiaoli.asp?years=<%=nowxueqi%>" target="_self">更多</a></div></td>
</tr>
  
  　 
  <% for i=0 to 6
  
  curdate=ddate+i
   %>
  
     <% if curdate<date()   then%>
	    <tr  bgcolor='#EFF8FF' onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='#FFFFCC'">
     <% end if %>
     <% if curdate=date()   then%>
	   <tr  bgcolor='#FFCCCC' onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='#FFFFCC'">
     <% end if %>
     <% if curdate>date()   then%>
        <tr  onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='#FFFFCC'">
	 <% end if%>
    
	   <td   width="20%" height="49" align=center valign="middle" class="STYLE1">
         <p align="center"><%=ddate+i%><br>
           <%Select Case Weekday(ddate+i) 
    Case 2%>
           (星期一) 
           <%Case 3%>
           (星期二)  
           <%Case 4%>
           (星期三)  
           <%Case 5%>
           (星期四)  
           <%Case 6%>
           (星期五)  
           <%Case 7%>
           (星期六)  
           <%Case 1%>
           (星期日)  </font> 
           <%End Select%>
         </p>
         </td><td  width="40%"  colspan="5" align=middle>
	  <div align="left">
	    <!--显示内容-->
	    <span class="STYLE1">
	     <% Set MyOAASPObj = Server.CreateObject("YFSchoolOApro.YFSchoolDll")
                MyOAASPObj.mainxiaoli(curdate)
		    set MyOAASPObj=nothing
        %>
 	   </div></td>
     <td align=middle><div align="center" class="STYLE1"><a href="xiaoli/manage.asp?dtondate=<%=curdate%>"  target="main" class="STYLE1">添加</a></div></td>
  </tr>
  <%
 Next
  %>
  
   
	 
	 
</table>
<br> 
<% Set MyOAASPObj = Server.CreateObject("YFSchoolOApro.YFSchoolDll")
                MyOAASPObj.MainNextXiaoLi(ddate)
		    set MyOAASPObj=nothing
        %>
<!--校历结束校历结束校历结束校历结束校历结束校历结束校历结束校历结束-->
  </td>
  </tr>
</table>
</DIV>
	
	
	
	
	
	</td>
  </tr>
</table></td>
<td width="280" align="center" valign="top">


<!--#include file="main_Right.asp"-->
</td>
 </tr>
</table>		

   
</body>
</html>
