<%@ Page Inherits="Caicai.Framework.UI.Admin.Manage" Table="C_TaskClass"  order="OrderNum desc, id desc" %>
<!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>
<title><%= Caicai.Framework.Common.Language.Get("C_TaskClass") %></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link type="text/css" href="style.css" rel="stylesheet" rev="stylesheet" media="all" />
<script type="text/javascript" src="../files/common/jquery.js"></script>
<script type="text/javascript" src="../files/xheditor/xheditor-zh-cn.min.js"></script>
<script type="text/javascript" src="include/xheditor.js"></script>
<script type="text/javascript" src="include/common.js"></script>
<script type="text/javascript">
$(function()
{
	$("#TB_Name").myValidator();
	$("#DDL_UserClass").myValidator();
})
</script>
</head>
<body id="C_TaskClass">
<form id="form1" runat="server">
<table class="table subsubmenu">
	<thead>
	<tr>
		<td>
			<a href="?action=manage">&gt;&gt;&nbsp;<%= Caicai.Framework.Common.Language.Get("C_TaskClass") %></a>
			<a href="?action=insert"><%= Caicai.Framework.Common.Language.Get("InsertData") %></a>
			
			
		</td>
		
	</tr>
  </thead>
</table>

<asp:Panel ID="PanelDefault" runat="server">
<table class="table" style="margin-top:8px;">
<thead>
	<tr>
		
		<th width="40"><%= Caicai.Framework.Common.Language.Get("ID") %></th>
		
		<td width="120"><%= Caicai.Framework.Common.Language.Get("C_TaskClass_UserClass") %></td>
		
		<td><%= Caicai.Framework.Common.Language.Get("C_TaskClass_Name") %></td>
		
		<td width="50"><%= Caicai.Framework.Common.Language.Get("C_TaskClass_OrderNum") %></td>
		
		<td width="120"><%= Caicai.Framework.Common.Language.Get("InputDate") %></td>
		<td width="200"><%= Caicai.Framework.Common.Language.Get("Manage") %></td>
	</tr>
</thead>

<asp:Repeater ID="RepeaterDefault" runat="server">
<ItemTemplate>
	<tr>
		
		<th><%#Eval("ID")%></th>
		
		<td class="repeater_UserClass">
			<strong><%# GetTableName("C_UserClass", "", Eval("UserClass").ToString())%></strong>
		</td>
		
		<td class="repeater_Name">
			<a href="?action=show&id=<%#Eval("id")%>"><%#Eval("Name")%></a>
		</td>
		
		<td class="repeater_OrderNum">
			<a href="?action=up&ordernum=<%#Eval("OrderNum")%>&id=<%#Eval("id")%>"><img alt="<%#Eval("OrderNum")%>" src="images/ico_up.gif" /></a><a href="?action=down&ordernum=<%#Eval("OrderNum")%>&id=<%#Eval("id")%>"><img  alt="<%#Eval("OrderNum")%>" src="images/ico_down.gif" /></a>
		</td>
		
		<td><%#Eval("InputDate")%></td>
		<td class="manage">
			<a href="?action=show&id=<%#Eval("ID")%>" class="show"><%= Caicai.Framework.Common.Language.Get("Show") %></a>
			<a href="?action=update&id=<%#Eval("ID")%>" class="update"><%= Caicai.Framework.Common.Language.Get("Update") %></a>
			<a href="?action=copy&id=<%#Eval("ID")%>" class="copy"><%= Caicai.Framework.Common.Language.Get("Copy") %></a>
			<a href="?action=delete&deletetable=c_task&id=<%#Eval("ID")%>" class="delete" title="<%= Caicai.Framework.Common.Language.Get("DataDeleteTitle") %>"><%= Caicai.Framework.Common.Language.Get("Delete") %></a>
		</td>
	</tr>
	
</ItemTemplate>
</asp:Repeater>

</table>
<table class="table">
<tr>
	<td class="page"><Caicai:CPageSql ID="PageDefault" runat="server" PageSize="15" /></td>
</tr>
</table>
<br />
</asp:Panel>

<asp:Panel ID="PanelManage" runat="server">
<table class="table" style="margin-top:8px;">
<thead>
<tr>
	<td colspan="2"><%= Caicai.Framework.Common.Language.Get("ManageData") %>&nbsp;<a href="#" class="helpall">[?]</a></td>
</tr>
</thead>

<tr id="manage_UserClass">
	<th style="width:120px;"><%= Caicai.Framework.Common.Language.Get("C_TaskClass_UserClass") %>&nbsp;<a href="#" class="help">[?]</a></th>
	<td>
	<span class="note"><%= Caicai.Framework.Common.Language.Get("C_TaskClass_UserClass", "note") %></span>
	<Cai:CDropDownList ID="DDL_UserClass" runat="server" ControlType="TableName" Name="C_UserClass" Where="" Order="" TextName="" ValueName=""   />
	</td>
