zoukankan      html  css  js  c++  java
  • 网站计数器 kiddy

    View Code
    using System;
    using System.Data;
    using System.Configuration;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using System.Web.UI.HtmlControls;
    using Com.Netmarch.BLL;
    using Com.Netmarch.Model;
    
    /// <summary>
    /// 网站计数器
    /// </summary>
    public class VisitCounter
    {
        [Ajax.AjaxMethod]
        public static void UpdateVisitRecord(int tongji_Id, string tongji_ReferUrl, string tongji_ReferEngine, string tongji_ClientScreen, string tongji_ClientSystem, string tongji_ClientBrowser)
        {
            VisitRecord nmm_VisitRecord = new VisitRecord();
            VisitRecordInfo oVisitRecordInfo = nmm_VisitRecord.GetVisitRecordInfoByID(tongji_Id);
            if (oVisitRecordInfo != null)
            {
                //只允许更新两分钟内的记录
                if (oVisitRecordInfo.VisitTime.AddMinutes(2) >= DateTime.Now && oVisitRecordInfo.VisitIp == HttpContext.Current.Request.UserHostAddress)
                {
                    oVisitRecordInfo.ReferUrl = tongji_ReferUrl;
                    oVisitRecordInfo.ReferEngine = tongji_ReferEngine;
                    oVisitRecordInfo.ClientScreen = tongji_ClientScreen;
                    oVisitRecordInfo.ClientSystem = tongji_ClientSystem;
                    oVisitRecordInfo.ClientBrowser = tongji_ClientBrowser;
                    nmm_VisitRecord.UpdateVisitRecordByID(oVisitRecordInfo);
                }
            }
        }
    }
  • 相关阅读:
    面向对象 课堂记录
    面向对象10个案例 (来源网络)
    面向对象举例
    面向对象
    36选7
    Android ImageView的scaleType属性与adjustViewBounds属性
    安卓计算器 简单代码
    安卓单选、复选按钮简单练习
    安卓发送邮箱界面 线形、表格、相对布局方式
    UI和View 三种控制方式
  • 原文地址:https://www.cnblogs.com/kongdf/p/2566464.html
Copyright © 2011-2022 走看看