<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<title>邮件基本设置</title>
<LINK href="<?=base_url()?>csdj/admin/images/admin.css" type="text/css" rel="stylesheet">
<SCRIPT type="text/javascript" src="<?=base_url()?>csdj/admin/js/admin.js"></script>
<script type="text/javascript" src="<?=base_url()?>csdj/admin/js/dialog.js"></script>
<script type="text/javascript" src="<?=base_url()?>csdj/admin/js/setcolor.js"></script>
</head>
<BODY style="margin:2px">
	<table align="center" border="1" cellspacing="0" cellpadding="5" bordercolor="#C4DFF4" width="950" style="border-collapse:collapse;">
	<form method="post" Name="myForm" action="<?=site_url('admin/setting/tbedit')?>"> 
  	<tr>
    		<td height="20" colspan="2" class="title" align="center">图片水印选项设置</td>
  	</tr>
  	<tr>
    		<td width="30%" align="right">水印开关:</td>
    		<td>
		    <input id="zt1" type="radio" name="CS_WaterMark" value="1"<?php if(CS_WaterMark==1) echo ' checked';?>/><label for="zt1">开启</label>&nbsp;&nbsp;
		    <input id="zt2" type="radio" name="CS_WaterMark" value="0"<?php if(CS_WaterMark==0) echo ' checked';?>/><label for="zt2">关闭</label>
		   （<font color=#ff6600>开启远程附件后，水印无效~！</font>）</td>
  	</tr>
  	<tr>
    		<td align="right">水印类型:</td>
    		<td>
		    <input id="zts1" onClick="document.getElementById('wenzi').style.display='';document.getElementById('logo').style.display='none';" type="radio" name="CS_WaterMode" value="1"<?php if(CS_WaterMode==1) echo ' checked';?>/><label for="zts1">文字水印</label>&nbsp;&nbsp;
		    <input id="zts2" onClick="document.getElementById('wenzi').style.display='none';document.getElementById('logo').style.display='';" type="radio" name="CS_WaterMode" value="2"<?php if(CS_WaterMode==2) echo ' checked';?>/><label for="zts2">图片水印</label>
		</td>
  	</tr>
        <tbody id="wenzi" <?php if(CS_WaterMode==2){echo 'style="display:none"';}?>>
  	<tr>
    		<td align="right">坐标起点位置 :</td>
    		<td><select name="CS_WaterLocation" style="width:150px;"><option value="1"<?php if(CS_WaterLocation==1) echo ' selected';?>>左下</option><option value="2"<?php if(CS_WaterLocation==2) echo ' selected';?>>右下</option><option value="3"<?php if(CS_WaterLocation==3) echo ' selected';?>>左上</option><option value="4"<?php if(CS_WaterLocation==4) echo ' selected';?>>右上</option><option value="5"<?php if(CS_WaterLocation==5) echo ' selected';?>>居中</option></select></td>
  	</tr>
  	<tr>
    		<td align="right">水印文字信息:</td>
    		<td ><input name="CS_WaterFont" type="text" value="<?=CS_WaterFont?>" size=40></td>
  	</tr>
  	<tr>
    		<td align="right">字体大小:</td>
    		<td><input name="CS_WaterFontSize" type="text" value="<?=CS_WaterFontSize?>" size=10><b>px</b></td>
  	</tr>
  	<tr>
    		<td align="right">字体颜色:</td>
    		<td><input type="text" name="CS_WaterFontColor" id="CS_WaterFontColor" size=13 value="<?=CS_WaterFontColor?>"><img src="<?=base_url()?>csdj/admin/images/rect.gif" width="18" height="17" border=0 style="position:relative;left:-20px;margin-right:-20px;cursor:pointer;background-Color:#ff0000;" title="选取颜色!" onClick="initcolor('CS_WaterFontColor','imgs_CS_WaterFontColor');" id="imgs_CS_WaterFontColor" align="absmiddle" vspace="1"> </td>
  	</tr>
        </tbody>

        <tbody id="logo" <?php if(CS_WaterMode==1){echo 'style="display:none"';}?>>
  	<!-- 上传图片添加水印LOGO图片定义 -->
	<tr>
    		<td align="right">LOGO图片信息<br>填写LOGO的图片相对路径</td>
    		<td><input type="text" name="CS_WaterLogo" size=40 value="<?=CS_WaterLogo?>"></td>
  	</tr>
  	<tr>
    		<td align="right">图片质量:</td>
    		<td><input name="CS_WaterLogotm" type="text" value="<?=CS_WaterLogotm?>" size=10> 0-100，值最大图片质量愈好，图片的大小也越大 *推荐90-100 太小图片会出现模糊现象 </td>
  	</tr>
  	<tr>
    		<td align="right">LOGO图片坐标位置:</td>
    	<td><select name="CS_WaterLocations" style="width:150px;"><option value="1"<?php if(CS_WaterLocations==1) echo ' selected';?>>左下</option><option value="2"<?php if(CS_WaterLocations==2) echo ' selected';?>>右下</option><option value="3"<?php if(CS_WaterLocations==3) echo ' selected';?>>左上</option><option value="4"<?php if(CS_WaterLocations==4) echo ' selected';?>>右上</option><option value="5"<?php if(CS_WaterLocations==5) echo ' selected';?>>居中</option></select></td>
  	</tr>
        </tbody>

  	<tr align="center">
    		<td height="36" colspan="2" ><input type="submit" name="Submit" class="italk-bt" value=" 保 存 "></td>
  	</tr></form>
	</table>
</body>
</html>

