protected void Page_Load(object sender, EventArgs e) { OnlyWeiXinLook(); if (!IsPostBack) { wid = MyCommFun.RequestInt("wid"); tid = MyCommFun.RequestInt("tid"); openid = MyCommFun.RequestOpenid(); if (wid == 0) { MessageBox.Show(this, "参数不正确!"); return; } BLL.wx_albums_type bll = new BLL.wx_albums_type(); Model.wx_albums_type type = bll.GetModel(tid); if (type != null && type.bannerPic != null && type.bannerPic.Trim() != "") { litBanner.Text = " <a href=\"javascript:;\"><img src=\"" + type.bannerPic + "\"></a> "; } BindAlbumsList(); litCopyRight.Text = getwebcopyright(wid); } }
protected void Page_Load(object sender, EventArgs e) { OnlyWeiXinLook(); if (!IsPostBack) { wid = MyCommFun.RequestInt("wid"); tid = MyCommFun.RequestInt("tid"); openid = MyCommFun.RequestOpenid(); if (wid == 0) { MessageBox.Show(this, "参数不正确!"); return; } BLL.wx_albums_type bll = new BLL.wx_albums_type(); Model.wx_albums_type type = bll.GetModel(tid); if (type != null && type.bannerPic != null && type.bannerPic.Trim()!="") { litBanner.Text = " <a href=\"javascript:;\"><img src=\"" + type.bannerPic + "\"></a> "; } BindAlbumsList(); litCopyRight.Text = getwebcopyright(wid); } }
/// <summary> /// 绑定类别 /// </summary> private void TypeBind() { Model.wx_userweixin weixin = GetWeiXinCode(); BLL.wx_albums_type bll = new BLL.wx_albums_type(); IList <Model.wx_albums_type> dt = bll.GetModelList("wid=" + weixin.id + " order by sort_id asc"); this.ddlCategoryId.DataTextField = "typeName"; this.ddlCategoryId.DataValueField = "id"; this.ddlCategoryId.DataSource = dt; this.ddlCategoryId.DataBind(); }
/// <summary> /// 绑定类别 /// </summary> private void TypeBind() { Model.wx_userweixin weixin = GetWeiXinCode(); BLL.wx_albums_type bll = new BLL.wx_albums_type(); IList<Model.wx_albums_type> dt = bll.GetModelList("wid="+weixin.id+" order by sort_id asc"); this.ddlCategoryId.DataTextField = "typeName"; this.ddlCategoryId.DataValueField = "id"; this.ddlCategoryId.DataSource = dt; this.ddlCategoryId.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { OnlyWeiXinLook(); if (!IsPostBack) { wid = MyCommFun.RequestInt("wid"); openid = MyCommFun.RequestOpenid(); aid = MyCommFun.RequestInt("aid"); if (wid == 0 || aid == 0) { MessageBox.Show(this, "参数不正确!"); return; } BLL.wx_albums_type bll = new BLL.wx_albums_type(); IList <Model.wx_albums_type> modellist = bll.GetModelList("id=( select top 1 typeId from wx_albums_info where id=" + aid + ")"); if (modellist != null && modellist.Count > 0 && modellist[0] != null && modellist[0].bannerPic != null && modellist[0].bannerPic.Trim() != "") { litBanner.Text = " <a href=\"javascript:;\"><img src=\"" + modellist[0].bannerPic + "\"></a> "; } BLL.wx_albums_info aBll = new BLL.wx_albums_info(); albums = aBll.GetModel(aid); if (albums != null) { if (albums.music != null && albums.music.Trim() != "") { string musicurl = albums.music.Trim(); if (albums.music.Trim().Contains("http://") || albums.music.Trim().Contains("https://")) { } else { musicurl = MyCommFun.getWebSite() + albums.music.Trim(); } albums.music = musicurl; bgMusic = " var audio = new Audio(); audio.src = \"" + MyCommFun.getWebSite() + albums.music.Trim() + "\"; audio.play();"; // bgMusic = " var audio = new Audio(); audio.src = \"http://bcs.duapp.com/baemp3mp3/mp3/138305426164953243.mp3\"; audio.play();"; } } BindPhotoList(); litCopyRight.Text = getwebcopyright(wid); } }
protected void Page_Load(object sender, EventArgs e) { OnlyWeiXinLook(); if (!IsPostBack) { wid = MyCommFun.RequestInt("wid"); openid = MyCommFun.RequestOpenid(); if (wid == 0) { MessageBox.Show(this, "参数不正确!"); return; } litCopyRight.Text = getwebcopyright(wid); BLL.wx_albums_type tBll = new BLL.wx_albums_type(); IList<Model.wx_albums_type> tlist = tBll.GetModelList("wid=" + wid+ "order by sort_id asc"); if (tlist != null && tlist.Count > 0) { Model.wx_albums_type type = new Model.wx_albums_type(); StringBuilder sbtl = new StringBuilder(""); for (int i = 0; i < tlist.Count; i++) { type = tlist[i]; sbtl.Append(" <a class=\"ui_clearfix\" href=\"alubmslist.aspx?wid=" + wid + "&tid=" + type.id + "&openid=" + openid + "\">"); sbtl.Append("<img src='"+type.typeIco+"' class=\"ad_img ui_fluid\" />"); sbtl.Append("<div class=\"ad_detail\">"); sbtl.Append("<p class=\"qb_fs_l\"><strong>"+type.typeName+"</strong></p>"); sbtl.Append(" <p class=\"qb_fs_s\">"+type.tContent+"</p>"); sbtl.Append(" </div> </a>"); } litTypelist.Text = sbtl.ToString(); } } }
protected void Page_Load(object sender, EventArgs e) { OnlyWeiXinLook(); if (!IsPostBack) { wid = MyCommFun.RequestInt("wid"); openid = MyCommFun.RequestOpenid(); if (wid == 0) { MessageBox.Show(this,"参数不正确!"); return; } BLL.wx_albums_sys bll = new BLL.wx_albums_sys(); IList<Model.wx_albums_sys> modellist = bll.GetModelList("wid="+wid); if (modellist != null && modellist.Count > 0) { bgPic = modellist[0].bannerPic; } litCopyRight.Text = getwebcopyright(wid); BLL.wx_albums_type tBll = new BLL.wx_albums_type(); IList<Model.wx_albums_type> tlist = tBll.GetModelList("wid=" + wid +" order by sort_id asc"); if (tlist != null && tlist.Count > 0) { Model.wx_albums_type type = new Model.wx_albums_type(); StringBuilder sbtl = new StringBuilder(""); for (int i = 0; i < tlist.Count; i++) { type = new Model.wx_albums_type(); type = tlist[i]; sbtl.Append(" <li class=\"list_item\"><a href=\"alubmslist.aspx?wid=" + wid + "&tid=" + type.id + "&openid=" + openid + "\">" + type.typeName + "</a></li>"); } litTypelist.Text = sbtl.ToString(); } } }
protected void Page_Load(object sender, EventArgs e) { OnlyWeiXinLook(); if (!IsPostBack) { wid = MyCommFun.RequestInt("wid"); openid = MyCommFun.RequestOpenid(); if (wid == 0) { MessageBox.Show(this, "参数不正确!"); return; } litCopyRight.Text = getwebcopyright(wid); BLL.wx_albums_type tBll = new BLL.wx_albums_type(); IList <Model.wx_albums_type> tlist = tBll.GetModelList("wid=" + wid + " and showType=1 order by sort_id asc"); if (tlist != null && tlist.Count > 0) { Model.wx_albums_type type = new Model.wx_albums_type(); StringBuilder sbtl = new StringBuilder(""); for (int i = 0; i < tlist.Count; i++) { type = tlist[i]; sbtl.Append(" <a class=\"ui_clearfix\" href=\"alubmslist.aspx?wid=" + wid + "&tid=" + type.id + "&openid=" + openid + "\">"); sbtl.Append("<img src='" + type.typeIco + "' class=\"ad_img ui_fluid\" />"); sbtl.Append("<div class=\"ad_detail\">"); sbtl.Append("<p class=\"qb_fs_l\"><strong>" + type.typeName + "</strong></p>"); sbtl.Append(" <p class=\"qb_fs_s\">" + type.tContent + "</p>"); sbtl.Append(" </div> </a>"); } litTypelist.Text = sbtl.ToString(); } } }
protected void Page_Load(object sender, EventArgs e) { OnlyWeiXinLook(); if (!IsPostBack) { wid = MyCommFun.RequestInt("wid"); openid = MyCommFun.RequestOpenid(); if (wid == 0) { MessageBox.Show(this, "参数不正确!"); return; } BLL.wx_albums_sys bll = new BLL.wx_albums_sys(); IList <Model.wx_albums_sys> modellist = bll.GetModelList("wid=" + wid); if (modellist != null && modellist.Count > 0) { bgPic = modellist[0].bannerPic; } litCopyRight.Text = getwebcopyright(wid); BLL.wx_albums_type tBll = new BLL.wx_albums_type(); IList <Model.wx_albums_type> tlist = tBll.GetModelList("wid=" + wid + " order by sort_id asc"); if (tlist != null && tlist.Count > 0) { Model.wx_albums_type type = new Model.wx_albums_type(); StringBuilder sbtl = new StringBuilder(""); for (int i = 0; i < tlist.Count; i++) { type = new Model.wx_albums_type(); type = tlist[i]; sbtl.Append(" <li class=\"list_item\"><a href=\"alubmslist.aspx?wid=" + wid + "&tid=" + type.id + "&openid=" + openid + "\">" + type.typeName + "</a></li>"); } litTypelist.Text = sbtl.ToString(); } } }
protected void Page_Load(object sender, EventArgs e) { OnlyWeiXinLook(); if (!IsPostBack) { wid = MyCommFun.RequestInt("wid"); openid = MyCommFun.RequestOpenid(); aid = MyCommFun.RequestInt("aid"); if (wid == 0 || aid==0) { MessageBox.Show(this, "参数不正确!"); return; } BLL.wx_albums_type bll = new BLL.wx_albums_type(); IList<Model.wx_albums_type> modellist = bll.GetModelList("id=( select top 1 typeId from wx_albums_info where id="+aid+")"); if (modellist != null && modellist.Count > 0 && modellist[0] != null && modellist[0].bannerPic != null && modellist[0].bannerPic.Trim()!="") { litBanner.Text = " <a href=\"javascript:;\"><img src=\"" + modellist[0].bannerPic + "\"></a> "; } BLL.wx_albums_info aBll = new BLL.wx_albums_info(); albums = aBll.GetModel(aid); if (albums != null) { if (albums.music != null && albums.music.Trim() != "") { albums.music = MyCommFun.getWebSite() + albums.music.Trim(); bgMusic = " var audio = new Audio(); audio.src = \"" +MyCommFun.getWebSite()+ albums.music.Trim() + "\"; audio.play();"; // bgMusic = " var audio = new Audio(); audio.src = \"http://bcs.duapp.com/baemp3mp3/mp3/138305426164953243.mp3\"; audio.play();"; } } BindPhotoList(); litCopyRight.Text = getwebcopyright(wid); } }