Example #1
0
    void NewsBind()
    {
        RepZuCai.DataSource = GetNews("足彩资讯", 10);
        RepZuCai.DataBind();
        RepTiCai.DataSource = GetNews("体彩资讯", 10);
        RepTiCai.DataBind();
        RepGaoPing.DataSource = GetNews();
        RepGaoPing.DataBind();
        RepFuCai.DataSource = GetNews("福彩资讯", 10);
        RepFuCai.DataBind();
        RepEpisode.DataSource = GetNews("博彩秘笈", 10);
        RepEpisode.DataBind();
        RepNewWeeks.DataSource = GetNewsWeeks();
        RepNewWeeks.DataBind();
        GetFocusNews();
        RepHotNews.DataSource = GetNews("火热新闻", 7);
        RepHotNews.DataBind();
        RepHangYe.DataSource = GetNews("行业资讯", 10);
        RepHangYe.DataBind();

        GetSiteAffiches();
    }
Example #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        AjaxPro.Utility.RegisterTypeForAjax(typeof(Index), this.Page);
        LotteryID = 5;
        if (!IsPostBack)
        {
            int Logout = Shove._Convert.StrToInt(this.Request.QueryString["Logout"], -1);
            if (Logout != -1)
            {
                imgbtnLogout_Click(this.Page, new EventArgs());
            }

            BindDataForFlash();
            GetFCExpertList();
            BindWinList();
            BinddTEndIsuses();
            BindDataGetFuCaiWinNumber();
            BindDataGetTiCaiWinNumber();
            BindDataGetZuCaiWinNumber();
            GetFocusNews();
            GetSiteAffiches();

            RepFuCai.DataSource = GetNews("福彩资讯");
            RepFuCai.DataBind();
            RepTiCai.DataSource = GetNews("体彩资讯");
            RepTiCai.DataBind();

            JoinBuyData();
            BigJoinBuyData();
            FootBallJoinBuyData();
            tdLuckNumber.InnerHtml = InitLuckLotteryNumber();

            bool Opt_isUseCheckCode = _Site.SiteOptions["Opt_isUseCheckCode"].ToBoolean(true);
            if (Opt_isUseCheckCode)
            {
                System.Web.UI.HtmlControls.HtmlTableRow textCheckCodeHidden = tbLogin1.FindControl("textCheckCodeHidden") as System.Web.UI.HtmlControls.HtmlTableRow;
                textCheckCodeHidden.Visible = true;
            }
            else
            {
                textCheckCodeHidden.Visible = false;
            }
            if (_User != null)
            {
                tbLogin1.Visible = false;
                tbLogin2.Visible = true;
                lbUserName.Text  = _User.Name + ",您好!";
                if (_User.Competences.CompetencesList != "")
                {
                    lbUserType.Text = "级别:管理员";
                }
                else
                {
                    switch (_User.UserType)
                    {
                    case 1:
                        lbUserType.Text = "级别:普通";
                        break;

                    case 2:
                        lbUserType.Text = "级别:高级";
                        break;
                    }
                }
                string UseLotteriesList = DAL.Functions.F_GetExpertsLotteryList(_Site.ID, _User.ID);
                if (UseLotteriesList != "")
                {
                    lbUserType.Text += "(专家)";
                }
            }
            else
            {
                tbLogin1.Visible = true;
                tbLogin2.Visible = false;
            }
        }
    }