<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyPublicClass.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyPublicClass" %> <%--<%= new MyPublicClassNavTopInstance(this) { Local= MyPublicClassNavTopItem.活动列表 }.ToHtml() %>--%>
我创建的<%= this.Query.RecordCount %>个<%= Define.Get("Client_公开课") %>
活动名称: <%= new HtmlText("Name", this.Name) { Width = 120 }%> 日期从 <%= new HtmlText("BeginTime", this.BeginTime.ToShortDate()) { Width = 80 }%> 至 <%= new HtmlText("EndTime", this.EndTime.ToShortDate()) { Width = 80 }%> <%= new HtmlHidden("Key","MyPublicClass") %> <%= new HtmlSubmit("查询") %> <%= new HtmlReset("清除") { Class="btn"}%> <%= new HtmlButton(Define.Get("Client_创建公开课"), "window.location.href='" + WebUrl.MyPublicClassAdd() + "';"){ Class="btn btn-warning " }%> <%= new HtmlButton("删除", "PublicClassBatchDelete(this);") { Class="pull-right btn-danger" }%>
<% for (int i = 0; i <= this.ListPublicClass.Count - 1; i++) { var publicClass = this.ListPublicClass[i]; %> <% } %>
活动封面 活动名称 活动状态 起止时间 截止提交作品日期 操作
<%= new HtmlCheckBox() { Value = SetKey(publicClass.Guid, publicClass.Version), Class = "trsel", Title = DefineEnum.选择_不选.Define() }%>
    <% if (publicClass.Status == (int)AVA.ResourcesPlatform.Model.Pub.PublicClassStatusEnum.禁用) { %>
  • <%= new HtmlAnchor( new HtmlImg(SettingGroup.PublicClassCover(publicClass), publicClass.Name) { OnErrorImg=SettingGroup.DefaultImg} ) { Href = "#",OnClick= "CheckStatus()", Title = publicClass.Name}%>
  • <% } else { %>
  • <%= new HtmlAnchor( new HtmlImg(SettingGroup.PublicClassCover(publicClass), publicClass.Name) { OnErrorImg=SettingGroup.DefaultImg} ) { Href = WebUrl.PublicClassView(publicClass.Guid), Target = "_blank", Title = publicClass.Name}%>
  • <% } %>

<% if (publicClass.Status == (int)AVA.ResourcesPlatform.Model.Pub.PublicClassStatusEnum.禁用) { %> <%= new HtmlAnchor(publicClass.Name) { Href = "#",OnClick="CheckStatus();",Suffix="..", TextLength=22 }%> <% } else { %> <%= new HtmlAnchor(publicClass.Name) { Href = WebUrl.PublicClassView(publicClass.Guid), Target = "_blank",Suffix="..", TextLength=22 }%> <% } %>
课时数:<%= CreateInstance.PublicClassVideoDao.Count(l => l.ParentPublicClass == publicClass) %>课
点击数:<%= publicClass.VideoView %>次
评论数:<%= publicClass.CommentCount %>次
参与人数:<%= CreateInstance.PublicClassUserDao.Count(l=>l.ParentPublicClass == publicClass) %>人
当前未审核参与人员:<%= (CreateInstance.PublicClassUserApplyDao.Count(l=>l.ApplyStatus == (int)AVA.ResourcesPlatform.Model.Pub.PublicClassUserApplyApplyStatusEnum.申请 && l.ParentPublicClass == publicClass)) %>个
<% if (publicClass.Examine == (int)AVA.ResourcesPlatform.Model.Pub.PublicClassExamineEnum.审核不通过 || publicClass.Examine == (int)AVA.ResourcesPlatform.Model.Pub.PublicClassExamineEnum.提交审核) { %> <%= ((AVA.ResourcesPlatform.Model.Pub.PublicClassExamineEnum)publicClass.Examine).Define()%> <% } %>

<%= new HtmlSelect(null, "Value", "Key", "Key") { OnChange = "PublicClassChangeStatusClient(this,'" + SetKey(publicClass.Guid, publicClass.Version) + "');", Lang = publicClass.Status.ToString(), Option = typeof(AVA.ResourcesPlatform.Model.Pub.PublicClassStatusEnum), SelectedValue = publicClass.Status }.Style(new { Width = "auto" })%> <%-- <%= (AVA.ResourcesPlatform.Model.Pub.PublicClassStatusEnum)publicClass.Status %>--%> <%= publicClass.BeginTime.ToShortDate()%> 至 <%= publicClass.EndTime.ToShortDate()%> <%= publicClass.CutoffTime.ToShortDate()%> <%= new HtmlAnchor("编辑") { Href = WebUrl.MyPublicClassEdit(publicClass.Guid) }%> | 删除
<%= new HtmlAnchor("查看学习进度") { Href = WebUrl.MyPublicClassSchedule(publicClass.Guid) }%> <%-- <%= new HtmlText("SortNumber", publicClass.SortNumber) { OnKeyUp = "this.value=this.value.replace(/[^\\d]/g,'');", OnBlur = "this.value=this.value.replace(/[^\\d]/g,'');if(this.value==''){this.value=this.lang};PublicClassChangeSortNumberClient(this,'" + SetKey(publicClass.Guid, publicClass.Version) + "')", Lang = publicClass.SortNumber.ToString(), Width = 50, Title = "修改当前"+Define.Get("Client_公开课")+"的位置" }%>--%>
全选 - 取消
<%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MyPublicClass(int.MaxValue, this.Name, this.BeginTime.ToString(null), this.EndTime.ToString(null)) }.ToHtml()%>