<!--#include file="utf-8.asp" -->
<!--#include file="js/Function.asp" -->
<!--#include file="CheckAdmin.asp" -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<META NAME="copyright" CONTENT="Copyright 2010-2012 - yidacms.com" />
<META NAME="Author" CONTENT="世纪伟成  yidacms.com" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="js/admin.css" rel="stylesheet" type="text/css">
<title>水印设置!</title>
</head>
<body>
<%
'版权：世纪伟成(http://yidacms.com)
'本信息不会影响您网站的正常访问，无论免费用户或是收费用户请保留这里的信息.
'如果您删除了这里的版权信息,将追究法律责任.

		dim rs,sql
		set rs = server.createobject("adodb.recordset")
		sql="select * from shuaiweb_aspjpeg"
		rs.open sql,dbok,1,1
			shuaiweb_aspjpegcolor=rs("shuaiweb_aspjpegcolor")
			shuaiweb_aspjpegsize=rs("shuaiweb_aspjpegsize")
			shuaiweb_aspjpegclear=rs("shuaiweb_aspjpegclear")
			shuaiweb_aspjpegfont=rs("shuaiweb_aspjpegfont")
			shuaiweb_aspjpegnoffo=rs("shuaiweb_aspjpegnoffo")
			shuaiweb_aspjpegpng=rs("shuaiweb_aspjpegpng")
			shuaiweb_aspjpeggps=rs("shuaiweb_aspjpeggps")
			shuaiweb_aspjpegwidth=rs("shuaiweb_aspjpegwidth")
			shuaiweb_aspjpegheight=rs("shuaiweb_aspjpegheight")
		rs.close
		set rs=nothing 
%>
		<table width="98%" border="0" cellpadding="10" cellspacing="0" bordercolor="#666666" style="border-collapse:collapse" bgcolor="#FFFFFF" align="center">
		<form id="form1" name="form1" method="POST" action="admin_aspjpeg.asp?yidacms=add">
		  <tr>
			<td class="center cc" onMouseOver="this.id='aa'" onMouseOut="this.id='bb'">选项<br />
				  <input type="radio" name="shuaiweb_aspjpegnoffo" value="font" <%if shuaiweb_aspjpegnoffo="font" then response.write "checked" end if %>/>
				文字
				  <input type="radio" name="shuaiweb_aspjpegnoffo" value="pic" <%if shuaiweb_aspjpegnoffo="pic" then response.write "checked" end if %>/>
				图片
				  <input type="radio" name="shuaiweb_aspjpegnoffo" value="ffo" <%if shuaiweb_aspjpegnoffo="ffo" then response.write "checked" end if %>/>
			  关闭<br /><div class="admintitlebg">1.须支持AspJpeg组件 <a href="SysCome.asp">查看</a></div></td>
		  </tr>
</table>
<br />
		<table width="98%" border="0" cellpadding="10" cellspacing="0" bordercolor="#666666" style="border-collapse:collapse" bgcolor="#FFFFFF" align="center">
		  <tr>
			<td>文字水印选项:</td>
		    <td rowspan="7">
<table width="90%" height="174" border="1" align="center">
  <tr>
    <td colspan="3">&nbsp;水印位置:</td>
  </tr>
  <tr>
    <td width="100"><div align="center"><input type="radio" name="shuaiweb_aspjpeggps" value="1" <%if shuaiweb_aspjpeggps="1" then response.write "checked" end if %>/></div></td>
    <td width="100">&nbsp;</td>
    <td width="100"><div align="center"><input type="radio" name="shuaiweb_aspjpeggps" value="2" <%if sshuaiweb_aspjpeggps="2" then response.write "checked" end if %>/></div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><div align="center"><input type="radio" name="shuaiweb_aspjpeggps" value="3" <%if shuaiweb_aspjpeggps="3" then response.write "checked" end if %>/></div></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><div align="center"><input type="radio" name="shuaiweb_aspjpeggps" value="4" <%if shuaiweb_aspjpeggps="4" then response.write "checked" end if %>/></div></td>
    <td>&nbsp;</td>
    <td><div align="center"><input type="radio" name="shuaiweb_aspjpeggps" value="5" <%if shuaiweb_aspjpeggps="5" then response.write "checked" end if %>/></div></td>
  </tr>
