Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            #region 初始化
            Login(Request.RawUrl); CheckPrivilege(Request.RawUrl);
            WebForAdmin.Master.AdminMaster m_master = (WebForAdmin.Master.AdminMaster) this.Master;
            m_master.PageName = "推广主题管理";
            m_master.SetCate(WebForAdmin.Master.AdminMaster.CateType.App1);
            #endregion

            if (Request.QueryString["type"] != null && Request.QueryString["type"] != "")
            {
                type = Request.QueryString["type"].ToUpper().Trim();
            }
            if (!IsPostBack)
            {
                #region Bind DropDown
                drpGroup.DataSource     = AppCmn.AppEnum.GetAdvTopicType();
                drpGroup.DataTextField  = "value";
                drpGroup.DataValueField = "key";
                drpGroup.DataBind();
                #endregion

                PrepareForm();
            }
        }
Exemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            #region 初始化
            Login(Request.RawUrl); CheckPrivilege(Request.RawUrl);
            WebForAdmin.Master.AdminMaster m_master = (WebForAdmin.Master.AdminMaster) this.Master;
            m_master.PageName = "推广内容管理";
            m_master.SetCate(WebForAdmin.Master.AdminMaster.CateType.App2);
            #endregion
            if (!IsPostBack)
            {
                if (Request.QueryString["delete"] != null && Request.QueryString["delete"] != "")
                {
                    Delete();
                }

                BindCate();
                if (Request.QueryString["topic"] != null && Request.QueryString["topic"] != "")
                {
                    drpTopic.SelectedIndex = drpTopic.Items.IndexOf(drpTopic.Items.FindByValue(Request.QueryString["topic"]));
                    urlnow += "&topic=" + drpTopic.SelectedIndex;
                }

                BindContent();
            }
        }
Exemplo n.º 3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     #region 初始化
     Login(Request.RawUrl);
     WebForAdmin.Master.AdminMaster m_master = (WebForAdmin.Master.AdminMaster) this.Master;
     m_master.PageName = "上上签后台管理系统";
     m_master.SetCate(WebForAdmin.Master.AdminMaster.CateType.Welcome);
     #endregion
     if (!IsPostBack)
     {
         if (Request.QueryString["forbidden"] != null && Request.QueryString["forbidden"] != "")
         {
             try
             {
                 DateTime fobidden = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day,
                                                  int.Parse(Request.QueryString["forbidden"].Substring(0, 2)), int.Parse(Request.QueryString["forbidden"].Substring(2, 2)), int.Parse(Request.QueryString["forbidden"].Substring(4, 2)));
                 if (DateTime.Now.Subtract(fobidden).TotalMinutes <= 1.0)
                 {
                     Page.ClientScript.RegisterStartupScript(this.GetType(), "forbidden", "alert('您的账号没有访问此模块的权限,如需开通请联系雪雪!');", true);
                 }
             }
             catch
             { }
         }
     }
 }
Exemplo n.º 4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            #region 初始化
            Login(Request.RawUrl); CheckPrivilege(Request.RawUrl);
            WebForAdmin.Master.AdminMaster m_master = (WebForAdmin.Master.AdminMaster) this.Master;
            m_master.PageName = "问题列表";
            m_master.SetCate(WebForAdmin.Master.AdminMaster.CateType.QA2);
            #endregion
            if (!IsPostBack)
            {
                if (Request.QueryString["delete"] != null && Request.QueryString["delete"] != "")
                {
                    Delete();
                }

                if (Request.QueryString["pn"] != null && Request.QueryString["pn"] != "")
                {
                    try
                    {
                        pageindex = int.Parse(Request.QueryString["pn"]);
                    }
                    catch { }
                }
                urlnow += "?pn=" + pageindex;
                if (Request.QueryString["name"] != null && Request.QueryString["name"] != "")
                {
                    txtName.Text = Request.QueryString["name"];
                    urlnow      += "&name=" + Request.QueryString["name"];
                }
                if (Request.QueryString["award"] != null && Request.QueryString["award"] != "")
                {
                    txtAward.Text = Request.QueryString["award"];
                    urlnow       += "&award=" + Request.QueryString["award"];
                }
                if (Request.QueryString["user"] != null && Request.QueryString["user"] != "")
                {
                    txtUser.Text = Request.QueryString["user"];
                    urlnow      += "&user="******"user"];
                }
                if (Request.QueryString["reply"] != null && Request.QueryString["reply"] != "")
                {
                    txtReply.Text = Request.QueryString["reply"];
                    urlnow       += "&reply=" + Request.QueryString["reply"];
                }
                if (Request.QueryString["status"] != null && Request.QueryString["status"] != "")
                {
                    drpStatus.SelectedIndex = drpStatus.Items.IndexOf(drpStatus.Items.FindByValue(Request.QueryString["status"]));
                    urlnow += "&status=" + Request.QueryString["status"];
                }

                BindCate();
                if (Request.QueryString["cate"] != null && Request.QueryString["cate"] != "")
                {
                    drpCate.SelectedIndex = drpCate.Items.IndexOf(drpCate.Items.FindByValue(Request.QueryString["cate"]));
                    urlnow += "&cate=" + Request.QueryString["cate"];
                }

                BindContent();
            }
        }
