/
ivan
/
ModMas
Обзор
Документация
Войти
/
ivan
/
ModMas
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
ModuleMaster/usercontrols/advancedfileslist.ascx
96 строк
4 KB
i.krivokon
Initial commit
13 мар 2026, 13:49
13 мар 2026, 13:49
00d9fb6
Код
Авторство
О чём код?
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="advancedFilesList.ascx.vb" Inherits="UserControls_advancedFilesList" %> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %> <style type ="text/css" > #tblFilesList td { vertical-align : middle; text-align : left; border: none; border-collapse: collapse ; } .Popup { border: 5px solid Navy; position: absolute; width: 301px; height: 47px; background-color: LightYellow; z-index: 100; text-align: center; padding: 5px; top: 0px; left: -150px; } .thumbnail { cursor: pointer; width : 40px; height: 40px; } .fullsize { cursor: pointer; max-width : 800px; height: auto; position: absolute; border: 2px solid black; } </style> <asp:Literal ID="ltrFilesList" runat="server"></asp:Literal> <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="false"> <ContentTemplate> <table id="tblFilesList"> <tr> <td > <asp:Imagebutton runat ="server" ID="ibAddFile" ImageUrl="~/Images/plusRound.png" /> </td> <td> <asp:Panel ID="pnlMain" runat="server" Style="height: auto; width: auto;"> </asp:Panel> </td> </tr> </table> </ContentTemplate> </asp:UpdatePanel> <asp:UpdatePanel ID="upPopup" runat="server" UpdateMode="Conditional" > <ContentTemplate> <div style="position: relative; "> <asp:HiddenField ID="hfFileId" runat="server" /> <asp:HiddenField ID="hfGroupId" runat="server" /> <asp:HiddenField ID="hfType" runat="server" /> <asp:HiddenField ID="hfStorage" runat="server" /> <asp:HiddenField ID="hfSavePath" runat="server" /> <asp:HiddenField ID="hfNumberOfParameters" runat="server" Value ="0" /> <asp:Panel ID="pnlYesNo" runat="server" style="display : none; width: 150px;" CssClass="Popup"> <strong>Are you sure to delete this file?</strong> <table style="width: 100%; border-style: none; border-collapse: collapse;"> <tr> <td> <asp:Button ID="btnYes" runat="server" Text="Yes" /> </td> <td> <asp:Button ID="btnNo" runat="server" Text="No" /> </td> </tr> </table> </asp:Panel> <asp:Panel ID="pnlAddFile" runat="server" Style="display: none" CssClass="Popup" > <strong>Please, select a file to attach</strong> <table style="border-style: none; border-collapse: collapse;"> <tr> <td> <asp:PlaceHolder ID="pnlFileUpload" runat="server"> <%--<asp:AsyncFileUpload ID="afu" runat="server" />--%> </asp:PlaceHolder> </td> <td style="padding-left: 15px;"> <asp:ImageButton runat="server" ID="ibSave" ImageUrl="~/Images/Save.png" /> </td> <td style="padding-left: 15px;"> <asp:ImageButton runat="server" ID="ibCancel" ImageUrl="~/Images/Cancel.png" /> </td> </tr> </table> </asp:Panel> </div> </ContentTemplate> </asp:UpdatePanel>