网站分析报告(doc28)-其他行业报告(编辑修改稿)内容摘要:

b. 留言版数据源连接代码: % 39。 FileName= 39。 Type=ADO 39。 DesigntimeType=ADO 39。 HTTP=false 39。 Catalog= 39。 Schema= Dim MM_guestbook_STRING MM_guestbook_STRING = Driver={Microsoft Access Driver (*.mdb)}。 Dbq=C:\Ipub\root\abc\。 Uid=Admin。 Pwd=pass。 % (2). 页面数据连接实现 a. 登陆页面表单实现部分: 用户名: input name=textfield type=text /p p amp。 nb 中国最大的管 理 资料下载中心 (收集 \整理 . 大量免费资源共享 ) 第 9 页 共 27 页 sp。 密 码: input name=textfield2 type=password /p pa href= 返回 /a amp。 nbsp。 amp。 nbsp。 input type=submit name=Submit value=站长登陆 b. 登陆页面数据连接部分: %@LANGUAGE=VBSCRIPT% !include file=../Connections/ % Dim Recordset1 Dim Recordset1_numRows Set Recordset1 = () = MM_gengxinmima_STRING = SELECT * FROM 表 1 ORDER BY 用户名 ASC = 0 = 2 = 1 () Recordset1_numRows = 0 % % 39。 *** Validate request to log in to this site. MM_LoginAction = (URL) If Then MM_LoginAction = MM_LoginAction + ? + () MM_valUsername=CStr((textfield)) If MM_valUsername Then MM_fldUserAuthorization= MM_redirectLoginSuccess= MM_redirectLoginFailed= MM_flag= set MM_rsUser = (MM_flag) = MM_gengxinmima_STRING = SELECT 用户名 , 密码 If MM_fldUserAuthorization Then = amp。 , amp。 MM_fldUserAuthorization = amp。 FROM 表 1 WHERE 用户名 =39。 amp。 Replace(MM_valUsername,39。 ,39。 39。 ) amp。 39。 AND 密码 =39。 amp。 Replace((textfield2),39。 ,39。 39。 ) amp。 39。 = 0 = 2 = 3 If Not Or Not Then 39。 username and password match this is a valid user Session(MM_Username) = MM_valUsername If (MM_fldUserAuthorization ) Then Session(MM_UserAuthorization) = CStr((MM_fldUserAuthorization).Value) Else Session(MM_UserAuthorization) = End If if CStr((accessdenied)) And false Then 中国最大的管 理 资料下载中心 (收集 \整理 . 大量免费资源共享 ) 第 10 页 共 27 页 MM_redirectLoginSuccess = (accessdenied) End If (MM_redirectLoginSuccess) End If (MM_redirectLoginFailed) End If % c. 更新密码表单实现部分: table align=center tr valign=baseline td nowrap align=right用户名 :/td td input type=text name=Element value=%=(( 用 户 名).Value)% size=32 /td /tr tr valign=baseline td nowrap align=right密码 :/td td input type=password name=Element2 value=%=(( 密码).Value)% size=32 /td /tr tr valign=baseline td nowrap align=right /td td input type=submit value=更新记录 /td /tr /table input type=hidden name=MM_update value=form1 input type=hidden name=MM_recordId value=%= ( 用 户 名).Value % d. 更新密码数据连接部分: %@LANGUAGE=VBSCRIPT% !include file=../Connections/ % 39。 *** Edit Operations: declare variables Dim MM_editAction Dim MM_abortEdit Dim MM_editQuery Dim MM_editCmd Dim MM_editConnection Dim MM_editTable Dim MM_editRedirectUrl Dim MM_editColumn Dim MM_recorded Dim MM_fieldsStr Dim MM_columnsStr Dim MM_fields Dim MM_columns Dim MM_typeArray Dim MM_formVal Dim MM_delim 中国最大的管 理 资料下载中心 (收集 \整理 . 大量免费资源共享 ) 第 11 页 共 27 页 Dim MM_altVal Dim MM_emptyVal Dim MM_i MM_editAction = CStr((SCRIPT_NAME)) If ( ) Then MM_editAction = MM_editAction amp。 ? amp。 () End If boolean to abort record edit MM_abortEdit = false query string to execute MM_editQuery = % % 39。 *** Update Record: set variables If (CStr(Request(MM_update)) = form1 And CStr(Request(MM_recordId)) ) Then MM_editConnection = MM_gengxinmima_STRING MM_editTable = 表 1 MM_editColumn = 用户名 MM_recordId = 39。 + (MM_recordId) + 39。 MM_editRedirectUrl = MM_fieldsStr = Element|value|Element2|value MM_columnsStr = 用户名 |39。 ,none,39。 39。 |密码 |39。 ,none,39。 39。 39。 create the MM_fields and MM_columns arrays MM_fields = Split(MM_fieldsStr, |) MM_columns = Split(MM_columnsStr, |) 39。 set the form values For MM_i = LBound(MM_fields) To UBound(MM_fields) Step 2 MM_fields(MM_i+1) = CStr((MM_fields(MM_i))) Next append the query string to the redirect URL If (MM_editRedirectUrl And ) Then If (InStr(1, MM_editRedirectUrl, ?, vbTextCompare) = 0 And ) Then MM_editRedirectUrl = MM_editRedirectUrl amp。 ? amp。 Else MM_editRedirectUrl = MM_editRedirectUrl amp。 amp。 amp。 End If End If End If % % 39。 *** Update Record: construct a sql update statement and execute it If (CStr(Request(MM_update)) And CStr(Request(MM_recordId)) ) Then create the sql update statement MM_editQuery = update amp。 MM_editTable amp。 set For MM_i = LBound(MM_fields) To UBound(MM_fields) Step 2 MM_formVal = MM_fields(MM_i+1) MM_typeArray = Split(MM_columns(MM_i+1),) MM_delim = MM_typeArray(0) If (MM_delim = none) Then MM_delim = MM_altVal = MM_typeArray(1) If (MM_altVal = none) Then MM_altVal = MM_emptyVal = MM_typeArray(2) If (MM_emptyVal = none) Then MM_emptyVal = If (MM_formVal = ) Then MM_formVal = MM_emptyVal 中国最大的管 理 资料下载中心 (收集 \整理 . 大量免费资源共享 ) 第 12 页 共 27 页 Else If (MM_altVal ) Then MM_formVal = MM_altVal ElseIf (MM_de。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。