Exemplo n.º 5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            #region 初始化
            Login(Request.RawUrl); CheckPrivilege(Request.RawUrl);
            WebForAdmin.Master.AdminMaster m_master = (WebForAdmin.Master.AdminMaster) this.Master;
            m_master.PageName = "发送系统通知";
            m_master.SetCate(WebForAdmin.Master.AdminMaster.CateType.Notice1);
            #endregion

            if (Request.QueryString["type"] != null && Request.QueryString["type"] != "")
            {
                type = Request.QueryString["type"].ToUpper().Trim();
            }
            if (Request.QueryString["pn"] != null && Request.QueryString["pn"] != "")
            {
                try
                {
                    pageindex = int.Parse(Request.QueryString["pn"]);
                }
                catch { }
            }
            if (!IsPostBack)
            {
                PrepareForm();
            }
        }
Exemplo n.º 6
0
        protected void Page_Load(object sender, EventArgs e)
        {
            #region 初始化
            Login(Request.RawUrl); CheckPrivilege(Request.RawUrl);
            WebForAdmin.Master.AdminMaster m_master = (WebForAdmin.Master.AdminMaster) this.Master;
            m_master.PageName = "查询名人案例库";
            m_master.SetCate(WebForAdmin.Master.AdminMaster.CateType.Famous1);
            #endregion
            if (!IsPostBack)
            {
                if (Request.QueryString["delete"] != null && Request.QueryString["delete"] != "")
                {
                    Delete();
                }
                if (Request.QueryString["top"] != null && Request.QueryString["top"] != "")
                {
                    SetTop(true);
                }
                if (Request.QueryString["notop"] != null && Request.QueryString["top"] != "")
                {
                    SetTop(false);
                }

                if (Request.QueryString["pn"] != null && Request.QueryString["pn"] != "")
                {
                    try
                    {
                        pageindex = int.Parse(Request.QueryString["pn"]);
                    }
                    catch { }
                }
                urlnow += "?pn=" + pageindex;
                if (Request.QueryString["name"] != null && Request.QueryString["name"] != "")
                {
                    txtName.Text = Request.QueryString["name"];
                    urlnow      += "&name=" + Request.QueryString["name"];
                }
                if (Request.QueryString["status"] != null && Request.QueryString["status"] != "")
                {
                    drpStatus.SelectedIndex = drpStatus.Items.IndexOf(drpStatus.Items.FindByValue(Request.QueryString["status"]));
                    urlnow += "&status=" + Request.QueryString["status"];
                }
                if (Request.QueryString["begin"] != null && Request.QueryString["begin"] != "")
                {
                    txtTimeBegin.Text = Request.QueryString["begin"];
                    urlnow           += "&begin=" + Request.QueryString["begin"];
                }
                if (Request.QueryString["end"] != null && Request.QueryString["end"] != "")
                {
                    txtTimeEnd.Text = Request.QueryString["end"];
                    urlnow         += "&end=" + Request.QueryString["end"];
                }

                BindContent();
            }
        }
