<%if session("zjlogin") = "ok" then%>
<%
set rw=conn.execute("select * from house_user_zj where id="&session("user_id"))
if isnull(rw("last_fb_date")) then
leavenum=rw("leave_count")
elseif datediff("d",datevalue(rw("last_fb_date")),now)=0 then
leavenum=rw("leave_count")
elseif datediff("d",datevalue(rw("last_fb_date")),now)> 0 then
leavenum= rw("allo_count")
end if
if leavenum>0 then
if datediff("d",datevalue(rw("last_fb_date")),now)>0 then
conn.ExeCute("UPDATE house_user_zj SET leave_count=allo_count WHERE id="&session("user_id"))
end if
%> |
<%if session("zjlogin") = "ok" then%>
<%
set rw=conn.execute("select * from house_user_zj where id="&session("user_id"))
if isnull(rw("last_fb_date")) then
leavenum=rw("leave_count")
elseif datediff("d",datevalue(rw("last_fb_date")),now)=0 then
leavenum=rw("leave_count")
elseif datediff("d",datevalue(rw("last_fb_date")),now)> 0 then
leavenum= rw("allo_count")
end if
if leavenum>0 then
if datediff("d",datevalue(rw("last_fb_date")),now)>0 then
conn.ExeCute("UPDATE house_user_zj SET leave_count=allo_count WHERE id="&session("user_id"))
end if
%>
|