![]() ![]() ![]() ![]() |
|||||
|
|||||
¼Ó¥D µ` ![]()
![]() |
ADODB.Field ¿ù»~ '800a0bcd' ¥i¯à¬O BOF ©Î EOF ªºÈ¬° True¡A©Î¥Ø«eªº¸ê®Æ¿ý¤w³Q§R°£¡C©Òn¨Dªº¾Þ§@»Ýn¥Ø«eªº¸ê®Æ¿ý¡C /tsps_school_calendar/news/calendar_show1.asp, ¦æ563 sql¦p¤U Select * From calendar Where year(calendar_createdate)=2015 and month(calendar_createdate)=2 and day(calendar_createdate)=12 Order by calendar_master ¦æ563 ¦p¤U response.write rs("calendar_createdate") <% ' response.write SQLstr ' response.end 'response.write rs("calendar_createdate") %>
·j´M¬ÛÃöTagsªº¤å³¹¡G
[ ½Ð°Ýµo¥Í¤U¦C¿ù»~ ] , [ ¤@ª½§ä¤£¥X°ÝÃD©Ò¦b ¨D±Ï°ª¤â ] ,
¥»½g¤å³¹µoªí©ó2015-02-13 10:12 |
1¼Ó |
SQL ¬d¸ß¤£¨ì¥ô¦ó¸ê®Æ.
©Ò¥H·í§An response.write ®É´N·|Åã¥Ü¿ù»~. ½Ð¥ý½T©w¸Ó SQL Command ¥i¥H¬d¸ßªº¨ì¸ê®Æ.
¥»½g¤å³¹¦^ÂЩó2015-02-13 10:53
== ñ¦WÀÉ ==
--¥¼µn¤Jªº·|ûµLªk¬d¬Ý¹ï¤èñ¦WÀÉ-- |
2¼Ó |
¥i¥H§PÂ_¤£¬°ªÅ«á¦A°õ¦æ¤§«áªº°Ê§@
Debug®É¥i¥H§â°õ¦æ«áªºSQL response¥X¨Ó °õ¦æ¬Ý¬Ý ¬O§_²Å¦X»Ý¨D
¥»½g¤å³¹¦^ÂЩó2015-02-13 11:16
== ñ¦WÀÉ ==
--¥¼µn¤Jªº·|ûµLªk¬d¬Ý¹ï¤èñ¦WÀÉ-- |
3¼Ó
§@ªÌ¦^À³
µ` ![]() |
n¦b³oªí®æ¤¤·s¼W3Äæ
rs("person01") rs("person02") rs("class01") Â\¦b³Ì«á¦ý·|µo¥Í¥i¯à¬O BOF ©Î EOF ªºÈ¬° True¡A©Î¥Ø«eªº¸ê®Æ¿ý¤w³Q§R°£¡C©Òn¨Dªº¾Þ§@»Ýn¥Ø«eªº¸ê®Æ¿ý¡C ¤£ª¾¦p¦ó¸Ñ¨M?..ÁÂÁ <td> <% 'response.write rs("calendar_createdate") ' response.write SQLstr ' response.end 'person01=rs("person01") if NOT(rs.EOF) Then person01=rs("person01") response.write "<font color='#FF0000'>"&person01&" " else response.write "<font color='#008000'>¢¸¢¸¢¸¢¸ " end if %> </TD> <td> </TD> <td> </TD> <!-- #include file="adovbs.asp" --> <meta http-equiv="Content-Language" content="zh-tw"> <meta http-equiv="Content-Type" content="text/html; charset=big5"> <% Function GetDaysInMonth(iMonth, iYear) Dim dTemp dTemp = DateAdd("d", -1, DateSerial(iYear, iMonth + 1, 1)) GetDaysInMonth = Day(dTemp) End Function Function GetWeekdayMonthStartsOn(dAnyDayInTheMonth) Dim dTemp dTemp = DateAdd("d", -(Day(dAnyDayInTheMonth) - 1), dAnyDayInTheMonth) GetWeekdayMonthStartsOn = WeekDay(dTemp) End Function Function SubtractOneMonth(dDate) SubtractOneMonth = DateAdd("m", -1, dDate) End Function Function AddOneMonth(dDate) AddOneMonth = DateAdd("m", 1, dDate) End Function Dim dDate Dim iDIM Dim iDOW Dim iCurrent Dim iPosition If IsDate(Request.QueryString("date")) Then dDate = CDate(Request.QueryString("date")) Else If IsDate(Request.QueryString("month") & "-" & Request.QueryString("day") & "-" & Request.QueryString("year")) Then dDate = CDate(Request.QueryString("month") & "-" & Request.QueryString("day") & "-" & Request.QueryString("year")) Else dDate = Date() If Len(Request.QueryString("month")) <> 0 Or Len(Request.QueryString("day")) <> 0 Or Len(Request.QueryString("year")) <> 0 Or Len(Request.QueryString("date")) <> 0 Then Response.Write "The date you picked was not a valid date. The calendar was set to today's date.<BR><BR>" End If End If End If iDIM = GetDaysInMonth(Month(dDate), Year(dDate)) iDOW = GetWeekdayMonthStartsOn(dDate) %> <HEAD><TITLE>¦æ¨Æ¾ä¨t²Î</TITLE></HEAD> <BODY link="#FFFFFF" vlink="#E0E0E0" alink="#FF0000" BGCOLOR="#EAF1E9"> <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=2 BORDERCOLORDARK=#FFFFFF BORDERCOLORLIGHT=#808080 width="91%"> <TR bgcolor=#000098> <TD colspan=2 align=center><font color=#FFFF00><strong>¡E§ø¡E¤W¡E°ê¡E¤p¡E¦æ¡E¨Æ¡E¾ä¡E¨t¡E²Î¡E</strong></font></TD> </TR> </TABLE> <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=2 BORDERCOLORDARK=#FFFFFF BORDERCOLORLIGHT=#808080 width="75%"> <TR> <TD align=center valign=top width="16%"> <TABLE BORDER=1 CELLSPACING=0 CELLPADDING=2 BORDERCOLORDARK=#FFFFFF BORDERCOLORLIGHT=#808080> <TR> <TD> <TABLE style="font-size:9pt" BORDER=1 CELLSPACING=0 CELLPADDING=2 BGCOLOR=#D0E8D0 BORDERCOLORDARK=#FFFFFF BORDERCOLORLIGHT=#808080> <TR> <TD BGCOLOR=#488448 ALIGN="center" COLSPAN=7> <TABLE WIDTH=100% BORDER=0 CELLSPACING=0 CELLPADDING=0> <TR> <TD ALIGN="right"><A HREF="./calendar_show1.asp?date=<%= SubtractOneMonth(dDate) %>"> <FONT COLOR=#FFFF00 SIZE="2">¤WÓ¤ë</FONT></A></TD> <TD ALIGN="center"><font color=#FFFFFF>¥Á°ê<FONT COLOR=#FFFF00><B><%=Year(dDate)-1911%></B><font color=#FFFFFF>¦~<FONT COLOR=#FFFF00><B><%=Month(dDate)%></B><font color=#FFFFFF>¤ë</FONT></font></font></font></font></TD> <TD ALIGN="left"><A HREF="./calendar_show1.asp?date=<%= AddOneMonth(dDate) %>"> <FONT COLOR=#FFFF00 SIZE="2">¤UÓ¤ë</FONT></A></TD> </TR> </TABLE> </TD> </TR> <TR BGCOLOR=#90C490> <TD ALIGN="center" BGCOLOR=#FF0000><FONT COLOR=#FFFFFF><B> <font size="3">¤é</font></B></FONT></TD> <TD ALIGN="center"><FONT COLOR=#386838><B>¤@</B></FONT></TD> <TD ALIGN="center"><FONT COLOR=#386838><B>¤G</B></FONT></TD> <TD ALIGN="center"><FONT COLOR=#386838><B>¤T</B></FONT></TD> <TD ALIGN="center"><FONT COLOR=#386838><B>¥|</B></FONT></TD> <TD ALIGN="center"><FONT COLOR=#386838><B>¤</B></FONT></TD> <TD ALIGN="center" BGCOLOR=#FF0000><FONT COLOR=#FFFFFF><B> <font size="3">¤»</font></B></FONT></TD> </TR> <% If iDOW <> 1 Then Response.Write vbTab & "<TR bgcolor=#009400>" & vbCrLf iPosition = 1 Do While iPosition < iDOW Response.Write vbTab & vbTab & "<TD> </TD>" & vbCrLf iPosition = iPosition + 1 Loop End If iCurrent = 1 iPosition = iDOW Do While iCurrent <= iDIM If iPosition = 1 Then Response.Write vbTab & "<TR bgcolor=#009400>" & vbCrLf End If If iCurrent = Day(dDate) Then Response.Write vbTab & vbTab & "<TD ALIGN=CENTER BGCOLOR=#00FFFF><FONT SIZE=""-1""><B>" & iCurrent & "</B></FONT></TD>" & vbCrLf Else Response.Write vbTab & vbTab & "<TD ALIGN=CENTER><A HREF=""./calendar_show2.asp?date=" & Month(dDate) & "-" & iCurrent & "-" & Year(dDate) & """><FONT SIZE=""-1"">" & iCurrent & "</FONT></A></TD>" & vbCrLf End If If iPosition = 7 Then Response.Write vbTab & "</TR>" & vbCrLf iPosition = 0 End If iCurrent = iCurrent + 1 iPosition = iPosition + 1 Loop If iPosition <> 1 Then Do While iPosition <= 7 Response.Write vbTab & vbTab & "<TD> </TD>" & vbCrLf iPosition = iPosition + 1 Loop Response.Write vbTab & "</TR>" & vbCrLf End If %> </TABLE> </TD> </TR> </TABLE> <% year_now=year(Date) month_now=month(Date) day_now=day(Date) %> <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 style="font-size:9pt" width="201"> <FORM ACTION="./calendar_show1.asp" METHOD=GET> <TR><TD ALIGN="center"> ¥Á°ê <SELECT NAME="year" style="font-size:9pt"> <%for iyear=year_now-50 to year_now+2%> <option value="<%=iyear%>" <%if iyear=year_now then response.write "selected"%>><%=iyear-1911%></option> <%next%> </SELECT>¦~ <SELECT NAME="month" style="font-size:9pt"> <%for imonth=1 to 12%> <option value="<%=imonth%>" <%if imonth=month_now then response.write "selected"%>><%=imonth%></option> <%next%> </select>¤ë <SELECT NAME="day" style="font-size:9pt"> <%for iday=1 to 31%> <option value="<%=iday%>" <%if iday=day_now then response.write "selected"%>><%=iday%></option> <%next%> </SELECT>¤é </TD></TR> <TR><TD align=center> <INPUT TYPE="submit" VALUE="¨q¥X³o¤@¤Ñªº¤ë¾ä" style="font-size:9pt"> </TD></TR> </FORM> </TABLE> <hr> <TABLE bgcolor=#880000 width="107%" BORDER=0 CELLSPACING=0 CELLPADDING=2 BORDERCOLORDARK=#FFFFFF BORDERCOLORLIGHT=#808080 style="font-size:9pt" id="table1"> <TR> <TD><font color="#FFFF00" size="2"> <p style="margin-bottom: 0px"><b>ÂsÄý±M¥Î</b><br> <a href="calendar_show1.asp" target="_parent"><%=month(now())%>¤ë¦æ¨Æ¾ä</a>¡ý<a href="calendar_show2.asp" target="_parent">¤µ¤é¦æ¨Æ¾ä</a>¡ý<a href="calendar_print_color.asp?date=<%=dDate%>" target="_parent">±m¦â¦C¦L</a> </p> <p style="margin-top: 5px"><b>ºÞ²z¾Ç´Á¦æ¨Æ¾ä</b><br> <a href="calendar.asp" target="_parent">½s¿è¦æ¨Æ¾ä</a> ¡ý<a href="admin-rmagword.asp" target="_parent">¨t²ÎºÞ²z</a><p style="margin-top: 5px; margin-bottom:-2px"> </TD> </TR> </TABLE> <TABLE bgcolor=#880000 width="105%" BORDER=0 CELLSPACING=0 CELLPADDING=2 BORDERCOLORDARK=#FFFFFF BORDERCOLORLIGHT=#808080 style="font-size:9pt; margin-top:0; margin-bottom:0" id="table2"> <TR> <TD height="125" valign="top" style="margin-top: 0; margin-bottom: 0"><font color="#FFFF00" size="2"> <form method="POST" action="calendar_print_color01.asp" style="margin-bottom: 0"> <p style="margin-top: 0px; margin-bottom: 0" align="left"><b>¬d¸ß¦æ¨Æí¤º®e</b> <input name="workdoc01" size="18" style="float: left"><input type="submit" value="°e¥X" name="B1" style="float: left"><input type="reset" value="«³]" name="B2" style="float: left"></p> </form> <form method="POST" action="calendar_print_color02.asp" style="margin-top: -2; margin-bottom:0"> <p style="margin-top: 0px; margin-bottom:0" align="left">¡@<p style="margin-top: 0px; margin-bottom:0" align="left">¡@<p style="margin-top: 0px; margin-bottom:-1px" align="left"> <b>¬d¸ß¦æ¨Æ¾ä</b><p style="margin-top: 0px; margin-bottom:0" align="left"> <SELECT NAME="workdoc02" style="font-size:9pt"> <% if month_now>7 then year_now01=year(Date) else year_now01=year(Date)-1 end if for iyear=year_now01-50 to year_now01+0%> <option value="<%=iyear%>" <%if iyear=year_now01 then response.write "selected"%>><%=iyear-1911%></option> <%next%></SELECT>¾Ç¦~<SELECT NAME="workdoc020" style="font-size:9pt" size="1"> <% if month_now<7 then %> <option value="2">²Ä2¾Ç´Á</option> <option value="8">²Ä1¾Ç´Á</option> <option value="all01">¾Ç¦~«×</option> <option value="all">¾ä¦~«×</option> <% else %> <option value="8">²Ä1¾Ç´Á</option> <option value="2">²Ä2¾Ç´Á</option> <option value="all01">¾Ç¦~«×</option> <option value="all">¾ä¦~«×</option> <% end if %> </SELECT><input type="submit" value="°e¥X" name="B3"><input type="reset" value="«³]" name="B4"> </form> <p style="margin-top: 5px; margin-bottom:0"><b> <a href="calendar_show1.asp" target="_parent">ªð¦^¤½§GÄæº¶</a> </b> </TD> </TR> </TABLE> <TABLE bgcolor=#880000 width="100%" BORDER=0 CELLSPACING=0 CELLPADDING=2 BORDERCOLORDARK=#FFFFFF BORDERCOLORLIGHT=#808080 style="font-size:9pt"> <TR> </font> </TD> </TR> </TABLE> <hr> <table width="92"> <tr> <td> <a href="../jkcboard/Title.asp"></a></td> </tr> </table> </TD> <TD width="863" valign=top> <TABLE width="86%" style="font-size:9pt" BORDER=0 CELLSPACING=0 CELLPADDING=2 BORDERCOLORDARK=#FFFFFF BORDERCOLORLIGHT=#808080 id="table3"> <TR><TD height=305 valign=top> <TABLE bgcolor=#D8F0FF width="813" style="font-size:9pt" BORDER=1 CELLSPACING=0 CELLPADDING=2 BORDERCOLORDARK=#FFFFFF BORDERCOLORLIGHT=#808080 bordercolor="#000080" id="table4"> <TR bgcolor=#005488> <TD colspan=3 align=center><font color=#FFFFFF size="3">¥Á°ê<%=year(dDate)-1911%>¦~<%=month(dDate)%>¤ë·í¤ë¬J©wªº¦æ¨Æ</font></TD> </TR> <TR bgcolor=#0088D8> <TD width="5%" align=center><b><font color=#FFFFFF>¤é</font></b></TD> <TD width="5%" align=center><b><font color=#FFFFFF>¬P´Á</font></b></TD> <TD width="73%" align=center><b><font color=#FFFFFF>¦æ¨Æ¾ä¤º®e</font></b></TD> <TD width="73%" align=center><b><font color=#FFFFFF>Ȥé¤Hû</font></b></TD> <TD width="73%" align=center><b><font color=#FFFFFF>¾ÉÅ@¤Hû</font></b></TD> <TD width="73%" align=center><b><font color=#FFFFFF>ªð®Õ¥´±½¯Z¯Å</font></b></TD> </TR> <% DbPath = SERVER.MapPath("calendar.mdb") Set conn = Server.CreateObject("ADODB.Connection") conn.open "driver={Microsoft Access Driver (*.mdb)};dbq=" & DbPath weekend=1 For daycount=1 to iDIM SQLstr="Select * From calendar Where year(calendar_createdate)=" & year(dDate) & " and month(calendar_createdate)=" & month(dDate) & " and day(calendar_createdate)=" & daycount & " Order by calendar_master" Set rs=SERVER.CreateObject("ADODB.Recordset") rs.Open SQLstr, conn , adOpenDynamic, adLockPessimistic ' response.write SQLstr ' response.end %> <%If rs.Eof Then %> <TD align=center><%=daycount%></TD> <% dNow=year(dDate)&"/"&month(dDate)&"/"&daycount meeting=weekday(CDate(dNow)) Select Case weekday(CDate(dNow)) Case 1 cweekday1="<TD align=center bgcolor=#FF0000><font color=#FFFFFF>¤é</font></TD>" Case 2 cweekday1="<TD align=center>¤@</TD>" Case 3 cweekday1="<TD align=center>¤G</TD>" Case 4 cweekday1="<TD align=center>¤T</TD>" Case 5 cweekday1="<TD align=center>¥|</TD>" Case 6 cweekday1="<TD align=center>¤</TD>" Case 7 cweekday1="<TD align=center bgcolor=#FF0000><font color=#FFFFFF>¤»</font></TD>" End Select %> <%=cweekday1%> <TD> ¡@</TD> <td> </TD> <td> </TD> <td> </TD> <% SQLstr1="Select * From duty Where year(calendar_createdate)=" & year(dDate) & " and month(calendar_createdate)=" & month(dDate) & " and day(calendar_createdate)=" & daycount Set rs1=SERVER.CreateObject("ADODB.Recordset") rs1.Open SQLstr1, conn , adOpenDynamic, adLockPessimistic If Not rs1.Eof Then calendar_duty1=rs1("calendar_duty1") Else calendar_duty1="" End If SQLstr1="" %> <% SQLstr1="Select * From duty Where year(calendar_createdate)=" & year(dDate) & " and month(calendar_createdate)=" & month(dDate) & " and day(calendar_createdate)=" & daycount Set rs1=SERVER.CreateObject("ADODB.Recordset") rs1.Open SQLstr1, conn , adOpenDynamic, adLockPessimistic If Not rs1.Eof Then calendar_duty2=rs1("calendar_duty2") Else calendar_duty2="" End If SQLstr1="" %> <%End If %> <%While Not rs.Eof%> <TR> <% meeting=weekday(rs("calendar_createdate")) Select Case weekday(rs("calendar_createdate")) Case 1 cweekday="<TD align=center bgcolor=#FF0000><font color=#FFFFFF>¤é</font></TD>" Case 2 cweekday="<TD align=center>¤@</TD>" Case 3 cweekday="<TD align=center>¤G</TD>" Case 4 cweekday="<TD align=center>¤T</TD>" Case 5 cweekday="<TD align=center>¥|</TD>" Case 6 cweekday="<TD align=center>¤</TD>" Case 7 cweekday="<TD align=center bgcolor=#FF0000><font color=#FFFFFF>¤»</font></TD>" End Select %> <TD align=center> <%=day(rs("calendar_createdate"))%> </TD> <%=cweekday%> <TD> <% Select Case rs("calendar_master") Case "®Õªø" calendar_master="®Õªø" Case "¤H¨Æ«Ç/¤H¨Æ¥D¥ô" calendar_master="¤H¨Æ«Ç" Case "¤H¨Æ«Ç/¤H¨Æ§U²z" calendar_master="¤H¨Æ«Ç" Case "·|p«Ç/·|p¥D¥ô" calendar_master="·|p«Ç" Case "±Ð°È³B/±Ð°È¥D¥ô" calendar_master="±Ð°È³B" Case "±Ð°È³B/±Ð¾Ç²Õªø" calendar_master="±Ð°È³B" Case "±Ð°È³B/µù¥U²Õªø" calendar_master="±Ð°È³B" Case "±Ð°È³B/³]³Æ²Õªø" calendar_master="±Ð°È³B" Case "±Ð°È³B/¸ê°T²Õªø" calendar_master="±Ð°È³B" Case "¾Ç°È³B/¾Ç°È¥D¥ô" calendar_master="¾Ç°È³B" Case "¾Ç°È³B/°V¨|²Õªø" calendar_master="¾Ç°È³B" Case "¾Ç°È³B/¥Í±Ð²Õªø" calendar_master="¾Ç°È³B" Case "¾Ç°È³B/½Ã¥Í²Õªø" calendar_master="¾Ç°È³B" Case "¾Ç°È³B/Åé¨|²Õªø" calendar_master="¾Ç°È³B" Case "»²¾É«Ç/»²¾É¥D¥ô" calendar_master="»²¾É«Ç" Case "»²¾É«Ç/»²¾É²Õªø" calendar_master="»²¾É«Ç" Case "»²¾É«Ç/¸ê®Æ²Õªø" calendar_master="»²¾É«Ç" Case "»²¾É«Ç/¯S±Ð²Õªø" calendar_master="»²¾É«Ç" Case "Á`°È³B/Á`°È¥D¥ô" calendar_master="Á`°È³B" Case "Á`°È³B/±f°È²Õªø" calendar_master="Á`°È³B" Case "Á`°È³B/¥X¯Ç²Õªø" calendar_master="Á`°È³B" Case "Á`°È³B/¤å®Ñ²Õªø" calendar_master="Á`°È³B" Case "¸ê°T«Ç" calendar_master="¸ê°T«Ç" End Select lastoffice=calendar_master %> <font color=#007420>¡i<%=calendar_master%>¡j</font> <!-- ¦pªG¦æ¨Æ¾ä¤§¤¤¦³¡u©ñ°²¡v©Î¡u¶g¥ð¡v¦r¦ê¡A¸Ó¦æ¨Æ¾ä»¡©ú´NÅܦâ --> <%If InStr(rs("calendar_describe"),"©ñ°²")>0 or InStr(rs("calendar_describe"),"¶g¥ð")>0 or InStr(rs("calendar_describe"),"¸`")>0 Then%> <strong> <font color=#FFFF00 style=background-color:#FF0000>¢Ï¢°<%=rs("calendar_describe")%></font></strong> <%Else%> ¢Ï¢±<%=rs("calendar_describe")%></font> <%End If%> <br> <% lastday=rs("calendar_createdate") %> <% rs.MoveNext %> <% If Not rs.Eof Then If rs("calendar_createdate")=lastday Then Do While rs("calendar_createdate")=lastday Select Case rs("calendar_master") Case "®Õªø" calendar_master="®Õªø" Case "¤H¨Æ«Ç/¤H¨Æ¥D¥ô" calendar_master="¤H¨Æ«Ç" Case "¤H¨Æ«Ç/¤H¨Æ§U²z" calendar_master="¤H¨Æ«Ç" Case "·|p«Ç/·|p¥D¥ô" calendar_master="·|p«Ç" Case "±Ð°È³B/±Ð°È¥D¥ô" calendar_master="±Ð°È³B" Case "±Ð°È³B/±Ð¾Ç²Õªø" calendar_master="±Ð°È³B" Case "±Ð°È³B/µù¥U²Õªø" calendar_master="±Ð°È³B" Case "±Ð°È³B/³]³Æ²Õªø" calendar_master="±Ð°È³B" Case "±Ð°È³B/¸ê°T²Õªø" calendar_master="±Ð°È³B" Case "¾Ç°È³B/¾Ç°È¥D¥ô" calendar_master="¾Ç°È³B" Case "¾Ç°È³B/°V¨|²Õªø" calendar_master="¾Ç°È³B" Case "¾Ç°È³B/¥Í±Ð²Õªø" calendar_master="¾Ç°È³B" Case "¾Ç°È³B/½Ã¥Í²Õªø" calendar_master="¾Ç°È³B" Case "¾Ç°È³B/Åé¨|²Õªø" calendar_master="¾Ç°È³B" Case "»²¾É«Ç/»²¾É¥D¥ô" calendar_master="»²¾É«Ç" Case "»²¾É«Ç/»²¾É²Õªø" calendar_master="»²¾É«Ç" Case "»²¾É«Ç/¸ê®Æ²Õªø" calendar_master="»²¾É«Ç" Case "»²¾É«Ç/¯S±Ð²Õªø" calendar_master="»²¾É«Ç" Case "Á`°È³B/Á`°È¥D¥ô" calendar_master="Á`°È³B" Case "Á`°È³B/±f°È²Õªø" calendar_master="Á`°È³B" Case "Á`°È³B/¥X¯Ç²Õªø" calendar_master="Á`°È³B" Case "Á`°È³B/¤å®Ñ²Õªø" calendar_master="Á`°È³B" Case "¸ê°T«Ç" calendar_master="¸ê°T«Ç" End Select If calendar_master=lastoffice Then %> <!-- ¦pªG¦æ¨Æ¾ä¤§¤¤¦³¡u©ñ°²¡v©Î¡u¶g¥ð¡v¦r¦ê¡A¸Ó¦æ¨Æ¾ä»¡©ú´NÅܦâ --> <%If InStr(rs("calendar_describe"),"©ñ°²")>0 or InStr(rs("calendar_describe"),"¶g¥ð")>0 Then%> <strong> <font color=#FFFF00 style=background-color:#FF0000> ¢Ï<%=rs("calendar_describe")%></font></strong> <%Else%> </b><font color=#007420>¡i<%=calendar_master%>¡j</font> ¢Ð<%=rs("calendar_describe")%> <%End If%> <br> <% Else %> <!-- ¦pªG¦æ¨Æ¾ä¤§¤¤¦³¡u©ñ°²¡v©Î¡u¶g¥ð¡v¦r¦ê¡A¸Ó¦æ¨Æ¾ä»¡©ú´NÅܦâ --> <%If InStr(rs("calendar_describe"),"©ñ°²")>0 or InStr(rs("calendar_describe"),"¶g¥ð")>0 Then%> <font color=#FF0000>¡i<%=calendar_master%>¡j</font> <strong><font color=#FFFF00 style=background-color:#FF0000>¢Ñ<%=rs("calendar_describe")%></font></font></strong> <%Else%> <font color=#007420>¡i<%=calendar_master%>¡j</font> ¢Ò<%=rs("calendar_describe")%></font> <%End If%> <br> <% End If %> <% lastoffice=calendar_master rs.MoveNext %> </TD> <% If rs.Eof Then Exit Do End If Loop End If End If %> <td> <% 'response.write rs("calendar_createdate") ' response.write SQLstr ' response.end 'person01=rs("person01") if NOT(rs.EOF) Then person01=rs("person01") response.write "<font color='#FF0000'>"&person01&" " else response.write "<font color='#008000'>¢¸¢¸¢¸¢¸ " end if %> </TD> <td> </TD> <td> </TD> <% SQLstr2="Select * From duty Where year(calendar_createdate)=" & year(dDate) & " and month(calendar_createdate)=" & month(dDate) & " and day(calendar_createdate)=" & daycount Set rs2=SERVER.CreateObject("ADODB.Recordset") rs2.Open SQLstr2, conn , adOpenDynamic, adLockPessimistic If Not rs2.Eof Then calendar_duty1=rs2("calendar_duty1") Else calendar_duty1="" End If SQLstr2="" %> <% SQLstr2="Select * From duty Where year(calendar_createdate)=" & year(dDate) & " and month(calendar_createdate)=" & month(dDate) & " and day(calendar_createdate)=" & daycount Set rs2=SERVER.CreateObject("ADODB.Recordset") rs2.Open SQLstr2, conn , adOpenDynamic, adLockPessimistic If Not rs2.Eof Then calendar_duty2=rs2("calendar_duty2") Else calendar_duty2="" End If SQLstr2="" %> <%Wend%> </TR> <%rs.Close:Set rs=Nothing%> <%Next%> <%conn.Close:Set conn=Nothing%> </TABLE>
¥»½g¤å³¹¦^ÂЩó2015-02-13 11:55
== ñ¦WÀÉ ==
--¥¼µn¤Jªº·|ûµLªk¬d¬Ý¹ï¤èñ¦WÀÉ-- |
4¼Ó
³Ì¦³»ùȸѵª
¦Ñ¹xµ£ ![]() ![]() |
Do While rs("calendar_createdate")=lastday
(¤¤¶¡¬Ù²¤) rs.MoveNext %> </TD> <% If rs.Eof Then Exit Do End If Loop µ{¦¡¦b¤W±³o¬q¶]§¹«á¤w¸g¬OEOFª¬ºA¤F ¦¹®É¦A¥hŪrs¤@©w·|¥X¿ù ¬O¤£¬OÀ³¸Ó§â§An¥[ªº¸ê®Æ¼g¦bDo....Loop°j°éùØ? ¤£µM´N¬On¥ÎMoveFirst¤§Ãþ«ü¥O²¾¦^¦³¸ê®Æªº¦a¤è
¥»½g¤å³¹¦^ÂЩó2015-02-13 16:51
== ñ¦WÀÉ ==
--¥¼µn¤Jªº·|ûµLªk¬d¬Ý¹ï¤èñ¦WÀÉ-- |
5¼Ó |
¬Ý¨ì¥H«eASP³oºØµ{¦¡½X¡A
¯uªº¦³ÂIÀ~¨ì ª½Ä¶¦¡ªº¡BHTML»Pµ{¦¡½X¼g¦b¤@°_ ¦³ÂIÃø§Ñ¡A¦ý¤]¦³¨Ç¥i©È :-)
¥»½g¤å³¹¦^ÂЩó2015-02-16 18:34
== ñ¦WÀÉ ==
--¥¼µn¤Jªº·|ûµLªk¬d¬Ý¹ï¤èñ¦WÀÉ-- |
6¼Ó
§@ªÌ¦^À³
µ` ![]() |
ÁÂÁ¦^òò,¥Ø«e´ú¸Õק襤..
¥»½g¤å³¹¦^ÂЩó2015-02-17 09:06
== ñ¦WÀÉ ==
--¥¼µn¤Jªº·|ûµLªk¬d¬Ý¹ï¤èñ¦WÀÉ-- |
7¼Ó
§@ªÌ¦^À³
µ` ![]() |
ÁÂÁ¦ѹxµ£¤j¤jªº«ü¾É,
Ū¨ú¨S¦³°ÝÃD¤F,¦ýªí®æ·|¶]±¼,¤£ª¾°ÝÃD¥X¦b¨º ¤w×§ï¦p¤U <% '±N«ü¼Ð²¾¨ì²Ä¤@µ§ 'rs.moveFirst response.write rs("calendar_createdate") ' response.write SQLstr ' response.end 'person01=rs("person01") 'if NOT(rs.EOF) Then 'person01=rs("person01") 'response.write "<font color='#FF0000'>"&person01&" " 'else 'response.write "<font color='#008000'>¢¸¢¸¢¸¢¸ " 'end if %> 1 </TD> <td>2 </TD> <td>3 </TD> ªí®æ·|¶]±¼ªººô§} http://163.23.69.22/tsps_school_calendar/news/calendar_show11.asp
¥»½g¤å³¹¦^ÂЩó2015-02-17 10:46
== ñ¦WÀÉ ==
--¥¼µn¤Jªº·|ûµLªk¬d¬Ý¹ï¤èñ¦WÀÉ-- |
8¼Ó
§@ªÌ¦^À³
µ` ![]() |
ok´ú¸Õ¥X¤F
¥»½g¤å³¹¦^ÂЩó2015-02-25 13:40
== ñ¦WÀÉ ==
--¥¼µn¤Jªº·|ûµLªk¬d¬Ý¹ï¤èñ¦WÀÉ-- |
¦^ÂÐ |
¦pn¦^À³,½Ð¥ýµn¤J. |