Exemplo n.º 7
0
        protected void Page_Load(object sender, EventArgs e)
        {
            base.Login(base.Request.RawUrl);
            base.CheckPrivilege(base.Request.RawUrl);
            WebForAdmin.Master.AdminMaster m_master = (WebForAdmin.Master.AdminMaster)base.Master;
            m_master.PageName = "后台管理员管理";
            m_master.SetCate(WebForAdmin.Master.AdminMaster.CateType.Privilege1);
            if (!base.IsPostBack)
            {
                if ((base.Request.QueryString["delete"] != null) && (base.Request.QueryString["delete"] != ""))
                {
                    this.Delete();
                }
                if ((base.Request.QueryString["pn"] != null) && (base.Request.QueryString["pn"] != ""))
                {
                    try
                    {
                        this.pageindex = int.Parse(base.Request.QueryString["pn"]);
                    }
                    catch
                    {
                    }
                }

                #region 绑定选项
                drpPrivilege.DataSource     = SYS_PrivilegeBll.GetInstance().GetList();
                drpPrivilege.DataTextField  = "name";
                drpPrivilege.DataValueField = "sysno";
                drpPrivilege.DataBind();
                drpPrivilege.Items.Insert(0, new ListItem("请选择", "0"));
                #endregion

                this.urlnow = this.urlnow + "?pn=" + this.pageindex;
                if ((base.Request.QueryString["name"] != null) && (base.Request.QueryString["name"] != ""))
                {
                    this.txtName.Text = base.Request.QueryString["name"];
                    this.urlnow       = this.urlnow + "&name=" + base.Request.QueryString["name"];
                }
                if ((base.Request.QueryString["privilege"] != null) && (base.Request.QueryString["privilege"] != ""))
                {
                    this.drpPrivilege.SelectedIndex = this.drpPrivilege.Items.IndexOf(this.drpPrivilege.Items.FindByValue(base.Request.QueryString["privilege"]));
                    this.urlnow = this.urlnow + "&privilege=" + base.Request.QueryString["privilege"];
                }
                if ((base.Request.QueryString["status"] != null) && (base.Request.QueryString["status"] != ""))
                {
                    this.drpStatus.SelectedIndex = this.drpStatus.Items.IndexOf(this.drpStatus.Items.FindByValue(base.Request.QueryString["status"]));
                    this.urlnow = this.urlnow + "&status=" + base.Request.QueryString["status"];
                }



                this.BindContent();
            }
        }
Exemplo n.º 8
0
 protected void Page_Load(object sender, EventArgs e)
 {
     base.Login(base.Request.RawUrl);
     base.CheckPrivilege(base.Request.RawUrl);
     WebForAdmin.Master.AdminMaster m_master = (WebForAdmin.Master.AdminMaster)base.Master;
     m_master.PageName = "权限设置";
     m_master.SetCate(WebForAdmin.Master.AdminMaster.CateType.Privilege3);
     if (!base.IsPostBack)
     {
         this.BindContent();
         SYS_AdminMod m_admin = SYS_AdminBll.GetInstance().GetModel(SysNo);
         Literal1.Text = m_admin.Username + "的权限";
     }
 }
Exemplo n.º 9
0
        protected void Page_Load(object sender, EventArgs e)
        {
            #region 初始化
            Login(Request.RawUrl); CheckPrivilege(Request.RawUrl);
            WebForAdmin.Master.AdminMaster m_master = (WebForAdmin.Master.AdminMaster) this.Master;
            m_master.PageName = "地区管理";
            m_master.SetCate(WebForAdmin.Master.AdminMaster.CateType.Famous5);
            #endregion

            if (Request.QueryString["type"] != null && Request.QueryString["type"] != "")
            {
                type = Request.QueryString["type"].ToUpper().Trim();
            }
            if (!IsPostBack)
            {
                PrepareForm();
            }
        }
Exemplo n.º 10
0
        protected void Page_Load(object sender, EventArgs e)
        {
            #region 初始化
            Login(Request.RawUrl); CheckPrivilege(Request.RawUrl);
            WebForAdmin.Master.AdminMaster m_master = (WebForAdmin.Master.AdminMaster) this.Master;
            m_master.PageName = "设置版块";
            m_master.SetCate(WebForAdmin.Master.AdminMaster.CateType.Customer4);
            #endregion

            if (!IsPostBack)
            {
                PrepareForm();
            }
            if (Request.QueryString["delete"] != null && Request.QueryString["delete"] != "")
            {
                Delete();
            }
        }
