Ejemplo n.º 1
0
        protected void BData()
        {
            Entity.Site  site  = Logic.Consult.GetWebSite(id);
            Entity.QQMsn qqmsn = Logic.Consult.GetQQMsn(site.AdId);
            qqhead.Value   = qqmsn.Header;
            qqbottom.Value = qqmsn.Bottom;
            string[] qqnum   = qqmsn.Account.Split(new string[] { "|||" }, StringSplitOptions.RemoveEmptyEntries);
            string[] qqs     = qqmsn.Namer.Split(new string[] { "|||" }, StringSplitOptions.RemoveEmptyEntries);
            string[] qqtitle = qqmsn.Notes.Split(new string[] { "|||" }, StringSplitOptions.RemoveEmptyEntries);
            if (qqnum.Length == 0 || qqs.Length == 0 || qqtitle.Length == 0)
            {
                return;
            }
            isqq.Value = "0";
            string html = "";

            if (qqnum.Length == qqs.Length && qqs.Length == qqtitle.Length && qqnum.Length > 0)
            {
                for (int j = 0; j < qqnum.Length; j++)
                {
                    int i = j + 1;
                    html += string.Format("<li>  QQ/MSN<span class=\"red\">号码{0}:</span><input name=\"qqnum{0}\" runat=\"server\" type=\"text\" value=\"{1}\" class=\"loginInput\" /></li><li>  QQ/MSN<span class=\"red\">昵称{0}:</span><input name=\"qqs{0}\" runat=\"server\" type=\"text\" value=\"{2}\" class=\"loginInput\" /></li><li>  QQ/MSN<span class=\"red\">分组{0}:</span><input name=\"qqtitle{0}\" runat=\"server\" type=\"text\" value=\"{3}\" class=\"loginInput\" /></li>", i.ToString(), qqnum[j], qqs[j], qqtitle[j]);
                }
                qqinfo.InnerHtml = html;
                qqn.Value        = qqnum.Length.ToString();
            }
        }
Ejemplo n.º 2
0
        protected void PageBind()
        {
            Entity.Site site = Logic.Consult.GetWebSite(id);
            txtwebname.Value = site.SiteName;
            txtUrl.Value     = site.SiteUrl;
            sitenote.Value   = site.SiteNote;
            txtRange.Value   = site.RangeList.Replace("$", "");
            this.CreateCheckItem(txtRange.Value, HtmlWebSite.GetAdRang(txtRange.Value));
            adTypeSelect.Value = site.AdDisplay.ToString();
            ClientScript.RegisterStartupScript(this.GetType(), "Initing", string.Format("attack(\"{0}\");", site.AdDisplay), true);
            int adid = site.AdId;

            curscript.Value = site.CurScript;
            object obj = HtmlWebSite.GetAdvert(site.AdDisplay, site.AdId);

            switch (site.AdDisplay)
            {
            case 1:
                this.BindGuidecInfo((Guidec)obj);
                break;

            case 2:
                this.BindQQMsnInfo((QQMsn)obj);
                break;

            case 3:
                this.BindQQMsnInfo((QQMsn)obj);
                break;

            case 4:
                this.BindImagesInfo((Images)obj);
                break;
            }
        }
Ejemplo n.º 3
0
 private void BData()
 {
     Entity.Site site = Logic.Consult.GetWebSite(id);
     txtwebname.Value = site.SiteName;
     txtUrl.Value     = site.SiteUrl;
     sitenote.Value   = site.SiteNote;
     curscript.Value  = site.CurScript;
 }
Ejemplo n.º 4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            int siteid = Common.Util.GetPageParamsAndToInt("siteid");

            HtmlCount.AnalysisAdd();
            Entity.Site site   = Logic.Consult.GetWebSite(siteid);
            Guidec      guidec = Logic.Consult.GetGuidec(site.AdId);

            Response.Redirect(guidec.Link, true);
        }
Ejemplo n.º 5
0
        private void BData()
        {
            Entity.Site site   = Logic.Consult.GetWebSite(id);
            Images      images = Logic.Consult.GetImages(site.AdId);

            imagename.Value = images.ImageName;
            imagelink.Value = images.ImageLink;
            imageurl.Value  = images.ImageUrl;
            width.Value     = images.Width.ToString();
            height.Value    = images.Height.ToString();
        }
