<% pageSql="select * from es_mainMenuDtls where ID=9" rs.open pageSql,conn,1,1 title=rs("pageTitle") keyword=rs("metaKeyword") desc=rs("metaDescription") pageDtl=rs("description") pid=9 rs.close %> <%=title%> <%=title%>

<%=pageDtl%>
<% dim printmonth1(13) printmonth1(1) = "Enero" printmonth1(2)="Febrero" printmonth1(3)="Marzo" printmonth1(4)="Abril" printmonth1(5)="Mayo" printmonth1(6)="Junio" printmonth1(7)="Julio" printmonth1(8)="Agosto" printmonth1(9)="Septiembre" printmonth1(10)="Octubre" printmonth1(11)="Noviembre" printmonth1(12)="Diciembre" %> <% ' ---------- Page Functions ---------- Function FormatStr(String) ' Replaces a double carrige return with a paragraph break ' a single carrige return with a break rule and CHR(13) with nothing String = Replace(String, CHR(13), "") String = Replace(String, CHR(10) & CHR(10), "

") String = Replace(String, CHR(10), "
") FormatStr = String End Function ' ---------- Page Variables ---------- Const intCharToShow = 20 ' The number of characters shown in each day Const bolEditable = false ' If the calendar is editable or not (Can be tied into password verification) Dim dtToday ' Today's Date Dim dtCurrentDate ' The current date Dim aCalendarDays(42) ' Array of possible calendar dates Dim iFirstDayOfMonth ' The first day of the month Dim iDaysInMonth ' The number of days in the month Dim iColumns, iRows , iDay, iWeek ' The numer of columns and rows in the table, and counters to print them Dim objRS ' Database Variables Dim counter ' Loop counter Dim strNextMonth, strPrevMonth ' The next and previous month dates Dim dailyMsg ' The message for the day Dim dtOnDay ' The current day being displayed by the loops Dim strPage ' The link that each day takes you too Dim cntEvent ' ---------- Variable Definitions ---------- dtToday = Date() If Request("currentDate") <> "" Then dtCurrentDate = Request("currentDate") Else dtCurrentDate = dtToday End If iFirstDayOfMonth = DatePart("w", DateSerial(Year(dtCurrentDate), Month(dtCurrentDate), 1)) iDaysInMonth = DatePart("d", DateSerial(Year(dtCurrentDate), Month(dtCurrentDate)+1, 1-1)) For counter = 1 to iDaysInMonth aCalendarDays(counter + iFirstDayOfMonth - 1) = counter Next iColumns = 7 iRows = 6 - Int((42 - (iFirstDayOfMonth + iDaysInMonth)) / 7) strPrevMonth = Server.URLEncode(DateAdd("m", -1, dtCurrentDate)) strNextMonth = Server.URLEncode(DateAdd("m", 1, dtCurrentDate)) ' ---------- Drawing the Calendar ---------- %>

<% For iWeek = 1 To iRows Response.Write "" For iDay = 1 To iColumns ' Checks to see if there is a day this month on the date being written If aCalendarDays((iWeek-1)*7 + iDay) > 0 then dtOnDay = DateSerial(Year(dtCurrentDate), Month(dtCurrentDate), aCalendarDays((iWeek-1)*7 + iDay)) ' Checks to see if the day being printed is today If dtOnDay = dtToday Then Response.Write "" Next Response.Write "" Next %>
« Previo     Siguiente »
Dom. Lun. Mar. Mie. Jue. Vie. Sab.
" Else Response.Write "" End If ' Checks to see the type of calendar (editable or non-editable) If (bolEditable) then strPage = "updateCalendar_form.asp?currentDate=" & dtOnDay Else strPage = "viewDay.asp?currentDate=" & dtOnDay End If 'response.write "vijay" ' Checks for a message on the day being written strSQL = "SELECT * FROM centro_calDtls WHERE bactive <> 0 and (EventDate <= '" & dtOnDay & "' and EventEndDate >= '" & dtOnDay & "')" 'response.Write(strSql) ' if iDay = 5 then ' response.Write(strSQL) ' response.End() ' end if Set objRS = conn.Execute(strSQL) 'dailyMsg = "" cntEvent=1 If NOT objRS.EOF Then dailyMsg="" do until objRS.EOF If (Trim(dailyMsg) = Trim(Left(dailyMsg, intCharToShow))) Then 'Else 'dailyMsg = Trim(Left(dailyMsg, intCharToShow-4)) & " ...For More Event click here" End If 'if cntEvent=1 then ' dailyMsg = cntEvent & ". " & Trim(objRS(1)) & "
" 'Else if cntEvent > 7 then 'dailyMsg = dailyMsg & "
More Events..." Exit do Else 'dailyMsg = dailyMsg &cntEvent&". "& objRS(1) & "

" 'dailyMsg = dailyMsg End if cntEvent=cntEvent + 1 objRS.movenext loop objRS.close dailyMsg = dailyMsg & "" Else dailyMsg = "" End If Set objRS = Nothing ' Checks to see if the message is too long to be displayed in the mini date box Response.Write (" " & aCalendarDays((iWeek-1)*7 + iDay) & "
" & dailyMsg & "
") Else Response.Write ("
 ") End IF Response.Write "