Exemplo n.º 11
0
        protected void Page_Load(object sender, EventArgs e)
        {
            #region 初始化
            Login(Request.RawUrl); CheckPrivilege(Request.RawUrl);
            WebForAdmin.Master.AdminMaster m_master = (WebForAdmin.Master.AdminMaster) this.Master;
            m_master.PageName = "蜘蛛抓取结果";
            m_master.SetCate(WebForAdmin.Master.AdminMaster.CateType.Famous3);
            #endregion
            if (!IsPostBack)
            {
                drpNation.DataSource     = SYS_DistrictBll.GetInstance().GetFirstLevel(0);
                drpNation.DataTextField  = "Name";
                drpNation.DataValueField = "SysNo";
                drpNation.DataBind();
                drpNation.Items.Insert(0, new ListItem("请选择", "0"));

                if (Request.QueryString["pn"] != null && Request.QueryString["pn"] != "")
                {
                    try
                    {
                        pageindex = int.Parse(Request.QueryString["pn"]);
                    }
                    catch { }
                }
                if (Request.QueryString["name"] != null && Request.QueryString["name"] != "")
                {
                    txtName.Text = Request.QueryString["name"];
                }
                if (Request.QueryString["begin"] != null && Request.QueryString["begin"] != "")
                {
                    txtTimeBegin.Text = Request.QueryString["begin"];
                }
                if (Request.QueryString["end"] != null && Request.QueryString["end"] != "")
                {
                    txtTimeEnd.Text = Request.QueryString["end"];
                }
                if (Request.QueryString["input"] != null && Request.QueryString["input"] != "")
                {
                    for (int i = 0; i < drpInput.Items.Count; i++)
                    {
                        if (drpInput.Items[i].Value == Request.QueryString["input"])
                        {
                            drpInput.SelectedIndex = i;
                            break;
                        }
                    }
                }
                if (Request.QueryString["nation"] != null && Request.QueryString["nation"] != "")
                {
                    for (int i = 0; i < drpNation.Items.Count; i++)
                    {
                        if (drpNation.Items[i].Value == Request.QueryString["nation"])
                        {
                            drpNation.SelectedIndex = i;
                            break;
                        }
                    }
                }
                BindContent();
            }
        }
Exemplo n.º 12
0
        protected void Page_Load(object sender, EventArgs e)
        {
            #region 初始化
            Login(Request.RawUrl); CheckPrivilege(Request.RawUrl);
            WebForAdmin.Master.AdminMaster m_master = (WebForAdmin.Master.AdminMaster) this.Master;
            m_master.PageName = "回答列表";
            m_master.SetCate(WebForAdmin.Master.AdminMaster.CateType.QA3);
            #endregion
            if (!IsPostBack)
            {
                if (Request.QueryString["delete"] != null && Request.QueryString["delete"] != "")
                {
                    Delete();
                }

                if (Request.QueryString["pn"] != null && Request.QueryString["pn"] != "")
                {
                    try
                    {
                        pageindex = int.Parse(Request.QueryString["pn"]);
                    }
                    catch { }
                }
                urlnow += "?pn=" + pageindex;
                if (Request.QueryString["id"] != null && Request.QueryString["id"] != "")
                {
                    try
                    {
                        sysno   = int.Parse(Request.QueryString["id"]);
                        urlnow += "?id=" + Request.QueryString["id"];
                    }
                    catch
                    {
                        Response.Redirect("../Error.aspx?msg=");
                        return;
                    }
                }
                else
                {
                    Response.Redirect("../Error.aspx?msg=");
                    return;
                }
                //if (Request.QueryString["award"] != null && Request.QueryString["award"] != "")
                //{
                //    txtAward.Text = Request.QueryString["award"];
                //}
                if (Request.QueryString["user"] != null && Request.QueryString["user"] != "")
                {
                    txtUser.Text = Request.QueryString["user"];
                    urlnow      += "&user="******"user"];
                }
                //if (Request.QueryString["love"] != null && Request.QueryString["love"] != "")
                //{
                //    txtLove.Text = Request.QueryString["love"];
                //}
                //if (Request.QueryString["hate"] != null && Request.QueryString["hate"] != "")
                //{
                //    txtLove.Text = Request.QueryString["hate"];
                //}
                if (Request.QueryString["status"] != null && Request.QueryString["status"] != "")
                {
                    drpStatus.SelectedIndex = drpStatus.Items.IndexOf(drpStatus.Items.FindByValue(Request.QueryString["status"]));
                    urlnow += "&status=" + Request.QueryString["status"];
                }

                BindContent();
            }
        }