<%@ 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.ID + "='" + instanceID + "'");
	if (rows.Length > 0)
		return rows[0][Alias.Instance.Name + PageLang].ToString();
	else
		return instanceID.ToString();
}
</script>
<script >
var _page = 'task_list',
    _webPath = '<%=WebPath%>',
    _imagePath = '<%=ImagePath%>',
    _lang_working = '正在操作...',
    _lang_operation_fail = '操作失败！',
    _lang_operation_success = '操作成功！',
    _lang_start_time_incorrect = '开始时间不正确！',
    _lang_confirm_delete = '要删除此项吗？';
</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="../../utility/data/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="../../utility/other.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>
	<table border="0" cellpadding="4" cellspacing="1" class="ListTable">
		<thead>
			<tr>
				<th>名称</th>
				<th>实例</th>
				<th>对象</th>
				<th>语言</th>
				<th>操作</th>
				<th>记录</th>
				<th>定时定期</th>
				<th>开始时间</th>
				<th>修改</th>
				<th>删除</th>
			</tr>
		</thead>
		<tbody>
			<ali:List Object="Task" Validate="True">
				<ali:Record>
					<tr id="<%=InnerID%>">
						<form>
							<td><%=Name%></td>
							<td><%=GetInstanceName(InstanceID)%></td>
							<td><%=Object%></td>
							<td><%=Lang%></td>
							<td><%=Operation%></td>
							<td><%=[7]%></td>
							<td>
								<%If Convert.ToString(Every) == "Once"%>
									定时
								<%ElseIf Convert.ToString(Every) == "Year"%>
									每年
								<%ElseIf Convert.ToString(Every) == "Season"%>
									每季
								<%ElseIf Convert.ToString(Every) == "Month"%>
									每月
								<%ElseIf Convert.ToString(Every) == "Week"%>
									每周
								<%ElseIf Convert.ToString(Every) == "Day"%>
									每天
								<%ElseIf Convert.ToString(Every) == "Hour"%>
									每小时
								<%ElseIf Convert.ToString(Every) == "Minute"%>
									每分
								<%EndIf%>
							</td>
							<td><input type="text" name="StartTime" value="<%=StartTime%>" ></td>
							<td><input type="image" src="<%=ImagePath%>modify.gif" ></td>
							<td><a href="">删除</a></td>
						</form>
					</tr>
				</ali:Record>
			</ali:List>
		</tbody>
	</table>
	<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="<%=JsPath%>global.js"></script>
<script  src="<%=ModuleJsPath%>module.js"></script>
</body>
</html>