Ejemplo n.º 6
0
 private void BData()
 {
     if (!Page.IsPostBack)
     {
         Common.Util.BindCtrlHTMLDDL(Logic.Consult.GetAdType(), "adtype", "id", adTypeSelect);
         adTypeSelect.Items.Insert(0, new ListItem("请选择", "0"));
     }
     adTypeSelect.SelectedIndex = 0;
     Entity.Site site = Logic.Consult.GetWebSite(id);
     adTypeSelect.Value = site.AdDisplay.ToString();
     if (Common.Util.GetAdType(site.AdDisplay) == "文字商务通" && site.Templates > 0)
     {
         ((HtmlInputRadioButton)Page.FindControl("template" + site.Templates.ToString())).Checked = true;
     }
     else
     {
         ClientScript.RegisterStartupScript(this.GetType(), "s", "selectAd(" + adTypeSelect.Value + ");", true);
     }
 }
Ejemplo n.º 7
0
        private void BData()
        {
            Entity.Site site   = Logic.Consult.GetWebSite(id);
            Guidec      guidec = Logic.Consult.GetGuidec(site.AdId);

            title.Value   = guidec.Title;
            link.Value    = guidec.Link;
            context.Value = guidec.Context;
            if (guidec.WordLnk == 1)
            {
                wordLnk1.Checked = true;
                ClientScript.RegisterStartupScript(this.GetType(), "ScriptBlock", "setAdShow('block');", true);
            }
            else
            {
                wordLnk2.Checked = true;
                ClientScript.RegisterStartupScript(this.GetType(), "ScriptBlock", "setAdShow('none');", true);
            }
            adText1.Value = guidec.AdText1;
            adLink1.Value = guidec.AdLink2;
            adText2.Value = guidec.AdText2;
            adLink2.Value = guidec.AdLink2;
            ClientScript.RegisterStartupScript(this.GetType(), "StartScript", "reviewSwt();", true);
            int template = Common.Util.GetPageParamsAndToInt("t");

            if (template == 1)
            {
                tel1li.Visible = false;
                tel2li.Visible = false;
                swtf.Visible   = false;
                prompt.Value   = guidec.Prompt;
            }
            if (template == 2)
            {
                promptli.Visible = false;
                swtm.Visible     = false;
                tel1.Value       = guidec.Tel1;
                tel2.Value       = guidec.Tel2;
            }
        }
Ejemplo n.º 8
0
        private void BData()
        {
            Entity.Site site = Logic.Consult.GetWebSite(id);
            txtRange.Value = site.RangeList.Replace("$", "");
            string[]  txt = txtRange.Value.Split(new char[] { ',' });
            ArrayList al  = new ArrayList();

            txtRange.Value = "";
            foreach (string t in txt)
            {
                if (!al.Contains(t) && !string.IsNullOrEmpty(t))
                {
                    al.Add(t);
                    txtRange.Value += t + ",";
                }
            }
            if (txtRange.Value.Length > 0)
            {
                txtRange.Value = txtRange.Value.Substring(0, txtRange.Value.Length - 1);
            }
            this.CreateCheckItem(txtRange.Value, HtmlWebSite.GetAdRang(txtRange.Value));
        }
Ejemplo n.º 9
0
        protected void Page_Load(object sender, EventArgs e)
        {
            WebSiteUrl = Config.Global.__WebSiteUrl;
            getSiteId  = Common.Util.GetPageParams("getsiteid");
            siteId     = Common.Util.GetPageParams("siteId");
            Entity.Site site   = Logic.Consult.GetWebSite(int.Parse(siteId));
            Guidec      guidec = Logic.Consult.GetGuidec(site.AdId);

            titles = GlobalObject.escape(guidec.Title);
            link   = guidec.Link;
            text   = GlobalObject.escape(guidec.Context);
            tel1   = guidec.Tel1;
            tel2   = guidec.Tel2;
            prompt = GlobalObject.escape(guidec.Prompt);
            text1  = GlobalObject.escape(guidec.AdText1);
            link1  = guidec.AdLink1;
            text2  = GlobalObject.escape(guidec.AdText2);
            link2  = guidec.AdLink2;
            if (site.Templates == 2)
            {
                template = "swtf";
            }
        }