<%@ Page CodeFileBaseClass="AliCMS.Lib.SystemPageBase" %>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<ali:Get ID="Config" Object="InstanceConfig" Operation="GetWaterMarkSettings()" Validate="True" />

<title>水印设置</title>
<link rel="stylesheet"  href="<%=CommonPath%>jquery/themes/lightness/all.css" >
<ali:Comment><link rel="stylesheet"  href="../../S01/CHS/css/common.css" ></ali:Comment>
<link rel="stylesheet" href="<%=CssPath%>common.css" >
<script >
var _page = 'config_water_mark',
    _lang = '<%=ContentLang%>',
    _webPath = '<%=WebPath%>',
    _imagePath = '<%=ImagePath%>',
    _position = '<%=Config[WMSPosition]%>',
    _uploadImage = false,
    _lang_working = '正在操作...',
    _lang_operation_fail = '操作失败！',
    _lang_operation_success = '操作成功！',
    _lang_font_size_incorrect = '字体大小不正确！',
    _lang_font_color_incorrect = '文字颜色不正确！',
    _lang_back_color_incorrect = '背景颜色不正确！',
    _lang_margin_x_incorrect = '水平边距不正确！',
    _lang_margin_y_incorrect = '垂直边距不正确！',
    _lang_transparency_incorrect = '透明程度不正确！',
    _lang_start_upload = '开始上传图片...',
    _lang_uploading = '正在上传图片...',
    _lang_type_must_be = '图片类型应为：';
</script>
</head>
<body>
<div class="WhiteHeader">
	<div class="Left"><img src="<%=ImagePath%>close_frame.gif" ></div>
	<div class="Title">水印设置</div>
	<div class="Right"></div>