</table>
                   </td>
		  </tr>
		  <tr>
			<td class="center cc" onMouseOver="this.id='aa'" onMouseOut="this.id='bb'">文字标记<br /><input name="shuaiweb_aspjpegfont" type="text" value="<%=shuaiweb_aspjpegfont%>" class="win"/> <font color=red>(必填)</font></td>
		  </tr>
		  <tr>
		  <tr>
			<td class="center cc" onMouseOver="this.id='aa'" onMouseOut="this.id='bb'">颜色值<br /><input name="shuaiweb_aspjpegcolor" type="text"  value="<%=shuaiweb_aspjpegcolor%>" class="win"/> <font color=red>(必填 值前要包含&)</font></td>
		  </tr>
		  <tr>
			<td class="center cc" onMouseOver="this.id='aa'" onMouseOut="this.id='bb'">文字大小<br /><input name="shuaiweb_aspjpegsize" type="text" value="<%=shuaiweb_aspjpegsize%>" class="win"/> <font color=red>(必填)</font></td>
		  </tr>
		  <tr>
			<td class="center cc" onMouseOver="this.id='aa'" onMouseOut="this.id='bb'">水印透明度<br /><input name="shuaiweb_aspjpegclear" type="text" value="<%=shuaiweb_aspjpegclear%>" class="win"/> <font color=red>(必填)</font></td>
		  </tr>
		</table>
		<table width="98%" border="0" cellpadding="10" cellspacing="0" bordercolor="#666666" style="border-collapse:collapse" bgcolor="#FFFFFF" align="center">
		  <tr style="border-top:1px #CCCCCC dashed;">
			<td>图片水印选项:</td>
		  </tr>
		  <tr>
			<td class="center cc" onMouseOver="this.id='aa'" onMouseOut="this.id='bb'">水印图片<br /><input name="shuaiweb_aspjpegpng" type="text"  value="<%=shuaiweb_aspjpegpng%>" class="win"/> <font color=red>(必填 .png格式)</font></td>
		  </tr>
		  <tr>
			<td class="center cc" onMouseOver="this.id='aa'" onMouseOut="this.id='bb'">图片宽度<input name="shuaiweb_aspjpegwidth" type="text"  value="<%=shuaiweb_aspjpegwidth%>" class="win2"/> 图片高度<input name="shuaiweb_aspjpegheight" type="text"  value="<%=shuaiweb_aspjpegheight%>" class="win2"/> <font color=red>(必填且为数字)</font></td>
		  </tr>
                  <tr>
			<td><input type="submit" name="submit" value="提交" class="inanniu"/></td>
		  </tr>
		  </form>
		</table>

<%
	    if request("yidacms")="add" Then
			if len(trim(request.Form("shuaiweb_aspjpegcolor")))<3 then
				response.write ("<script language=javascript> alert('水印颜色必填且不能少于3个字符！');history.back(-1);</script>")
				response.end
			end if
			  
			if len(trim(request.Form("shuaiweb_aspjpegsize")))<1 then
				response.write ("<script language=javascript> alert('文字大小不能为空，且不少于1个字符！');history.back(-1);</script>")
				response.end
			end if 
			  
			if len(trim(request.Form("shuaiweb_aspjpegclear")))<1 then
				response.write ("<script language=javascript> alert('透名度不能为空,且不少于1个字符!');history.back(-1);</script>")
				response.end
			end if
			  
			if len(trim(request.Form("shuaiweb_aspjpegfont")))<1 then
				response.write ("<script language=javascript> alert('水印内容必填且不能少于1个字符！');history.back(-1);</script>")
				response.end
			end if 

		Set rs = Server.CreateObject("ADODB.Recordset")
		sql = "SELECT * FROM shuaiweb_aspjpeg"
		rs.open sql,dbok,1,3
			rs("shuaiweb_aspjpegcolor")=trim(request.form("shuaiweb_aspjpegcolor"))
			rs("shuaiweb_aspjpegsize")=trim(request.form("shuaiweb_aspjpegsize"))
			rs("shuaiweb_aspjpegclear")=trim(request.form("shuaiweb_aspjpegclear"))
			rs("shuaiweb_aspjpegfont")=trim(request.form("shuaiweb_aspjpegfont"))
			rs("shuaiweb_aspjpegnoffo")=trim(request.form("shuaiweb_aspjpegnoffo"))
			rs("shuaiweb_aspjpegpng")=trim(request.form("shuaiweb_aspjpegpng"))
			rs("shuaiweb_aspjpeggps")=trim(request.form("shuaiweb_aspjpeggps"))
			rs("shuaiweb_aspjpegwidth")=trim(request.form("shuaiweb_aspjpegwidth"))
			rs("shuaiweb_aspjpegheight")=trim(request.form("shuaiweb_aspjpegheight"))
		rs.update
		rs.close
		set rs=nothing
		response.write "<script language=javascript> alert('设置成功！');location.replace('admin_aspjpeg.asp');</script>"
		response.end
		End If
%>
</body>
</html>