说明: 本程序系统完全实现了医院网站程序的全部功能的前台和后台程序,当然也有需要测试的地方,经测试完全可用 (This procedure system is fully web implementation procedures of the hospital all of the features of Front Desk procedures and background, of course, there is need to test the place, tested fully available)
<%
'**************************************************************
' Software name: PowerEasy SiteWeaver
' Web: http://www.powereasy.net
' Copyright (C) 2005-2008 佛山市动易网络科技有限公司 版权所有
'**************************************************************
If CheckUserLogined() = False Then
Call CloseConn
Response.Redirect "User_Login.asp"
End If
Call Read
If FoundErr = True Then
Call WriteErrMsg(ErrMsg, ComeUrl)
End If
Call CloseConn
Sub Read()
Dim MessageID, rs, rsNext, NextID, NextSender
MessageID = PE_CLng(Trim(Request("MessageID")))
If MessageID = 0 Then
FoundErr = True
ErrMsg = ErrMsg & "
指定的短消息ID错误!
"
Exit Sub
End If
Conn.Execute ("update PE_Message set Flag=1 where Incept='" & UserName & "' and ID=" & MessageID)
Conn.Execute ("update PE_User set UnreadMsg=UnreadMsg-1 where UserName='" & UserName & "'")
Set rsNext = Conn.Execute("select ID,Sender from PE_Message where Incept='" & UserName & "' and Flag=0 and IsSend=1 and ID>" & MessageID & " order by SendTime")
If Not (rsNext.BOF And rsNext.EOF) Then
NextID = rsNext(0)
NextSender = rsNext(1)
End If
Set rsNext = Nothing
Set rs = Conn.Execute("select * from PE_Message where (Incept='" & UserName & "' or Sender='" & UserName & "') and ID=" & MessageID)
If rs.BOF And rs.EOF Then
FoundErr = True
ErrMsg = ErrMsg & "
找不到指定的短消息
"
Set rs = Nothing
Exit Sub
End If
Response.Write ""
Response.Write ""
Response.Write "阅读短消息"
Response.Write ""
Response.Write ""
Response.Write ""
Response.Write "