%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%
' *** 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_recordId
Dim MM_fieldsStr
Dim MM_columnsStr
Dim MM_fields
Dim MM_columns
Dim MM_typeArray
Dim MM_formVal
Dim MM_delim
Dim MM_altVal
Dim MM_emptyVal
Dim MM_i
MM_editAction = CStr(Request.ServerVariables("SCRIPT_NAME"))
If (Request.QueryString <> "") Then
MM_editAction = MM_editAction & "?" & Request.QueryString
End If
' boolean to abort record edit
MM_abortEdit = false
' query string to execute
MM_editQuery = ""
%>
<%
' *** Insert Record: set variables
If (CStr(Request("MM_insert")) = "form3") Then
MM_editConnection = MM_ylwdb_STRING
MM_editTable = "khtj"
MM_editRedirectUrl = "../yjok.htm"
MM_fieldsStr = "textfield|value|textfield2|value"
MM_columnsStr = "tjmail|',none,''|dymail|',none,''"
' create the MM_fields and MM_columns arrays
MM_fields = Split(MM_fieldsStr, "|")
MM_columns = Split(MM_columnsStr, "|")
' set the form values
For MM_i = LBound(MM_fields) To UBound(MM_fields) Step 2
MM_fields(MM_i+1) = CStr(Request.Form(MM_fields(MM_i)))
Next
' append the query string to the redirect URL
If (MM_editRedirectUrl <> "" And Request.QueryString <> "") Then
If (InStr(1, MM_editRedirectUrl, "?", vbTextCompare) = 0 And Request.QueryString <> "") Then
MM_editRedirectUrl = MM_editRedirectUrl & "?" & Request.QueryString
Else
MM_editRedirectUrl = MM_editRedirectUrl & "&" & Request.QueryString
End If
End If
End If
%>
<%
' *** Insert Record: construct a sql insert statement and execute it
Dim MM_tableValues
Dim MM_dbValues
If (CStr(Request("MM_insert")) <> "") Then
' create the sql insert statement
MM_tableValues = ""
MM_dbValues = ""
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
Else
If (MM_altVal <> "") Then
MM_formVal = MM_altVal
ElseIf (MM_delim = "'") Then ' escape quotes
MM_formVal = "'" & Replace(MM_formVal,"'","''") & "'"
Else
MM_formVal = MM_delim + MM_formVal + MM_delim
End If
End If
If (MM_i <> LBound(MM_fields)) Then
MM_tableValues = MM_tableValues & ","
MM_dbValues = MM_dbValues & ","
End If
MM_tableValues = MM_tableValues & MM_columns(MM_i)
MM_dbValues = MM_dbValues & MM_formVal
Next
MM_editQuery = "insert into " & MM_editTable & " (" & MM_tableValues & ") values (" & MM_dbValues & ")"
If (Not MM_abortEdit) Then
' execute the insert
Set MM_editCmd = Server.CreateObject("ADODB.Command")
MM_editCmd.ActiveConnection = MM_editConnection
MM_editCmd.CommandText = MM_editQuery
MM_editCmd.Execute
MM_editCmd.ActiveConnection.Close
If (MM_editRedirectUrl <> "") Then
Response.Redirect(MM_editRedirectUrl)
End If
End If
End If
%>
<%
Dim Recordset1
Dim Recordset1_numRows
Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_ylwdb_STRING
Recordset1.Source = "SELECT ts FROM ct GROUP BY ts"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 1
Recordset1.Open()
Recordset1_numRows = 0
%>
<%
Dim Rs_ylnews
Dim Rs_ylnews_numRows
Set Rs_ylnews = Server.CreateObject("ADODB.Recordset")
Rs_ylnews.ActiveConnection = MM_ylwdb_STRING
Rs_ylnews.Source = "SELECT ylnewstitle FROM yl_news ORDER BY YLID DESC"
Rs_ylnews.CursorType = 0
Rs_ylnews.CursorLocation = 2
Rs_ylnews.LockType = 1
Rs_ylnews.Open()
Rs_ylnews_numRows = 0
%>
<%
Dim Rs_whzynews
Dim Rs_whzynews_numRows
Set Rs_whzynews = Server.CreateObject("ADODB.Recordset")
Rs_whzynews.ActiveConnection = MM_ylwdb_STRING
Rs_whzynews.Source = "SELECT whhynewstitle FROM whzy_news ORDER BY whhy_newsID DESC"
Rs_whzynews.CursorType = 0
Rs_whzynews.CursorLocation = 2
Rs_whzynews.LockType = 1
Rs_whzynews.Open()
Rs_whzynews_numRows = 0
%>
<%
Dim Rs_msnews
Dim Rs_msnews_numRows
Set Rs_msnews = Server.CreateObject("ADODB.Recordset")
Rs_msnews.ActiveConnection = MM_ylwdb_STRING
Rs_msnews.Source = "SELECT MSnewstitle FROM ms_news ORDER BY MSID DESC"
Rs_msnews.CursorType = 0
Rs_msnews.CursorLocation = 2
Rs_msnews.LockType = 1
Rs_msnews.Open()
Rs_msnews_numRows = 0
%>
<%
Dim Rs_cdnews
Dim Rs_cdnews_numRows
Set Rs_cdnews = Server.CreateObject("ADODB.Recordset")
Rs_cdnews.ActiveConnection = MM_ylwdb_STRING
Rs_cdnews.Source = "SELECT * FROM cd_news ORDER BY cdID DESC"
Rs_cdnews.CursorType = 0
Rs_cdnews.CursorLocation = 2
Rs_cdnews.LockType = 1
Rs_cdnews.Open()
Rs_cdnews_numRows = 0
%>
<%
Dim Rs_mr
Dim Rs_mr_numRows
Set Rs_mr = Server.CreateObject("ADODB.Recordset")
Rs_mr.ActiveConnection = MM_ylwdb_STRING
Rs_mr.Source = "SELECT * FROM mr_news ORDER BY mrID DESC"
Rs_mr.CursorType = 0
Rs_mr.CursorLocation = 2
Rs_mr.LockType = 1
Rs_mr.Open()
Rs_mr_numRows = 0
%>
<%
Dim Rs_bd
Dim Rs_bd_numRows
Set Rs_bd = Server.CreateObject("ADODB.Recordset")
Rs_bd.ActiveConnection = MM_ylwdb_STRING
Rs_bd.Source = "SELECT * FROM bd_news ORDER BY bdID DESC"
Rs_bd.CursorType = 0
Rs_bd.CursorLocation = 2
Rs_bd.LockType = 1
Rs_bd.Open()
Rs_bd_numRows = 0
%>
<%
Dim Repeat2__numRows
Dim Repeat2__index
Repeat2__numRows = 5
Repeat2__index = 0
Rs_whzynews_numRows = Rs_whzynews_numRows + Repeat2__numRows
%>
<%
Dim Repeat4__numRows
Dim Repeat4__index
Repeat4__numRows = 10
Repeat4__index = 0
Rs_cdnews_numRows = Rs_cdnews_numRows + Repeat4__numRows
%>
<%
Dim MM_paramName
%>
<%
' *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters
Dim MM_keepNone
Dim MM_keepURL
Dim MM_keepForm
Dim MM_keepBoth
Dim MM_removeList
Dim MM_item
Dim MM_nextItem
' create the list of parameters which should not be maintained
MM_removeList = "&index="
If (MM_paramName <> "") Then
MM_removeList = MM_removeList & "&" & MM_paramName & "="
End If
MM_keepURL=""
MM_keepForm=""
MM_keepBoth=""
MM_keepNone=""
' add the URL parameters to the MM_keepURL string
For Each MM_item In Request.QueryString
MM_nextItem = "&" & MM_item & "="
If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then
MM_keepURL = MM_keepURL & MM_nextItem & Server.URLencode(Request.QueryString(MM_item))
End If
Next
' add the Form variables to the MM_keepForm string
For Each MM_item In Request.Form
MM_nextItem = "&" & MM_item & "="
If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then
MM_keepForm = MM_keepForm & MM_nextItem & Server.URLencode(Request.Form(MM_item))
End If
Next
' create the Form + URL string and remove the intial '&' from each of the strings
MM_keepBoth = MM_keepURL & MM_keepForm
If (MM_keepBoth <> "") Then
MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1)
End If
If (MM_keepURL <> "") Then
MM_keepURL = Right(MM_keepURL, Len(MM_keepURL) - 1)
End If
If (MM_keepForm <> "") Then
MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1)
End If
' a utility function used for adding additional parameters to these strings
Function MM_joinChar(firstItem)
If (firstItem <> "") Then
MM_joinChar = "&"
Else
MM_joinChar = ""
End If
End Function
%>
<%
Dim Repeat3__numRows
Dim Repeat3__index
Repeat3__numRows = 5
Repeat3__index = 0
Rs_msnews_numRows = Rs_msnews_numRows + Repeat3__numRows
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index
Repeat1__numRows = 5
Repeat1__index = 0
Rs_ylnews_numRows = Rs_ylnews_numRows + Repeat1__numRows
%>

最新最全的本地供应商目录
餐饮娱乐酒店供应商资料 |
厨房餐料 |
酒水饮料 |
生鲜蔬菜 |
酒店耗品 |
制服布草 |
其他原材料 |
|
正在建设!欢迎相关供应商免费加入。请点这里 提交加入资料。 |
|
|
| |
|
|
|
链接位置 |
链接位置 |
链接位置 |
链接位置 |
链接位置 |
链接位置 |
链接位置 |
链接位置 |
|
|
|
版权所有云南美食娱乐网
Copyright2000 TIDE AD Company(YUNNAN) All Rights Reserved
E-mail:01yn@163.com建议您使用800*600、IE5.0以上浏览器浏览
-------------------我想合作----我想交换链接 ---------------- |
|