<%@ Page CodeFileBaseClass="AliCMS.Lib.SystemPageBase" %>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<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 language="c#" runat="server">
protected string GetInstanceName(object instanceID)
{
	DataRow[] rows = Manager.Instances.Select(Alias.Instance.InnerID + "=" + instanceID);
	if (rows.Length > 0)
		return rows[0][Alias.Instance.Name + PageLang].ToString();
	else
		return instanceID.ToString();
}
</script>
</head>
<body>
<div class="WhiteHeader">
	<div class="Left"><img src="<%=ImagePath%>close_frame.gif" ></div>
	<div class="Title">智能生成</div>
</div>
<div class="Block">
	<ul class="TabMenu">
		<li class="Left"></li>
		<li class="Middle"><a href="../../generate/config/basic.aspx">生成设置</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="../../generate/manual/list.aspx">手动生成</a></li>
		<li class="Right"></li>
	</ul>
	<ul class="Title">
		<li class="Left"></li>
		<li class="Middle"></li>
		<li class="Right"></li>
	</ul>
	<table border="0" cellpadding="4" cellspacing="1" class="ListTable">
		<thead>
			<tr>
				<th>实例</th>
				<th>对象</th>
				<th>语言</th>
				<th>是否生成</th>
				<th>自定模板</th>
				<th>页面ID</th>
				<th>扩展名</th>
			</tr>
		</thead>
		<tbody>
			<ali:List Object="Generate" Validate="True">
				<ali:Record>
					<tr>
						<td><%=GetInstanceName(InstanceID)%></td>
						<td><%=Object%></td>
						<td><%=Lang%></td>
						<td><%=PageGenerate%></td>
						<td><%=PageTemplate%></td>
						<td><%=PageID%></td>
						<td><%=PageExtension%></td>
					</tr>
				</ali:Record>
			</ali:List>
		</tbody>
	</table>
	<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="<%=JsPath%>global.js"></script>
<script type="text/javascript" src="<%=ModuleJsPath%>module.js"></script>
</body>
</html>