</tr>

<tr id="manage_Name">
	<th style="width:120px;"><%= Caicai.Framework.Common.Language.Get("C_TaskClass_Name") %>&nbsp;<a href="#" class="help">[?]</a></th>
	<td>
	<span class="note"><%= Caicai.Framework.Common.Language.Get("C_TaskClass_Name", "note") %></span>
	<Cai:CTextBox ID="TB_Name" runat="server" ControlType="Default"  />
	</td>
</tr>

<tr id="manage_Intro">
	<th style="width:120px;"><%= Caicai.Framework.Common.Language.Get("C_TaskClass_Intro") %>&nbsp;<a href="#" class="help">[?]</a></th>
	<td>
	<span class="note"><%= Caicai.Framework.Common.Language.Get("C_TaskClass_Intro", "note") %></span>
	<Cai:CTextBox ID="TB_Intro" runat="server" ControlType="MultiLine" class="Editor" />
	</td>
</tr>

<tr id="manage_OrderNum">
	<th style="width:120px;"><%= Caicai.Framework.Common.Language.Get("C_TaskClass_OrderNum") %>&nbsp;<a href="#" class="help">[?]</a></th>
	<td>
	<span class="note"><%= Caicai.Framework.Common.Language.Get("C_TaskClass_OrderNum", "note") %></span>
	<Cai:CTextBox ID="TB_OrderNum" runat="server" ControlType="OrderNum"  />
	</td>
</tr>

<tr id="manage_InputDate">
	<th style="width:120px;"><%= Caicai.Framework.Common.Language.Get("InputDate") %>&nbsp;<a href="#" class="help">[?]</a></th>
	<td>
	<span class="note"><%= Caicai.Framework.Common.Language.Get("InputDate", "note") %></span>
	<Cai:CTextBox ID="TB_InputDate" runat="server" ControlType="DateTime" /><a href="#" class="datetime"><%= Caicai.Framework.Common.Language.Get("NowDateTime") %></a>
	</td>
</tr>
<tr>
	<th>&nbsp;</th>
	<td><asp:Button ID="ButtonManage" runat="server" CssClass="button" onclick="Manage_Click" /><input type="reset" class="button" value='<%= Caicai.Framework.Common.Language.Get("Reset") %>' /></td>
</tr>
</table>
</asp:Panel>

<asp:Panel runat="server" ID="PanelShow">
<table class="table" style="margin-top:8px;">
<asp:Repeater ID="RepeaterShow" runat="server">
<ItemTemplate>
	<thead>
	<tr>
		<td colspan="2"><%= Caicai.Framework.Common.Language.Get("ShowData") %></td>
	</tr>
	</thead>
	<tr>
		<th style="width:120px;"><%= Caicai.Framework.Common.Language.Get("ID") %></th>
		<td><%# Eval("ID")%></td>
	</tr>
	
	<tr>
		<th style="width:120px;"><%= Caicai.Framework.Common.Language.Get("C_TaskClass_UserClass") %></th>
		<td>
			<strong><%# GetTableName("C_UserClass", "", Eval("UserClass").ToString())%></strong>
		</td>
	</tr>
	
	<tr>
		<th style="width:120px;"><%= Caicai.Framework.Common.Language.Get("C_TaskClass_Name") %></th>
		<td>
			<a href="?action=show&id=<%#Eval("id")%>"><%#Eval("Name")%></a>
		</td>
	</tr>
	
	<tr>
		<th style="width:120px;"><%= Caicai.Framework.Common.Language.Get("C_TaskClass_Intro") %></th>
		<td>
			<%#Eval("Intro")%>
		</td>
	</tr>
	
	<tr>
		<th style="width:120px;"><%= Caicai.Framework.Common.Language.Get("C_TaskClass_OrderNum") %></th>
		<td>
			<a href="?action=up&ordernum=<%#Eval("OrderNum")%>&id=<%#Eval("id")%>"><img alt="<%#Eval("OrderNum")%>" src="images/ico_up.gif" /></a><a href="?action=down&ordernum=<%#Eval("OrderNum")%>&id=<%#Eval("id")%>"><img  alt="<%#Eval("OrderNum")%>" src="images/ico_down.gif" /></a>
		</td>
	</tr>
	
	<tr>
		<th><%= Caicai.Framework.Common.Language.Get("InputDate") %></th>
		<td><%# Eval("InputDate")%></td>
	</tr>
</ItemTemplate>
</asp:Repeater>
<tr>
	<td>&nbsp;</td>
	<td colspan="2" class="manage"><a href="javascript:history.back()"><% =Caicai.Framework.Common.Language.Get("ReturnBack") %></a></td>
</tr>
</table>
</div>
</asp:Panel>

<asp:Panel runat="server" ID="PanelImport">
<table class="table" style="margin-top:8px;">
<thead>
<tr>
	<td colspan="2"><%= Caicai.Framework.Common.Language.Get("ImportData") %></td>
