<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyTag.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyTag" %>
标签添加

*标签名称: <%= new HtmlText("Name", null, 256) { }.AddAttribute("Placeholder","建议四字以内")%> <%= new HtmlYKTip("Name")%>
标签类型:
推荐标签: <%= new HtmlCheckBox("IsRecommend",false, 1, 0) { Class = "" }%>
所属学科: <%= new HtmlSelect("ParentCategory","Name","Guid","Guid") { Option = this.ListCategory }.InsertOption("::选择::", "", 0)%>
<%= new HtmlHidden("Key",this.KEY)%> <%= new HtmlSubmit("添加标签", "TagAdd", "TagAddClient(this);").Style(new { Width = "100px" })%> <%----%>
目前共<%= this.Query.RecordCount %>个标签
<%--<%= new HtmlButton("添加...", "","ShowEdit(this);")%>--%> <%= new HtmlButton("删除", "TagBatchDelete(this);"){ Class="btn btn-danger pull-right" }%>
<% for (int i = 0; i <= this.ListTag.Count - 1; i++) { var tag = this.ListTag[i]; %> <% } %>
标签名称 标签类型 推荐标签 所属学科 操作
<%= new HtmlCheckBox() { Value = SetKey(tag.Guid, tag.Version), Class = "trsel", Title = DefineEnum.选择_不选.Define() }%>
<%= tag.Name %>
<%= new HtmlText("Name", tag.Name, 256) { Class = "span2" }.AddAttribute("Placeholder", "建议四字以内").Style(new {Width="100px" })%> <%= new HtmlYKTip("Name")%>
<%= (AVA.ResourcesPlatform.Model.Pub.TagTagTypeEnum)tag.TagType %>
<%= (AVA.ResourcesPlatform.Model.Pub.TagIsRecommendEnum)tag.IsRecommend %>
<%= new HtmlCheckBox("IsRecommend",tag.IsRecommend, 1, 0) { }%>
<%= tag.ParentCategory == null ? "暂无学科" : tag.ParentCategory.Name %>
<%= new HtmlSelect("ParentCategory","Name","Guid","Guid") { Option = this.ListCategory, SelectedValue = tag.ParentCategory == null ? "" : tag.ParentCategory.Guid }.InsertOption("::选择::", "", 0)%>
<%= new HtmlHidden("Key",SetKey(tag.Guid, tag.Version))%>
<%= new HtmlSubmit("确认修改", "TagEdit" + tag.Guid, "TagEditClient(this,'" + tag.Guid + "');") { Class="btn btn-warning"}%> 取消
全选 - 取消
<%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MyTag(int.MaxValue, this.Name) }.ToHtml()%>