Beispiel #1
0
    //载入
    protected void Page_Load(object sender, EventArgs e)
    {
        Button4.Attributes.Add("onclick", " if(!confirm('确认删除选中的用户吗?')) return false;");
        if (Session["issuper"] == null || Session["ispwd"] == null)
        {
            Response.Write("<script type='text/javascript'>alert('登录超时!');window.location.href='Default.aspx';</script>");
        }
        else if (WebHelp.Auth(Session["issuper"].ToString(), Session["ispwd"].ToString()) == false)
        {
            Response.Write("<script type='text/javascript'>alert('登录超时!');window.location.href='Default.aspx';</script>");
        }

        else
        {
            this.Label1.Text = "欢迎管理员:" + Encryption.Decode(Session["issuper"]);
            aptips.InnerText = "";
            footerload();
            if (Session["suadmin"].ToString() == "True")
            {
                this.btnUser.Visible = true;
            }
            else
            {
                this.btnUser.Visible = false;
            }
        }
    }
Beispiel #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Button4.Attributes.Add("onclick", " if(!confirm('确认删除选中的图片吗!')) return false;");
        if (Session["issuper"] == null || Session["ispwd"] == null)
        {
            Response.Write("<script type='text/javascript'>alert('登录超时!');window.location.href='Default.aspx';</script>");
        }
        else if (WebHelp.Auth(Session["issuper"].ToString(), Session["ispwd"].ToString()) == false)
        {
            Response.Write("<script type='text/javascript'>alert('登录超时!');window.location.href='Default.aspx';</script>");
        }

        else
        {
            this.Label1.Text = "欢迎管理员:" + Encryption.Decode(Session["issuper"]);
            footerload();
            showname();
            bind2();
            string poid = Request.QueryString["id"];
            if (poid != "5")//初始值
            {
                ddlclass.SelectedValue = poid;
            }
            else
            {
                ddlclass.SelectedValue = ddlclass.SelectedValue;
            }
        }
    }
Beispiel #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["issuper"] == null || Session["ispwd"] == null)
        {
        }
        else if (WebHelp.Auth(Session["issuper"].ToString(), Session["ispwd"].ToString()) == false)
        {
        }

        else
        {
            Response.Redirect("adminweb.aspx");
        }
        footerload();
    }
Beispiel #4
0
    //载入
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["issuper"] == null || Session["ispwd"] == null)
        {
            Response.Write("<script type='text/javascript'>alert('登录超时!');window.location.href='Default.aspx';</script>");
        }
        else if (WebHelp.Auth(Session["issuper"].ToString(), Session["ispwd"].ToString()) == false)
        {
            Response.Write("<script type='text/javascript'>alert('登录超时!');window.location.href='Default.aspx';</script>");
        }

        else
        {
            this.Label1.Text = "欢迎管理员:" + Encryption.Decode(Session["issuper"]);
            footerload();
        }
    }
Beispiel #5
0
 //验证管理员
 protected void ckadmin(string artid)
 {
     if (Session["issuper"] == null || Session["ispwd"] == null)
     {
         HyperLink1.Visible = false;
         HyperLink2.Visible = false;
     }
     else if (WebHelp.Auth(Session["issuper"].ToString(), Session["ispwd"].ToString()) == false)
     {
         HyperLink1.Visible = false;
         HyperLink2.Visible = false;
     }
     else
     {
         //HyperLink1.NavigateUrl = "javascript:void if(!confirm('确认删除本文吗?')) return false;window.location.href='editpost.aspx?id=" + artid+"';";
         HyperLink1.NavigateUrl = "editpost.aspx?id=" + artid;
         HyperLink2.NavigateUrl = "detail.aspx?id=" + artid + "&ac=delete";
     }
 }
Beispiel #6
0
    //载入
    protected void Page_Load(object sender, EventArgs e)
    {
        Button4.Attributes.Add("onclick", " if(!confirm('确认删除选中的文章吗!')) return false;");
        if (!IsPostBack)
        {
            footerload();
        }
        if (Session["issuper"] == null || Session["ispwd"] == null)
        {
            Response.Write("<script type='text/javascript'>alert('登录超时!');window.location.href='Default.aspx';</script>");
        }
        else if (WebHelp.Auth(Session["issuper"].ToString(), Session["ispwd"].ToString()) == false)
        {
            Response.Write("<script type='text/javascript'>alert('登录超时!');window.location.href='Default.aspx';</script>");
        }

        else
        {
            this.Label1.Text = "欢迎管理员:" + Encryption.Decode(Session["issuper"]);
        }
    }
Beispiel #7
0
    //载入
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["issuper"] == null || Session["ispwd"] == null)
        {
            Response.Write("<script type='text/javascript'>alert('登录超时!');window.location.href='Default.aspx';</script>");
        }
        else if (WebHelp.Auth(Session["issuper"].ToString(), Session["ispwd"].ToString()) == false)
        {
            Response.Write("<script type='text/javascript'>alert('登录超时!');window.location.href='Default.aspx';</script>");
        }

        else
        {
            this.Label1.Text = "欢迎管理员:" + Encryption.Decode(Session["issuper"]);
            footerload();
            Ismid();
            string mid = Request.QueryString["mid"];
            if (!Ismid())
            {
                Response.Write("<script type='text/javascript'>alert('没有这条信息!');window.opener=null;window.open('','_self');window.close();</script>");
            }
        }
    }