<%@ 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" -->
<ilghar:Get ID="Type" Object="Type" InnerID="Request.QueryString['ID']" 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" />
<ilgharUC:Ime Ime="true" Eot="true" runat="server" />
<script type="text/javascript">
var _page = "type_edit";
var _lang = "<%=ContentLang%>";
var _webPath = "<%=WebPath%>";
var _imagePath = "<%=ImagePath%>";
var _id = "<%=Request.QueryString["ID"]%>";
var _uploadTemplate;
var _lang_working = "正在操作...";
var _lang_operation_fail = "操作失败！";
var _lang_operation_success = "操作成功！";
var _lang_name_empty = "名称不能空！";
var _lang_type_must_be = "模板文件类型应为：";
var _lang_start_upload = "开始上传模板文件...";
var _lang_uploading = "正在上传模板文件...";
var _lang_getting_innerid = "正在获取InnerID...";
</script>
</head>
<body>
<div class="WhiteHeader">
	<div class="Left"><img src="<%=ImagePath%>close_frame.gif" /></div>
	<div class="Title"><a href="list.aspx?Lang=<%=ContentLang%>">类型列表</a> → <span class="<%=ContentLang%>Font"><%=Type[Name]%></span></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 Selected"></li>
		<li class="Middle Selected">编辑</li>
		<li class="Right Selected"></li>
		<li class="Left"></li>
		<li class="Middle"><a href="resource/list.aspx?TypeID=<%=Request.QueryString["ID"]%>">资源列表</a></li>
		<li class="Right"></li>
		<li class="Left"></li>
		<li class="Middle"><a href="resource/add.aspx?TypeID=<%=Request.QueryString["ID"]%>">添加资源</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>名称：</th>
					<td><input type="text" name="Name" value="<%=Type[Name]%>" size="30" maxlength="50" class="Text <%=ContentLang%>Font" /></td>
				</tr>
				<tr>
					<th>调用代码：</th>
					<td>
						<textarea name="InvokeCode" cols="70" rows="10" wrap="off" class="Text"><%=Type[InvokeCode]%></textarea>
					</td>
				</tr>
				<tr>
					<th>描述：</th>
					<td>
						<textarea name="Description" cols="70" rows="10" wrap="off" class="Text <%=ContentLang%>Font"><%=Type[Description]%></textarea>
					</td>
				</tr>
				<tr>
					<th>模板(swf)：</th>
					<td>
						<input id="TemplateTextbox" type="text" name="Template" value="<%=Type[TemplateFilePath]%>" size="55" disabled="disabled" class="Text" />
						<input id="TemplateBrowse" type="button" value="浏览..." />
						<input type="hidden" name="TemplateAllowedType" value="swf" />
					</td>
				</tr>
				<tr>
					<th>数据文件名称（含扩展名）：</th>
					<td><input type="text" name="DataFileName" value="<%=Type[DataFileName]%>" size="30" maxlength="50" class="Text" /></td>
				</tr>
				<tr>
					<th>数据模板：</th>
					<td>
						<textarea name="DataTemplate" cols="70" rows="10" wrap="off" class="Text"><%=Type[DataTemplate]%></textarea>
					</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>