</div>
<div class="Block">
	<ul class="TabMenu">
		<li class="Left"></li>
		<li class="Middle"><a href="../config/basic.aspx?Lang=<%=ContentLang%>">基本设置</a></li>
		<li class="Right"></li>
		<li class="Left"></li>
		<li class="Middle"><a href="../config/email.aspx?Lang=<%=ContentLang%>">邮件设置</a></li>
		<li class="Right"></li>
		<li class="Left Selected"></li>
		<li class="Middle Selected">水印设置</li>
		<li class="Right Selected"></li>
		<li class="Left"></li>
		<li class="Middle"><a href="../config/rewrite.aspx?Lang=<%=ContentLang%>">URL重写</a></li>
		<li class="Right"></li>
		<li class="Left"></li>
		<li class="Middle"><a href="../config/global.aspx?Lang=<%=ContentLang%>">全局设置</a></li>
		<li class="Right"></li>
	</ul>
	<ul class="Title">
		<li class="Left"></li>
		<li class="Middle"></li>
		<li class="Right"></li>
	</ul>
	<form>
		<table border="0" cellpadding="4" cellspacing="1">
			<tbody>
				<tr>
					<th width="120">类型：</th>
					<td>
						<%If Convert.ToString(Config[WMSType]) == "Text"%>
							<input type="radio" name="Type" id="TypeImage" value="Image" ><label for="TypeImage">图片</label>
							<input type="radio" name="Type" id="TypeText" value="Text" checked="checked" ><label for="TypeText">文字</label>
						<%Else%>
							<input type="radio" name="Type" id="TypeImage" value="Image" checked="checked" ><label for="TypeImage">图片</label>
							<input type="radio" name="Type" id="TypeText" value="Text" ><label for="TypeText">文字</label>
						<%EndIf%>
					</td>
				</tr>
				<tr>
					<th>水印图片：</th>
					<td>
						<input id="ImageTextbox" type="text" name="Image" value="<%=Config[WMSImage]%>" size="60" class="Text" >
						<input id="ImageBrowse" type="button" value="浏览..." >
						<input type="hidden" name="ImageAllowedType" value="gif|jpg|jpeg|png|bmp|png" >
						<a href="<%=Config[WMSImage]%>" target="_blank"><img src="<%=Config[WMSImage]%>" height="22" id="ImageView" alt="水印图片" style="vertical-align:bottom" /></a>
					</td>
				</tr>
				<tr>
					<th>水印文字：</th>
					<td><input type="text" name="Text" value="<%=Config[WMSText]%>" maxlength="100" class="Text" ></td>
				</tr>
				<tr>
					<th>字体类型：</th>
					<td><input type="text" name="FontFamily" value="<%=Config[WMSFontFamily]%>" maxlength="100" class="Text" ></td>
				</tr>
				<tr>
					<th>字体大小：</th>
					<td><input type="text" name="FontSize" value="<%=Config[WMSFontSize]%>" maxlength="100" class="Text" ></td>
				</tr>
				<tr>
					<th>文字颜色：</th>
					<td><input type="text" name="ForeColor" value="<%=Config[WMSForeColor]%>" maxlength="100" class="Text" ></td>
				</tr>
				<tr>
					<th>背景颜色：</th>
					<td><input type="text" name="BackColor" value="<%=Config[WMSBackColor]%>" maxlength="100" class="Text" ></td>
				</tr>
				<tr>
					<th>粗体：</th>
					<td>
						<%If Convert.ToBoolean(Config[WMSBold])%>
							<input type="radio" name="Bold" id="BoldYes" checked="checked" ><label for="BoldYes">是</label>
							<input type="radio" name="Bold" id="BoldNo" ><label for="BoldNo">否</label>
						<%Else%>
							<input type="radio" name="Bold" id="BoldYes" ><label for="BoldYes">是</label>
							<input type="radio" name="Bold" id="BoldNo" checked="checked" ><label for="BoldNo">否</label>
						<%EndIf%>
					</td>
				</tr>
				<tr>
					<th>斜体：</th>
					<td>
						<%If Convert.ToBoolean(Config[WMSItalic])%>
							<input type="radio" name="Italic" id="ItalicYes" checked="checked" ><label for="ItalicYes">是</label>
							<input type="radio" name="Italic" id="ItalicNo" ><label for="ItalicNo">否</label>
						<%Else%>
							<input type="radio" name="Italic" id="ItalicYes" ><label for="ItalicYes">是</label>
							<input type="radio" name="Italic" id="ItalicNo" checked="checked" ><label for="ItalicNo">否</label>
						<%EndIf%>
					</td>
				</tr>
				<tr>
					<th>位置：</th>
					<td>
						<select name="Position">
							<option value="TopLeft">左上角</option>
							<option value="TopRight">右上角</option>
							<option value="MiddleCenter">居中</option>
							<option value="BottomLeft">左下角</option>
							<option value="BottomRight">右下角</option>
						</select>
					</td>
				</tr>
				<tr>
					<th>水平边距：</th>
					<td><input type="text" name="MarginX" value="<%=Config[WMSMarginX]%>" maxlength="100" class="Text" ></td>
				</tr>
				<tr>
					<th>垂直边距：</th>
					<td><input type="text" name="MarginY" value="<%=Config[WMSMarginY]%>" maxlength="100" class="Text" ></td>
				</tr>
				<tr>
					<th>透明程度：</th>
					<td><input type="text" name="Transparency" value="<%=Config[WMSTransparency]%>" maxlength="100" class="Text" >0为全透明，1为不透明</td>
				</tr>
			</tbody>
			<tfoot>
				<tr>
					<td colspan="2"><input type="submit" id="Submit" class="Button" value="编辑" ></td>
				</tr>
			</tfoot>
		</table>
	</form>
	<div class="Footer"></div>
</div>
<script src="<%=CommonPath%>jquery/core.js"></script>
<script src="<%=CommonPath%>jquery/ui.js"></script>
<script src="<%=CommonPath%>utility.js"></script>
<script src="<%=CommonPath%>uploader.js"></script>
<script src="<%=JsPath%>global.js"></script>
<script src="<%=ModuleJsPath%>module.js"></script>
</body>
</html>