</tr>
</thead>
<tr class="noeffect">
	<th style="width:120px;"><%= Caicai.Framework.Common.Language.Get("Import") %></th>
	<td>
	<div class="faq"><img src="images/import.png" /><%= Caicai.Framework.Common.Language.Get("ImportData", "note") %></div>
	&nbsp;<asp:Button ID="DownExcel" runat="server" CssClass="button" onclick="DownExcel_Click" />
	<div style="display:none;">
	<div id="ImportFields">[UserClass] as <%= Caicai.Framework.Common.Language.Get("C_TaskClass_UserClass") %> ,[Name] as <%= Caicai.Framework.Common.Language.Get("C_TaskClass_Name") %> ,[Intro] as <%= Caicai.Framework.Common.Language.Get("C_TaskClass_Intro") %> ,[OrderNum] as <%= Caicai.Framework.Common.Language.Get("C_TaskClass_OrderNum") %> ,</div>
	<textarea ID="TB_ImportFields" name="TB_ImportFields"></textarea></div></td>
</tr>
<tr>
	<th style="width:120px;"></th>
	<td><asp:FileUpload ID="FileUploadImport" runat="server" style="width:60%;" /></td>
</tr>
<tr>
	<th>&nbsp;</th>
	<td>&nbsp;<asp:Button ID="ButtonImport" runat="server" CssClass="button" onclick="Import_Click" /></td>
</tr>
</table>
</asp:Panel>
<asp:Panel runat="server" ID="PanelExport">
<table class="table" style="margin-top:8px;">
<thead>
<tr>
	<td colspan="2"><%= Caicai.Framework.Common.Language.Get("ExportData") %></td>
</tr>
</thead>
</table>
<table class="table">
<tr class="noeffect">
	<td>
		<div class="faq"><img src="images/export.png" /><%= Caicai.Framework.Common.Language.Get("ExportData", "note") %></div>
	</td>
</tr>
<tr>
	<td id="FieldsAll" align="right">
	<input id="ID" type="checkbox" name="CB_Fields" checked="checked" /><label for="ID"><%= Caicai.Framework.Common.Language.Get("ID") %></label>
	
	<input id="UserClass" type="checkbox" name="CB_Fields" checked="checked" /><label for="UserClass"><%= Caicai.Framework.Common.Language.Get("C_TaskClass_UserClass") %></label>
	
	<input id="Name" type="checkbox" name="CB_Fields" checked="checked" /><label for="Name"><%= Caicai.Framework.Common.Language.Get("C_TaskClass_Name") %></label>
	
	<input id="Intro" type="checkbox" name="CB_Fields" checked="checked" /><label for="Intro"><%= Caicai.Framework.Common.Language.Get("C_TaskClass_Intro") %></label>
	
	<input id="OrderNum" type="checkbox" name="CB_Fields" checked="checked" /><label for="OrderNum"><%= Caicai.Framework.Common.Language.Get("C_TaskClass_OrderNum") %></label>
	
	<input id="InputDate" type="checkbox" name="CB_Fields" checked="checked" /><label for="InputDate"><%= Caicai.Framework.Common.Language.Get("InputDate") %></label>
	</td>
</tr>
<tr align="right">
	<td>
		<div style="display:none;"><asp:TextBox ID="TB_Field" runat="server" /><asp:TextBox ID="checked_Fields" runat="server" width="80%">ID,UserClass,Name,Intro,OrderNum,InputDate</asp:TextBox><asp:TextBox ID="TB_Fields" runat="server" width="80%"></asp:TextBox></div>
		<asp:TextBox ID="TB_Keyword" runat="server" />
		<select name="DDL_Fields" id="DDL_Fields">
		
		<option value="UserClass"><%= Caicai.Framework.Common.Language.Get("C_TaskClass_UserClass") %></option>
		
		<option value="Name"><%= Caicai.Framework.Common.Language.Get("C_TaskClass_Name") %></option>
		
		<option value="Intro"><%= Caicai.Framework.Common.Language.Get("C_TaskClass_Intro") %></option>
		
		<option value="OrderNum"><%= Caicai.Framework.Common.Language.Get("C_TaskClass_OrderNum") %></option>
		
		<option value="InputDate"><%= Caicai.Framework.Common.Language.Get("InputDate") %></option>
		</select>
		<asp:Button ID="ButtonSearch" runat="server" CssClass="button" onclick="Search_Click" /></td>
</tr>
<tr class="noeffect">
	<td class="gridview">
	<asp:GridView ID="GridViewDefault" runat="server"></asp:GridView>
	</td>
</tr>
</table>
<table class="table">
</tr>
<tr>
	<th>&nbsp;</th>
	<td><asp:Button ID="ButtonExport" runat="server" CssClass="button" onclick="Export_Click" /></td>
</tr>
</table>
</asp:Panel>
</form>
</body>
</html>