61028fb668
- porting Bootstrap4 --> bootstrap5 - vari fix (es search vocabolario)
59 lines
3.7 KiB
Plaintext
59 lines
3.7 KiB
Plaintext
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_ImageArchive.ascx.cs" Inherits="MP_ADM.WebUserControls.cmp_ImageArchive" %>
|
|
|
|
<div class="bg-light my-1">
|
|
<div class="row py-0">
|
|
<div class="col-12 col-md-8">
|
|
<div class="input-group">
|
|
<span class="input-group-text">Ricerca [ALT-T]</span>
|
|
<asp:TextBox runat="server" ID="txtSearchArt" CssClass="form-control" AutoPostBack="True" placeholder="ricerca per nome file" AccessKey="T" />
|
|
<asp:LinkButton runat="server" ID="lbtSearchReset" CssClass="input-group-text btn w-100" OnClick="lbtSearchReset_Click"><i class="fa fa-times" aria-hidden="true"></i></asp:LinkButton>
|
|
</div>
|
|
</div>
|
|
<div class="col-6 col-md-2">
|
|
<div class="input-group">
|
|
<span class="input-group-text">col</span>
|
|
<asp:DropDownList runat="server" ID="ddlSize" AutoPostBack="true" CssClass="form-control" OnSelectedIndexChanged="ddlSize_SelectedIndexChanged">
|
|
<asp:ListItem Text="12" Value="col-1"></asp:ListItem>
|
|
<asp:ListItem Text="6" Value="col-2" Selected="true"></asp:ListItem>
|
|
<asp:ListItem Text="4" Value="col-3"></asp:ListItem>
|
|
<asp:ListItem Text="3" Value="col-4"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
</div>
|
|
<div class="col-6 col-md-2">
|
|
<div class="input-group">
|
|
<span class="input-group-text">show max</span>
|
|
<asp:DropDownList runat="server" ID="ddlMaxNum" AutoPostBack="true" CssClass="form-control" OnSelectedIndexChanged="ddlSize_SelectedIndexChanged">
|
|
<asp:ListItem Text="10" Value="10"></asp:ListItem>
|
|
<asp:ListItem Text="25" Value="25" Selected="true"></asp:ListItem>
|
|
<asp:ListItem Text="50" Value="50"></asp:ListItem>
|
|
<asp:ListItem Text="100" Value="100"></asp:ListItem>
|
|
<asp:ListItem Text="200" Value="200"></asp:ListItem>
|
|
<asp:ListItem Text="1000" Value="1000"></asp:ListItem>
|
|
</asp:DropDownList>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<asp:Repeater runat="server" ID="repImages" DataSourceID="ods">
|
|
<ItemTemplate>
|
|
<div class='<%# ddlSize.SelectedValue + " text-center" %>'>
|
|
<asp:LinkButton runat="server" ID="lbtImage" OnClick="lbtImage_Click" CssClass="btn w-100 btn-outline-info text-dark my-1" CommandArgument='<%# Eval("name") %>'>
|
|
<b><%# Eval("name") %></b>
|
|
<asp:Image runat="server" ID="imgFile" CssClass="img-fluid" ImageUrl='<%# Eval("relPath") %>' AlternateText='<%# Eval("relPath") %>' />
|
|
</asp:LinkButton>
|
|
</div>
|
|
</ItemTemplate>
|
|
</asp:Repeater>
|
|
<asp:ObjectDataSource runat="server" ID="ods" SelectMethod="ElencoFiles" TypeName="MP_ADM.WebUserControls.cmp_ImageArchive" OldValuesParameterFormatString="original_{0}">
|
|
<SelectParameters>
|
|
<asp:ControlParameter ControlID="hfPathFull" Name="dirPath" PropertyName="Value" Type="String" />
|
|
<asp:ControlParameter ControlID="txtSearchArt" Name="searchVal" PropertyName="Text" Type="String" DefaultValue="*" />
|
|
<asp:ControlParameter ControlID="ddlMaxNum" Name="maxNum" PropertyName="SelectedValue" Type="Int32" DefaultValue="25" />
|
|
</SelectParameters>
|
|
</asp:ObjectDataSource>
|
|
<asp:HiddenField runat="server" ID="hfPathFull" />
|
|
<asp:HiddenField runat="server" ID="hfSelImage" />
|
|
</div>
|
|
</div>
|