Update info page

This commit is contained in:
Samuele E. Locatelli
2019-10-03 15:58:43 +02:00
parent bf94da3ab2
commit 2445b242a2
6 changed files with 146 additions and 30 deletions
+1
View File
@@ -18,6 +18,7 @@ textarea {
}
.bg-abstract {
background-image: url("../images/AbstractDownload.jpg");
/*border-image-repeat:stretch;*/
}
/* Responsive: Portrait tablets and up */
@media screen and (min-width: 768px) {
+1
View File
@@ -21,6 +21,7 @@ textarea {
.bg-abstract {
background-image: url("../images/AbstractDownload.jpg");
/*border-image-repeat:stretch;*/
}
/* Responsive: Portrait tablets and up */
+68 -24
View File
@@ -1,30 +1,74 @@
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_info.ascx.cs" Inherits="GPW_Smart.WebUserControls.cmp_info" %>
<div class='nd2-sidepanel-profile wow fadeInDown'>
<div class="row bg-abstract py-3">
<div class="col-1 text-light">
<div><i class="fa fa-user" aria-hidden="true"></i></div>
<div><i class="fa fa-envelope" aria-hidden="true"></i></div>
<div><i class="fa fa-location-arrow" aria-hidden="true"></i></div>
</div>
<div class="col-8 text-light">
<div class="text-uppercase font-weight-bold"><%: cognomeNome %></div>
<div class='subline'><%: email %></div>
<div class='subline'><%: IP %></div>
</div>
<div class="col-3 text-center">
<img class="rounded-circle" src="https://www.gravatar.com/avatar/<%: hashEmail %>?d=mm" />
</div>
<div class="row bg-abstract py-3">
<div class="col-1 text-light">
<div><i class="fa fa-user" aria-hidden="true"></i></div>
<div><i class="fa fa-envelope" aria-hidden="true"></i></div>
<div><i class="fa fa-location-arrow" aria-hidden="true"></i></div>
</div>
<div class="row">
<div class="col py-3">
<b>INFORMAZIONI applicativo</b>
<hr />
<ul data-role="listview" data-icon="false">
<li><%: versione %></li>
<li>&copy; <%: copyRight %> 2006-<%: DateTime.Now.Year %></li>
</ul>
</div>
<div class="col-8 text-light">
<div class="text-uppercase font-weight-bold"><%: cognomeNome %></div>
<div class='subline'><%: email %></div>
<div class='subline'><%: IP %></div>
</div>
<div class="col-3 text-center">
<img class="rounded-circle" src="https://www.gravatar.com/avatar/<%: hashEmail %>?d=mm" />
</div>
</div>
<div class="row">
<div class="col-12 py-3">
<b>INFORMAZIONI applicativo</b>
<hr />
<ul>
<li><%: versione %></li>
<li>&copy; <%: copyRight %> <b>2006-<%: DateTime.Now.Year %></b></li>
</ul>
</div>
<div class='<%: cssCheckClass + " p-2 col-12 py-3"%>'>
<b>INFORMAZIONI installazione</b>
<hr />
<ul>
<li>Cliente: <b>
<asp:Label runat="server" ID="lblInstallation" /></b>
</li>
<li>Applicazione: <b>
<asp:Label runat="server" ID="lblApplication" /></b>
</li>
<li>Licenze indicate: <b>
<asp:Label runat="server" ID="lblNumLic" /></b>
</li>
<li>Scadenza Licenze: <b>
<asp:Label runat="server" ID="lblExpiryDate" /></b><br />
</li>
</ul>
Auth Key:
<asp:Label runat="server" ID="lblAuthKey" Font-Size="0.5em" />
</div>
</div>
<div class="row small pt-2 pb-5">
<div class="col-3 py-0"></div>
<div class="col-6 text-center"><img class="img-fluid" src="../images/logo_sw.png" />
</div>
<div class="col-3 py-0"></div>
<div class="col-6 py-0">
<address>
<strong>Sede Operativa</strong><br />
via Nazionale, 93<br />
24068 Seriate - BG<br />
<abbr title="Phone">P:</abbr>
035.290178<br />
<abbr title="Phone">P:</abbr>
035.460560
</address>
</div>
<div class="col-6 py-0">
<address>
<strong>Sede Legale</strong><br />
via Briolo Fuori, 27<br />
24015 San Giovanni Bianco
Bergamo - ITALY<br />
<abbr title="P.Iva">VAT:</abbr>03274190168
</address>
</div>
</div>
+30 -5
View File
@@ -1,11 +1,8 @@
using SteamWare;
using GPW_data;
using SteamWare;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace GPW_Smart.WebUserControls
{
@@ -13,7 +10,32 @@ namespace GPW_Smart.WebUserControls
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
lblInstallation.Text = licenzeGPW.installazione;
lblApplication.Text = licenzeGPW.applicazione;
lblNumLic.Text = string.Format("{1} ({0} disp)", licenzeGPW.licenzeAttive, licenzeGPW.licenzeDb);
lblNumLic.ToolTip = "licenze valide (licenze su db)";
lblExpiryDate.Text = licenzeGPW.scadenzaLicenza.ToShortDateString();
lblAuthKey.Text = licenzeGPW.authKey;
}
}
public string cssCheckClass
{
get
{
string answ = "";
if (licenzeGPW.scadenzaLicenza >= DateTime.Now)
{
answ = "table-success";
}
else
{
answ = "table-danger";
}
return answ;
}
}
public string hashEmail
@@ -59,5 +81,8 @@ namespace GPW_Smart.WebUserControls
return string.Format("{0}", ConfigurationManager.AppSettings.Get("copyRight"));
}
}
}
}
+45
View File
@@ -11,5 +11,50 @@ namespace GPW_Smart.WebUserControls {
public partial class cmp_info {
/// <summary>
/// Controllo lblInstallation.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblInstallation;
/// <summary>
/// Controllo lblApplication.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblApplication;
/// <summary>
/// Controllo lblNumLic.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblNumLic;
/// <summary>
/// Controllo lblExpiryDate.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblExpiryDate;
/// <summary>
/// Controllo lblAuthKey.
/// </summary>
/// <remarks>
/// Campo generato automaticamente.
/// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblAuthKey;
}
}
+1 -1
View File
@@ -9,7 +9,7 @@
<h4>Sede Operativa</h4>
<address>
<strong>Steamware s.r.l.</strong><br />
via Dante Alighieri, 16<br />
via Nazionale, 93<br />
24068 Seriate - BG<br />
<abbr title="Phone">P:</abbr>
035.290178<br />