Exemplo n.º 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        XabaraCom xc = new XabaraCom();
        xc.CheckAdminLogin(string.Empty);
        Page.Title = XmlReader.GetConfig(Server.MapPath("~/xabara.config"), "webName") + " 管理系统";

        if (!IsPostBack)
        {
            LgName.Text = HttpUtility.UrlDecode(Request.Cookies["XabaraAdmin"]["AdminName"].Trim()) + "[" + xc.adminID + "]";
            lgNum.Text = Request.Cookies["XabaraAdmin"]["AdminLgNums"].ToString().Trim();

            timeJS.Text = xc.getDataTime(1, 1, 0);
            qqLink.Text = xc.QQHTM("839808029", "41");
            SoftVer.Text = XmlReader.GetConfig(Server.MapPath("~/xabara.config"), "webName") + " " + xc.XabaraVer.ToString().Trim();
        }
    }
Exemplo n.º 2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        XabaraCom xc = new XabaraCom();

        xc.CheckAdminLogin(string.Empty);
        Page.Title = XmlReader.GetConfig(Server.MapPath("~/xabara.config"), "webName") + " 管理系统";

        if (!IsPostBack)
        {
            LgName.Text = HttpUtility.UrlDecode(Request.Cookies["XabaraAdmin"]["AdminName"].Trim()) + "[" + xc.adminID + "]";
            lgNum.Text  = Request.Cookies["XabaraAdmin"]["AdminLgNums"].ToString().Trim();

            timeJS.Text  = xc.getDataTime(1, 1, 0);
            qqLink.Text  = xc.QQHTM("839808029", "41");
            SoftVer.Text = XmlReader.GetConfig(Server.MapPath("~/xabara.config"), "webName") + " " + xc.XabaraVer.ToString().Trim();
        }
    }