<!--#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="images/<%=request.cookies("imgdir")%>/css/style.css" media="all"/>
<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: 15px;
	background-image: url();
}
OL LI {
	MARGIN: 8px
}
#con {
	FONT-SIZE: 15px; MARGIN: 0px auto; WIDTH: 600px
}
#tags {
	PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px 0px 0px 10px; WIDTH: 720; 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: 680px
}
#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")
   varset=request.cookies("varset")
   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",varset)
		   set MyOAASPObj=nothing
        %>
	
	<!--公告结束公告结束公告结束公告结束公告结束公告结束公告结束公告结束公告结束公告结束-->
	
	 
	<DIV  style="width:auto"  id=tagContent>
	 <DIV  style="width:auto"  class="tagContent selectTag" id=tagContent1>

<table width="100%"   border="0"  valign="top" 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%" border="0"  valign="top" cellspacing="0" cellpadding="0">
  <tr  class="STYLE1"  bgcolor='#EFF8FF' height="52">
    <td>
    	<% Set MyOAASPObj = Server.CreateObject("YFSchoolOApro.YFSchoolDll")
                MyOAASPObj.ZhiRiList(date)
		    set MyOAASPObj=nothing
        %>&nbsp;
	</td>
    <td width="80"><div align="center"><img src="images/<%=request.cookies("imgdir")%>/more.gif" width="34" height="9"><a href="xiaoli/ZhiRiList.asp?years=<%=nowxueqi%>&begindate=<%=date%>" target="_self">更多</a></div></td>
  </tr>
</table> 

 
  
  
<table width="100%" align="center" border="0" cellpadding="0"   cellspacing="0"  bordercolor="#6D8DD8">   
<tr  style="border-bottom:1px solid #CCCCCC;border-bottom:1px solid #CCCCCC;"  bgcolor='#EFF8FF'  class="TableHeader">
  <td  width="12%" align=middle class="STYLE1" ><div align="center" class="STYLETITLE"><%'=xueqibegindate%>第<%=(datediff("w",xueqibegindate,date))%>周</div></td>
   
    <td  width="32%" height="30" colspan="5" align=middle class="STYLE1" > 
      <div align="center">上午</div></td>
	  
	  <td  width="2%" bgcolor="#FFFFFF" align=middle class="STYLE1"> </td>	
	    
    <td width="32%"  align=middle class="STYLE1"> 
      <div align="center">下午</div>
    <div align="center"></div></td>
    <td width="15%" 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'" style="border-bottom:1px solid #CCCCCC;">
     <% end if %>
     <% if curdate=date()   then%>
	   <tr  bgcolor='#FFCCCC' onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='#FFFFCC'" style="border-bottom:1px solid #CCCCCC;">
     <% end if %>
     <% if curdate>date()   then%>
        <tr  onMouseOut="this.style.backgroundColor=''" onMouseOver="this.style.backgroundColor='#FFFFCC'" style="border-bottom:1px solid #CCCCCC;">
	 <% end if%>
    
	   <td   width="20%" height="70" align=center valign="middle" class="STYLE1"  style="border-bottom:1px solid #CCCCCC;">
         <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 style="border-bottom:1px solid #CCCCCC;border-bottom:1px solid #CCCCCC;">
	  <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>		
	
	
   
  </td>
  </tr>
</table>	 
	 <br>

<% Set MyOAASPObj = Server.CreateObject("YFSchoolOApro.YFSchoolDll")
                MyOAASPObj.MainNextXiaoLi(ddate)
		    set MyOAASPObj=nothing
        %>
<!--校历结束校历结束校历结束校历结束校历结束校历结束校历结束校历结束-->

</DIV>
	
	
	
	
	
	</td>
  </tr>
</table></td>
<td width="280" align="center" valign="top">


<!--#include file="main_Right.asp"-->
</td>
 </tr>
  <!--撑场表格-->
 <tr><td colspan="2">
	<table width="1000"  align="center" border="0"  cellspacing="0">  <tr> <td></td> </tr></table>
 </td></tr>
 <!--撑场表格-->
</table>		

   
</body>
</html>
