<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%> <% Dim GB Dim GB_numRows Set GB = Server.CreateObject("ADODB.Recordset") GB.ActiveConnection = MM_flowerstreetConn_STRING GB.Source = "SELECT * FROM GuestBook ORDER BY GBID DESC" GB.CursorType = 0 GB.CursorLocation = 2 GB.LockType = 1 GB.Open() GB_numRows = 0 %> <% Dim Repeat1__numRows Dim Repeat1__index Repeat1__numRows = 2 Repeat1__index = 0 GB_numRows = GB_numRows + Repeat1__numRows %> <% ' *** Recordset Stats, Move To Record, and Go To Record: declare stats variables Dim GB_total Dim GB_first Dim GB_last ' set the record count GB_total = GB.RecordCount ' set the number of rows displayed on this page If (GB_numRows < 0) Then GB_numRows = GB_total Elseif (GB_numRows = 0) Then GB_numRows = 1 End If ' set the first and last displayed record GB_first = 1 GB_last = GB_first + GB_numRows - 1 ' if we have the correct record count, check the other stats If (GB_total <> -1) Then If (GB_first > GB_total) Then GB_first = GB_total End If If (GB_last > GB_total) Then GB_last = GB_total End If If (GB_numRows > GB_total) Then GB_numRows = GB_total End If End If %> <% ' *** Recordset Stats: if we don't know the record count, manually count them If (GB_total = -1) Then ' count the total records by iterating through the recordset GB_total=0 While (Not GB.EOF) GB_total = GB_total + 1 GB.MoveNext Wend ' reset the cursor to the beginning If (GB.CursorType > 0) Then GB.MoveFirst Else GB.Requery End If ' set the number of rows displayed on this page If (GB_numRows < 0 Or GB_numRows > GB_total) Then GB_numRows = GB_total End If ' set the first and last displayed record GB_first = 1 GB_last = GB_first + GB_numRows - 1 If (GB_first > GB_total) Then GB_first = GB_total End If If (GB_last > GB_total) Then GB_last = GB_total End If End If %> <% Dim MM_paramName %> <% ' *** Move To Record and Go To Record: declare variables Dim MM_rs Dim MM_rsCount Dim MM_size Dim MM_uniqueCol Dim MM_offset Dim MM_atTotal Dim MM_paramIsDefined Dim MM_param Dim MM_index Set MM_rs = GB MM_rsCount = GB_total MM_size = GB_numRows MM_uniqueCol = "" MM_paramName = "" MM_offset = 0 MM_atTotal = false MM_paramIsDefined = false If (MM_paramName <> "") Then MM_paramIsDefined = (Request.QueryString(MM_paramName) <> "") End If %> <% ' *** Move To Record: handle 'index' or 'offset' parameter if (Not MM_paramIsDefined And MM_rsCount <> 0) then ' use index parameter if defined, otherwise use offset parameter MM_param = Request.QueryString("index") If (MM_param = "") Then MM_param = Request.QueryString("offset") End If If (MM_param <> "") Then MM_offset = Int(MM_param) End If ' if we have a record count, check if we are past the end of the recordset If (MM_rsCount <> -1) Then If (MM_offset >= MM_rsCount Or MM_offset = -1) Then ' past end or move last If ((MM_rsCount Mod MM_size) > 0) Then ' last page not a full repeat region MM_offset = MM_rsCount - (MM_rsCount Mod MM_size) Else MM_offset = MM_rsCount - MM_size End If End If End If ' move the cursor to the selected record MM_index = 0 While ((Not MM_rs.EOF) And (MM_index < MM_offset Or MM_offset = -1)) MM_rs.MoveNext MM_index = MM_index + 1 Wend If (MM_rs.EOF) Then MM_offset = MM_index ' set MM_offset to the last possible record End If End If %> <% ' *** Move To Record: if we dont know the record count, check the display range If (MM_rsCount = -1) Then ' walk to the end of the display range for this page MM_index = MM_offset While (Not MM_rs.EOF And (MM_size < 0 Or MM_index < MM_offset + MM_size)) MM_rs.MoveNext MM_index = MM_index + 1 Wend ' if we walked off the end of the recordset, set MM_rsCount and MM_size If (MM_rs.EOF) Then MM_rsCount = MM_index If (MM_size < 0 Or MM_size > MM_rsCount) Then MM_size = MM_rsCount End If End If ' if we walked off the end, set the offset based on page size If (MM_rs.EOF And Not MM_paramIsDefined) Then If (MM_offset > MM_rsCount - MM_size Or MM_offset = -1) Then If ((MM_rsCount Mod MM_size) > 0) Then MM_offset = MM_rsCount - (MM_rsCount Mod MM_size) Else MM_offset = MM_rsCount - MM_size End If End If End If ' reset the cursor to the beginning If (MM_rs.CursorType > 0) Then MM_rs.MoveFirst Else MM_rs.Requery End If ' move the cursor to the selected record MM_index = 0 While (Not MM_rs.EOF And MM_index < MM_offset) MM_rs.MoveNext MM_index = MM_index + 1 Wend End If %> <% ' *** Move To Record: update recordset stats ' set the first and last displayed record GB_first = MM_offset + 1 GB_last = MM_offset + MM_size If (MM_rsCount <> -1) Then If (GB_first > MM_rsCount) Then GB_first = MM_rsCount End If If (GB_last > MM_rsCount) Then GB_last = MM_rsCount End If End If ' set the boolean used by hide region to check if we are on the last record MM_atTotal = (MM_rsCount <> -1 And MM_offset + MM_size >= MM_rsCount) %> <% ' *** 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 %> <% ' *** Move To Record: set the strings for the first, last, next, and previous links Dim MM_keepMove Dim MM_moveParam Dim MM_moveFirst Dim MM_moveLast Dim MM_moveNext Dim MM_movePrev Dim MM_urlStr Dim MM_paramList Dim MM_paramIndex Dim MM_nextParam MM_keepMove = MM_keepBoth MM_moveParam = "index" ' if the page has a repeated region, remove 'offset' from the maintained parameters If (MM_size > 1) Then MM_moveParam = "offset" If (MM_keepMove <> "") Then MM_paramList = Split(MM_keepMove, "&") MM_keepMove = "" For MM_paramIndex = 0 To UBound(MM_paramList) MM_nextParam = Left(MM_paramList(MM_paramIndex), InStr(MM_paramList(MM_paramIndex),"=") - 1) If (StrComp(MM_nextParam,MM_moveParam,1) <> 0) Then MM_keepMove = MM_keepMove & "&" & MM_paramList(MM_paramIndex) End If Next If (MM_keepMove <> "") Then MM_keepMove = Right(MM_keepMove, Len(MM_keepMove) - 1) End If End If End If ' set the strings for the move to links If (MM_keepMove <> "") Then MM_keepMove = Server.HTMLEncode(MM_keepMove) & "&" End If MM_urlStr = Request.ServerVariables("URL") & "?" & MM_keepMove & MM_moveParam & "=" MM_moveFirst = MM_urlStr & "0" MM_moveLast = MM_urlStr & "-1" MM_moveNext = MM_urlStr & CStr(MM_offset + MM_size) If (MM_offset - MM_size < 0) Then MM_movePrev = MM_urlStr & "0" Else MM_movePrev = MM_urlStr & CStr(MM_offset - MM_size) End If %> 广州花街化妆品有限公司 | 花街网 | 版权声明
 
