<%
%>
|
<%
For wd = 0 to 6
tmpmonth = month(lastlundi)
tmpday = day(lastlundi)
tmpyear = year(lastlundi)
currentday = Dateserial(tmpyear,tmpmonth,tmpday+wd)
dayname = WeekdayName(Weekday(currentday))
%>
<%=dayname%> <%=currentday%> |
<%
next
%>
<%
IDEmployee = 0
InitEmployee = ""
openrs rsidEmpl, "select IdEmpl, Initiales from employees where DisableEmpl=0 order by 2"
while not rsidEmpl.EOF
IDEmployee = GetValue(rsidEmpl, 0)
InitEmployee = GetValue(rsidEmpl, 1)
rsidEmpl.MoveNext
%>
<%=InitEmployee%> |
<%
For wd = 0 to 6
tmpmonth = month(lastlundi)
tmpday = day(lastlundi)
tmpyear = year(lastlundi)
currentday = Dateserial(tmpyear,tmpmonth,tmpday+wd)
tosqlmonth = month(currentday)
tosqlday = day(currentday)
tosqldate = tmpyear & "-" & tosqlmonth & "-" & tosqlday
%>
<%
ClientFull = ""
nothingtodo = 0
sqlchecknothingtodo = "DateInt='" & tosqldate & "' AND idEmpl=" & IDEmployee & ""
nothingtodo = DLookUp("reldatelieupers", "IdTime", sqlchecknothingtodo)
if nothingtodo = 0 then
If wd = 5 or wd=6 then
Response.Write("W-E")
else
Response.Write("?")
end if
else
sqlcheck = "DateInt='" & tosqldate & "' AND idEmpl=" & IDEmployee & " AND IdTime=3"
checkfullday = DLookUp("reldatelieupers", "IdTime", sqlcheck)
If checkfullday = 3 then
ClientFull = DLookUp("reldatelieupers", "CustInt", sqlcheck)
idFull = DLookUp("reldatelieupers", "id", sqlcheck)
Response.Write("" & ClientFull & "")
else
Set rs1 = server.CreateObject("ADODB.Recordset")
sql1 = "SELECT * FROM reldatelieupers WHERE DateInt='" & tosqldate & "' AND idEmpl=" & IDEmployee & " ORDER BY IdTime Asc"
openrs rs1, sql1
AM = ""
PM = ""
While not rs1.eof
If rs1("IdTime") = 1 then
AM = rs1("CustInt")
idAM = rs1("id")
end if
If rs1("IdTime") = 2 then
PM = rs1("CustInt")
idPM = rs1("id")
end if
rs1.movenext
Wend
rs1.close
If AM = "" then
Response.Write("? ")
else
Response.Write("" & AM & " ")
end if
If PM = "" then
Response.Write("?")
else
Response.Write("" & PM & "")
end if
end if
end if
%>
|
<%
next
%>
<%
wend
set rsidEmpl = nothing
%>
|
<%
lastlundi = Dateserial(tmpyear,lastmonth,lastday+7)
next
%>