<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <% Dim ents__VZONA ents__VZONA = "WHERE ZONA='" + strreplace(session("ZONA"), "'", "''") + "' " If (request("ZONA") <> "") Then ents__VZONA = "WHERE ZONA='" + strreplace(request("ZONA"), "'", "''") + "' " End If If (request("ZONA") = "*") Then ents__VZONA ="" %> <% ' *** Restrict Access To Page: Grant or deny access to this page MM_authorizedUsers="ADMIN,GERENTE" MM_authFailedURL="login.asp" MM_grantAccess=false If Session("MM_Username") <> "" Then If (false Or CStr(Session("MM_UserAuthorization"))="") Or _ (InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization"))>=1) Then MM_grantAccess = true End If End If If Not MM_grantAccess Then MM_qsChar = "?" If (InStr(1,MM_authFailedURL,"?") >= 1) Then MM_qsChar = "&" MM_referrer = Request.ServerVariables("URL") if (Len(Request.QueryString()) > 0) Then MM_referrer = MM_referrer & "?" & Request.QueryString() MM_authFailedURL = MM_authFailedURL & MM_qsChar & "accessdenied=" & Server.URLEncode(MM_referrer) Response.Redirect(MM_authFailedURL) End If %> <% 'ESTANDARD DE FECHAS dtCurrentDate=DATE() iFirstDayOfMonth = DatePart("w", DateSerial(Year(dtCurrentDate), Month(dtCurrentDate), 0)) iDaysInMonth = DatePart("d", DateSerial(Year(dtCurrentDate), Month(dtCurrentDate)+1, 1-1)) RE1=CSTR(Month(dtCurrentDate)) + "/" + CSTR(iFirstDayOfMonth) + "/" + CSTR(Year(dtCurrentDate)) RE1=CDATE(RE1) strPrevMonth = (RE1) 'strThisMonth = (DateAdd("m", 1, RE1)) strNextMonth = (DateAdd("m", 1, RE1)) 'FIN STANDARD DE FECHAS %> <% 'Constants Set entsj = Server.CreateObject("ADODB.Command") entsj.ActiveConnection = MM_maq_STRING entsj.CommandText = "select * from REP2 ('1/1/04','2/12/04')" entsj.CommandType = &H0004 'entsj.Parameters.Append entsj.CreateParameter("DESDE",adDate,adParamInput) 'entsj.Parameters.Append entsj.CreateParameter("HASTA",adDate,adParamInput) 'entsj.CommandType = adCmdText entsj.Parameters.Refresh ents=entsj.execute For Each param In entsj.Parameters u="ii" u=u+cstr(param.name) +"-" u=u+param.type +"-" u=u+param.direction +"-" u=u+param.size +"-=" Next response.write("--" +u) %>