119 lines
5.6 KiB
Plaintext
119 lines
5.6 KiB
Plaintext
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_selPeriodo.ascx.cs" Inherits="C2P.WebUserControls.mod_selPeriodo" %>
|
|
<%if (false)
|
|
{ %>
|
|
<webopt:BundleReference ID="BundleReference1" runat="server" Path="~/Content/css" />
|
|
<%} %>
|
|
<script>
|
|
// Gestione oggetti datepicker (globale)
|
|
function fixDatePicker() {
|
|
$.datepicker.setDefaults($.datepicker.regional["it"]);
|
|
$(".datepicker").datepicker({
|
|
//showOtherMonths: true,
|
|
//selectOtherMonths: true,
|
|
showButtonPanel: true,
|
|
changeMonth: true,
|
|
changeYear: true,
|
|
dateFormat: "dd/mm/yy"
|
|
});
|
|
}
|
|
|
|
|
|
// richiamo quando il DOM della pagina è ok...
|
|
$(function () {
|
|
fixDatePicker();
|
|
});
|
|
|
|
// oggetto da legare all'update parziale ajax x sistemare script vari
|
|
var prm = Sys.WebForms.PageRequestManager.getInstance();
|
|
prm.add_endRequest(function () {
|
|
// re-bind your jQuery events here
|
|
$(function () {
|
|
fixDatePicker();
|
|
});
|
|
});
|
|
</script>
|
|
<div style="font-size: 8pt;">
|
|
<div class="input-group">
|
|
<span class="input-group-addon">
|
|
<asp:Label ID="lblPeriodo" runat="server"><%: traduci("Date") %></asp:Label>
|
|
</span>
|
|
<asp:TextBox ID="txtInizio" TabIndex="1" runat="server" Width="6em" MaxLength="10" AutoPostBack="True" OnTextChanged="txtInizio_TextChanged" CssClass="datepicker form-control" />
|
|
<%--<asp:DropDownList ID="ddlOraInizio" TabIndex="2" runat="server" AutoPostBack="True" OnTextChanged="txtInizio_TextChanged" CssClass="btn btn-default btn-sm">
|
|
<asp:ListItem>00</asp:ListItem>
|
|
<asp:ListItem>01</asp:ListItem>
|
|
<asp:ListItem>02</asp:ListItem>
|
|
<asp:ListItem>03</asp:ListItem>
|
|
<asp:ListItem>04</asp:ListItem>
|
|
<asp:ListItem>05</asp:ListItem>
|
|
<asp:ListItem>06</asp:ListItem>
|
|
<asp:ListItem>07</asp:ListItem>
|
|
<asp:ListItem>08</asp:ListItem>
|
|
<asp:ListItem>09</asp:ListItem>
|
|
<asp:ListItem>10</asp:ListItem>
|
|
<asp:ListItem>11</asp:ListItem>
|
|
<asp:ListItem>12</asp:ListItem>
|
|
<asp:ListItem>13</asp:ListItem>
|
|
<asp:ListItem>14</asp:ListItem>
|
|
<asp:ListItem>15</asp:ListItem>
|
|
<asp:ListItem>16</asp:ListItem>
|
|
<asp:ListItem>17</asp:ListItem>
|
|
<asp:ListItem>18</asp:ListItem>
|
|
<asp:ListItem>19</asp:ListItem>
|
|
<asp:ListItem>20</asp:ListItem>
|
|
<asp:ListItem>21</asp:ListItem>
|
|
<asp:ListItem>22</asp:ListItem>
|
|
<asp:ListItem>23</asp:ListItem>
|
|
</asp:DropDownList>--%>
|
|
</div>
|
|
<div class="input-group">
|
|
<span class="input-group-addon">
|
|
<asp:Label ID="Label1" runat="server"><%: traduci("Date") %></asp:Label>
|
|
</span>
|
|
<%-- → --%>
|
|
<asp:TextBox ID="txtFine" TabIndex="3" runat="server" Width="6em" MaxLength="10" AutoPostBack="True" OnTextChanged="txtFine_TextChanged" CssClass="datepicker form-control" />
|
|
<%--<asp:DropDownList ID="ddlOraFine" TabIndex="2" runat="server" AutoPostBack="True" OnTextChanged="txtFine_TextChanged" CssClass="btn btn-default btn-sm">
|
|
<asp:ListItem>00</asp:ListItem>
|
|
<asp:ListItem>01</asp:ListItem>
|
|
<asp:ListItem>02</asp:ListItem>
|
|
<asp:ListItem>03</asp:ListItem>
|
|
<asp:ListItem>04</asp:ListItem>
|
|
<asp:ListItem>05</asp:ListItem>
|
|
<asp:ListItem>06</asp:ListItem>
|
|
<asp:ListItem>07</asp:ListItem>
|
|
<asp:ListItem>08</asp:ListItem>
|
|
<asp:ListItem>09</asp:ListItem>
|
|
<asp:ListItem>10</asp:ListItem>
|
|
<asp:ListItem>11</asp:ListItem>
|
|
<asp:ListItem>12</asp:ListItem>
|
|
<asp:ListItem>13</asp:ListItem>
|
|
<asp:ListItem>14</asp:ListItem>
|
|
<asp:ListItem>15</asp:ListItem>
|
|
<asp:ListItem>16</asp:ListItem>
|
|
<asp:ListItem>17</asp:ListItem>
|
|
<asp:ListItem>18</asp:ListItem>
|
|
<asp:ListItem>19</asp:ListItem>
|
|
<asp:ListItem>20</asp:ListItem>
|
|
<asp:ListItem>21</asp:ListItem>
|
|
<asp:ListItem>22</asp:ListItem>
|
|
<asp:ListItem>23</asp:ListItem>
|
|
</asp:DropDownList>--%>
|
|
<span class="input-group-addon">
|
|
<asp:DropDownList ID="ddlSelPeriodo" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlSelPeriodo_SelectedIndexChanged" CssClass="btn btn-default btn-xs">
|
|
<asp:ListItem Value="1">selezione</asp:ListItem>
|
|
<asp:ListItem Value="2">oggi</asp:ListItem>
|
|
<asp:ListItem Value="3">ieri</asp:ListItem>
|
|
<asp:ListItem>questa sett.</asp:ListItem>
|
|
<asp:ListItem Selected="True">ultimi 7gg</asp:ListItem>
|
|
<asp:ListItem>questo mese</asp:ListItem>
|
|
<asp:ListItem>ultimi 30gg</asp:ListItem>
|
|
<asp:ListItem>1 anno</asp:ListItem>
|
|
</asp:DropDownList>
|
|
<asp:Button ID="btnUpdate" CssClass="btn btn-default btn-xs" runat="server" Text="update" Visible="false" OnClick="btnUpdate_Click" />
|
|
|
|
<asp:Label ID="lblDurataMin" runat="server" Visible="false"></asp:Label>
|
|
|
|
<asp:TextBox ID="txtDurataMin" TabIndex="3" runat="server" Width="30px" MaxLength="3" AutoPostBack="True" OnTextChanged="txtInizio_TextChanged" Visible="false"></asp:TextBox>
|
|
</span>
|
|
</div>
|
|
</div>
|