Fix footer menu
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 15
|
||||
VisualStudioVersion = 15.0.28307.852
|
||||
# Visual Studio Version 16
|
||||
VisualStudioVersion = 16.0.29306.81
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebLCP", "WebLCP\WebLCP.csproj", "{D8F9AF19-2B35-4AAC-8079-B1D8B5A3F96B}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SteamWare", "..\..\SteamWare\SteamWareLib\SteamWare.csproj", "{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
@@ -15,6 +17,10 @@ Global
|
||||
{D8F9AF19-2B35-4AAC-8079-B1D8B5A3F96B}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{D8F9AF19-2B35-4AAC-8079-B1D8B5A3F96B}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{D8F9AF19-2B35-4AAC-8079-B1D8B5A3F96B}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{2872DCFE-8B46-43B2-BAA0-842A816A2DD5}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
||||
@@ -1,5 +1,19 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="cmp_footer.ascx.cs" Inherits="WebLCP.WUC.cmp_footer" %>
|
||||
|
||||
<footer>
|
||||
<p>© <%: DateTime.Now.Year %> - Applicazione ASP.NET</p>
|
||||
</footer>
|
||||
<nav class="navbar fixed-bottom navbar-dark bg-dark text-light small">
|
||||
<div class="row" style="width: 100%;">
|
||||
<div class="col-6 text-left">
|
||||
<span class="d-none d-lg-inline">
|
||||
<asp:Label ID="lblDateTime" runat="server" Text="..." />
|
||||
| </span>
|
||||
<asp:Label ID="lblCurrUser" runat="server" Text="-" />
|
||||
</div>
|
||||
<div class="col-6 text-right fontCond">
|
||||
<asp:Label runat="server" ID="lblApp" Text="." /> -
|
||||
<asp:Label runat="server" ID="lblCopyRight" CssClass="d-none d-lg-inline" Text="..." />
|
||||
</div>
|
||||
</div>
|
||||
<asp:Timer ID="Timer1" runat="server" Interval="10000" OnTick="Timer1_Tick">
|
||||
</asp:Timer>
|
||||
|
||||
</nav>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Configuration;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
@@ -9,9 +10,37 @@ namespace WebLCP.WUC
|
||||
{
|
||||
public partial class cmp_footer : System.Web.UI.UserControl
|
||||
{
|
||||
public event EventHandler eh_doRefresh;
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
// sistemo le stringhe...
|
||||
lblApp.Text = string.Format("<b>{0}</b> v.{1}", ConfigurationManager.AppSettings.Get("appName"), System.Reflection.Assembly.GetExecutingAssembly().GetName().Version);
|
||||
lblCopyRight.Text = string.Format("<b>{0}-{1}</b>", ConfigurationManager.AppSettings.Get("copyRight"), DateTime.Now.Year);
|
||||
setTimer();
|
||||
setClock();
|
||||
}
|
||||
/// <summary>
|
||||
/// imposta il tempo di scadenza del timer x il refresh della pagina (della parte top) per evitare che la sessione sul server scada
|
||||
/// </summary>
|
||||
private void setTimer()
|
||||
{
|
||||
Timer1.Interval = SteamWare.memLayer.ML.confReadInt("intUpdatePagina_ms");
|
||||
}
|
||||
protected void Timer1_Tick(object sender, EventArgs e)
|
||||
{
|
||||
setClock();
|
||||
// se qualcuno ascolta sollevo evento nuovo valore...
|
||||
if (eh_doRefresh != null)
|
||||
{
|
||||
eh_doRefresh(this, new EventArgs());
|
||||
}
|
||||
}
|
||||
|
||||
private void setClock()
|
||||
{
|
||||
lblDateTime.Text = DateTime.Now.ToString("ddd dd.MM.yyyy, HH:mm:ss");
|
||||
string userEmail = "test@user.it";
|
||||
lblCurrUser.Text = $"Current user: {userEmail}"; //$"{AppData.DataLayer.man.CodSoggCurrUser} - {AppData.DataLayer.man.CognNomeCurrUser}";
|
||||
}
|
||||
}
|
||||
}
|
||||
+45
@@ -11,5 +11,50 @@ namespace WebLCP.WUC {
|
||||
|
||||
|
||||
public partial class cmp_footer {
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblDateTime.
|
||||
/// </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 lblDateTime;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblCurrUser.
|
||||
/// </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 lblCurrUser;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblApp.
|
||||
/// </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 lblApp;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo lblCopyRight.
|
||||
/// </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 lblCopyRight;
|
||||
|
||||
/// <summary>
|
||||
/// Controllo Timer1.
|
||||
/// </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.Timer Timer1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,13 @@
|
||||
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="mod_home.ascx.cs" Inherits="WebLCP.WUC.mod_home" %>
|
||||
<div class="jumbotron">
|
||||
<h1>Progetto di ricerca</h1>
|
||||
<h1>Progetto di ricerca admodelling.org</h1>
|
||||
<p class="lead">Qui andrebbe detto qualcosa del sito (e volendo anche in generale progetto di ricerca?)</p>
|
||||
<p><a href="http://www.asp.net" class="btn btn-primary btn-lg">E qui una sezione approfondimento verso altro link»</a></p>
|
||||
<i>L'idea è di poter spiegare brevemente</i>
|
||||
<ul>
|
||||
<li>Scopo GENERALE del progetto</li>
|
||||
<li>Funzione del sito</li>
|
||||
<li>Le regole del gioco (es: dati restano anonimi BY DESIGN all'origine, noi teniamo in cache risultati 2 settimane poi eliminiamo) </li>
|
||||
<li>Modalità operativa sul sito (qui aiuteremo noi, ma di base iscrizione con email, upload csv, ricezione email x download risultati></li>
|
||||
</ul>
|
||||
<p><a href="http://www.asp.net" class="btn btn-primary btn-lg">Eventuale altro link al sito progetto »</a></p>
|
||||
</div>
|
||||
|
||||
@@ -16,6 +16,32 @@
|
||||
<add assembly="Microsoft.AspNet.Web.Optimization.WebForms" namespace="Microsoft.AspNet.Web.Optimization.WebForms" tagPrefix="webopt" />
|
||||
</controls></pages>
|
||||
</system.web>
|
||||
<appSettings>
|
||||
<!--Configurazioni generali-->
|
||||
<add key="intUpdatePagina_ms" value="120000"/>
|
||||
<add key="appName" value="WLP"/>
|
||||
<add key="CodModulo" value="WLP"/>
|
||||
<add key="copyRight" value="Steamware "/>
|
||||
<!--area logger-->
|
||||
<add key="_logDir" value="~/logs/"/>
|
||||
<add key="enableDumpDiag" value="false"/>
|
||||
<add key="doShrinkFolder" value="true"/>
|
||||
<add key="_logLevel" value="6"/>
|
||||
<add key="_logMaxMb" value="30"/>
|
||||
<add key="logMitigSec" value="30"/>
|
||||
<!--Impostazione gestione serializzazione variabili in sessione (es per Redis)-->
|
||||
<add key="serializeSession" value="true"/>
|
||||
<add key="errorPageRedirect" value="./Reset?Action=CDV"/>
|
||||
<add key="maxAgeAppConf_min" value="5"/>
|
||||
<add key="maxAgeAppConf_min" value="15" />
|
||||
<!--area file upload-->
|
||||
<add key="_tempUploadDir" value="~/FileUpload/"/>
|
||||
<add key="_SqlDir" value="\\sql2016dev\Share\NKC"/>
|
||||
<!--Configurazioni Redis-->
|
||||
<add key="RedisConn" value="localhost,abortConnect=false,ssl=false" />
|
||||
<add key="RedisConnAdmin" value="localhost,abortConnect=false,ssl=false,allowAdmin=true" />
|
||||
<add key="redisDb" value="5"/>
|
||||
</appSettings>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
|
||||
@@ -292,6 +292,12 @@
|
||||
<ItemGroup>
|
||||
<TypeScriptCompile Include="Scripts\index.d.ts" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\..\SteamWare\SteamWareLib\SteamWare.csproj">
|
||||
<Project>{2872dcfe-8b46-43b2-baa0-842a816a2dd5}</Project>
|
||||
<Name>SteamWare</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<PropertyGroup>
|
||||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
|
||||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
|
||||
|
||||
Reference in New Issue
Block a user