Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.WebUI\Themes\Electricity\My\MasterIndex.aspx
??<%@ Page Language="C#" Inherits="AVA.ResourcesPlatform.WebUI.My.MasterIndex" %> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title><%= Define.Get("Client_??????") %> - <%= this.Title %></title> <%= Import.CSS("js", "/JQueryUI/css/redmond/jquery-ui-1.8.9.custom.css")%> <%= Import.ScriptTheme("js/jquery.1.9.js")%> <%= Import.Script("/URL/jquery.url.js")%> <%= Import.Script("/JsonCookie/json2.js")%> <%= Import.Script("/JsonCookie/jquery.cookie.js")%> <%= Import.Script("/JsonCookie/jquery.jsoncookie.js")%> <%= Import.ScriptTheme("js/jquery-ui.min.js")%> <%= Import.Script("js", "/YK_Validate/YK_Validate.js")%> <%= Import.Script("js", "/YK_Validate/YK_ValidateRegex.js")%> <%= Import.CSS("js", "/YK_Validate/validator.css")%> <%= Import.Script("/global.aspx")%> <%= Import.Script("js", "/global.js")%> <%= new HeadInstance(this) { }.ToHtml() %> <%= Import.ScriptTheme("js/highcharts.js")%> <style> caption { font-weight: bold; font-size: 14px; padding: 3px; } td.num_td { width: 20px; } </style> </head> <body class="my_space <% if (this.User.ParentUserType.HeadMasterEnable == true) {%>orange theme_headmaster <% } else if (this.User.ParentUserType.TeacherEbable == true) {%>blue theme_teacher <% } else if (this.User.ParentUserType.StudentEbable == true) {%>green theme_student <% } else if (this.User.ParentUserType.InstructorEnable == true) { %>dark_blue theme_instructor<% } %>"> <%= new MyHeaderInstance(this) { MyHeaderItem= MyHeaderItem.My }.ToHtml() %> <div class="content"> <div class="container"> <%= new NavInstance(this) { }.Add(Define.Get("Client_??????"),WebUrl.My()).ToHtml()%> <div class="row"> <div class="span4"> <%= new MyMenuInstance(this) { User = CreateInstance.UserDao.Get(CookieGroup.UserCode), MyMenuItem = MyMenuItem.HeadMasterEnable }.ToHtml() %> </div> <div class="span12 hehe"> <ul class="nav nav-tabs tabs sub_nav" id="myTab"> <li class="active"><a href="#" data-target="#systems" data-toggle="tab"><span class="org_bot_cor"></span>??????</a></li> <% if (SettingGroup.HasSubject) { %> <li><a href="#" data-target="#subjects" data-toggle="tab"><span class="org_bot_cor"></span>??????</a></li> <% } %> <% if (SettingGroup.HasMeeting) { %> <li><a href="#" data-target="#intractives" data-toggle="tab"><span class="org_bot_cor"></span>??????</a></li> <% } %> <li><a href="#" data-target="#videos" data-toggle="tab"><span class="org_bot_cor"></span>??????</a></li> <li><a href="#" data-target="#lives" data-toggle="tab"><span class="org_bot_cor"></span>??????</a></li> <li><a href="#" data-target="#albums" data-toggle="tab"><span class="org_bot_cor"></span>??????</a></li> </ul> <div id="total_chart"></div> <div class="tab-content"> <div class="tab-pane active" id="systems"> <div class=""> <div class="body"> <table class="table table-bordered"> <tr> <td>???</td> <td>???</td> </tr> <tr> <td>??????</td> <td> <%= CreateInstance.PVHistoryDao.GuestCount(CookieGroup.DomainGuid,AVA.ResourcesPlatform.Config.TotalTypeEnum.??) %> </td> </tr> <tr> <td>??????</td> <td> <%= CreateInstance.PVHistoryDao.GuestCount(CookieGroup.DomainGuid,AVA.ResourcesPlatform.Config.TotalTypeEnum.??) %> </td> </tr> <tr> <td>?????????</td> <td> <%= CreateInstance.VideoDao.DayVideoCount(new AVA.ResourcesPlatform.Config.TotalParameter() { DomainGuid = CookieGroup.DomainGuid }) %> </td> </tr> <tr> <td>???????????</td> <td> <%= CreateInstance.PVHistoryDao.DayViewCount(1,"Video",AVA.ResourcesPlatform.Config.TotalTypeEnum.???,null,CookieGroup.DomainGuid) %> </td> </tr> <tr> <td>??????</td> <td> <%= CreateInstance.AlbumDao.DayAlbumCount(new AVA.ResourcesPlatform.Config.TotalParameter() { DomainGuid = CookieGroup.DomainGuid }) %> </td> </tr> <tr> <td>??????</td> <td> <%= CreateInstance.ApplicationDao.DayApplicationCount(new AVA.ResourcesPlatform.Config.TotalParameter() { DomainGuid = CookieGroup.DomainGuid }) %> </td> </tr> <% if (SettingGroup.HasMeeting) { %> <tr> <td>?????????</td> <td> <%= CreateInstance.MeetingDao.DayMeetingCount(new AVA.ResourcesPlatform.Config.TotalParameter() { DomainGuid = CookieGroup.DomainGuid }) %> </td> </tr> <% } %> <% if (SettingGroup.HasSubject) { %> <tr> <td>?????????</td> <td> <%= CreateInstance.SubjectDao.DaySubjectCount(new AVA.ResourcesPlatform.Config.TotalParameter() { DomainGuid = CookieGroup.DomainGuid }) %> </td> </tr> <% } %> </table> </div> </div> </div> <div class="tab-pane" id="subjects"> <div class=""> <div class="body"> <div class="row"> <div class="span4"> <table class="table table-bordered"> <caption> ???????????? </caption> <tr> <th>??? </th> <th class="numbers">?????</th> </tr> <% var listViewSubject = CreateInstance.SubjectDao.DayViewCount(new AVA.ResourcesPlatform.Config.TotalParameter() { DomainGuid = CookieGroup.DomainGuid, ResultCount = 10, TotalType = AVA.ResourcesPlatform.Config.TotalTypeEnum.?? }); foreach (var subject in listViewSubject) { %> <tr> <td> <%= new HtmlAnchor(subject.Name){Href=WebUrl.SubjectView(subject.Guid),Target="_blank"} %> </td> <td class="num_td"> <%= subject.VideoView %> </td> </tr> <% } %> </table> </div> <div class="span5"> <table class="table table-bordered"> <caption> ???????????? </caption> <tr> <th>??? </th> <th class="numbers">?????</th> </tr> <% var listCommentSubject = CreateInstance.SubjectDao.DayCommentCount(new AVA.ResourcesPlatform.Config.TotalParameter() { DomainGuid = CookieGroup.DomainGuid, ResultCount = 10, TotalType = AVA.ResourcesPlatform.Config.TotalTypeEnum.?? }); foreach (var subject in listCommentSubject) { %> <tr> <td> <%= new HtmlAnchor(subject.Name){Href=WebUrl.SubjectView(subject.Guid),Target="_blank"} %> </td> <td class="num_td"> <%= subject.CommentCount %> </td> </tr> <% } %> </table> </div> <div class="span5"> <table class="table table-bordered"> <caption> ???????????? </caption> <tr> <th>??? </th> <th class="numbers">?????</th> </tr> <% var lissCollectSubject = CreateInstance.SubjectDao.DayCollectCount(new AVA.ResourcesPlatform.Config.TotalParameter() { DomainGuid = CookieGroup.DomainGuid, ResultCount = 10, TotalType = AVA.ResourcesPlatform.Config.TotalTypeEnum.?? }); foreach (var subject in lissCollectSubject) { %> <tr> <td> <%= new HtmlAnchor(subject.Name){Href=WebUrl.SubjectView(subject.Guid),Target="_blank"} %> </td> <td class="num_td"> <%= subject.CollectCount %> </td> </tr> <% } %> </table> </div> <div class="span5"> <table class="table table-bordered"> <caption> ???????????? </caption> <tr> <th>??? </th> <th class="numbers">???</th> </tr> <% var listSubjectByUser = CreateInstance.SubjectDao.DayUserCount(new AVA.ResourcesPlatform.Config.TotalParameter() { DomainGuid = CookieGroup.DomainGuid, ResultCount = 10, TotalType = AVA.ResourcesPlatform.Config.TotalTypeEnum.?? }); foreach (var subject in listSubjectByUser) { %> <tr> <td> <%= new HtmlAnchor(subject.Name){Href=WebUrl.SubjectView(subject.Guid),Target="_blank"} %> </td> <td class="num_td"> <%= subject.VideoView %> </td> </tr> <% } %> </table> </div> </div> </div> </div> </div> <div class="tab-pane" id="videos"> <div class=""> <div class="body"> <div class="row"> <div class="span5"> <table class="table table-bordered"> <caption> ????????? </caption> <tr> <th>??? </th> <th class="numbers">?????</th> </tr> <% var listViewVideo = CreateInstance.VideoDao.DayViewCount(new AVA.ResourcesPlatform.Config.TotalParameter() { DomainGuid = CookieGroup.DomainGuid, ResultCount = 10, TotalType = AVA.ResourcesPlatform.Config.TotalTypeEnum.?? }); foreach (var video in listViewVideo) { %> <tr> <td> <%= new HtmlAnchor(video.Name){Href=WebUrl.VideoPlay(video.Guid),Target="_blank"} %> </td> <td class="num_td"> <%= video.VideoView %> </td> </tr> <% } %> </table> </div> <div class="span5"> <table class="table table-bordered"> <caption> ????????? </caption> <tr> <th>??? </th> <th class="numbers">?????</th> </tr> <% var listCommentVideo = CreateInstance.VideoDao.DayCommentCount(new AVA.ResourcesPlatform.Config.TotalParameter() { DomainGuid = CookieGroup.DomainGuid, ResultCount = 10, TotalType = AVA.ResourcesPlatform.Config.TotalTypeEnum.?? }); foreach (var video in listCommentVideo) { %> <tr> <td> <%= new HtmlAnchor(video.Name){Href=WebUrl.VideoPlay(video.Guid),Target="_blank"} %> </td> <td class="num_td"> <%= video.CommentCount %> </td> </tr> <% } %> </table> </div> <div class="span5"> <table class="table table-bordered"> <caption> ????????? </caption> <tr> <th>??? </th> <th class="numbers">?????</th> </tr> <% var lissCollectVideo = CreateInstance.VideoDao.DayCollectCount(new AVA.ResourcesPlatform.Config.TotalParameter() { DomainGuid = CookieGroup.DomainGuid, ResultCount = 10, TotalType = AVA.ResourcesPlatform.Config.TotalTypeEnum.?? }); foreach (var video in lissCollectVideo) { %> <tr> <td> <%= new HtmlAnchor(video.Name){Href=WebUrl.VideoPlay(video.Guid),Target="_blank"} %> </td> <td class="num_td"> <%= video.CollectCount %> </td> </tr> <% } %> </table> </div> </div> </div> </div> </div> <div class="tab-pane" id="intractives"> <div class=""> <div class="body"> <div class="row"> <div class="span5"> <table class="table table-bordered"> <caption> ????????? </caption> <tr> <th>??? </th> <th class="numbers">?????</th> </tr> <% var listViewMeeting = CreateInstance.MeetingDao.DayViewCount(new AVA.ResourcesPlatform.Config.TotalParameter() { DomainGuid = CookieGroup.DomainGuid, ResultCount = 10, TotalType = AVA.ResourcesPlatform.Config.TotalTypeEnum.?? }); foreach (var meeting in listViewMeeting) { %> <tr> <td> <%= new HtmlAnchor(meeting.Name){Href=WebUrl.MeetingView(meeting.Guid),Target="_blank"} %> </td> <td class="num_td"> <%= meeting.VideoView %> </td> </tr> <% } %> </table> </div> <div class="span5"> <table class="table table-bordered"> <caption> ????????? </caption> <tr> <th>??? </th> <th class="numbers">?????</th> </tr> <% var listCommentMeeting = CreateInstance.MeetingDao.DayCommentCount(new AVA.ResourcesPlatform.Config.TotalParameter() { DomainGuid = CookieGroup.DomainGuid, ResultCount = 10, TotalType = AVA.ResourcesPlatform.Config.TotalTypeEnum.?? }); foreach (var meeting in listCommentMeeting) { %> <tr> <td> <%= new HtmlAnchor(meeting.Name){Href=WebUrl.MeetingView(meeting.Guid),Target="_blank"} %> </td> <td class="num_td"> <%= meeting.CommentCount %> </td> </tr> <% } %> </table> </div> <div class="span5"> <table class="table table-bordered"> <caption> ????????? </caption> <tr> <th>??? </th> <th class="numbers">?????</th> </tr> <% var lissCollectMeeting = CreateInstance.MeetingDao.DayCollectCount(new AVA.ResourcesPlatform.Config.TotalParameter() { DomainGuid = CookieGroup.DomainGuid, ResultCount = 10, TotalType = AVA.ResourcesPlatform.Config.TotalTypeEnum.?? }); foreach (var meeting in lissCollectMeeting) { %> <tr> <td> <%= new HtmlAnchor(meeting.Name){Href=WebUrl.MeetingView(meeting.Guid),Target="_blank"} %> </td> <td class="num_td"> <%= meeting.CollectCount %> </td> </tr> <% } %> </table> </div> <div class="span5"> <table class="table table-bordered"> <caption> ????????? </caption> <tr> <th>??? </th> <th class="numbers">???</th> </tr> <% var listMeetingByUser = CreateInstance.MeetingDao.DayUserCount(new AVA.ResourcesPlatform.Config.TotalParameter() { DomainGuid = CookieGroup.DomainGuid, ResultCount = 10, TotalType = AVA.ResourcesPlatform.Config.TotalTypeEnum.?? }); foreach (var meeting in listMeetingByUser) { %> <tr> <td> <%= new HtmlAnchor(meeting.Name){Href=WebUrl.MeetingView(meeting.Guid),Target="_blank"} %> </td> <td class="num_td"> <%= meeting.VideoView %> </td> </tr> <% } %> </table> </div> </div> </div> </div> </div> <div class="tab-pane" id="lives"> <div class=""> <div class="body"> <div class="row"> <div class="span5"> <table class="table table-bordered"> <caption> ????????? </caption> <tr> <th>??? </th> <th class="numbers">?????</th> </tr> <% var listViewApplication = CreateInstance.ApplicationDao.DayViewCount(new AVA.ResourcesPlatform.Config.TotalParameter() { DomainGuid = CookieGroup.DomainGuid, ResultCount = 10, TotalType = AVA.ResourcesPlatform.Config.TotalTypeEnum.?? }); foreach (var application in listViewApplication) { %> <tr> <td> <%= new HtmlAnchor(application.Title+(application.ParentRecordEquipment!=null?"["+application.ParentRecordEquipment.Name+"]":"")){Href=WebUrl.LivePlay(application.Guid),Target="_blank"} %> </td> <td class="num_td"> <%= application.VideoView %> </td> </tr> <% } %> </table> </div> <div class="span5"> <table class="table table-bordered"> <caption> ????????? </caption> <tr> <th>??? </th> <th class="numbers">?????</th> </tr> <% var listCommentApplication = CreateInstance.ApplicationDao.DayCommentCount(new AVA.ResourcesPlatform.Config.TotalParameter() { DomainGuid = CookieGroup.DomainGuid, ResultCount = 10, TotalType = AVA.ResourcesPlatform.Config.TotalTypeEnum.?? }); foreach (var application in listCommentApplication) { %> <tr> <td> <%= new HtmlAnchor(application.Title+(application.ParentRecordEquipment!=null?"["+application.ParentRecordEquipment.Name+"]":"")){Href=WebUrl.LivePlay(application.Guid),Target="_blank"} %> </td> <td class="num_td"> <%= application.CommentCount %> </td> </tr> <% } %> </table> </div> <div class="span5"> <table class="table table-bordered"> <caption> ????????? </caption> <tr> <th>??? </th> <th class="numbers">?????</th> </tr> <% var lissCollectApplication = CreateInstance.ApplicationDao.DayCollectCount(new AVA.ResourcesPlatform.Config.TotalParameter() { DomainGuid = CookieGroup.DomainGuid, ResultCount = 10, TotalType = AVA.ResourcesPlatform.Config.TotalTypeEnum.?? }); foreach (var application in lissCollectApplication) { %> <tr> <td> <%= new HtmlAnchor(application.Title+(application.ParentRecordEquipment!=null?"["+application.ParentRecordEquipment.Name+"]":"")){Href=WebUrl.LivePlay(application.Guid),Target="_blank"} %> </td> <td class="num_td"> <%= application.CollectCount %> </td> </tr> <% } %> </table> </div> </div> </div> <!-- end body --> </div> </div> <div class="tab-pane" id="albums"> <div class=""> <div class="body"> <div class="row"> <div class="span5"> <table class="table table-bordered "> <caption> ????????? </caption> <tr> <th>??? </th> <th class="numbers">?????</th> </tr> <% var listViewAlbum = CreateInstance.AlbumDao.DayViewCount(new AVA.ResourcesPlatform.Config.TotalParameter() { DomainGuid = CookieGroup.DomainGuid, ResultCount = 10, TotalType = AVA.ResourcesPlatform.Config.TotalTypeEnum.?? }); foreach (var album in listViewAlbum) { %> <tr> <td> <%= new HtmlAnchor(album.Name){Href=WebUrl.AlbumView(album.Guid),Target="_blank"} %> </td> <td class="num_td"> <%= album.VideoView %> </td> </tr> <% } %> </table> </div> <div class="span5"> <table class="table table-bordered "> <caption> ????????? </caption> <tr> <th>??? </th> <th class="numbers">?????</th> </tr> <% var listCommentAlbum = CreateInstance.AlbumDao.DayCommentCount(new AVA.ResourcesPlatform.Config.TotalParameter() { DomainGuid = CookieGroup.DomainGuid, ResultCount = 10, TotalType = AVA.ResourcesPlatform.Config.TotalTypeEnum.?? }); foreach (var album in listCommentAlbum) { %> <tr> <td> <%= new HtmlAnchor(album.Name){Href=WebUrl.AlbumView(album.Guid),Target="_blank"} %> </td> <td class="num_td"> <%= album.CommentCount %> </td> </tr> <% } %> </table> </div> <div class="span5"> <table class="table table-bordered "> <caption> ????????? </caption> <tr> <th>??? </th> <th class="numbers">?????</th> </tr> <% var lissCollectAlbum = CreateInstance.AlbumDao.DayCollectCount(new AVA.ResourcesPlatform.Config.TotalParameter() { DomainGuid = CookieGroup.DomainGuid, ResultCount = 10, TotalType = AVA.ResourcesPlatform.Config.TotalTypeEnum.?? }); foreach (var album in lissCollectAlbum) { %> <tr> <td> <%= new HtmlAnchor(album.Name){Href=WebUrl.AlbumView(album.Guid),Target="_blank"} %> </td> <td class="num_td"> <%= album.CollectCount %> </td> </tr> <% } %> </table> </div> </div> </div> </div> <!-- end pane --> </div> <!-- tab-content --> <script> var systemSeries = { chart: { type: "bar", renderTo: "total_chart" // defaultSeriesType: "column" }, title: { text: "??????" }, xAxis: { categories: ["??????", "??????", "?????????", "???????????" , "??????", "??????" <% if (SettingGroup.HasMeeting) { %>, "?????????"<% }%> <% if (SettingGroup.HasSubject) { %>, "?????????"<% } %>] }, yAxis: { min: 0, title: { text: "???", align: "high" }, labels: { overflow: "justify" } }, tooltip: { valueSuffix: " ???" }, plotOptions: { bar: { dataLabels: { enabled: true } } }, legend: { layout: "vertical", align: "right", verticalAlign: "top", x: -50, y: 20, floating: true, borderWidth: 1, backgroundColor: "#FFFFFF", shadow: true }, credits: { enabled: false }, series: [ { name: "??????", color: "<% if (this.User.ParentUserType.HeadMasterEnable == true) {%>#ffa500<% } else if (this.User.ParentUserType.TeacherEbable == true) {%>#0085CC <% } else if (this.User.ParentUserType.StudentEbable == true) { %>#7CB010 <% } else if (this.User.ParentUserType.InstructorEnable == true) { %>#005F8B <% } %>", data: [<%= CreateInstance.PVHistoryDao.GuestCount(CookieGroup.DomainGuid,AVA.ResourcesPlatform.Config.TotalTypeEnum.??) %>,<%= CreateInstance.PVHistoryDao.GuestCount(CookieGroup.DomainGuid,AVA.ResourcesPlatform.Config.TotalTypeEnum.??) %>, <%= CreateInstance.VideoDao.DayVideoCount(new AVA.ResourcesPlatform.Config.TotalParameter(){DomainGuid = CookieGroup.DomainGuid}) %>, <%= CreateInstance.PVHistoryDao.DayViewCount(1,"Video",AVA.ResourcesPlatform.Config.TotalTypeEnum.???,null,CookieGroup.DomainGuid) %>, <%= CreateInstance.AlbumDao.DayAlbumCount(new AVA.ResourcesPlatform.Config.TotalParameter(){DomainGuid = CookieGroup.DomainGuid}) %>, <%= CreateInstance.ApplicationDao.DayApplicationCount(new AVA.ResourcesPlatform.Config.TotalParameter(){DomainGuid = CookieGroup.DomainGuid}) %> <% if (SettingGroup.HasMeeting) { %>, <%= CreateInstance.MeetingDao.DayMeetingCount(new AVA.ResourcesPlatform.Config.TotalParameter(){DomainGuid = CookieGroup.DomainGuid}) %><% }%> <% if (SettingGroup.HasSubject) { %>, <%= CreateInstance.SubjectDao.DaySubjectCount(new AVA.ResourcesPlatform.Config.TotalParameter(){DomainGuid = CookieGroup.DomainGuid}) %><% } %> ] } ] }; var subjectSeries = { chart: { type: "bar", renderTo: "total_chart", marginRight: 130, marginBottom: 25 }, title: { text: "", x: -20 //center }, subtitle: { text: "", x: -20 }, xAxis: { categories: ["??????", "??????", "??????"] }, yAxis: { title: { text: "" }, plotLines: [{ value: 0, width: 1, color: "#808080" }] }, tooltip: { valueSuffix: "???" }, legend: { layout: "vertical", align: "right", verticalAlign: "top", x: -10, y: 100, borderWidth: 0 }, series: [ <% var listViewSubject2 = CreateInstance.SubjectDao.DayViewCount(new AVA.ResourcesPlatform.Config.TotalParameter() { DomainGuid = CookieGroup.DomainGuid, ResultCount = 20, TotalType = AVA.ResourcesPlatform.Config.TotalTypeEnum.?? }); foreach (var subject in listViewSubject2) { %> { name: "<%= subject.Name %>", data: [<%= subject.VideoView %>, <%= subject.CommentCount %>, <%= subject.CollectCount %>] }, <% } %> { name: "", data: [] } ].slice(0, -1) }; var videoSeries = { chart: { type: "bar", renderTo: "total_chart", marginRight: 130, marginBottom: 25 }, title: { text: "", x: -20 //center }, subtitle: { text: "", x: -20 }, xAxis: { categories: ["??????", "??????", "??????"] }, yAxis: { title: { text: "" }, plotLines: [{ value: 0, width: 1, color: "#808080" }] }, tooltip: { valueSuffix: "???" }, legend: { layout: "vertical", align: "right", verticalAlign: "top", x: -10, y: 100, borderWidth: 0 }, series: ([ <% var listViewVideo2 = CreateInstance.VideoDao.DayViewCount(new AVA.ResourcesPlatform.Config.TotalParameter() { DomainGuid = CookieGroup.DomainGuid, ResultCount = 10, TotalType = AVA.ResourcesPlatform.Config.TotalTypeEnum.?? }); foreach (var video in listViewVideo2) { %> { name: "<%= video.Name %>", data: [<%= video.VideoView %>, <%= video.CommentCount %>, <%= video.CollectCount %>] }, <% } %> { name: "", data: [] } ]).slice(0, -1) //end series }; var meetingSeries = { chart: { type: "bar", renderTo: "total_chart", marginRight: 130, marginBottom: 25 }, title: { text: "", x: -20 //center }, subtitle: { text: "", x: -20 }, xAxis: { categories: ["??????", "??????", "??????"] }, yAxis: { title: { text: "" }, plotLines: [{ value: 0, width: 1, color: "#808080" }] }, tooltip: { valueSuffix: "???" }, legend: { layout: "vertical", align: "right", verticalAlign: "top", x: -10, y: 100, borderWidth: 0 }, series: [ <%var listViewMeeting2 = CreateInstance.MeetingDao.DayViewCount(new AVA.ResourcesPlatform.Config.TotalParameter() { DomainGuid = CookieGroup.DomainGuid, ResultCount = 10, TotalType = AVA.ResourcesPlatform.Config.TotalTypeEnum.?? }); foreach (var meeting in listViewMeeting2) { %> { name: "<%= meeting.Name %>", data: [<%= meeting.VideoView %>, <%= meeting.CommentCount %>, <%= meeting.CollectCount %>] }, <% } %> { name: "", data: [] } ].slice(0, -1) //end series }; var liveSeries = { chart: { type: "bar", renderTo: "total_chart", marginRight: 130, marginBottom: 25 }, title: { text: "", x: -20 //center }, subtitle: { text: "", x: -20 }, xAxis: { categories: ["??????", "??????", "??????"] }, yAxis: { title: { text: "" }, plotLines: [{ value: 0, width: 1, color: "#808080" }] }, tooltip: { valueSuffix: "???" }, legend: { layout: "vertical", align: "right", verticalAlign: "top", x: -10, y: 100, borderWidth: 0 }, series: [ <% var listViewApplication2 = CreateInstance.ApplicationDao.DayViewCount(new AVA.ResourcesPlatform.Config.TotalParameter() { DomainGuid = CookieGroup.DomainGuid, ResultCount = 10, TotalType = AVA.ResourcesPlatform.Config.TotalTypeEnum.?? }); foreach (var application in listViewApplication2) { %> { name: "<%= application.Title %>", data: [<%= application.VideoView %>, <%= application.CommentCount %>, <%= application.CollectCount %>] }, <% } %> { name: "", data: [] } ].slice(0, -1) //end series }; var albumSeries = { chart: { type: "bar", renderTo: "total_chart", marginRight: 130, marginBottom: 25 }, title: { text: "", x: -20 //center }, subtitle: { text: "", x: -20 }, xAxis: { categories: ["??????", "??????", "??????"] }, yAxis: { title: { text: "" }, plotLines: [{ value: 0, width: 1, color: "#808080" }] }, tooltip: { valueSuffix: "???" }, legend: { layout: "vertical", align: "right", verticalAlign: "top", x: -10, y: 100, borderWidth: 0 }, series: [ <% var listViewAlbum2 = CreateInstance.AlbumDao.DayViewCount(new AVA.ResourcesPlatform.Config.TotalParameter() { DomainGuid = CookieGroup.DomainGuid, ResultCount = 10, TotalType = AVA.ResourcesPlatform.Config.TotalTypeEnum.?? }); foreach (var album in listViewAlbum2) { %> { name: "<%= album.Name %>", data: [<%= album.VideoView %>, <%= album.CommentCount %>, <%= album.CollectCount %>] }, <% } %> { name: "", data: [] } ].slice(0, -1) //end series }; $(document).ready(function () { var hc = new Highcharts.Chart(systemSeries); // $("#total_chart").highcharts(subjectlist); $("a[data-toggle='tab']").on("shown", function (e) { var actions = { "#subjects": function () { return show_subjects; }, "#systems": function () { return show_systems; }, "#lives": function () { return show_lives; }, "#intractives": function () { return show_meeting; }, "#albums": function () { return show_albums; }, "#videos": function () { return show_videos; } // "#judger_line":function(){ // return show_judger_line_container; // }, // "#judger_bar":function(){ // return show_judger_bar_container; // } }; if ($(e.target).attr("data-target") !== "") { // console.log(actions[$(e.target).attr("data-target")]); return actions[$(e.target).attr("data-target")] ? actions[$(e.target).attr("data-target")]()() : ""; } }); function show_systems() { hc = new Highcharts.Chart(systemSeries); } function show_subjects() { hc = new Highcharts.Chart(subjectSeries); }; function show_meeting() { hc = new Highcharts.Chart(meetingSeries); } function show_lives() { hc = new Highcharts.Chart(liveSeries); }; function show_albums() { hc = new Highcharts.Chart(albumSeries); } function show_videos() { hc = new Highcharts.Chart(videoSeries); }; $('#myTab').tab(); }); </script> </div> </div> </div> </div> <%= new FooterInstance(this) { }.ToHtml() %> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de