%@ LANGUAGE = VBSCRIPT %>
<% OPTION EXPLICIT %>
<%
'*************************************************************
'PageName: zjjsxx.asp
'Version: VER 1.0
'Author: AspMaker 3.0
'Create Date: 2007/02/26 09:31:37
'Description: 专家详细
'*************************************************************
%>
<%
'================================================================================
' 1. Initial Workspace
'================================================================================
Const GCSTR_MENU_NAME = "会议征文"
Call InitialWorkspace("..", PAGE_WSBM_WSTG, True, False)
'================================================================================
' 2. Define All Variable
'================================================================================
Dim strSgnCod
Dim strSgnNam
Dim strLnkTel
Dim strLnkFil
Dim strConExp
Dim strSgnUni
Dim strEmlAdd
Dim strSigFlg
Dim strTypArr
Dim intLoop
'================================================================================
' 3. Get Current Data From PrePage
'================================================================================
Call GetCurrentData()
'================================================================================
' 4. Export Current HTML View for Head Part
'================================================================================
Call ExportHTMLHeader("欢迎访问第三届左主干暨冠状动脉分叉病变峰会")
'================================================================================
' 5. Do Processing and Redirect to Other Page
'================================================================================
Call DoProcessing()
'================================================================================
' 6. Display Current Page or Redirect to Other Page
'================================================================================
If Need2Redirect() = True Then
Call Redirect()
Else
Call SetCurrentData()
Call ExportHTMLBody()
End If
'================================================================================
' 7. Export Current HTML View for Foot Part
'================================================================================
Call ExportHTMLTail()
'================================================================================
' 8. Release Workspace
'================================================================================
Call ReleaseWorkspace()
%>
<%
'================================================================================
' 9. Data Process Functions
'================================================================================
Function GetCurrentData()
strSgnNam = Trim(GetFieldValue("idSgnNam"))
strLnkTel = Trim(GetFieldValue("idLnkTel"))
strConExp = Trim(GetFieldValue("idConExp"))
strSgnUni = Trim(GetFieldValue("idSgnUni"))
strEmlAdd = Trim(GetFieldValue("idEmlAdd"))
Dim staDat
Dim endDat
staDat = GetSetInfo("STADAT")
endDat = GetSetInfo("ENDDAT")
If doCheckValue(staDat) and doCheckValue(endDat) Then
If staDat <= GetCurrentDate() and endDat >= GetCurrentDate() Then
strSigFlg = True
End If
End If
End Function
Function SetCurrentData()
End Function
Function DoProcessing()
Select Case GetCommand()
Case WSBM_WSTG_WSBM_WSTG_OK:
Call DoOkProcessing()
Case ERROR_CURRENT_RETURN:
Call DoErrorReturn()
Case Else:
Call SetRedirectInfo("", "")
End Select
End Function
Function DoOkProcessing()
strLnkFil = GetPicNam1()
Call SetPicNam("")
Call SetPicDiv("")
Call SetPicNam1("")
Call SetPicNam2("")
Call SetPicNam3("")
Call SetPicNam4("")
Call SetLnkAdd("")
' 1. Check从画面获取的数据
Call AddCheckElement("姓名", strSgnNam, True, True, 1, 32, False, CHECK_TYPE_NONE)
Call AddCheckElement("单位", strSgnUni, True, True, 1,255, False, CHECK_TYPE_NONE)
Call AddCheckElement("电话", strLnkTel, True, True, 1, 64, False, CHECK_TYPE_NONE)
Call AddCheckElement("邮箱", strEmlAdd, True, True, 1,255, False, CHECK_TYPE_NONE)
Call AddCheckElement("文件", strLnkFil, True, True, 1, 64, False, CHECK_TYPE_NONE)
'Call AddCheckElement("说明", strConExp, True, True, 1,255, False, CHECK_TYPE_NONE)
If DoCheck() = False Then
Call SetErrorMsgs(GetCheckErrMsg())
Call SetRedirectInfo(PAGE_ERROR_ERROR, "")
Exit Function
End If
' 2. 保存数据到数据库
Dim strSQL
' 插入数据
strSQL = "INSERT INTO CONINF(SGNNAM, SGNUNI, LNKTEL, EMLADD, LNKFIL, CONEXP, CRETIM) VALUES(" & _
"'" & FilterSQL(strSgnNam) & "', " & _
"'" & FilterSQL(strSgnUni) & "', " & _
"'" & FilterSQL(strLnkTel) & "', " & _
"'" & FilterSQL(strEmlAdd) & "', " & _
"'" & FilterSQL(strLnkFil) & "', " & _
"'" & FilterSQL(strConExp) & "', " & _
" NOW() ) "
If ExecuteUpdateSQL(strSQL) = False Then
Call SetErrorMsg(ERR_MSG_COM_001)
Call SetRedirectInfo(PAGE_ERROR_ERROR, "")
Exit Function
End If
Call SetRedirectInfo("wsbm/wstgts.asp", "")
End Function
Function DoErrorReturn()
End Function
%>
<%
'================================================================================
' 10. HTML View Functions
'================================================================================
%>
<%Function ExportMeta()%>
<%End Function%>
<%Function ExportScriptBody()%>
<%End Function%>
<%Function ExportStyleBody()%>
<%End Function%>
<%Function ExportBodyHead()%>
<%End Function%>
<%Function ExportHTMLBody()%>
<% 'HTML BLOCK BEGIN %>
<% If strSigFlg Then %>
<% Else %>
<% End If %>
|
<% 'HTML BLOCK END %>
<%End Function%>
<%Function ExportTailScriptBody()%>
<%End Function%>