Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.WebUI\Tools\Subject\GetScoreItemApp.aspx
??<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GetScoreItemApp.aspx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Tools.Subject.GetScoreItemApp" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" runat="server"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <%= Import.ScriptTheme("js/jquery.1.9.js")%> <%= Import.ScriptTheme("js/libs/jquery.rating.pack.js")%> <%= Import.ScriptTheme("js/libs/bootstrap-dropdown.js") %> <%= Import.ScriptTheme("js/libs/bootstrap-affix.js") %> <%= Import.ScriptTheme("js/libs/bootstrap-collapse.js")%> <%= Import.ScriptTheme("js/libs/bootstrap-transition.js")%> <%= Import.ScriptTheme("js/libs/bootstrap-tab.js")%> <%= Import.CSS("style.css")%> <%= Import.CSS("style/jquery.rating.css")%> <%= Import.Script("/global.aspx")%> <%= Import.Script("js", "/global.js")%> <style type="text/css"> /* * horial-tabs * */ .hor-tabs { top: 0; left: 0; } .hor-tabs .tabs { border-width: 0; float: left; width: 90px; } .hor-tabs .tabs li { display: block; margin-bottom: 15px; margin-right: -1px; } .hor-tabs .tabs li a { border: none; border-left: 4px solid #999999; } .hor-tabs .tabs li a:hover { border-color: none; border-left: 4px solid #ffc000; } .hor-tabs .tabs li a .icon_play { line-height: 25px; margin-top: 10px; margin-right: 10px; } .hor-tabs .tabs .active > a, .hor-tabs .tabs .active > a:hover { border-color: none; border-left: 4px solid #7f151a; } .hor-tabs .tabs .active a, .hor-tabs .tabs .active a:hover { border-color: none; border-left: 4px solid #7f151a; } .hor-content { margin-left: 90px; height: 450px; border-left: 1px solid #DDD; } .hor-content .searchList { margin-bottom: 15px; } .hor-content .searchList li { width: 80px; } .mini-tabs .tabs { width: 100px; margin-left: 3px; } .mini-tabs .tabs li { float: none; width:auto; margin-bottom:2px; } .mini-tabs .pill-content, .mini-tabs .tab-content { margin-left: 100px; height: 420px; } @media (max-width: 767px){ body { padding:0; } } /* * flash_messages // affix */ .affix{ right:10px; z-index: 999; } .flash_messages-wrapper{ z-index:9999; } .flash_messages { margin-bottom: 0; text-align: justify; display: none; position: relative; margin-top: 200px; } </style> <title></title> <script> var tid = null; window.flash = function flash(str) { // single tid = null; var temp = $(".flash_messages"); //$(".flash_messages").children("p").html(str); // mutiply instant var temp = $(".flash_messages").first().clone(true); $(temp).children().filter("p").html(str); $(".flash_messages").last().before($(temp).scrollTop($(".flash_messages").last().scrollTop() + $(".flash_messages").last().height() / 2)); $(temp).fadeIn(); tid = setTimeout(function () { $(temp).fadeOut(function () { tid = null; }); }, 2000); } window.alert = flash; $(function () { $(".close").click(function () { $(".alert").css("display", "none"); }) }) </script> </head> <body> <div class="affix flash_messages-wrapper" data-spy="affix" data-offset-top="0" style="width:100px;margin-top:400px;"> <div class="flash_messages alert alert-box" style="display: none; width: 100px;"> <button type="button" class="close" data-dismiss="alert">×</button> <h4><i class="icon-info-sign"></i></h4> <p>message-here</p> </div> </div> <%if (this.ErrorCode != 1) { %> <% var ListSTScoreType = this.ListSTScoreItem.GroupBy(l => l.ParentSTScoreType) .Select(l => l.Key) .OrderBy(l => l.SortNumber) .ToList(); %> <div class="accordion" id="accordion2"> <% for (int i = 0; i <= ListSTScoreType.Count - 1; i++) { %> <div class="accordion-group"> <div class="accordion-heading"> <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapse<%=i %>"> <%= ListSTScoreType[i].Name %> </a> </div> <div id="collapse<%=i %>" class="accordion-body collapse"> <div class="accordion-inner"> <table class="table-striped"> <tr> <th style="width:80px;">???</th> <th style="width: 140px;">???</th> <th style="width: 30px;">???</th> </tr> <% foreach (var stScoreItem in this.ListSTScoreItem.Where(l => l.ParentSTScoreType == ListSTScoreType[i]) .OrderBy(l => l.SortNumber) .ToList()) { %> <tr> <td title="<%=stScoreItem.Description %>" style="text-align: center;cursor:pointer;width:80px;"> <%= stScoreItem.Name%><br /> <%--<%= llScoreItem.Description.RestoreHtml()%>--%> </td> <td style="text-align: center; padding-left: 20px;"> <form action="" id="frm<%=stScoreItem.Guid%>" method="post" onsubmit="return false;"> <%= new HtmlHidden("STScoreItemGuid", stScoreItem.Guid)%> <%= new HtmlHidden("VideoGuid", this.Video == null ? "" : this.Video.Guid)%> <%= new HtmlHidden("STUserGuid", this.STUser == null ? "" : this.STUser.Guid)%> <div> <% var score = stScoreItem.ScoreRatio; var stars = 5;//????????? //?????????????? double? localScore = null; var stUserScoreItem = CreateInstance.STUserScoreItemDao.Where(l => l.ParentSTUser == this.STUser && l.ParentVideo == this.Video && l.ParentSTScoreItem == stScoreItem) .ToList() .FirstResult(); if (stUserScoreItem != null) { localScore = stUserScoreItem.Score; } for (var j = 1; j <= stars * 1; j++) { %> <%= new HtmlRadio("frm" + stScoreItem.Guid, score * j / (1* 5), "0") { Class = "pingfen {split:2}", Checked = (localScore == score / stars * j ? true : false) }%> <% } %> </div> </form> </td> <td style="text-align: center"><%= stScoreItem.ScoreRatio%></td> </tr> <% } %> </table> </div> </div> </div> <%} %> </div> <script type="text/javascript"> $(function () { // wait for document to load $('input.pingfen').rating({ callback: function (value, link) { //alert(this); var params = ""; params += "STScoreItemGuid=" + $("#" + this.name).find("[name=STScoreItemGuid]").val(); params += "&"; params += "VideoGuid=" + $("#" + this.name).find("[name=VideoGuid]").val(); params += "&"; params += "STUserGuid=" + $("#" + this.name).find("[name=STUserGuid]").val(); params += "&"; params += "Score=" + value; //alert(params); //return; $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.STUserScoreItemEdit", data: params, async: true, dataType: 'json', success: function (result) { Global.Disabled(this, false); flash("??????"); }, beforeSend: function () { Global.Disabled(this, true); }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { Global.Disabled(this, false); var message = XMLHttpRequest.responseText; Global.Error(message); } }); }, focus: function (value, link) { link.title = '?????' + value + '??'; } }); }); </script> <% } else { %> ErrorCode = <%= this.ErrorCode %> Message = <%= this.Message %> <% } %> <%--</div>--%> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de