1
do until rs1.eof
elseif year(tDate) = year(now) then
elseif rs1("leavetype") = 1 and (rs1("statusLev1") = "z" and rs1("statusLev2") = "z") then
childcare = childcare + rs1("totaldays")
elseif rs1("leavetype") = 28 and (rs1("statusLev1") = "P" and rs1("statusLev2") = "P") then
%>
<script>alert("You are...")
history.go(-1)</script>
<%**
end if
end if
rs1.movenext
loop
rs1.movefirst
提交leavetype = 28後,由於消息框是showing.I我不能申請任何其他假期要顯示的消息框,只有當我申請休假28型和狀態水平爲p 。否則我不需要留言1或2的消息框。我可以如何修改..? 謝謝傳統的ASP QUERY
當然,他已經得到<%end if%>只會在if評估爲true時插入腳本標記。 – Rob 2011-03-31 09:47:59