<%@ Page CodeFileBaseClass="IlgharCMS.Lib.AdminPageBase" %>
<!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>
<!-- TemplateInfo codeOutsideHTMLIsLocked="true" -->
<ilghar:Get ID="Config" Object="InstanceConfig" Operation="GetWaterMarkSettings()" Validate="True" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>水印设置</title>
<link rel="stylesheet" type="text/css" href="<%=CommonPath%>jquery/themes/lightness/all.css" />
<ilghar:Comment><link rel="stylesheet" type="text/css" href="../../S01/CHS/css/common.css" /></ilghar:Comment>
<link rel="stylesheet" href="<%=CssPath%>common.css" />
<script type="text/javascript">
var _page = "config_water_mark";
var _lang = "<%=ContentLang%>";
var _webPath = "<%=WebPath%>";
var _imagePath = "<%=ImagePath%>";
var _position = "<%=Config[WMSPosition]%>";
var _uploadImage = false;
var _lang_working = "正在操作...";
var _lang_operation_fail = "操作失败！";
var _lang_operation_success = "操作成功！";
var _lang_font_size_incorrect = "字体大小不正确！";
var _lang_font_color_incorrect = "文字颜色不正确！";
var _lang_back_color_incorrect = "背景颜色不正确！";
var _lang_margin_x_incorrect = "水平边距不正确！";
var _lang_margin_y_incorrect = "垂直边距不正确！";
var _lang_transparency_incorrect = "透明程度不正确！";
var _lang_start_upload = "开始上传图片...";
var _lang_uploading = "正在上传图片...";
var _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="basic.aspx?Lang=<%=ContentLang%>">基本设置</a></li>
		<li class="Right"></li>
		<li class="Left"></li>
		<li class="Middle"><a href="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="rewrite.aspx?Lang=<%=ContentLang%>">URL重写</a></li>
		<li class="Right"></li>
		<li class="Left"></li>
		<li class="Middle"><a href="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" /></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 type="text/javascript" src="<%=CommonPath%>jquery/core.js"></script>
<script type="text/javascript" src="<%=CommonPath%>jquery/ui.js"></script>
<script type="text/javascript" src="<%=CommonPath%>utility.js"></script>
<script type="text/javascript" src="<%=CommonPath%>uploader.js"></script>
<script type="text/javascript" src="<%=JsPath%>global.js"></script>
<script type="text/javascript" src="<%=JsPath%>system.js"></script>
</body>
</html>