首页 | 信息中心 | 招贤纳士 | 联系我们 | 版权声明 |
 
   

版权声明

  第一条 花街网(www.flowerstreet.com.cn)的版权与免责声明系为保证本网站的正常发展、规避意外风险而设,其初衷是为了向用户提供不间断的优质服务。因此,建议您在接受本站服务之前,请务必仔细阅读本条款。

  第二条 花街网面向全球的华人女性为主提供网络信息服务,是一个公益性非赢利性的网站。无论是驻站作者原创的作品,还是由读者投稿或转载的文章,其版权均归原作者所有,所有使用必须事先征得原作者同意,若作者有版权声明的或文章从其他网站转载而附带有原所有站的版权声明者,其版权归属以附带声明为准。

  第三条 花街网有权将在站内原创发表的文章用于包括网站、电子杂志等用途,文章有附带版权声明者除外。其它非商业性赢利性的网站或网上刊物在取得作品的原作者同意后可以转载本站原创文章,转载时请注明“稿件来源:花街网”。

  第四条 花街网所刊载的文章资料、图片、图表仅供参考使用。本网所载文章、作者文责自负,与本网站立场无关;其数据仅供参考,使用者务请核实,风险自负;所刊登的广告,均为广告客户的个人意见及表达方式,和本网无任何关系。与本网链接的广告,不得违反国家的法律规定,不得涉及色情和赌博等有害内容,一经发现本网有权予以删除,并保留与有关部门合作追究的权利。

  第五条 花街网部分由读者推荐或编辑摘引的信息内容,可能转载自其它网站或报刊,它们的版权属原作者或出版人所有。花街网转载这些文章是出于传递更多信息之目的,并不代表花街网故意侵犯原作者或出版人的版权和利益。花街网尊重知识产权,要求所有转载文章均需注明作者和来源。但有时由于特殊的原因,比如作者姓名或出处在转载之前已经丢失,或者未能及时与作者取得联系等,因而可能没有注明作者的姓名或出处。花街网在此郑重申明对原作者和出版人的尊重和感谢,并以宣传原作者和出版人作为回报。如果原作者或出版人对此有任何异议,请在两周内速来信与我们联系(fsbtb@21cn.net),我们定当聆听您的意见并遵旨酌办。

  第六条 用户在本网站公共论坛、写者部落或博客风发布内容时,请严格遵守《中华人民共和国版权法》,任何转载或转贴都应注明真实作者和真实出处。本网站既鼓励用户以原创写作,也鼓励用户通过张贴文章、“摘要+超链接”以及转贴的方式推荐转载文章,如果作者对版权有异议,本站核实后将及时删除。本站郑重提醒注册用户:在转载时请务必尊重该内容的版权、著作权。

  第七条 花街网不保证为向用户提供便利而设置的外部链接的准确性和完整性,也不保证从这些网站获取的任何内容、产品、服务或其他材料的真实性、合法性,对于任何因使用或信赖从此类网站或资源上获取的内容、产品、服务或其他材料而造成(或声称造成)的任何直接或间接损失,本站均不承担任何责任。

  第八条 用户在本站注册时,本网站将在您的同意及确认下,通过注册表格等形式要求您提供一些个人资料,如:您的姓名、性别、年龄、出生日期、身份证号、家庭住址、教育程度、公司情况、所属行业等。本网站敬请用户绝对放心:在未经用户本人同意的情况下,本站绝对不会将用户的任何资料以任何方式泄露给任何一方。但当政府部门、司法机关依照法定程序要求本网站披露个人资料时,本站将根据执法单位之要求或为公共安全之目的提供个人资料。在此情况下之任何披露,本网站均得免责。

  第九条 任何由于计算机2000年问题、黑客攻击、计算机病毒侵入或发作,因政府管制而造成的暂时性关闭等影响网络正常浏览的不可抗力而造成的个人资料泄露、丢失、被盗用或被窜改等,本网站均得免责。如因系统维护或升级而需暂停服务时,将事先公告。若因线路及非本网站控制范围外的硬件故障或其它不可抗力而导致暂停服务,于暂停服务期间造成的一切不便与损失,本网站不负任何责任。

  第十条 凡以任何方式登陆本网站或直接、间接使用本网站资料者,视为自愿接受本网站声明的约束。

  第十一条 本声明未涉及的问题参见国家有关法律法规,当本声明与国家法律法规冲突时,以国家法律法规为准。本声明的修改及更新权均属于花街工作室所有。

版权所有@花街化妆品有限公司
Http://www.flowerstreet.com.cn