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

数据库编程

开发平台:

ASP/ASPX

  1. <% Option Explicit %>
  2. <!--#include file="../FS_Inc/Const.asp" -->
  3. <!--#include file="../FS_InterFace/MF_Function.asp" -->
  4. <!--#include file="../FS_Inc/Function.asp" -->
  5. <!--#include file="../FS_Inc/Cls_Cache.asp" -->
  6. <!--#include file="../FS_Inc/Cls_SysConfig.asp"-->
  7. <%
  8. Response.Buffer = True
  9. Response.Expires = -1
  10. Response.ExpiresAbsolute = Now() - 1
  11. Response.Expires = 0
  12. Response.CacheControl = "no-cache"
  13. Dim Conn,sysObj
  14. MF_Default_Conn
  15. MF_Session_TF
  16. if not MF_Check_Pop_TF("MF_SysSet") then Err_Show
  17. Set sysObj=New Cls_SysConfig
  18. sysObj.getSysParam()
  19. Dim p_SiteDoMain,p_SiteName,p_SiteMail,p_UpFile_Type,p_UpFile_Size,p_Index_templet,p_Index_Name
  20. Dim p_Mail_Server,p_Mail_Name,p_Mail_Pass,p_Index_Refresh,p_Class_Refresh,p_Write_Type,p_Date_Path,p_Copy_Right,p_login_style,p_WriteType,MF_Encript_SN
  21. DIm p_Save_Rs,strShowErr
  22. '水印组件参数
  23. Dim p_picClassid,p_markType,p_markText,p_markFontSize,p_markFontColor,p_markFontName,p_markFontBond,p_markPicture,p_markOpacity,p_markTranspColor,p_markWidth,p_markHeight,p_markPosition
  24. '缩略图功能参数
  25. Dim  p_thumbnailComponent,p_rateTF,p_thumbnailWidth,p_thumbnailHeight,p_thumbnailRate
  26. If Request.Form("Action")="Save" Then
  27. MF_Encript_SN   = Request.form("MF_Encript_SN")
  28. p_SiteDoMain = Request.form("SiteDoMain")
  29. p_SiteName = Request.form("SiteName")
  30. p_SiteMail = Request.form("SiteMail")
  31. p_UpFile_Type = Request.form("UpFile_Type")
  32. p_UpFile_Size = Request.form("UpFile_Size")
  33. p_Index_templet = Request.form("Index_templet")
  34. p_Index_Name = Request.form("Index_Name")
  35. p_Mail_Server = Request.form("Mail_Server")
  36. p_Mail_Name = Request.form("Mail_Name")
  37. p_Mail_Pass = Request.form("Mail_Pass")
  38. p_Index_Refresh = Request.form("Index_Refresh")
  39. p_Class_Refresh = Request.form("Class_Refresh")
  40. p_Write_Type = Request.form("Write_Type")
  41. p_Date_Path = Request.form("Date_Path")
  42. p_Copy_Right = Request.form("Copy_Right")
  43. p_login_style = Request.form("MF_Login_style")
  44. p_WriteType     =request.Form("Write_Type")
  45. p_picClassid    =Request.Form("sel_PicClassid")
  46. if p_picClassid<>"9" then
  47. p_markType=Request.Form("sel_MarkType")
  48. p_markText=Request.Form("txt_MarkText")
  49. p_markFontSize=Request.Form("txt_MarkFontSize")
  50. p_markFontColor=Request.Form("txt_MarkFontColor")
  51. p_markFontName=Request.Form("sel_MarkFontName")
  52. p_markFontBond=Request.Form("rad_MarkFontBond")
  53. p_markPicture=Request.Form("txt_MarkPicture")
  54. p_markOpacity=Request.Form("txt_MarkOpacity")
  55. p_markTranspColor=Request.Form("txt_MarkTranspColor")
  56. p_markWidth=Request.Form("txt_MarkWidth")
  57. p_markHeight=Request.Form("txt_MarkHeight")
  58. p_markPosition=Request.Form("sel_MarkPosition")
  59. End if
  60. p_thumbnailComponent=Request.Form("sel_thumbnailComponent")
  61. if p_thumbnailComponent<>"-1" then
  62. p_rateTF=Request.Form("rad_rateTF")
  63. if p_rateTF=1 then
  64. p_thumbnailRate=Request.Form("txt_thumbnailRate")
  65. Else
  66. p_thumbnailWidth=Request.Form("txt_thumbnailWidth")
  67. p_thumbnailHeight=Request.Form("txt_thumbnailHeight")
  68. End if
  69. End if
  70. Set p_Save_Rs = CreateObject(G_FS_RS)
  71. p_Save_Rs.Open "select * from FS_MF_Config",Conn,3,3
  72. If p_Save_Rs.Eof Then
  73. p_Save_Rs.AddNew
  74. End If
  75. p_Save_Rs("MF_Encript_SN") = MF_Encript_SN
  76. p_Save_Rs("MF_Domain")  = p_SiteDoMain
  77. p_Save_Rs("MF_Site_Name") = p_SiteName
  78. p_Save_Rs("MF_eMail") = p_SiteMail
  79. p_Save_Rs("MF_UpFile_Type") = p_UpFile_Type
  80. p_Save_Rs("MF_UpFile_Size")     = p_UpFile_Size
  81. p_Save_Rs("MF_Index_Templet") = p_Index_templet
  82. p_Save_Rs("MF_Index_File_Name") = p_Index_Name
  83. p_Save_Rs("MF_Mail_Server") = p_Mail_Server
  84. p_Save_Rs("MF_Mail_Name") = p_Mail_Name
  85. p_Save_Rs("MF_Mail_Pass_Word") = p_Mail_Pass
  86. p_Save_Rs("MF_Index_Refresh") = p_Index_Refresh
  87. p_Save_Rs("MF_Class_Refresh") = p_Class_Refresh
  88. p_Save_Rs("MF_Copyright_Info") = p_Copy_Right
  89. p_Save_Rs("MF_WriteType")     = p_WriteType
  90. p_Save_Rs("MF_Login_style")     = p_login_style
  91. p_Save_Rs("PicClassid")      = p_picClassid
  92. if p_picClassid<>"9" then
  93. p_Save_Rs("MarkType")=p_markType
  94. p_Save_Rs("MarkText")=p_markText
  95. p_Save_Rs("MarkFontSize")=p_markFontSize
  96. p_Save_Rs("MarkFontColor")=p_markFontColor
  97. p_Save_Rs("MarkFontName")=p_markFontName
  98. p_Save_Rs("MarkFontBond")=p_markFontBond
  99. p_Save_Rs("MarkPicture")=p_markPicture
  100. p_Save_Rs("MarkOpacity")=p_markOpacity
  101. p_Save_Rs("MarkWidth")=p_markWidth
  102. p_Save_Rs("MarkHeight")=p_markHeight
  103. p_Save_Rs("MarkTranspColor")=p_markTranspColor
  104. p_Save_Rs("MarkPosition")=p_markPosition
  105. end if
  106. p_Save_Rs("ThumbnailComponent")=p_thumbnailComponent
  107. if p_thumbnailComponent<>"9" then
  108. p_Save_Rs("RateTF")=p_rateTF
  109. p_Save_Rs("ThumbnailWidth")=p_thumbnailWidth
  110. p_Save_Rs("ThumbnailHeight")=p_thumbnailHeight
  111. p_Save_Rs("ThumbnailRate")=p_thumbnailRate
  112. End if
  113. p_Save_Rs.Update
  114. p_Save_Rs.Close
  115. Set p_Save_Rs = Nothing
  116. MFConfig_Cookies
  117. Call MF_Insert_oper_Log("参数设置","更改了参数设置",now,session("admin_name"),"MF")
  118. strShowErr = "<li>修改成功</li>"
  119. Response.Redirect("Success.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl="&server.URLEncode("Changeskin.asp?Style_num="&p_login_style&"&RURL=SysParaSet.asp"))
  120. Response.end
  121. End If
  122. Conn.Close
  123. Set Conn = Nothing
  124. %>
  125. <html xmlns="http://www.w3.org/1999/xhtml">
  126. <HEAD>
  127. <TITLE>FoosunCMS</TITLE>
  128. <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
  129. </HEAD>
  130. <script language="JavaScript" src="../FS_Inc/PublicJS.js" type="text/JavaScript"></script>
  131. <script language="javascript" src="../FS_Inc/prototype.js" type="text/javascript"></script>
  132. <script language="javascript">
  133. function mycheck()
  134. {
  135. if(document.SysPara.SiteDoMain.value=="")
  136. {
  137. alert("请输入域名!");
  138. document.SysPara.SiteDoMain.focus();
  139. return false;
  140. }
  141. else
  142. {
  143.     return true;
  144. }
  145. }
  146. </script>
  147. <link href="images/skin/Css_<%=Session("Admin_Style_Num")%>/<%=Session("Admin_Style_Num")%>.css" rel="stylesheet" type="text/css">
  148. <BODY LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 scroll=yes>
  149. <iframe width="260" height="165" id="colorPalette" src="CommPages/selcolor.htm" style="visibility:hidden; position: absolute;border:1px gray solid" frameborder="0" scrolling="no" ></iframe>
  150. <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table">
  151.   <form action="?Act=Save" method="post" name="SysPara" id="SysPara" onSubmit="return mycheck()">
  152.     <tr class="hback"> 
  153.       <td colspan="2" align="right" class="xingmu"><div align="left">系统参数设置</div></td>
  154.     </tr>
  155.     <tr class="hback"> 
  156.       <td width="140" align="right">本站域名:</td>
  157.       <td> <input type="text" name="SiteDoMain" value="<%=sysObj.DoMain%>" size="50" />
  158.         <br>
  159.         不要带http:// ,如果有虚拟目录,后面请带虚拟目录:如:www.foosun.cms/cms</td>
  160.     </tr>
  161.     <tr class="hback"> 
  162.       <td align="right">站点名称:</td>
  163.       <td> <input type="text" name="SiteName" value="<%=sysObj.SiteName%>" size="50" />      </td>
  164.     </tr>
  165.     <tr class="hback"> 
  166.       <td align="right">序列号:</td>
  167.       <td> <input type="text" name="MF_Encript_SN" value="<%=sysObj.MF_Encript_SN%>" size="50" />      </td>
  168.     </tr>
  169.     <tr class="hback"> 
  170.       <td align="right">站长信箱:</td>
  171.       <td> <input type="text" name="SiteMail" value="<%=sysObj.eMail%>" size="50" />      </td>
  172.     </tr>
  173.     <tr class="hback"> 
  174.       <td align="right">允许上传文件类型:</td>
  175.       <td> <input type="text" name="UpFile_Type" value="<%=sysObj.upFile_type%>" size="50" />      </td>
  176.     </tr>
  177.     <tr class="hback"> 
  178.       <td align="right">允许上传文件大小:</td>
  179.       <td> <input type="text" name="UpFile_Size" value="<%=sysObj.upFile_Size%>" size="50" onChange="if(/D/.test(this.value)){alert('只能输入非负整数');this.value='';}"/>
  180.         kb </td>
  181.     </tr>
  182.     <tr class="hback"> 
  183.       <td align="right">首页模版文件:</td>
  184.       <td> <input type="text" name="Index_templet" value="<%=sysObj.Index_templet%>" size="50" readonly="true" /> 
  185.         <input type="button" name="Submit3" value="选择模板" onClick="OpenWindowAndSetValue('CommPages/SelectManageDir/SelectTemplet.asp?CurrPath=<%=Add_Root_Dir(G_TEMPLETS_DIR) %>',400,300,window,document.SysPara.Index_templet);document.SysPara.Index_templet.focus();">      </td>
  186.     </tr>
  187.     <tr class="hback"> 
  188.       <td align="right">首页文件名:</td>
  189.       <td> <input type="text" name="Index_Name" value="<%=sysObj.Index_File_Name%>" size="50" />      </td>
  190.     </tr>
  191.     <tr class="hback"> 
  192.       <td align="right">发送邮件服务器:</td>
  193.       <td> <input type="text" name="Mail_Server" value="<%=sysObj.Mail_Server%>" size="50" />      </td>
  194.     </tr>
  195.     <tr class="hback"> 
  196.       <td align="right">发送邮件用户名:</td>
  197.       <td> <input type="text" name="Mail_Name" value="<%=sysObj.Mail_Name%>" size="50" />      </td>
  198.     </tr>
  199.     <tr class="hback"> 
  200.       <td align="right">发送邮件的密码:</td>
  201.       <td> <input type="password" name="Mail_Pass" value="<%=sysObj.mail_Pass_Word%>" size="50" />      </td>
  202.     </tr>
  203.     <tr class="hback"> 
  204.       <td align="right">首页生成方式:</td>
  205.       <td><input name="Index_Refresh" type="text" id="Index_Refresh" size="50" value="<%=sysobj.index_refresh%>"><a href="#" onClick="javascript:Element.toggle($('help_Index_Refresh'));">&nbsp;帮助</a>
  206.   <br>
  207.   <div id="help_Index_Refresh" style="display:none">首页自动刷新间隔时间,单位分钟(-1不自动刷新,0为立即刷新,其他值为刷新时间的间隔:例如,5就为5分钟)</div></td>
  208.     </tr>
  209.     <tr class="hback">
  210.       <td align="right">栏目生成方式:</td>
  211.       <td><input name="class_Refresh" type="text" id="class_Refresh" size="50" value="<%=sysobj.class_refresh%>"><a href="#" onClick="javascript:Element.toggle($('help_class_Refresh'));">&nbsp;帮助</a>
  212.    <br>
  213.   <div id="help_class_Refresh" style="display:none">栏目自动刷新间隔时间,单位分钟(-1不自动刷新,0为立即刷新,其他值为刷新时间的间隔:例如,5就为5分钟)</div>
  214.   </td>
  215.     </tr>
  216.     <tr class="hback"> 
  217.       <td align="right">写文件使用组件:</td>
  218.       <td> <input name="Write_Type" type="radio" value="0" <%If sysObj.writeType = "0" Then Response.Write("checked")%> />
  219.         Fso(File System Object) 
  220.         <input type="radio" name="Write_Type" value="1" <%If sysObj.writeType = "1" or  sysObj.writeType="" Then Response.Write("checked")%>/>
  221.         Adodb.Stream</td>
  222.     </tr>
  223.     <tr class="hback">
  224.       <td align="right">选择图片缩略功能:</td>
  225.       <td align="left"><select id="sel_thumbnailComponent" name="sel_thumbnailComponent" onChange="showInfo(this.value,'thumbnail_Param','span_thumbnailInfo')">
  226.           <option value="9" <%if sysObj.thumbnailComponent="9" then response.Write("selected")%>>关闭</option>
  227.           <option value="0" <%if sysObj.thumbnailComponent="0" then response.Write("selected")%>>aspjpeg </option>
  228.           <option value="1" <%if sysObj.thumbnailComponent="1" then response.Write("selected")%>>WS Images</option>
  229.           <option value="2" <%if sysObj.thumbnailComponent="2" then response.Write("selected")%>>SA-ImgWrite</option>
  230.         </select>
  231.           <span id="span_thumbnailInfo"></span> </td>
  232.     </tr>
  233.     <tr class="hback" id="thumbnail_Param">
  234.       <td align="right"><input type="radio" name="rad_rateTF" value="1" onClick="showThumbnail_RateOrSize(this.value)" <%if sysObj.RateTF=1 then Response.Write("checked")%>>
  235.         按比列
  236.         <input type="radio" name="rad_RateTF" value="0" onClick="showThumbnail_RateOrSize(this.value)" <%if sysObj.RateTF=0 then Response.Write("checked")%>>
  237.         按大小 </td>
  238.       <td align="left"><span id="span_UseRate" style="display:none">比例:
  239.         <input name="txt_thumbnailRate" id="txt_thumbnailRate" size="15" value="<%If Not (Isnull(sysObj.thumbnailRate) or sysObj.thumbnailRate="") Then:Response.Write formatnumber(sysObj.thumbnailRate,1,-1):else:response.Write "0.5":end if %>">
  240.         如60%请填写0.6 <span id="span_thumbnailRate"></span> </span> <span id="span_UseSize" style="display:none"> 宽度:
  241.           <input name="txt_thumbnailWidth" type="text" id="txt_thumbnailWidth" size="15" value="<%=sysObj.thumbnailWidth%>">
  242.           象素 | 
  243.           高度:
  244.           <input name="txt_thumbnailHeight" type="text" id="txt_thumbnailHeight" size="15" value="<%=sysObj.thumbnailHeight%>">
  245.           象素 <span id="span_thumbnailWidth"></span>&nbsp; <span id="span_thumbnailHeight"></span> </span> </td>
  246.     </tr>
  247.     <tr class="hback" id="PrintPicObject">
  248.       <td align="right">水印组件:</td>
  249.       <td align="left"><select name="sel_PicClassid" onChange="showInfo(this.value,'PicParam','span_componentInfo')">
  250.           <option value="9" <%if sysObj.PicClassid="9" then Response.Write("selected")%>>关闭</option>
  251.           <option value="0" <%if sysObj.PicClassid="0" then Response.Write("selected")%>>aspjpeg </option>
  252.           <option value="1" <%if sysObj.PicClassid="1" then Response.Write("selected")%>>WS Images</option>
  253.           <option value="2"<%if sysObj.PicClassid="2" then Response.Write("selected")%>>SA-ImgWrite</option>
  254.         </select>
  255.           <span id="span_componentInfo"></span> </td>
  256.     <tr id="PicParam" style="display:none">
  257.       <td colspan="2" class="hback"><table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" class="table">
  258.           <tr class="hback">
  259.             <td width="25%" align="right">水印类型 </td>
  260.             <td width="75%">
  261. <select name="sel_MarkType" size="1" id="sel_MarkType">
  262.                 <option value="1" <%if sysObj.markType="1" then Response.Write("selected")%>>文字类型</option>
  263.                 <option value="0" <%if sysObj.markType="0" then Response.Write("selected")%>>图片类型</option>
  264.             </select>
  265. </td>
  266.           </tr>
  267.           <tr class="hback">
  268.             <td align="right">水印文字信息(可为空) </td>
  269.             <td><input name="txt_MarkText" type="text" id="txt_MarkText" size="50" value="<%=sysObj.markText%>"></td>
  270.           </tr>
  271.           <tr class="hback">
  272.             <td align="right">水印字体大小 </td>
  273.             <td><input name="txt_MarkFontSize" type="text" id="txt_MarkFontSize" size="50" value="<%=sysObj.MarkFontSize%>">
  274.                 <span id="span_MarkFontSize"></span></td>
  275.           </tr>
  276.           <tr class="hback">
  277.             <td align="right">水印字体颜色</td>
  278.             <td><input name="txt_MarkFontColor" type="text" id="txt_MarkFontColor" value="<%=sysObj.MarkFontColor%>">
  279.                 <img src="images/rect.gif" alt="-" name="MarkFontColor_Show" width="18" height="17" border=0 align="absmiddle" id="MarkFontColor_Show" style="cursor:pointer;background-color:#<%=sysObj.MarkFontColor%>;" title="选取颜色!" onClick="GetColor(this,'txt_MarkFontColor');"></td>
  280.           </tr>
  281.           <tr class="hback">
  282.             <td align="right">水印字体名称 </td>
  283.             <td><SELECT name="sel_MarkFontName" id="sel_MarkFontName">
  284.                 <option value="宋体" <%If sysObj.markFontName = "宋体" Then Response.Write("selected") End if%>>宋体</option>
  285.                 <option value="楷体_GB2312" <%If sysObj.markFontName = "楷体_GB2312" Then Response.Write("selected") End if%>>楷体</option>
  286.                 <option value="新宋体" <%If sysObj.markFontName = "新宋体" Then Response.Write("selected") End if%>>新宋体</option>
  287.                 <option value="黑体" <%If sysObj.markFontName = "黑体" Then Response.Write("selected") End if%>>黑体</option>
  288.                 <option value="隶书" <%If sysObj.markFontName = "隶书" Then Response.Write("selected") End if%>>隶书</option>
  289.                 <OPTION value="Andale Mono" <%If sysObj.markFontName = "Andale Mono" Then Response.Write("selected") End if%>>Andale 
  290.                   Mono</OPTION>
  291.                 <OPTION value="Arial" <%If sysObj.markFontName = "Arial" Then Response.Write("selected") End if%>>Arial</OPTION>
  292.                 <OPTION value="Arial Black" <%If sysObj.markFontName = "Arial Black" Then Response.Write("selected") End if%>>Arial 
  293.                   Black</OPTION>
  294.                 <OPTION value="Book Antiqua" <%If sysObj.markFontName = "Book Antiqua" Then Response.Write("selected") End if%>>Book 
  295.                   Antiqua</OPTION>
  296.                 <OPTION value="Century Gothic" <%If sysObj.markFontName = "Century Gothic" Then Response.Write("selected") End if%>>Century 
  297.                   Gothic</OPTION>
  298.                 <OPTION value="Comic Sans MS" <%If sysObj.markFontName = "Comic Sans MS" Then Response.Write("selected") End if%>>Comic 
  299.                   Sans MS</OPTION>
  300.                 <OPTION value="Courier New" <%if sysObj.markFontName = "Courier New" Then Response.Write("selected") End if%>>Courier 
  301.                   New</OPTION>
  302.                 <OPTION value="Georgia" <%If sysObj.markFontName = "Georgia" Then Response.Write("selected") End if%>>Georgia</OPTION>
  303.                 <OPTION value="Impact" <%If sysObj.markFontName = "Impact" Then Response.Write("selected") End if%>>Impact</OPTION>
  304.                 <OPTION value="Tahoma" <%If sysObj.markFontName = "Tahoma" Then Response.Write("selected") End if%>>Tahoma</OPTION>
  305.                 <OPTION value="Times New Roman" <%If sysObj.markFontName = "Times New Roman" Then Response.Write("selected") End if%>>Times 
  306.                   New Roman</OPTION>
  307.                 <OPTION value="Trebuchet MS" <%If sysObj.markFontName = "Trebuchet MS" Then Response.Write("selected") End if%>>Trebuchet 
  308.                   MS</OPTION>
  309.                 <OPTION value="Script MT Bold" <%If sysObj.markFontName = "Script MT Bold" Then Response.Write("selected") End if%>>Script 
  310.                   MT Bold</OPTION>
  311.                 <OPTION value="Stencil" <%If sysObj.markFontName = "Stencil" Then Response.Write("selected") End if%>>Stencil</OPTION>
  312.                 <OPTION value="Verdana" <%If sysObj.markFontName = "Verdana" Then Response.Write("selected") End if%>>Verdana</OPTION>
  313.                 <OPTION value="Lucida Console" <%If sysObj.markFontName = "Lucida Console" Then Response.Write("selected") End if%>>Lucida 
  314.                   Console</OPTION>
  315.               </SELECT>            </td>
  316.           </tr>
  317.           <tr class="hback">
  318.             <td align="right">水印字体是否粗体 </td>
  319.             <td><input type="radio" name="rad_MarkFontBond" value="1" <%if sysObj.markFontBond=1 then Response.Write("checked")%>>
  320.               是
  321.               <input type="radio" name="rad_MarkFontBond" value="0" <%if sysObj.markFontBond=0 then Response.Write("checked")%>>
  322.               否 </td>
  323.           </tr>
  324.           <tr class="hback_1">
  325.             <td align="right">水印LOGO图片(可为空) </td>
  326.             <td><input name="txt_MarkPicture" type="text" id="txt_MarkPicture" size="50" value="<%=sysObj.MarkPicture%>">
  327.               填写LOGO的图片相对路径</td>
  328.           </tr>
  329.           <tr class="hback_1">
  330.             <td align="right">水印LOGO图片透明度 </td>
  331.             <td><input name="txt_MarkOpacity" type="text" id="txt_MarkOpacity" size="50" value="<%=formatnumber(sysObj.MarkOpacity,1,-1)%>">
  332.               如60%请填写0.6 </td>
  333.           </tr>
  334.           <tr class="hback_1">
  335.             <td align="right">水印图片去除底色 </td>
  336.             <td><input name="txt_MarkTranspColor" type="text" id="txt_MarkTranspColor" value="<%=sysObj.MarkTranspColor%>">
  337.                 <img src="images/rect.gif" alt="-" width="18" height="17" border=0 align=absmiddle id="MarkTranspColor_Show" style="cursor:pointer;background-Color:#<%=sysObj.MarkTranspColor%>;" title="选取颜色!" onClick="GetColor(this,'txt_MarkTranspColor');"> </td>
  338.           </tr>
  339.           <tr class="hback_1">
  340.             <td align="right">水印图片的长宽区域定义<br>            </td>
  341.             <td>宽度
  342.               <input name="txt_MarkWidth" type="text" id="txt_MarkWidth" size="15" value="<%=sysObj.MarkWidth%>" onChange="if(/D/.test(this.value)){alert('只能输入非负整数');this.value='';}">
  343.               长度
  344.               <input name="txt_MarkHeight" type="text" id="txt_MarkHeight" size="15" value="<%=sysObj.MarkHeight%>" onChange="if(/D/.test(this.value)){alert('只能输入非负整数');this.value='';}">
  345.               象素 水印图片的宽度和高度 <span id="span_MarkWidth"></span><span id="span_MarkHeight"></span></td>
  346.           </tr>
  347.           <tr class="hback_1">
  348.             <td align="right">水印LOGO位置坐标 </td>
  349.             <td><select name="sel_MarkPosition" id="sel_MarkPosition">
  350.                 <option value="1" <%if sysObj.markPosition=1 then Response.Write("selected")%>>左上</option>
  351.                 <option value="2" <%if sysObj.markPosition=2 then Response.Write("selected")%>>左下</option>
  352.                 <option value="3" <%if sysObj.markPosition=3 then Response.Write("selected")%>>居中</option>
  353.                 <option value="4" <%if sysObj.markPosition=4 then Response.Write("selected")%>>右上</option>
  354.                 <option value="5" <%if sysObj.markPosition=5 then Response.Write("selected")%>>右下</option>
  355.             </select></td>
  356.           </tr>
  357.       </table></td>
  358.     </tr>
  359.     
  360.     <tr class="hback"> 
  361.       <td align="right">版权信息:</td>
  362.       <td> <textarea name="Copy_Right" cols="80" rows="10"><%=sysObj.copyright_info%></textarea>      </td>
  363.     </tr>
  364.     <tr class="hback">
  365.       <td align="right">后台默认登陆风格</td>
  366.       <td><select name="MF_Login_style" id="MF_Login_style">
  367.           <option value="1"  <%If  sysObj.login_style="1" Then Response.Write("selected")%>>默认风格</option>
  368.           <option value="2"  <%If  sysObj.login_style="2" Then Response.Write("selected")%>>银色风格</option>
  369.           <option value="3"  <%If  sysObj.login_style="3" Then Response.Write("selected")%>>蓝色海洋</option>
  370.           <option value="4"  <%If  sysObj.login_style="4" Then Response.Write("selected")%>>浪漫咖啡</option>
  371.           <option value="5"  <%If  sysObj.login_style="5" Then Response.Write("selected")%>>青青河草</option>
  372.         </select>
  373.         <input name="Action" type="hidden" id="Action" value="Save"></td>
  374.     </tr>
  375.     <tr class="hback"> 
  376.       <td align="right">&nbsp;</td>
  377.       <td><input type="submit" name="Submit" value=" 保存 " /> <input type="reset" name="Submit2" value=" 重置 " /></td>
  378.     </tr>
  379.   </form>
  380. </table>
  381. <br />
  382. </body>
  383. <%
  384. Dim ComponentName(2),i
  385. ComponentName(0) = "Persits.Jpeg"
  386. ComponentName(1) = "wsImage.Resize"
  387. ComponentName(2) = "SoftArtisans.ImageGen"
  388. %>
  389. <script language="javascript">
  390. var ComponentNameArray = new Array();
  391. var ComponentInfoArray = new Array();
  392. <%
  393. Dim ExpiredStr
  394. For i = 0 to UBound(ComponentName)
  395. %>
  396. ComponentNameArray[ComponentNameArray.length] = "<%= ComponentName(i)%>";
  397. <%
  398. If IsObjInstalled(ComponentName(i)) Then
  399. If IsExpired(ComponentName(i)) Then
  400. ExpiredStr = ",但已<font color=red>过期</font>"
  401. else
  402. ExpiredStr = ""
  403. End if
  404. %>
  405. ComponentInfoArray[ComponentInfoArray.length] = "<font color='0076AE'> √</font>支持<%=ExpiredStr%>";
  406. <%
  407. Else
  408. %>
  409. ComponentInfoArray[ComponentInfoArray.length] = "<font color='red'>×</font>不支持"
  410. <%
  411. End if
  412. Next
  413. %>
  414. function SetSysParam()
  415. {
  416. var flag1=isEmpty("txt_SiteName","span_SiteName_Alert");
  417. var flag2=isEmpty("txt_NewsDir","span_NewsDir_Alert");
  418. var flag3=isEmpty("txt_IndexPage_Name","span_IndexPage_Name_Alert");
  419. var flag4=isEmpty("txt_IndexTemplet","span_IndexTemplet_Alert");
  420. if(document.getElementById("sel_PicClassid").value>=0)
  421. {
  422. var f_mark_flag_1=isNumber("txt_MarkFontSize","span_MarkFontSize","字体大小应为数字",false)
  423. var f_mark_flag_2=isNumber("txt_MarkWidth","span_MarkWidth","宽度应为数字",false)
  424. var f_mark_flag_3=isNumber("txt_MarkHeight","span_MarkHeight","高度应为数字",false)
  425. if(!f_mark_flag_1&&!f_mark_flag_2&&!f_mark_flag_3)
  426.  return;
  427. }
  428. if(document.getElementById("sel_thumbnailComponent").value>=0)
  429. {
  430. if (document.all("rad_rateTF")[0].checked)//判断缩略图是否是采用比例
  431. {
  432. var f_mark_flag_1=isNumber("txt_thumbnailRate","span_thumbnailRate","字体大小应为数字",false)
  433. if(!f_mark_flag_1)
  434.  return;
  435. }else
  436. {
  437. var f_mark_flag_2=isNumber("txt_thumbnailWidth","span_thumbnailWidth","宽度应为数字",false)
  438. var f_mark_flag_3=isNumber("txt_thumbnailHeight","span_thumbnailHeight","高度应为数字",false)
  439. if(!f_mark_flag_2&&!f_mark_flag_3)
  440.  return;
  441.  }
  442. }
  443. if(flag1&&flag2&&flag3&&flag4)
  444. {
  445. document.SysParaForm.submit();
  446. }
  447. }
  448. //显示水印组件类型及支持情况
  449. //显示水印祖件参数输入界面
  450. showInfo(<%=sysObj.PicClassid%>,"PicParam","span_componentInfo");
  451. showInfo(<%=sysObj.ThumbnailComponent%>,"thumbnail_Param","span_thumbnailInfo");
  452. function showInfo(ComponentID,ParamPanel,Container)
  453. {
  454. if(parseInt(ComponentID)>=0&&parseInt(ComponentID)!=9)
  455. {
  456. document.getElementById(ParamPanel).style.display="block";
  457. }else
  458. {
  459. document.getElementById(ParamPanel).style.display="none";
  460. }
  461. if(parseInt(ComponentID)==9)
  462. {
  463. document.getElementById(Container).innerHTML = "";
  464. }
  465. else
  466. {
  467. document.getElementById(Container).innerHTML = ComponentNameArray[ComponentID] + ComponentInfoArray[ComponentID];
  468. }
  469. }
  470. //缩略图根据选择使用比例或大小显示相应的界面
  471. showThumbnail_RateOrSize(<%=sysObj.RateTF%>)
  472. function showThumbnail_RateOrSize(param)
  473. {
  474. if(param==1)
  475. {
  476. document.getElementById("span_UseRate").style.display="block"
  477. document.getElementById("span_UseSize").style.display="none"
  478. }else
  479. {
  480. document.getElementById("span_UseRate").style.display="none"
  481. document.getElementById("span_UseSize").style.display="block"
  482. }
  483. }
  484. function getOffsetTop(elm) {
  485. var mOffsetTop = elm.offsetTop;
  486. var mOffsetParent = elm.offsetParent;
  487. while(mOffsetParent){
  488. mOffsetTop += mOffsetParent.offsetTop;
  489. mOffsetParent = mOffsetParent.offsetParent;
  490. }
  491. return mOffsetTop;
  492. }
  493. function getOffsetLeft(elm) {
  494. var mOffsetLeft = elm.offsetLeft;
  495. var mOffsetParent = elm.offsetParent;
  496. while(mOffsetParent) {
  497. mOffsetLeft += mOffsetParent.offsetLeft;
  498. mOffsetParent = mOffsetParent.offsetParent;
  499. }
  500. return mOffsetLeft;
  501. }
  502. function GetColor(img_val,input_val)
  503. {
  504. var PaletteLeft,PaletteTop
  505. var obj = document.getElementById("colorPalette");
  506. ColorImg = img_val;
  507. ColorValue = document.getElementById(input_val);
  508. if (obj){
  509. PaletteLeft = getOffsetLeft(ColorImg)
  510. PaletteTop = (getOffsetTop(ColorImg) + ColorImg.offsetHeight)
  511. if (PaletteLeft+150 > parseInt(document.body.clientWidth)) PaletteLeft = parseInt(event.clientX)-260;
  512. obj.style.left = PaletteLeft + "px";
  513. obj.style.top = PaletteTop + "px";
  514. if (obj.style.visibility=="hidden")
  515. {
  516. obj.style.visibility="visible";
  517. }else {
  518. obj.style.visibility="hidden";
  519. }
  520. }
  521. }
  522. function setColor(color)
  523. {
  524. if(ColorImg.id=="FontColorShow"&&color=="#") color='#000000';
  525. if(ColorImg.id=="FontBgColorShow"&&color=="#") color='#FFFFFF';
  526. if (ColorValue){ColorValue.value = color.substr(1);}
  527. if (ColorImg && color.length>1){
  528. ColorImg.src='Images/Rect.gif';
  529. ColorImg.style.backgroundColor = color;
  530. }else if(color=='#'){ ColorImg.src='Images/rectNoColor.gif';}
  531. document.getElementById("colorPalette").style.visibility="hidden";
  532. }
  533. </script>
  534. </html>