
<!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 http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>[.$ourphp_adminfont.admintitle.]</title>
<link href="templates/images/ourphp_login.css" rel="stylesheet" type="text/css"> 
<script type="text/javascript" src="../../function/plugs/jquery/1.7.2/jquery-1.7.2.min.js"></script>
<script>
<!--
/*第一种形式 第二种形式 更换显示样式*/
function setTab(m,n){
 var tli=document.getElementById("menu"+m).getElementsByTagName("li");
 var mli=document.getElementById("main"+m).getElementsByTagName("ul");
 for(i=0;i<tli.length;i++){
  tli[i].className=i==n?"hover":"";
  mli[i].style.display=i==n?"block":"none";
 }
}
//-->
</script>
</head>

<body>
<div style="height:50px;"></div>
<div style="clear:both"></div>
<div id="tabs0">
 <ul class="menu0" id="menu0">
  <li class="hover">图像水印及压缩</li>
 </ul>
 <div class="main" id="main0" style="border-top:2px #488fcd solid; clear:both;">
  <ul class="block">
	  <li>
		<div class="ourphp_newslist">
		  <form id="form1" name="form1" method="post" action="?ourphp_cms=edit&id=1">
          <table width="100%" border="0" cellpadding="10">
                  <tr>
                    <td width="16%"><div align="right">水印功能：</div></td>
                    <td width="39%">
					
					<label><input type="radio" name="OP_Watermarkoff" value="1" [.if $ourphp_watermark.OP_Watermarkoff == 1.]checked="checked"[./if.] />开启</label>&nbsp;&nbsp;
                    <label><input name="OP_Watermarkoff" type="radio" value="2" [.if $ourphp_watermark.OP_Watermarkoff == 2.]checked="checked"[./if.] />关闭</label>
					
					
					</td>
                  </tr> 
                  <tr>
                    <td valign="top"><div align="right">图片水印：</div></td>
                    <td ><input type="text" name="OP_Watermarkimg" value="[.$ourphp_watermark.OP_Watermarkimg.]" class="win" />
						
						
						<div style="clear:both;"></div>
						<div style="background:url(../../skin/admintitlebg.gif) no-repeat; width:610px; height:60px; float:left; padding:30px 0px 0px 20px;">
							<p>把你自已的水印图片放到 /skin/ 目录内，在这里只添写图片名称即可。</p>
							<p>如：watermark.png</p>
						</div>
			
						</td>
                  </tr>
                  <tr>
                    <td><div align="right">文字水印：</div></td>
                    <td><input type="text" name="OP_Watermarkfont" value="[.$ourphp_watermark.OP_Watermarkfont.]" class="win" /></td>
                  </tr>
                  <tr>
                    <td><div align="right">文字颜色：</div></td>
                    <td><input type="text" name="OP_Watermarkcolor" value="[.$ourphp_watermark.OP_Watermarkcolor.]" class="win" id="color" />&nbsp;<input type="button" id="colorpicker" value="取色器" style="width:100px; height:35px; line-height:35px; background:#0099CC; color:#FFFFFF; border:0px;" />
			[.include file="ourphp_editor.html".]
					


		<script>
			KindEditor.ready(function(K) {
				var colorpicker;
				K('#colorpicker').bind('click', function(e) {
					e.stopPropagation();
					if (colorpicker) {
						colorpicker.remove();
						colorpicker = null;
						return;
					}
					var colorpickerPos = K('#colorpicker').pos();
					colorpicker = K.colorpicker({
						x : colorpickerPos.x,
						y : colorpickerPos.y + K('#colorpicker').height(),
						z : 19811214,
						selectedColor : 'default',
						noColor : '无颜色',
						click : function(color) {
							K('#color').val(color);
							colorpicker.remove();
							colorpicker = null;
						}
					});
				});
				K(document).click(function() {
					if (colorpicker) {
						colorpicker.remove();
						colorpicker = null;
					}
				});
			});
		</script>					</td>
                  </tr>
                  <tr>
                    <td><div align="right">文字大小：</div></td>
                    <td><input type="text" name="OP_Watermarksize" value="[.$ourphp_watermark.OP_Watermarksize.]" class="win" />&nbsp;数值：1-5
					</td>
                  </tr>
                  <tr>
                    <td><div align="right">水印位置：</div></td>
                    <td align="left"><table width="500" height="250" border="0" cellpadding="12" style="float:left; background:url(../../skin/admin_watermark.png) no-repeat;">
                      <tr>
                        <td style="border-right:1px #CCCCCC dashed;"><div align="center">
                            <input type="radio" name="OP_Watermarkposition" value="1" [.if $ourphp_watermark.OP_Watermarkposition == 1.]checked="checked"[./if.] />
                        </div></td>
                        <td style="border-right:1px #CCCCCC dashed;"><div align="center">
                            <input type="radio" name="OP_Watermarkposition" value="2" [.if $ourphp_watermark.OP_Watermarkposition == 2.]checked="checked"[./if.] />
                        </div></td>
                        <td><div align="center">
                            <input type="radio" name="OP_Watermarkposition" value="3" [.if $ourphp_watermark.OP_Watermarkposition == 3.]checked="checked"[./if.] />
                        </div></td>
                      </tr>
                      <tr>
                        <td style="border-right:1px #CCCCCC dashed;"><div align="center">
                            <input type="radio" name="OP_Watermarkposition" value="4" [.if $ourphp_watermark.OP_Watermarkposition == 4.]checked="checked"[./if.] />
                        </div></td>
                        <td style="border-right:1px #CCCCCC dashed;"><div align="center">
                            <input type="radio" name="OP_Watermarkposition" value="5" [.if $ourphp_watermark.OP_Watermarkposition == 5.]checked="checked"[./if.] />
                        </div></td>
                        <td><div align="center">
                            <input type="radio" name="OP_Watermarkposition" value="6" [.if $ourphp_watermark.OP_Watermarkposition == 6.]checked="checked"[./if.] />
                        </div></td>
                      </tr>
                      <tr>
                        <td style="border-right:1px #CCCCCC dashed;"><div align="center">
                            <input type="radio" name="OP_Watermarkposition" value="7" [.if $ourphp_watermark.OP_Watermarkposition == 7.]checked="checked"[./if.] />
                        </div></td>
                        <td style="border-right:1px #CCCCCC dashed;"><div align="center">
                            <input type="radio" name="OP_Watermarkposition" value="8" [.if $ourphp_watermark.OP_Watermarkposition == 8.]checked="checked"[./if.] />
                        </div></td>
                        <td><div align="center">
                            <input name="OP_Watermarkposition" type="radio" value="9" [.if $ourphp_watermark.OP_Watermarkposition == 9.]checked="checked"[./if.] />
                        </div></td>
                      </tr>
                    </table>
					<label><input type="radio" name="OP_Watermarkposition" value="0" [.if $ourphp_watermark.OP_Watermarkposition == 0.]checked="checked"[./if.] />随机位置</label>
					</td>
                  </tr>
                  <tr>
                    <td><div align="right">图像压缩：</div></td>
                    <td>
						<input type="text" name="OP_Imgcompress" value="[.$ourphp_watermark.OP_Imgcompress.]" class="win" />
						
						<div style="clear:both;"></div>
						<div style="background:url(../../skin/admintitlebg.gif) no-repeat; width:610px; height:60px; float:left; padding:30px 0px 0px 20px;">
							<p>输入ourphp则不启动压缩,输入1保持原比例压缩。</p>
							<p>输入0.8强力压缩 注:数字越小压缩越狠。如：0.1 （只能1以下数字，小数后一位）</p>
							<p>PHP >= 5.6</p>
						</div>
						
					</td>
                  </tr>
                  <tr>
                    <td>&nbsp;</td>
                    <td><input type="submit" name="Submit" value="提交" class="ourphp-anniu" /></td>
                  </tr>
                </table>
          </form>
		</div>
	  </li>
  </ul>
 </div>
</div>
[.include file="ourphp_foot.html".]
</body>
</html>