Example #1
0
    //底部版权信息
    public void hy_GetCopyrightinfo()
    {
        HyoaClass.Hyoa_site Hyoa_site = new HyoaClass.Hyoa_site();
        DataTable dt = Hyoa_site.Getfirstsite();
        if (dt.Rows.Count > 0)
            lblcopyright.Text = dt.Rows[0]["hy_copyrightinfo"].ToString();
        else
            lblcopyright.Text = "未得到信息";

        string ls_links = "";
        //得到友情链接
        dt.Clear();
        HyoaClass.Hyoa_link Hyoa_link = new HyoaClass.Hyoa_link();
        dt = Hyoa_link.Getlinks();
        if (dt.Rows.Count > 0)
        {
            for (var i = 0; i < dt.Rows.Count; i++)
            {
                if (ls_links == "")
                    ls_links = "<a href=\"" + dt.Rows[i]["hy_linkurl"].ToString() + "\" target=_blank>" + dt.Rows[i]["hy_linkname"].ToString() + "</a>";
                else
                    ls_links += " | " + "<a href=\"" + dt.Rows[i]["hy_linkurl"].ToString() + "\" target=_blank>" + dt.Rows[i]["hy_linkname"].ToString() + "</a>";
            }
        }
        this.lbllink.Text = ls_links;
    }
Example #2
0
 //底部版权信息
 public void hy_GetCopyrightinfo()
 {
     HyoaClass.Hyoa_site Hyoa_site = new HyoaClass.Hyoa_site();
     DataTable dt = Hyoa_site.Getfirstsite();
     if (dt.Rows.Count > 0)
         lblcopyright.Text = dt.Rows[0]["hy_copyrightinfo"].ToString();
     else
         lblcopyright.Text = "未得到信息";
 }
    public string hy_title()
    {
        string hy_title = "";

        //得到模块中文名
        HyoaClass.Hyoa_site Hyoa_site = new HyoaClass.Hyoa_site();
        DataTable dt = Hyoa_site.Getfirstsite();
        hy_title = dt.Rows[0]["hy_copyright"].ToString();
        dt.Clear();

        return hy_title;
    }
Example #4
0
    //底部版权信息
    public string hy_GetCopyrightinfo()
    {
        string ls_return = "";
        HyoaClass.Hyoa_site Hyoa_site = new HyoaClass.Hyoa_site();
        DataTable dt = Hyoa_site.Getfirstsite();
        if (dt.Rows.Count > 0)
            ls_return = dt.Rows[0]["hy_copyrightinfo"].ToString();
        else
            ls_return = "未得到信息";

        return ls_return;
    }
Example #5
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (this.Session["hyuid"].ToString() =="")
            this.Response.Redirect("login.aspx?url="+this.Request.RawUrl);

        //if (!IsPostBack)
        //{
        //}
        HyoaClass.Hyoa_site Hyoa_site = new HyoaClass.Hyoa_site();
        DataTable dt = Hyoa_site.Getfirstsite();
        if (dt.Rows.Count > 0)
        {
            Response.Redirect(dt.Rows[0]["hy_indexpath"].ToString());
        }
        else
        {
            Response.Write("系统设置中没有设置标准首页风格,请联系管理员!");
        }
    }