%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <% CheckSecurity(1) DateIntervention = GetParam("DateInterv") SemRedirect = DatePart("ww",DateIntervention,2,3) ShowBeginDate = FormatDateTime(DateIntervention,2) If GetParam("ShowEndDate") = "" then ShowEndDate = ShowBeginDate else ShowEndDate = GetParam("ShowEndDate") end if IdEmpl = GetParam("IdEmpl") InitEmpl = CStr(DLookUp("employees", "Initiales", "IdEmpl =" & IdEmpl)) ErrorMessage = 0 ErrorMessage = GetParam("Mess") actionupdate = 0 BeginTimeHour_0 = 9 BeginTimeMinutes_0 = 0 EndTimeHour_0 = 12 EndTimeMinutes_0 = 0 BTH = 0 BTM = 0 ETH = 0 ETM = 0 BTH = GetParam("BTH") BTM = GetParam("BTM") If BTH = 0 AND BTM = 0 then BTH = 9 BTM = 0 End if ETH = GetParam("ETH") ETM = GetParam("ETM") If ETH = 0 AND ETM = 0 then ETH = 18 ETM = 0 End if CBNC = GetParam("CBNC") CBFD = "on" If ErrorMessage <> 0 then CBFD = GetParam("CBFD") end if Customer = GetParam("CustInt") CustomerList = GetParam("CustIntList") JobDescription = GetParam("JD") '''''''''''''''''''''''''' ' Ouverture table events ' '''''''''''''''''''''''''' Set rsChkEvent = server.CreateObject("ADODB.Recordset") sqlChkEvent = "SELECT rdlp.id, rdlp.idEmpl, rdlp.CustInt, year(rdlp.DateInt), week(rdlp.DateInt), rdlp.DateInt, rdlp.FullDay, rdlp.BeginTime, rdlp.EndTime, rdlp.idTypeEvent," & _ " rdlp.JobDescription, rdlp.TypeEventAgenda, te.TypeEvent, tp.TypePrestation, e.Initiales " & _ "FROM reldatelieupers_2 as rdlp " & _ "LEFT JOIN employees as e on rdlp.idEmpl=e.IdEmpl " & _ "LEFT JOIN typeevent as te on rdlp.idTypeEvent=te.idType " & _ "LEFT JOIN typeprestation as tp on rdlp.idTypePrestation=tp.idPrestation " & _ "WHERE rdlp.DateInt='" & DateIntervention & "' AND rdlp.idEmpl='" & IdEmpl & "'" & _ "ORDER BY rdlp.BeginTime,rdlp.EndTime Asc" 'Response.Write(sqlChkEvent) openrs rsChkEvent, sqlChkEvent '''''''''''''''''''''''''''''''''''''''' ' Mise en mémoire table clients agenda ' '''''''''''''''''''''''''''''''''''''''' Set rsCustIntList = server.CreateObject("ADODB.Recordset") sqlCustIntList = "select id, Customer from custint order by Customer ASC" openStaticRS rsCustIntList, sqlCustIntList %>
<% DateTest = "03/04/2008" ' Response.Write("DateTest : " & DateTest & "