Cls_SysConfig.asp
上传用户:jisenq
上传日期:2014-06-29
资源大小:7216k
文件大小:7k
源码类别:

数据库编程

开发平台:

ASP/ASPX

  1. <%'Copyright (c) 2006 Foosun Inc. Code by Einstein.Liu
  2. Class Cls_SysConfig
  3. private MF_ID,MF_Domain,MF_SiteName,MF_eMail,MF_Soft_Version,MF_Copyright_Info,MF_Site_lock,MF_UpFile_Type,MF_UpFile_Size,MF_Index_templet,MF_Index_File_Name,MF_WriteType
  4. private MF_Mail_Server,MF_Mail_Name,MF_Mail_Pass_word,MF_Index_Refresh,MF_Class_Refresh,MF_Write_Type,MF_Date_Path,MF_Copy_Right,MF_login_style,f_MF_Encript_SN
  5. private p_Save_Rs,strShowErr
  6. private MF_picClassid,MF_markType,MF_markText,MF_markFontSize,MF_markFontColor,MF_markFontName,MF_markFontBond,MF_markPicture,MF_markOpacity,MF_MarkTranspColor,MF_markWidth,MF_markHeight,MF_markPosition
  7. '缩略图功能参数
  8. private MF_thumbnailComponent,MF_rateTF,MF_thumbnailWidth,MF_thumbnailHeight,MF_thumbnailRate
  9. public function getSysParam()
  10. Dim sysRs,sqlStatement
  11. Set sysRs=Server.CreateObject(G_FS_RS)
  12. sqlStatement="select ID,MF_Domain,MF_Site_Name,MF_eMail,MF_Soft_Version,MF_Encript_SN,MF_Copyright_Info,MF_Site_lock,MF_UpFile_Type,MF_UpFile_Size,MF_Index_Templet,MF_Index_File_Name,MF_Mail_Server,MF_Mail_Name,MF_Mail_Pass_Word,MF_Index_Refresh,MF_Class_Refresh,MF_Login_style,MF_writeType,MarkType,MarkText,MarkFontSize,MarkFontColor,MarkFontName,MarkFontBond,MarkPicture,MarkOpacity,MarkWidth,MarkHeight,MarkTranspColor,MarkPosition,ThumbnailComponent,RateTF,ThumbnailWidth,ThumbnailHeight,ThumbnailRate,PicClassid from FS_MF_Config"
  13. sysRs.open sqlStatement,Conn,1,3
  14. MF_ID=sysRs("ID")
  15. f_MF_Encript_SN = sysRs("MF_Encript_SN")
  16. MF_Domain=sysRs("MF_Domain")
  17. MF_SiteName=sysRs("MF_Site_Name")
  18. MF_eMail=sysRs("MF_eMail")
  19. MF_Soft_Version=sysRs("MF_Soft_Version")
  20. MF_Copyright_Info=sysRs("MF_Copyright_Info")
  21. MF_Site_lock=sysRs("MF_Site_lock")
  22. MF_UpFile_Type=sysRs("MF_UpFile_Type")
  23. MF_UpFile_Size=sysRs("MF_UpFile_Size")
  24. MF_Index_Templet=sysRs("MF_Index_Templet")
  25. MF_Index_File_Name=sysRs("MF_Index_File_Name")
  26. MF_Mail_Server=sysRs("MF_Mail_Server")
  27. MF_Mail_Name=sysRs("MF_Mail_Name")
  28. MF_Mail_Pass_Word=sysRs("MF_Mail_Pass_Word")
  29. MF_Index_Refresh=sysRs("MF_Index_Refresh")
  30. MF_Class_Refresh=sysRs("MF_Class_Refresh")
  31. MF_Login_style=sysRs("MF_Login_style")
  32. MF_WriteType=sysRs("MF_WriteType")
  33. MF_MarkType=sysRs("MarkType")
  34. MF_MarkText=sysRs("MarkText")
  35. MF_MarkFontSize=sysRs("MarkFontSize")
  36. MF_MarkFontColor=sysRs("MarkFontColor")
  37. MF_MarkFontName=sysRs("MarkFontName")
  38. MF_MarkFontBond=sysRs("MarkFontBond")
  39. MF_MarkPicture=sysRs("MarkPicture")
  40. MF_MarkOpacity=sysRs("MarkOpacity")
  41. MF_MarkWidth=sysRs("MarkWidth")
  42. MF_MarkHeight=sysRs("MarkHeight")
  43. MF_MarkTranspColor=sysRs("MarkTranspColor")
  44. MF_MarkPosition=sysRs("MarkPosition")
  45. MF_ThumbnailComponent=sysRs("ThumbnailComponent")
  46. MF_RateTF=sysRs("RateTF")
  47. MF_ThumbnailWidth=sysRs("ThumbnailWidth")
  48. MF_ThumbnailHeight=sysRs("ThumbnailHeight")
  49. MF_ThumbnailRate=sysRs("ThumbnailRate")
  50. MF_PicClassid=sysRs("PicClassid")
  51. End function
  52. public property get id()'系统参数id(基本不用,该记录只有一条)
  53. id=MF_ID
  54. end property
  55. public property get MF_Encript_SN()
  56. MF_Encript_SN=f_MF_Encript_SN
  57. end property
  58. public property get domain()'系统主域名
  59. domain=MF_Domain
  60. end property
  61. public property get sitename()'系统子域名
  62. sitename=MF_SiteName
  63. end property
  64. public property get email()'
  65. email=MF_eMail
  66. end property
  67. public property get soft_version()'系统版本号
  68. Soft_Version=MF_Soft_Version
  69. end property
  70. public property get copyright_info()'系统版权信息
  71. copyright_info=MF_Copyright_Info
  72. end property
  73. public property get site_lock()'站点锁定
  74. site_lock=MF_Site_lock
  75. end property
  76. public property get upFile_type()
  77. upFile_type=MF_upFile_type
  78. end property
  79. public property get upFile_Size()
  80. upFile_Size=MF_UpFile_Size
  81. end property
  82. public property get index_Templet()'系统首页模板
  83. index_Templet=MF_Index_Templet
  84. end property
  85. public property get index_File_Name()'系统首页模板
  86. index_File_Name=MF_Index_File_Name
  87. end property
  88. public property get mail_Server()'系统邮件服务器
  89. mail_Server=MF_Mail_Server
  90. end property
  91. public property get mail_Name()
  92. mail_Name=MF_Mail_Name
  93. end property
  94. public property get mail_Pass_Word()'邮件服务器登陆密码
  95. mail_Pass_Word=MF_Mail_Pass_Word
  96. end property
  97. public property get index_Refresh()'首页自动刷新间隔时间,单位分钟(-1不自动刷新,0为立即刷新,其他值为刷新时间的间隔:例如,5就为5分钟)
  98. index_Refresh=MF_Index_Refresh
  99. end property
  100. public property get class_Refresh()'栏目自动刷新间隔时间,单位分钟(-1不自动刷新,0为立即刷新,其他值为刷新时间的间隔:例如,5就为5分钟)
  101. class_Refresh=MF_Class_Refresh
  102. end property
  103. public property get login_style()'登陆风格
  104. login_style=MF_Login_style
  105. end property
  106. public property get writeType()
  107. writeType=MF_WriteType
  108. end property
  109. '--------组件参数---------------------------------
  110. public property get picClassid()'水印组件
  111. picClassid=MF_picClassid
  112. end property
  113. public property get markType()'水印类型(文字,图片)
  114. markType=MF_MarkType
  115. end property
  116. public property get markText()'水印文字
  117. markText=MF_MarkText
  118. end property
  119. public property get markFontSize()'水印文字大小
  120. markFontSize=MF_MarkFontSize
  121. end property
  122. public property get markFontColor()'水印文字颜色
  123. markFontColor=MF_MarkFontColor
  124. end property
  125. public property get markFontName()'水印文字字体
  126. markFontName=MF_MarkFontName
  127. end property
  128. public property get markFontBond()'水印文字是否粗体
  129. markFontBond=MF_MarkFontBond
  130. end property
  131. public property get markPicture()'水印图片
  132. markPicture=MF_MarkPicture
  133. end property
  134. public property get markOpacity()'水印图片透明度
  135. markOpacity=MF_MarkOpacity
  136. end property
  137. public property get markWidth()'水印图片透明度
  138. markWidth=MF_MarkWidth
  139. end property
  140. public property get markHeight()'水印图片透明度
  141. markHeight=MF_MarkHeight
  142. end property
  143. public property get markTranspColor()'水印图片去除底色
  144. markTranspColor=MF_MarkTranspColor
  145. end property
  146. public property get markPosition()'水印位置
  147. markPosition=MF_MarkPosition
  148. end property
  149. '缩略图组件-----------------------
  150. public property get thumbnailComponent()'缩略图组件
  151. thumbnailComponent=MF_ThumbnailComponent
  152. end property
  153. public property get rateTF()'是否按比例生成缩略图
  154. rateTF=MF_RateTF
  155. end property
  156. public property get thumbnailWidth()'缩略图宽度
  157. thumbnailWidth=MF_ThumbnailWidth
  158. end property
  159. public property get thumbnailHeight()'缩略图高度
  160. thumbnailHeight=MF_ThumbnailHeight
  161. end property
  162. public property get thumbnailRate()'缩略图缩放比例
  163. thumbnailRate=MF_ThumbnailRate
  164. end property
  165. End class
  166. %>