Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.AdminUI\Pub\Video\List.aspx
??<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="AVA.ResourcesPlatform.AdminUI.Pub.Video.List" %> <!doctype html > <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title> <%= this.Title %></title> <%= Import.Theme() %> <%= Import.CSS("/zh-cn/bootstrap/css/bootstrap.css") %> <%= Import.CSS("/zh-cn/bootstrap/css/bootstrap-theme.css") %> <%= Import.CSS("/zh-cn/bootstrap/admin.css") %> <%-- <%= Import.CSS("/zh-cn/Admin_StyleSheet.css") %>--%> <%= Import.Script("/jquery.1.9.js")%> <%= Import.Script("/app.js")%> <%= Import.Script("/bootstrap/bootstrap.min.js")%> </head> <body> <div class="wrap"> <% var nav = new NavigationInstance(this) { }; nav.IsTopNav = true; %> <%= nav.ToHtml() %> <div class="container-fulid"> <div class="row"> <% nav.GetChildMenu(Request["muid"]);%> <%= nav.ToHtml() %> <div class="col-md-12 " id="content"> <div id="divMain" class="gContent"> <div class="gIbx"> <div class="mContent"> <div id="dvToolbar_inbox" class="g-toolbar"> <div class="btngrp"> <div style="margin-top: 5px;"> <form id="frmSearch" action="" onsubmit="return false;"> <%= new HtmlHidden("$LeftParenthesis", (int)Z.Core.NHibernateCore.Search.QueryParenthesisEnum.None)%> <%= new HtmlHidden("$TableAlias", "_User")%> <%= new HtmlHidden("$Field", "TrueName")%> <%= new HtmlHidden("$FieldType", (int)Z.Core.NHibernateCore.Search.FieldTypeEnum._string)%> <%= new HtmlHidden("$ExpressionKey", null)%> <%= new HtmlHidden("$QueryType", (int)Z.Core.NHibernateCore.Search.QueryTypeEnum.Like)%> <%= new HtmlText("$FieldValue", null) { Width = 80, Placeholder=Define.Get("Video_UserTrueName_??????") }%> <%= new HtmlHidden("$RightParenthesis", (int)Z.Core.NHibernateCore.Search.QueryParenthesisEnum.None)%> <%= new HtmlHidden("$LogicType", (int)Z.Core.NHibernateCore.Search.LogicTypeEnum.AND)%> <%= new HtmlHidden("$IgnoreEmpty", "1")%> <%= new HtmlHidden("$LeftParenthesis", (int)Z.Core.NHibernateCore.Search.QueryParenthesisEnum.None)%> <%= new HtmlHidden("$TableAlias", "_User")%> <%= new HtmlHidden("$Field", "UserName")%> <%= new HtmlHidden("$FieldType", (int)Z.Core.NHibernateCore.Search.FieldTypeEnum._string)%> <%= new HtmlHidden("$ExpressionKey", null)%> <%= new HtmlHidden("$QueryType", (int)Z.Core.NHibernateCore.Search.QueryTypeEnum.Like)%> <%= new HtmlText("$FieldValue", null) { Width = 80, Placeholder=Define.Get("Video_UserUserName_?????").HtmlEncode() }%> <%= new HtmlHidden("$RightParenthesis", (int)Z.Core.NHibernateCore.Search.QueryParenthesisEnum.None)%> <%= new HtmlHidden("$LogicType", (int)Z.Core.NHibernateCore.Search.LogicTypeEnum.AND)%> <%= new HtmlHidden("$IgnoreEmpty", "1")%> <%= new HtmlHidden("$LeftParenthesis", (int)Z.Core.NHibernateCore.Search.QueryParenthesisEnum.None)%> <%= new HtmlHidden("$TableAlias", "_Alias")%> <%= new HtmlHidden("$Field", "Name")%> <%= new HtmlHidden("$FieldType", (int)Z.Core.NHibernateCore.Search.FieldTypeEnum._string)%> <%= new HtmlHidden("$ExpressionKey", null)%> <%= new HtmlHidden("$QueryType", (int)Z.Core.NHibernateCore.Search.QueryTypeEnum.Like)%> <%= new HtmlText("$FieldValue", null) { Width = 80, Placeholder=Define.Get("Video_??????").HtmlEncode() }%> <%= new HtmlHidden("$RightParenthesis", (int)Z.Core.NHibernateCore.Search.QueryParenthesisEnum.None)%> <%= new HtmlHidden("$LogicType", (int)Z.Core.NHibernateCore.Search.LogicTypeEnum.AND)%> <%= new HtmlHidden("$IgnoreEmpty", "1")%> <%= new HtmlHidden("$LeftParenthesis", (int)Z.Core.NHibernateCore.Search.QueryParenthesisEnum.None)%> <%= new HtmlHidden("$TableAlias", "_Alias")%> <%= new HtmlHidden("$Field", "Status")%> <%= new HtmlHidden("$FieldType", (int)Z.Core.NHibernateCore.Search.FieldTypeEnum._int)%> <%= new HtmlHidden("$ExpressionKey", null)%> <%= new HtmlHidden("$QueryType", (int)Z.Core.NHibernateCore.Search.QueryTypeEnum.Eq)%> <%= new HtmlSelect("$FieldValue", "Value", "Key") { Option = typeof(AVA.ResourcesPlatform.Model.Pub.VideoStatusEnum) }.InsertOption("::" + Define.Get("Video_????").HtmlEncode() + "::", null, 0)%> <%= new HtmlHidden("$RightParenthesis", (int)Z.Core.NHibernateCore.Search.QueryParenthesisEnum.None)%> <%= new HtmlHidden("$LogicType", (int)Z.Core.NHibernateCore.Search.LogicTypeEnum.AND)%> <%= new HtmlHidden("$IgnoreEmpty", "1")%> <%-- <%# Define.Get("Video_???????").HtmlEncode() %>?? <%= new HtmlHidden("$LeftParenthesis", (int)Z.Core.NHibernateCore.Search.QueryParenthesisEnum.None)%> <%= new HtmlHidden("$TableAlias", "_Category")%> <%= new HtmlHidden("$Field", "Guid")%> <%= new HtmlHidden("$FieldType", (int)Z.Core.NHibernateCore.Search.FieldTypeEnum._string)%> <%= new HtmlHidden("$ExpressionKey", null)%> <%= new HtmlHidden("$QueryType", (int)Z.Core.NHibernateCore.Search.QueryTypeEnum.Eq)%> <%= new HtmlSelect("$FieldValue", "Name", "Guid", "Guid") { Option = CreateInstance.CategoryDao.Where(l=>l.ParentCategory !=null && l.Status == (int)AVA.ResourcesPlatform.Model.Pub.CategoryStatusEnum.???).OrderBy(l=>l.SortNumber).ToList()}.InsertOption("::" + DefineEnum.???.Define() + "::", null, 0)%> <%= new HtmlHidden("$RightParenthesis", (int)Z.Core.NHibernateCore.Search.QueryParenthesisEnum.None)%> <%= new HtmlHidden("$LogicType", (int)Z.Core.NHibernateCore.Search.LogicTypeEnum.AND)%> <%= new HtmlHidden("$IgnoreEmpty", "1")%>--%> <%= new HtmlHidden("$LeftParenthesis", (int)Z.Core.NHibernateCore.Search.QueryParenthesisEnum.None)%> <%= new HtmlHidden("$TableAlias", "_Grade")%> <%= new HtmlHidden("$Field", "Guid")%> <%= new HtmlHidden("$FieldType", (int)Z.Core.NHibernateCore.Search.FieldTypeEnum._string)%> <%= new HtmlHidden("$ExpressionKey", null)%> <%= new HtmlHidden("$QueryType", (int)Z.Core.NHibernateCore.Search.QueryTypeEnum.Eq)%> <%= new HtmlSelect("$FieldValue", "Name", "Guid", "Guid") { Option = CreateInstance.GradeDao.Where(l=>l.ParentGrade !=null && l.Status == (int)AVA.ResourcesPlatform.Model.Pub.GradeStatusEnum.???).OrderBy(l=>l.SortNumber).ToList()}.InsertOption("::???::", null, 0)%> <%= new HtmlHidden("$RightParenthesis", (int)Z.Core.NHibernateCore.Search.QueryParenthesisEnum.None)%> <%= new HtmlHidden("$LogicType", (int)Z.Core.NHibernateCore.Search.LogicTypeEnum.AND)%> <%= new HtmlHidden("$IgnoreEmpty", "1")%> <%= new HtmlHidden("$LeftParenthesis", (int)Z.Core.NHibernateCore.Search.QueryParenthesisEnum.None)%> <%= new HtmlHidden("$TableAlias", "_Alias")%> <%= new HtmlHidden("$Field", "Guid")%> <%= new HtmlHidden("$FieldType", (int)Z.Core.NHibernateCore.Search.FieldTypeEnum._string)%> <%--<%= new HtmlHidden("$ExpressionKey", "(EXISTS (SELECT * FROM Pub_VideoChannel Pub_VideoChannelTemp WHERE (VideoGuid = {_Alias}.Guid AND ChannelGuid {operator} {value})))")%> --%> <%--MySql?--%> <%= new HtmlHidden("$ExpressionKey", AVA.ResourcesPlatform.Factory.CreateInstance.SQLDao.AdminUI_Pub_Video_List_ExpressionKey() )%> <%= new HtmlHidden("$QueryType", (int)Z.Core.NHibernateCore.Search.QueryTypeEnum.Eq)%> <%= new HtmlSelect("$FieldValue", "Name", "Guid", "Guid") { Option = this.ListChannel, OptGroup= CreateInstance.ChannelDao.GetOptGroup(this.ListChannel),}.InsertOption("::???::", null, 0)%> <%= new HtmlHidden("$RightParenthesis", (int)Z.Core.NHibernateCore.Search.QueryParenthesisEnum.None)%> <%= new HtmlHidden("$LogicType", (int)Z.Core.NHibernateCore.Search.LogicTypeEnum.AND)%> <%= new HtmlHidden("$IgnoreEmpty", "1")%> <%= new HtmlHidden("$LeftParenthesis", (int)Z.Core.NHibernateCore.Search.QueryParenthesisEnum.None)%> <%= new HtmlHidden("$TableAlias", "_Alias")%> <%= new HtmlHidden("$Field", "IsWeiKe")%> <%= new HtmlHidden("$FieldType", (int)Z.Core.NHibernateCore.Search.FieldTypeEnum._bool)%> <%= new HtmlHidden("$ExpressionKey", null)%> <%= new HtmlHidden("$QueryType", (int)Z.Core.NHibernateCore.Search.QueryTypeEnum.Eq)%> <%--<%= new HtmlCheckBox("$FieldValue",0,1,0) %>--%> <select name="$FieldValue"> <option value="" selected="selected">::???::</option> <option value="1">??</option> <option value="0">??</option> </select> <%= new HtmlHidden("$RightParenthesis", (int)Z.Core.NHibernateCore.Search.QueryParenthesisEnum.None)%> <%= new HtmlHidden("$LogicType", (int)Z.Core.NHibernateCore.Search.LogicTypeEnum.AND)%> <%= new HtmlHidden("$IgnoreEmpty", "1")%> <%= new HtmlSubmit(null, null) { OnClick = "GoSearch(this);" }.Style(new { Display = "none" })%> </form> <form id="frmQuery" action="" onsubmit="return false;"> <%= new HtmlHidden("PageIndex", "1") %> <%= new HtmlHidden("PageSize", SettingGroup.ManagerDefine.ListCount)%> <%= new HtmlHidden("Orders", null)%> <%= new HtmlHidden("", null) { ID = "SearchParameter" }%> </form> </div> </div> <div class="btngrp" style="margin-left:20px;"> <div onclick="GoSearch(this);" class="btn btn-dft btn-dft-gl"> <span> <%= DefineEnum.???.Define() %></span></div> <div title="" onclick="GoAdvancedSearch(this);" class="btn btn-dft btn-dft-gc"><span><%= DefineEnum.??????.Define() %></span></div> <form id="frmExprotExcelXML" target="_blank" method="post" action="ExportExcel.aspx" style="display: inline"> <%= new HtmlHidden("ExprotExcelXMLParameter", null)%> <%--<% if (EPRO.CLNS.Config.Helper.ValidMethod("EPRO.CLNS.Ajax.T_P.CJRLLAjax.ExprotExcel") == true) { %>--%> <div class="btn btn-dft btn-dft-gr " title="" onclick="ExprotExcelXM();"> <span> <%= DefineEnum.???.Define()%></span> </div> <div onclick="ChangeChannel();" class="btn btn-dft btn-dft-gl" style="margin-left:10px;"> <span>??????</span> </div> <%= new HtmlSelect("VideoChannel", "Name", "Guid", "Guid") { ID="VideoChannel", Option = this.ListChannel, OptGroup= CreateInstance.ChannelDao.GetOptGroup(this.ListChannel),}.InsertOption("::" + DefineEnum.???.Define() + "::", null, 0)%> <%--<% } %>--%> </form> <script type="text/javascript"> function ExprotExcelXM() { if (confirm("??????????????????????????") == false) { return false; } var data = $("#SearchParameter").val(); data += "&"; data += $("#frmQuery").val(); $("#frmExprotExcelXML [name='ExprotExcelXMLParameter']").val(data); document.getElementById('frmExprotExcelXML').submit(); } </script> </div> <div class="btngrp btngrp-ext"> <div class="btngrp"> <div class="btn btn-dft btn-dft-gl btn-dft-icon" title="" onclick="GoAdd()"> <span> <%= DefineEnum.????.Define() %><b class="ico ico-add"></b></span> </div> <div class="btn btn-dft btn-dft-gc" title="" onclick="GoBatchDelete()"> <span> <%= DefineEnum.????.Define() %></span> </div> <div class="btn btn-dft btn-dft-gc" title="" onclick="GoBatchExamine()"> <span> ??????</span> </div> <div class="btn btn-dft btn-dft-gr btn-dft-pd" title="" onclick="GoBatctVideoConvert()"> <span> ??????</span> </div> </div> <div title="" onclick="GoColumn()" class="btn btn-dft"> <span> <%= DefineEnum.?????.Define() %></span></div> </div> </div> <div style="clear: both"> </div> <div class="ln-thin ln-c-mid"> </div> <div id="dvTitleinbox"> <div class="g-title-1"> <div class="fn-fle"> <h2> <%= Title %> </h2> <span class="txt-info"> <%= DefineEnum._???__strong__span_id____pageRecord____span___strong__.Define() %></span> </div> <div class="title-ext"> <a id="pageFirst" hidefocus="true"> <%= DefineEnum.???.Define() %></a> <a id="pagePrev" hidefocus="true"> <%= DefineEnum.?????.Define()%></a> <a id="pageNext" hidefocus="true"> <%= DefineEnum.?????.Define()%></a> <a id="pageLast" hidefocus="true"> <%= DefineEnum.???.Define()%></a> <select id="pageList"> </select> </div> </div> </div> <div class="gIbx-tablayout"> <div class="txt-12 listContainer" id="list" style="overflow-y:hidden;overflow-x:auto; padding-bottom:10px"> </div> </div> </div> </div> </div> <div style="clear: both"> </div> <div id="divViewDefine" class="gSys-msg-win" style="display: none; right: 10px; top: 45px;"> <div class="fn-bgx bg-main-2 hd" style="cursor: default"> <h4> <%= DefineEnum.????????????????????????.Define() %> </h4> <a title="<%= DefineEnum.???.Define() %>" hidefocus="true" class="fn-bg Aclose" href="#close" onclick="this.parentNode.parentNode.style.display='none';return false;"> <%= DefineEnum.???.Define() %></a> </div> <div class="cont bdr-c-dark"> <div class="gSys-inner-dict"> <form id="frmViewDefine" action="" onsubmit="return false;"> <div class="result bdr-c-mid"> <div class="inside"> <%= new HtmlHidden("KEY",KEY) %> <ul id="ulViewDefine"> <% Type t = typeof(AVA.ResourcesPlatform.AdminUI.Pub.Video.List1); var list = UserControlDefine.GetListViewDefine(UserCode, t.FullName, AVA.ResourcesPlatform.AdminUI.Pub.Video.List1.LISTRPT); foreach (var item in list) { %> <li> <%= new HtmlHidden("Column", item.ColumnName)%> <%= new HtmlCheckBox() { Name = "Sel", Checked = item.Selected, Value=1, UnValue=0, Disabled = item.Require }%> <%= new HtmlHidden() { Name = "Sort", Value=item.SortNumber }%> <%= item.ColumnDescription %> </li> <% } %> </ul> </div> </div> <div class="ft bdr-c-dark bg-cont"> <div class="sup"> </div> <div class="opt"> <div onclick="ViewDefine(this);" class="btn btn-dft btn-dft-impt"> <span> <%= DefineEnum.????.Define() %></span></div> <div onclick="this.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.style.display='none';return false;" class="btn btn-dft"> <span id="txtMsgBoxOk"> <%= DefineEnum.????.Define() %></span></div> </div> </div> </form> </div> </div> </div> <div style="clear: both"> </div> <div id="divSearch" class="gSys-msg-win search" style="display: none; top: 72px; margin: 0 auto;"> <div id="dvMsgHead" class="fn-bgx bg-main-2 hd"> <h4> <%= DefineEnum.????????.Define() %></h4> <a title="<%= DefineEnum.????.Define() %>" hidefocus="true" class="fn-bg Aclose" id="A1" href="#close" onclick="this.parentNode.parentNode.style.display='none';return false;"> <%= DefineEnum.???.Define() %></a> </div> <div class="cont bdr-c-dark"> <div class="gSys-inner-dict"> <form id="frmAdvancedQuery" action="" onsubmit="return false;"> <div class="result bdr-c-mid"> <div class="inside"> <div> <table style="width: 100%" cellpadding="0px" cellspacing="0px" class="g-table-comm"> <tr class="thead"> <th style="border-left-width: 0px;"> ??? </th> <th> ??? </th> <th> ??? </th> <th> ???? </th> <th> ??? </th> <th> ??? </th> <th align="left" style="width: 120px; text-align: left;"> <div title="" onclick="AddQueryParameter(this);" class="btn btn-dft"> <span> <%= DefineEnum.???.Define() %></span></div> </th> </tr> </table> </div> </div> </div> <div class="ft bdr-c-dark bg-cont"> <div class="sup"> </div> <div class="opt"> <%= new HtmlSubmit("Send", null, "AdvancedSearch(this);") { Class = "hidden" }%> <div title="" onclick="AdvancedSearch(this);" class="btn btn-dft btn-dft-impt"> <span> <%= DefineEnum.????.Define() %></span></div> <div id="Div2" title="" onclick="this.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.style.display='none';return false;" class="btn btn-dft"> <span id="Span1"> <%= DefineEnum.????.Define() %></span></div> </div> </div> </form> </div> </div> </div> </div></div></div></div></body> </html> <%= Import.Script("js","/JQueryUI/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("js","/FancyBox/jquery.fancybox-1.2.1.js")%> <%= Import.CSS("js", "/FancyBox/jquery.fancybox.css")%> <%= Import.Script("/ToolTip/jquery.tipsy.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.Script("/Global.aspx")%> <%= Import.Script("/SelectForm.js")%> <%= Import.Script("js", "/global.js")%> <%= Import.Script("js", "/Public.js")%> <%= Import.Script("js", "/ListPublic.js")%> <%= Import.Script("js", "/Ajax/Pub/VideoAjax.js")%> <%= Import.Script("js", "/Ajax/Sys/ManagerViewDefineAjax.js")%> <script type="text/javascript"> //?????? </script> <script type="text/javascript"> function GetAdvancedQueryParams(send) { $("#frmSearch [name='$FieldValue']").val(""); $("#SearchParameter").val(Global.GetFormValue($("#frmAdvancedQuery"))); Search(); } function AddQueryParameter(send) { Global.HtmlControl("/Pub/Video/QueryParameterContainer", null, send, function (result) { $(send).parent().parent().after(result.Html); }); } function GetQueryParamter(send) { Global.HtmlControl("/Pub/Video/QueryParameter", "Key=" + encodeURIComponent(send.value), send, function (result) { $(send).parent().find("div").html(result.Html); Global.HtmlControl("/QueryTypeContainer", "Key=" + encodeURIComponent($(send).parent().find("div [name='$FieldType']").val()), send, function (resultFieldType) { $(send).parent().parent().find(".queryTypeContainer").html(resultFieldType.Html); }); var dicKey = $(send).find("option:selected").attr("lang"); if (typeof(dicKey) != "undefined" && dicKey != "") { Global.HtmlControl("/Pub/Video/QueryParameterDictionary", "Key=" + encodeURIComponent(dicKey), send, function (resultDictionary) { $(send).parent().parent().find(".fieldContainer").html(resultDictionary.Html); }); } else { $(send).parent().parent().find(".fieldContainer").html("<input type=\"text\" name=\"$FieldValue\" />"); } }); } function DeleteQueryParameter(send) { $(send).parent().parent().remove(); } </script> <script type="text/javascript"> //??????AJAX??? //??? function GoSearch(send) { $("#SearchParameter").val(Global.GetFormValue($("#frmSearch"))); Search(send); } function AdvancedSearch(send) { $("#frmSearch [name='$FieldValue']").val(""); $("#SearchParameter").val(Global.GetFormValue($("#frmAdvancedQuery"))); Search(); } function Search(send) { $("#divSearch").hide(); var params = $("#SearchParameter").val(); if (params != null && params != "") { params += "&"; } params += Global.GetFormValue($("#frmQuery")); $("#list").html(Global.LodingHtml); Global.UserControl("/Pub/Video/List", params, send, function (result) { $("#list").html(result.Html); YKPage(result.Data); ListInit(); }); }; //??? function Delete(send) { var key = send.getAttribute("key"); VideoAjax.Delete(key, send, function () { Search(); }); }; //?????? function BatchDelete(send, key) { VideoAjax.BatchDelete(key, null, function () { Search(); }); }; //?????? function ChangeChannel() { var items = null; if (typeof (arguments[0]) != "undefined") { items = $("#" + arguments[0] + " .trsel:checked"); } else { items = $("#list .trsel:checked"); } var key = ""; var channelKey = $("#VideoChannel").val(); if (channelKey == "") { alert("????????????????"); return; } for (var i = 0; i <= items.length - 1; i++) { key += "pkid=" + encodeURIComponent(items[i].value); if (i != items.length - 1) { key += "&"; } } if (key != "") { key += "&channelKey=" + channelKey; VideoAjax.ChangeChannel(key, null, function () { Search(); }); } else { alert("???????????????????"); } } //?????? function BatchExamine(send, key) { VideoAjax.BatchExamine(key, null, function () { Search(); }); }; //?????? function BatctVideoConvert(send, key) { VideoAjax.BatctVideoConvert(key, null, function () { Search(); }); }; function GoBatctVideoConvert() { var items = null; if (typeof (arguments[0]) != "undefined") { items = $("#" + arguments[0] + " .trsel:checked"); } else { items = $("#list .trsel:checked"); } var key = ""; for (var i = 0; i <= items.length - 1; i++) { key += "pkid=" + encodeURIComponent(items[i].value); if (i != items.length - 1) { key += "&"; } } if (key != "") { if (confirm("????????????????") == true) { if (typeof (arguments[1]) != "undefined") { var result = eval(arguments[1] + "(this, key)"); } else { var result = BatctVideoConvert(this, key); } } } else { alert("???????????????"); } }; function GoBatchExamine() { var items = null; if (typeof (arguments[0]) != "undefined") { items = $("#" + arguments[0] + " .trsel:checked"); } else { items = $("#list .trsel:checked"); } var key = ""; for (var i = 0; i <= items.length - 1; i++) { key += "pkid=" + encodeURIComponent(items[i].value); if (i != items.length - 1) { key += "&"; } } if (key != "") { if (confirm("????????????????") == true) { if (typeof (arguments[1]) != "undefined") { var result = eval(arguments[1] + "(this, key)"); } else { var result = BatchExamine(this, key); } } } else { alert("???????????????"); } }; </script> <script type="text/javascript"> //?????? </script> <script type="text/javascript"> //?????? function getDownload(guid) { var ret = false; if ($("#aDownloadFile" + guid).attr("href") == "#") { $.ajax( { cache: false, type: "POST", url: "<%= Request.WebPath() %>/Tools/Video/VideoPath.aspx?Guid=" + guid + "&dataType=json", data: "", async: false, dataType: 'json', success: function (result) { //alert(result); $("#aDownloadFile" + guid).html("????????'?????'"); if (result.SRC != null && result.SRC.length > 0) { $("#aDownloadFile" + guid).attr("href", result.SRC); } else if (result.SHD != null && result.SHD.length > 0) { $("#aDownloadFile" + guid).attr("href", result.SHD); } else if (result.HD != null && result.HD.length > 0) { $("#aDownloadFile" + guid).attr("href", result.HD); } else if (result.NR != null && result.NR.length > 0) { $("#aDownloadFile" + guid).attr("href", result.NR); } else if (result.LW != null && result.LW.length > 0) { $("#aDownloadFile" + guid).attr("href", result.LW); } if ($("#aDownloadFile" + guid).attr("href") != "#") { //alert("click"); setTimeout(function () { //window.open($("#aDownloadFile" + guid).attr("href")); //$("#aDownloadFile" + guid).click(); }, 100); //alert("clickend"); //alert("success true"); ret = true; } else { $("#aDownloadFile" + guid).html("????????"); //alert("false"); ret = false; } }, beforeSend: function () { $("#aDownloadFile" + guid).html("?????..."); }, complete: function () { //$("#aDownloadFile" + guid).html("???"); }, error: function (XMLHttpRequest, textStatus, errorThrown) { $("#aDownloadFile" + guid).html("???"); var message = XMLHttpRequest.responseText; //Global.Error(message); ret = false; } }); } return ret; } </script>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de