showclientdetail.aspx.cs
来自「动易SiteFactory™ 网上商店系统1.0源代码」· CS 代码 · 共 50 行
CS
50 行
namespace PowerEasy.WebSite.Admin.Analytics
{
using PowerEasy.Analytics;
using PowerEasy.Common;
using PowerEasy.Controls;
using PowerEasy.Model.Analytics;
using PowerEasy.Web.UI;
using System;
using System.Web.UI.WebControls;
public class ShowClientDetail : AdminPage
{
protected Label LblAddress;
protected Label LblBrowser;
protected Label LblClientTime;
protected Label LblColor;
protected Label LblIP;
protected Label LblReferer;
protected Label LblScreen;
protected Label LblSystem;
protected Label LblTimezone;
protected Label LblVTime;
protected ExtendedSiteMapPath SmpNavigator;
protected void Page_Load(object sender, EventArgs e)
{
if ((!base.IsPostBack && (base.PreviousPage != null)) && (base.PreviousPage.Items["StatVisitorId"] != null))
{
StatVisitorInfo statVisitorById = OtherReport.GetStatVisitorById(DataConverter.CLng(base.PreviousPage.Items["StatVisitorId"]));
if (!statVisitorById.IsNull)
{
int masterTimeZone = OtherReport.GetStatInfoListInfo().MasterTimeZone;
DateTime time = statVisitorById.VTime.AddHours((double) (statVisitorById.Timezone - (masterTimeZone / 60)));
this.LblVTime.Text = statVisitorById.VTime.ToString();
this.LblIP.Text = statVisitorById.IP;
this.LblTimezone.Text = "GMT" + statVisitorById.Timezone.ToString();
this.LblAddress.Text = statVisitorById.Address;
this.LblClientTime.Text = time.ToString();
this.LblReferer.Text = statVisitorById.Referer;
this.LblSystem.Text = statVisitorById.System;
this.LblBrowser.Text = statVisitorById.Browser;
this.LblScreen.Text = statVisitorById.Screen;
this.LblColor.Text = statVisitorById.Color;
}
}
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?