<%@ Page CodeFileBaseClass="IlgharCMS.Lib.AdminPageBase" %>
<%@ Register TagPrefix="IlgharUC" TagName="Ime" Src="../../ime.dwt.ascx"%>
<%@ Register TagPrefix="IlgharUC" TagName="LanguageMenu" Src="../../language_menu.dwt.ascx"%>
<!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" -->
<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" />
<ilgharUC:Ime Ime="true" Eot="true" runat="server" />
<script type="text/javascript">
var _page = "position_add";
var _lang = "<%=ContentLang%>";
var _webPath = "<%=WebPath%>";
var _imagePath = "<%=ImagePath%>";
var _adminPath = "<%=AdminPath%>";
var _sketchMapRoot = "<%=Manager.GetDataPath((Guid)Channel[IlgharCMS.SystemModule.Alias.Instance.ID], null) + "position/sketch_map"%>";
var _imageRoot = "<%=Manager.GetDataPath((Guid)Channel[IlgharCMS.SystemModule.Alias.Instance.ID], null) + "position/image"%>";
var _id;
var _guid;
var _uploadSketchMap;
var _uploadImage;
var _lang_working = "正在操作...";
var _lang_operation_fail = "操作失败！";
var _lang_operation_success = "操作成功！";
var _lang_name_empty = "名称不能空！";
var _lang_width_incorrect = "宽度格式不正确！";
var _lang_height_incorrect = "高度格式不正确！";
var _lang_select_type = "请选择类型！";
var _lang_price_incorrect = "价格格式不正确！";
var _lang_duration_incorrect = "期限格式不正确！";
var _lang_click_price_incorrect = "点击价格格式不正确！";
var _lang_image_type_must_be = "默认图片类型应为：";
var _lang_start_upload_image = "开始上传默认图片...";
var _lang_uploading_image = "正在上传默认图片...";
var _lang_sketch_map_type_must_be = "示意图类型应为：";
var _lang_start_upload_sketch_map = "开始上传示意图...";
var _lang_uploading_sketch_map = "正在上传示意图...";
var _lang_getting_innerid = "正在获取InnerID...";
var _lang_page_code = "页面中插入如下代码：<br />";
</script>
</head>
<body>
<div class="WhiteHeader">
	<div class="Left"><img src="<%=ImagePath%>close_frame.gif" /></div>
	<div class="Title">添加广告位</div>
	<div class="Right">
		<ilgharUC:LanguageMenu runat="server" />
		<img height="15" src="<%=ImagePath%>dropdown.gif" /> 语言：<%=CurrentLanguage%>
	</div>
</div>
<div class="Block">
	<ul class="TabMenu">
		<li class="Left"></li>
		<li class="Middle"><a href="list.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="../ad/search.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">
			<tfoot>
				<tr><td colspan="2"><input type="submit" value="添加" /></td></tr>
			</tfoot>
			<tbody>
				<tr>
					<th width="120">名称：</th>
					<td>
						<input type="text" name="Name" size="40" maxlength="50" class="Text <%=ContentLang%>Font" />
						<input type="checkbox" id="GuidCheckBox" /><label for="GuidCheckBox">Guid：</label><input type="text" name="ID" size="40" maxlength="40" disabled="disabled" class="Disabled" />
					</td>
				</tr>
				<tr>
					<th>类型：</th>
					<td>
						<select name="TypeID" class="<%=ContentLang%>Font">
							<ilghar:List Object="Type">
								<ilghar:Record>
									<option value="<%=ID%>"><%=Name%></option>
								</ilghar:Record>
							</ilghar:List>
						</select>
					</td>
				</tr>
				<tr>
					<th>尺寸（宽x高）：</th>
					<td>
						<input type="text" name="Width" value="0" size="10" maxlength="10" class="Text" /> x
						<input type="text" name="Height" value="0" size="10" maxlength="10" class="Text" />
					</td>
				</tr>
				<tr>
					<th>示意图：</th>
					<td>
						<input id="SketchMapTextbox" type="text" name="SketchMap" size="55" class="Text" />
						<input id="SketchMapBrowse" type="button" value="浏览..." />
						<input id="SketchMapSelect" type="button" value="选择..." />
						<input type="hidden" name="SketchMapAllowedType" value="gif|jpg|jpeg|png|bmp" />
						<img height="22" id="SketchMapView" alt="示意图" style="vertical-align:bottom" />
					</td>
				</tr>
				<tr>
					<th>默认标题：</th>
					<td><input type="text" name="Title" size="50" maxlength="255" class="Text <%=ContentLang%>Font" /></td>
				</tr>
				<tr>
					<th>默认图片：</th>
					<td>
						<input id="ImageTextbox" type="text" name="Image" size="55" class="Text" onchange="document.getElementById('ImageView').src = this.value" />
						<input id="ImageBrowse" type="button" value="浏览..." />
						<input id="ImageSelect" type="button" value="选择..." />
						<input type="hidden" name="ImageAllowedType" value="gif|jpg|png|swf|flv|rm|rmvb|wmv|mpg" />
						<img height="22" id="ImageView" alt="默认图片" style="vertical-align:bottom" />
						<input type="checkbox" id="AddWaterMark" /><label for="AddWaterMark">水印</label>
					</td>
				</tr>
				<tr>
					<th>默认链接：</th>
					<td><input type="text" name="URL" size="50" maxlength="255" class="Text" /></td>
				</tr>
				<tr>
					<th>默认代码：</th>
					<td>
						<button type="button" id="Escape">Escape</button>
						<button type="button" id="UnEscape">UnEscape</button>
						<br />
						<textarea name="Code" cols="70" rows="6" wrap="off" class="Text"></textarea>
					</td>
				</tr>
				<tr>
					<th>价格：</th>
					<td>
						按时长计费：<input type="text" name="Price" value="0" size="5" maxlength="10" class="Text" />元/<input type="text" name="Duration" value="30" size="5" maxlength="10" class="Text" />天
						按点击计费：<input type="text" name="ClickPrice" value="0" size="5" maxlength="10" class="Text" />元/次
					</td>
				</tr>
				<tr>
					<th>描述：</th>
					<td>
						<textarea name="Description" cols="70" rows="6" wrap="off" class="Text <%=ContentLang%>Font"></textarea>
					</td>
				</tr>
				<tr>
					<th>是否空缺：</th>
					<td>
						<input type="radio" name="IsAvailable" id="IsAvailableYes" checked="checked" /><label for="IsAvailableYes">是</label>
						<input type="radio" name="IsAvailable" id="IsAvailableNo" /><label for="IsAvailableNo">否</label>
					</td>
				</tr>
			</tbody>
		</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%>uploader.js"></script>
<script type="text/javascript" src="<%=CommonPath%>utility.js"></script>
<script type="text/javascript" src="<%=JsPath%>global.js"></script>
<script type="text/javascript" src="<%=JsPath%>ad.js"></script>
</body>
</html>