| 시간 |
시작 |
종료 |
내용 |
<%
Dim tmp_min(2)
tmp_scode = 1
tmp_code = 0
tmp_min(0) = "00"
tmp_min(1) = "30"
for i = 9 to 22
for j = 1 to 2
if i <> 22 or j <> 2 then
if tmp_code = 0 then
query = " SELECT TSR.id, s_type, s_depart, team_name as s_depart_name, s_p_no, p_name as s_p_name, s_r_date, s_rs_time, s_re_time, s_rs_time_cd, s_re_time_cd, s_cd_gap, s_client, s_comment, s_status "
query = query & " FROM T_SEAL_RES TSR LEFT OUTER JOIN TEAM_GROUP TG ON TSR.s_depart = TG.team_cd and TG.div_use = '1' "
query = query & " LEFT OUTER JOIN PERSON P ON TSR.s_p_no = P.p_no "
query = query & " WHERE s_r_date='" & s_r_date & "' "
query = query & " AND s_type='" & s_type & "' "
query = query & " AND use_div = '1' "
query = query & " ORDER BY CAST(s_rs_time_cd AS int) "
Adors.Open query, adoConn, 1
if Adors.RecordCount > 0 then
tmp_code = 0
for Adors_cnt = 1 to Adors.RecordCount
if tmp_scode >= int(Adors("s_rs_time_cd")) AND tmp_scode <= int(Adors("s_re_time_cd")) then
s_re_time_cd = int(Adors("s_re_time_cd"))
tmp_code = int(Adors("s_cd_gap"))
tmp_client = Adors("s_client")
tmp_comment = Adors("s_comment")
tmp_depart = Adors("s_depart_name")
tmp_name = Adors("s_p_name")
tmp_namecode = Adors("s_p_no")
tmp_sn = Adors("id")
tmp_chk = 1
tmp_status = Adors("s_status")
exit for
end if
Adors.MoveNext
next
end if
Adors.Close
end if
%>
|
<%=right("0" & i, 2)%>:<%=tmp_min(j - 1)%> ~ <%=right("0" & i + int(1 - (j mod 2)), 2)%>:<%=tmp_min(j mod 2)%>
|
0 then %> disabled <% end if %>>
|
|
<%
if tmp_code = 0 then
%>
|
<%
else
if tmp_chk = 1 then
%>
<%=tmp_depart%> - <%=tmp_name%> :
<% if tmp_namecode = cstr(session("User_Number")) and tmp_status = "0" then %>
[예약취소]
<% end if %>
<%=tmp_client %>
<%=tmp_comment%>
|
<%
tmp_chk = 0
end if
tmp_code = tmp_code - 1
end if
%>
<%
tmp_scode = tmp_scode + 1
end if
next
next
%>
|