Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.WebUI\Themes\ShiXun\Control\My\MyRecordSubject.ascx
??<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyRecordSubject.ascx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyRecordSubject" %> <%--<%= new MyGrowthPathNavTopInstance(this) { Local= MyGrowthPathNavTopItem.?????? }.ToHtml()%>--%> <%if(this.ListSubjectUser.Count<=0) { %> <div class="flat data-box"> <div class="head"> <span class="title">?????????????????? </span> </div> </div> <% } else { %> <div class="flat data-box"> <div class="head"> <span class="title">????????<%= this.ListSubjectUser.Count %>???????? </span> </div> <div class="dataControl "> <%--<form id="frmSubjectUserSearch" method="post" action="<%= WebUrl.Proxy() %>"> ???????? <%= new HtmlText("Name", this.Name) { Width = 120 }%> ????? <%= new HtmlText("BeginTime", this.BeginTime.ToLongDate()) { Width = 80 }%> ?? <%= new HtmlText("EndTime", this.EndTime.ToLongDate()) { Width = 80 }%> <%= new HtmlHidden("Key","MyRecordSubject") %> <%= new HtmlSubmit("???") %> </form>--%> <script type="text/javascript"> $(function () { $("#frmSubjectUserSearch [name=BeginTime]").datepicker({ //maxDate: new Date($("#frmSubjectUserSearch [name=EndTime]").val()), onClose: function () { //$("#frmSubjectUserSearch [name=EndTime]").datepicker("option", "minDate", new Date(this.value)); } }); $("#frmSubjectUserSearch [name=EndTime]").datepicker({ //minDate: new Date($("#frmSubjectUserSearch [name=BeginTime]").val()), onClose: function () { //$("#frmSubjectUserSearch [name=BeginTime]").datepicker("option", "maxDate", new Date(this.value)); } }); }); </script> <script type="text/javascript"> </script> </div> <div id="MySubjectUserData" class="data"> <table cellspacing="0" cellpadding="0" width="100%"> <tbody> <tr id="dataHead" class="dataHead"> <%-- <td valign="middle" class="sel" style="width: 20px;"> <input type="checkbox" class="trselall" /> </td>--%> <td valign="middle">?????? </td> <td valign="middle">?????? </td> <td valign="middle" class="disabled">?????????? </td> <td valign="middle" class="disabled hidden">?????????? </td> <td valign="middle" class="disabled">??? </td> </tr> <!--??? ????? ????? ?? ??????? ????? ????????? ????????? class="firstLine lastLine"--> <% for (int i = 0; i <= this.ListSubjectUser.Count - 1; i++) { var subject = this.ListSubjectUser[i].ParentSubject; var subjectUser = this.ListSubjectUser[i]; %> <tr class='<%= i == 0 ? "firstLine" : "" %> <%= i == this.ListSubjectUser.Count - 1 ? "lastLine" : "" %>'> <%-- <td class="sel"> <%= new HtmlCheckBox() { Value = SetKey(subjectUser.Guid, subjectUser.Version), Class = "trsel", Title = DefineEnum.???_????.Define() }%> </td>--%> <td class="v"> <ul> <% if(subject.Status==(int)AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum.???) { %> <li> <div class="min-video-photo"><%= new HtmlAnchor( new HtmlImg(SettingGroup.SubjectCover(subject), subject.Name) { OnErrorImg=SettingGroup.DefaultImg} ) { Href = "#", OnClick= "CheckStatus()" ,Title = subject.Name }%></div> </li> <% } else { %> <li> <div class="min-video-photo"><%= new HtmlAnchor( new HtmlImg(SettingGroup.SubjectCover(subject), subject.Name) { OnErrorImg=SettingGroup.DefaultImg} ) { Href = WebUrl.SubjectView(subject.Guid), Target = "_blank", Title = subject.Name }%></div> </li> <% } %> </ul> </td> <td> <p> <% if(subject.Status==(int)AVA.ResourcesPlatform.Model.Pub.SubjectStatusEnum.???) { %> <%= new HtmlAnchor(subject.Name) { Href = "#", OnClick= "CheckStatus()" }%> <% } else { %> <%= new HtmlAnchor(subject.Name) { Href = WebUrl.SubjectView(subject.Guid),Suffix="..", TextLength=8, Target = "_blank" }%> <% } %> <br /> <% var listSubjectUserVideo = CreateInstance.SubjectVideoDao.Where(l => l.ParentSubject == subject && l.ParentSubmissionUser == subjectUser.ParentUser).ToList(); %> ????????????<%=listSubjectUserVideo.Count %> </p> </td> <td> <%= subject.BeginTime.ToShortDate() %> <br /> ?? <br /> <%= subject.EndTime.ToShortDate() %> </td> <td class="hidden"> <%= subject.CutoffTime.ToShortDate() %> </td> <td> <% if (listSubjectUserVideo.Count>0) { %> <%= new HtmlAnchor("??????") { Href ="#", OnClick="ShowResult('"+subject.Guid+"');"}%> <% }else { %> <span>??????????????</span> <% } %> </td> </tr> <% var listSTUser = CreateInstance.STUserDao.Where(l => l.ParentSubject == subject).ToList(); //?????????????????0??????????? if(listSubjectUserVideo.Count>0) { %> <%--????????????table--%> <tr id="Result<%=subject.Guid %>" style="display:none"> <td colspan="5"> <table cellspacing="0" cellpadding="0" width="100%" > <tr class="dataHead"> <%--<td style="width:25px;"></td>--%> <td>??<%= Define.Get("Client_???")%>???</td> <td>?????? </td> <td>???</td> <td>???</td> </tr> <% //?????????????????? foreach (var item in listSubjectUserVideo) { %> <tr> <%--<td rowspan ="<%=listSTUser.Count %>"><%= new HtmlAnchor("???") { Href ="#", OnClick="HideResult();"}%></td>--%> <td rowspan ="<%=listSTUser.Count %>"><%=item.ParentVideo.Name %></td> <% //???????????????????????? foreach (var stUser in listSTUser) { %> <td><%= new HtmlAnchor(stUser.ParentUser.TrueName) { Href=WebUrl.Show(stUser.ParentUser.ParentDomain.Code,stUser.ParentUser.UserName) }%></td> <% double total = 0; // foreach (var itemVideo2 in listVideo) // { //????????????????????????????? var isSTUserVideo = CreateInstance.STUserVideoDao.Where(l => l.ParentSubjectVideo == item && l.ParentSTUser == stUser).FirstResult(); //????????????????? var stVideoScore = CreateInstance.STVideoScoreDao.Where(l => l.ParentSTUser == stUser && l.ParentVideo == item.ParentVideo) .Take(1) .ToList() .FirstResult(); if (stVideoScore == null) { if (isSTUserVideo == null) { %> <td>???????????</td> <% } else { //?¤? %> <td>???</td> <% } } else { total += stVideoScore.AllScore; %> <td><%= stVideoScore.AllScore %></td> <% //????????????????????? int videoCount; int scoreVideoCount; int scoreVideoPartCount; CreateInstance.STUserDao.UserScore(stUser, out videoCount, out scoreVideoCount, out scoreVideoPartCount); if (scoreVideoPartCount > 0) { %> ???:<%= scoreVideoCount %> ???<%= scoreVideoPartCount %> <% } // } } %> <td> <% if (stVideoScore == null) { %> ?????? <% } else { %> <%= stVideoScore.Comment == null ? "??????" : stVideoScore.Comment %> <% } %> </td> </tr> <% } %> <% } %> </table> </td> </tr> <% } %> <% } %> </tbody> </table> </div> <script type="text/javascript"> function ShowResult(subjectGuid) { $("#Result"+subjectGuid).toggle(500); } function HideResult() { $("#Result").hide(500); } function CheckStatus() { flash("???????????"); return false; } $("#MySubjectUserData .trselall").click(function () { if (this.checked == true) { $("#MySubjectUserData .trsel").attr("checked", "checked"); } else { $("#MySubjectUserData .trsel").removeAttr("checked"); } }) function SelectMySubjectUserAll() { var bool = $("#MySubjectUserData .trselall").attr("checked"); bool = !bool; if (bool == true) { $("#MySubjectUserData .trsel").attr("checked", "checked"); $("#MySubjectUserData .trselall").attr("checked", "checked"); } else { $("#MySubjectUserData .trsel").removeAttr("checked"); $("#MySubjectUserData .trselall").removeAttr("checked"); } } </script> <%-- <%= new PagerAjaxInstance(this) { RecordCount = this.Query.RecordCount, PageSize = this.Query.PageSize, PageIndex = this.Query.PageIndex, PageJsFn = WebUrl.MyRecordSubject(int.MaxValue, this.Name, this.BeginTime.ToString(null), this.EndTime.ToString(null)) }.ToHtml()%>--%> </div> <% } %>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de