Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.AdminUI\Pub\Video\Select.aspx
??<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Select.aspx.cs" Inherits="AVA.ResourcesPlatform.AdminUI.Pub.Video.Select" %> <!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.Script("/jquery.1.9.js")%> </head> <body> <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;"> <%# Define.Get("Video_????").HtmlEncode() %>?? <%= 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("::" + 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")%> <%# Define.Get("Video_??????").HtmlEncode() %>?? <%= 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 }%> <%= new HtmlHidden("$RightParenthesis", (int)Z.Core.NHibernateCore.Search.QueryParenthesisEnum.None)%> <%= new HtmlHidden("$LogicType", (int)Z.Core.NHibernateCore.Search.LogicTypeEnum.AND)%> <%= new HtmlHidden("$IgnoreEmpty", "1")%> <% if (!string.IsNullOrEmpty(ParentUser)) { %> <%= new HtmlHidden("$LeftParenthesis", (int)Z.Core.NHibernateCore.Search.QueryParenthesisEnum.None)%> <%= new HtmlHidden("$TableAlias", "_User")%> <%= 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 HtmlHidden("$FieldValue", this.ParentUser) %> <%= new HtmlHidden("$RightParenthesis", (int)Z.Core.NHibernateCore.Search.QueryParenthesisEnum.None)%> <%= new HtmlHidden("$LogicType", (int)Z.Core.NHibernateCore.Search.LogicTypeEnum.AND)%> <%= new HtmlHidden("$IgnoreEmpty", "1")%> <% } %> <% if (!string.IsNullOrEmpty(this.Type) && !string.IsNullOrEmpty(this.TargetGuid)) { string expressionKey = ""; switch(this.Type) { case "Subject": // expressionKey = "(NOT EXISTS (SELECT * FROM Pub_SubjectVideo Pub_SubjectVideoTemp WHERE (VideoGuid = {_Alias}.Guid AND SubjectGuid {operator} {value})))"; // MySql? expressionKey = AVA.ResourcesPlatform.Factory.CreateInstance.SQLDao.AdminUI_Pub_Video_Select_Subject(); break; case "PublicClass": // expressionKey = "(NOT EXISTS (SELECT * FROM Pub_PublicClassVideo Pub_PublicClassVideoTemp WHERE (VideoGuid = {_Alias}.Guid AND PublicClassGuid {operator} {value})))"; // MySql? expressionKey = AVA.ResourcesPlatform.Factory.CreateInstance.SQLDao.AdminUI_Pub_Video_Select_PublicClass(); break; case "Album": // expressionKey = "(NOT EXISTS (SELECT * FROM Pub_AlbumVideo Pub_AlbumVideoTemp WHERE (VideoGuid = {_Alias}.Guid AND AlbumGuid {operator} {value})))"; // MySql? expressionKey = AVA.ResourcesPlatform.Factory.CreateInstance.SQLDao.AdminUI_Pub_Video_Select_Album(); break; case "STUser": // expressionKey = "(NOT EXISTS (SELECT * FROM Pub_STUserVideo Pub_STUserVideoTemp WHERE (VideoGuid = {_Alias}.Guid AND SubjectGuid {operator} {value})))"; // MySql? expressionKey = AVA.ResourcesPlatform.Factory.CreateInstance.SQLDao.AdminUI_Pub_Video_Select_STUser(); break; default: expressionKey = null; return; } %> <%= 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", expressionKey)%> <%= new HtmlHidden("$QueryType", (int)Z.Core.NHibernateCore.Search.QueryTypeEnum.Eq)%> <%= new HtmlHidden("$FieldValue", this.TargetGuid) { Width = 80 }%> <%= 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.SelectListCount)%> <%= new HtmlHidden("Orders", null)%> <%= new HtmlHidden("", null) { ID = "SearchParameter" }%> </form> </div> </div> <div class="btngrp"> <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-gr"> <span> <%= DefineEnum.??????.Define() %></span></div> </div> <div class="btngrp btngrp-ext"> <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 selectDefine" id="list"> </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.Select1); var list = UserControlDefine.GetListViewDefine(UserCode, t.FullName, AVA.ResourcesPlatform.AdminUI.Pub.Video.Select1.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, "Search(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> </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/Select", params, send, function (result) { $("#list").html(result.Html); YKPage(result.Data); ListInit(); }); }; </script> <script type="text/javascript"> //?????? var valueControl = "<%= Request.QueryString["valueControl"].ToString("").ToScriptChar() %>"; var nameControl = "<%= Request.QueryString["nameControl"].ToString("").ToScriptChar() %>"; </script> <script type="text/javascript"> //?????? </script>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de