Exemplo n.º 1
0
        void rptHinhNen_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            if (e.Item.ItemIndex < 0)
            {
                return;
            }

            HyperLink lnkAvatar = (HyperLink)e.Item.FindControl("lnkAvatar");
            HyperLink lnkTenAnh = (HyperLink)e.Item.FindControl("lnkTenAnh");

            DataRowView row = (DataRowView)e.Item.DataItem;

            string download = AppEnv.GetSetting("VNMdownload");

            lnkTenAnh.NavigateUrl = lnkAvatar.NavigateUrl = download + "?type=1&id=" + row["ID"] + "&code=" + SecurityMethod.MD5Encrypt(row["ID"].ToString());
            if (lang == "1")
            {
                lnkTenAnh.Text = row["Wallpaper_Name"].ToString();
            }
            else
            {
                lnkTenAnh.Text = UnicodeUtility.UnicodeToKoDau(row["Wallpaper_Name"].ToString());
            }


            if (e.Item.ItemIndex < Count - 1)
            {
                Literal litBlank = (Literal)e.Item.FindControl("litBlank");
                if (litBlank != null)
                {
                    litBlank.Text = "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#FFFFFF\"><tr><td align=\"left\" valign=\"top\"><img alt=\"\" src=\"/imagesnew/blank.gif\" width=\"5\" height=\"9\" /></td></tr></table>";
                }
            }
        }
Exemplo n.º 2
0
        void rptItem_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            if (e.Item.ItemIndex < 0)
            {
                return;
            }

            HyperLink lnkAvatar = (HyperLink)e.Item.FindControl("lnkAvatar");
            Image     imgAvatar = (Image)e.Item.FindControl("imgAvatar");
            HyperLink lnkTen    = (HyperLink)e.Item.FindControl("lnkTen");

            DataRowView row      = (DataRowView)e.Item.DataItem;
            string      download = AppEnv.GetSetting("VNMdownload");

            imgAvatar.ImageUrl = "http://media.xzone.vn/" + row["Path"].ToString().Replace("~/", "");
            lnkTen.NavigateUrl = lnkAvatar.NavigateUrl = download + "?type=1&id=" + row["ID"].ToString() + "&code=" + SecurityMethod.MD5Encrypt(row["ID"].ToString());
            if (lang == "1")
            {
                lnkTen.Text = row["Wallpaper_Name"].ToString();
            }
            else
            {
                lnkTen.Text = UnicodeUtility.UnicodeToKoDau(row["Wallpaper_Name"].ToString());
            }
        }
Exemplo n.º 3
0
        private void GetPath()
        {
            path = "|";
            ArrayList titleArr = new ArrayList();

            if (cmd != string.Empty)
            {
                CmdInfo curCmd = CmdDB.GetInfoByCmd(cmd);
                while (curCmd != null)
                {
                    path += curCmd.Cmd_ID + "|";
                    titleArr.Add(curCmd.Cmd_Name);
                    curCmd = CmdDB.GetInfo(curCmd.Cmd_ParentID);
                }
            }

            string pageTitle = AppEnv.WebTitle + " - ";

            titleArr.Reverse();
            foreach (string item in titleArr)
            {
                pageTitle += item + " - ";
            }
            if (pageTitle.IndexOf(" - ") > 0)
            {
                pageTitle = pageTitle.Substring(0, pageTitle.Length - 2);
            }

            AdminPage page = (AdminPage)Page;

            page.Title = UnicodeUtility.UnicodeToKoDau(pageTitle);
        }
Exemplo n.º 4
0
        void rptItem_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            if (e.Item.ItemIndex < 0)
            {
                return;
            }

            if (e.Item.ItemIndex < Count - 1)
            {
                Literal litBlank = (Literal)e.Item.FindControl("litBlank");
                litBlank.Text = "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#FFFFFF\"><tr><td align=\"left\" valign=\"top\"><img alt=\"\" src=\"/imagesnew/blank.gif\" width=\"5\" height=\"9\" /></td></tr></table>";
            }

            HyperLink lnkAvatar = (HyperLink)e.Item.FindControl("lnkAvatar");
            Image     imgAvatar = (Image)e.Item.FindControl("imgAvatar");
            HyperLink lnkTen    = (HyperLink)e.Item.FindControl("lnkTen");

            DataRowView row = (DataRowView)e.Item.DataItem;

            imgAvatar.ImageUrl = AppEnv.GetSetting("urldata") + row["Avatar"].ToString().Replace("~/", "");
            lnkTen.NavigateUrl = lnkAvatar.NavigateUrl = AppEnv.GetSetting("urldata") + row["Path"].ToString().Replace("~/", "");
            if (lang == "1")
            {
                lnkTen.Text = row["Video_Name"].ToString();
            }
            else
            {
                lnkTen.Text = UnicodeUtility.UnicodeToKoDau(row["Video_Name"].ToString());
            }
        }
Exemplo n.º 5
0
        protected void HienThiNoiDung(Boolean cuphapDung, Boolean thanhToan)
        {
            pnlYeuCau.Visible  = false;
            pnlNoiDung.Visible = true;
            chitietGiaodich   += " -- newtransactionid: " + ConvertUtility.ToString(Session["transactionid"]) + " -- old tranid: " + ConvertUtility.ToString(Session["transactionid_old"]);
            lblTen.Text        = txtSoBaoDanh.Text.Trim();
            if (cuphapDung)
            {
                if (thanhToan)
                {
                    if (lang == "1")
                    {
                        ltrNoiDung.Text = noiDung.Replace("De tra dap an de thi,soan: DAN", "").Replace(" gui 8579.DTHT:19001255", "").Replace("<ma doi tac>", "").Replace("<ma khoi>", "").Replace("<ma mon>", "").Replace("<ma de>", "").Replace("_", "");
                    }
                    else
                    {
                        ltrNoiDung.Text = noiDung.Replace("De tra dap an de thi,soan: DAN", "").Replace(" gui 8579.DTHT:19001255", "").Replace("<ma doi tac>", "").Replace("<ma khoi>", "").Replace("<ma mon>", "").Replace("<ma de>", "").Replace("_", "");
                    }
                    Transaction.Success(Session["telco"].ToString(), Session["msisdn"].ToString(), price, Request.Url.ToString(), "0", chitietGiaodich, 17);
                }
                else
                {
                    //Thông báo lỗi thanh toán
                    if (lang == "1")
                    {
                        ltrNoiDung.Text = Resources.Resource.wThongBaoLoiThanhToan;
                    }
                    else
                    {
                        ltrNoiDung.Text = Resources.Resource.wThongBaoLoiThanhToan_KD;
                    }
                    Transaction.Failure(Session["telco"].ToString(), Session["msisdn"].ToString(), price, Request.Url.ToString(), "0", chitietGiaodich, 17, messageReturn);
                }
            }
            else
            {
                if (lang == "1")
                {
                    ltrNoiDung.Text = noiDung;
                }
                else
                {
                    ltrNoiDung.Text = UnicodeUtility.UnicodeToKoDau(noiDung);
                }
                Transaction.Failure(Session["telco"].ToString(), Session["msisdn"].ToString(), price, Request.Url.ToString(), "0", chitietGiaodich, 17, messageReturn);
                //--Thông báo lỗi thanh toán
            }
            //log charging
            ILog logger = log4net.LogManager.GetLogger(Session["telco"].ToString());

            logger.Debug("--------------------------------------------------");
            logger.Debug("MSISDN:" + Session["msisdn"].ToString());
            logger.Debug("Diem thi: 1_3 - parameter: " + price + " - " + txtSoBaoDanh.Text.Trim() + " " + txtSoBaoDanh.Text.Trim());
            logger.Debug("IP:" + HttpContext.Current.Request.UserHostAddress);
            logger.Debug("Error:" + messageReturn);
            logger.Debug("Current Url:" + Request.RawUrl);
            //end log
        }
Exemplo n.º 6
0
 //private int curpage = 1;
 //private int pagesize = 6;
 //private int pagenumber = 3;
 //private string tab;
 //private string tvprice;
 //private string tkprice;
 //private string kqcprice;
 protected void Page_Load(object sender, EventArgs e)
 {
     width = Request.QueryString["w"];
     //tab = Request.QueryString["tab"];
     if (!IsPostBack)
     {
         catid = ConvertUtility.ToInt32(Request.QueryString["catid"]);
         lang  = ConvertUtility.ToInt32(Request.QueryString["lang"]);
         DataSet ds = ThethaoController.GetAll_CompetitionRelationInfo(catid);
         if (lang == 1)
         {
             ltrBangxephang.Text = "BẢNG XẾP HẠNG";
             lnkTheThao.Text     = "BÓNG ĐÁ";
             lblDiem.Text        = "Điểm";
             lblDoi.Text         = "Đội";
             if (ds.Tables[0].Rows.Count > 0)
             {
                 lblCompetitonName.Text = ds.Tables[0].Rows[0]["NameUnicode"].ToString();
             }
             if (ds.Tables.Count > 3 && ds.Tables[3].Rows.Count > 0)
             {
                 if (ConvertUtility.ToString(ds.Tables[3].Rows[0]["Name"].ToString()) != "")
                 {
                     ltrRoundName.Text = " - " + ds.Tables[3].Rows[0]["Name"];
                 }
                 //ltrRoundName.Text = ds.Tables[3].Rows[0]["Name"].ToString();
             }
         }
         else
         {
             ltrBangxephang.Text = "BANG XEP HANG";
             lnkTheThao.Text     = "BONG DA";
             if (ds.Tables[0].Rows.Count > 0)
             {
                 lblCompetitonName.Text = ds.Tables[0].Rows[0]["Name"].ToString();
             }
             if (ds.Tables.Count > 3 && ds.Tables[3].Rows.Count > 0)
             {
                 if (ConvertUtility.ToString(ds.Tables[3].Rows[0]["Name"].ToString()) != "")
                 {
                     ltrRoundName.Text = " - " + UnicodeUtility.UnicodeToKoDau(ds.Tables[3].Rows[0]["Name"].ToString());
                 }
                 //ltrRoundName.Text = UnicodeUtility.UnicodeToKoDau(ds.Tables[3].Rows[0]["Name"].ToString());
             }
         }
         lnkTheThao.NavigateUrl = UrlProcess.GetSportHomeUrl(lang.ToString(), "home", width);
         //Get ra bang xep hang
         if (ds.Tables.Count >= 4)
         {
             DataTable dtbxh = ds.Tables[2];
             rptbxh.DataSource     = dtbxh;
             rptbxh.ItemDataBound += new RepeaterItemEventHandler(rptbxh_ItemDataBound);;
             rptbxh.DataBind();
         }
     }
 }
Exemplo n.º 7
0
        public void rptPage_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            int curdata = ConvertUtility.ToInt32(e.Item.DataItem);

            if (curdata == pagesize || curdata == totalpage)
            {
                Literal ltrGach = (Literal)e.Item.FindControl("ltrGach");
                ltrGach.Visible = false;
            }
            Label ltrPage = (Label)e.Item.FindControl("ltrPage");

            string urlGet = Request.RawUrl;

            string[] arrUrl = urlGet.Split('/');
            string   url    = string.Empty;
            string   key    = Request.QueryString["key"];

            if (arrUrl[1] == Constant.YoutubeFilmRewrite && key == null)
            {
                url = UrlProcess.YoutubeChuyenMuc(ConvertUtility.ToInt32(e.Item.DataItem), arrUrl[3].Replace(".aspx", ""));
            }
            else if (arrUrl[1] == Constant.YoutubeFilmRewrite && key != null)
            {
                key = UnicodeUtility.UnicodeToKoDau(key);
                key = key.Replace(" ", "+");

                url = UrlProcess.YoutubeTimKiem(key, ConvertUtility.ToInt32(e.Item.DataItem), Constant.YoutubeFilmRewriteSearch);
            }
            else
            {
                url = UrlProcess.VideoChuyenMuc(ConvertUtility.ToInt32(arrUrl[3]), ConvertUtility.ToInt32(e.Item.DataItem), arrUrl[5].Replace(".aspx", ""));
            }

            if ((e.Item.ItemIndex + 1) == curpage)
            {
                ltrPage.Text = "<span class=\"orange bold\">" + ConvertUtility.ToString(e.Item.DataItem) + "</span>";
            }
            else
            {
                if (curpage > numberpage)
                {
                    if (ConvertUtility.ToInt32(e.Item.DataItem) == curpage)
                    {
                        ltrPage.Text = "<span class=\"orange bold\">" + ConvertUtility.ToString(e.Item.DataItem) + "</span>";
                    }
                    else
                    {
                        ltrPage.Text = "<a href=\"" + url + "\" >" + ConvertUtility.ToString(e.Item.DataItem) + " </a>";
                    }
                }
                else
                {
                    ltrPage.Text = "<a href=\"" + url + "\" >" + ConvertUtility.ToString(e.Item.DataItem) + " </a>";
                }
            }
        }
Exemplo n.º 8
0
 protected void Page_Load(object sender, EventArgs e)
 {
     width = Request.QueryString["w"];
     if (!IsPostBack)
     {
         catid = ConvertUtility.ToInt32(Request.QueryString["catid"]);
         lang  = ConvertUtility.ToInt32(Request.QueryString["lang"]);
         DataSet ds = ThethaoController.GetAll_CompetitionRelationInfo(catid);
         if (lang == 1)
         {
             ltrGia.Text         = "(" + Resources.Resource.wThongBaoGia + "Tư vấn " + ConfigurationSettings.AppSettings.Get("tipprice") + Resources.Resource.wDonViTien + ", Thống kê " + ConfigurationSettings.AppSettings.Get("ykcgprice") + Resources.Resource.wDonViTien + ", KQ chờ " + ConfigurationSettings.AppSettings.Get("kqchoprice") + Resources.Resource.wDonViTien + ")";
             ltrBangxephang.Text = "BẢNG XẾP HẠNG";
             lnkTheThao.Text     = "BÓNG ĐÁ";
             lblDiem.Text        = "Điểm";
             lblDoi.Text         = "Đội";
             if (ds.Tables[0].Rows.Count > 0)
             {
                 lblCompetitonName.Text = ds.Tables[0].Rows[0]["NameUnicode"].ToString();
             }
             if (ds.Tables.Count > 3 && ds.Tables[3].Rows.Count > 0)
             {
                 if (ConvertUtility.ToString(ds.Tables[3].Rows[0]["Name"].ToString()) != "")
                 {
                     ltrRoundName.Text = " - " + ds.Tables[3].Rows[0]["Name"];
                 }
             }
         }
         else
         {
             ltrGia.Text         = "(" + Resources.Resource.wThongBaoGia_KD + "Tu van " + ConfigurationSettings.AppSettings.Get("tipprice") + Resources.Resource.wDonViTien_KD + ", Thong ke " + ConfigurationSettings.AppSettings.Get("ykcgprice") + Resources.Resource.wDonViTien_KD + ", KQ cho " + ConfigurationSettings.AppSettings.Get("kqchoprice") + Resources.Resource.wDonViTien_KD + ")";
             ltrBangxephang.Text = "BANG XEP HANG";
             lnkTheThao.Text     = "BONG DA";
             if (ds.Tables[0].Rows.Count > 0)
             {
                 lblCompetitonName.Text = ds.Tables[0].Rows[0]["Name"].ToString();
             }
             if (ds.Tables.Count > 3 && ds.Tables[3].Rows.Count > 0)
             {
                 if (ConvertUtility.ToString(ds.Tables[3].Rows[0]["Name"].ToString()) != "")
                 {
                     ltrRoundName.Text = " - " + UnicodeUtility.UnicodeToKoDau(ds.Tables[3].Rows[0]["Name"].ToString());
                 }
             }
         }
         lnkTheThao.NavigateUrl = UrlProcess.GetSportHomeUrlNew(lang.ToString(), "home", width);
         //Get ra bang xep hang
         if (ds.Tables.Count >= 4)
         {
             DataTable dtbxh = ds.Tables[2];
             rptbxh.DataSource     = dtbxh;
             rptbxh.ItemDataBound += rptbxh_ItemDataBound;;
             rptbxh.DataBind();
         }
     }
 }
Exemplo n.º 9
0
 public static string SendMessage(string idNodes, string message)
 {
     if (message == "")
     {
         return("Vui lòng nhập nội dung tin nhắn");
     }
     else
     {
         if (message.Length > 450)
         {
             return("Tin nhắn quá dài!");
         }
         else
         {
             if (idNodes == "")
             {
                 return("Vui lòng chọn khách hàng cần nhắn tin");
             }
             else
             {
                 string[] nodes = idNodes.Split(',');
                 string   tem   = "";
                 for (int i = 0; i < nodes.Length; i++)
                 {
                     int index = nodes[i].IndexOf("_KH");
                     if (index != -1)
                     {
                         string           node = nodes[i].Remove(index, 3);
                         List <KhachHang> lskh = objbn.GetKhachHang(int.Parse(node));
                         string           sdt  = lskh[0].DienThoai;
                         sdt = "84" + sdt.Remove(0, 1);
                         string[] param = new string[1];
                         //param[0] = UnicodeUtility.UnicodeToKoDau(message.Trim());
                         //param[0] = message.Trim();
                         int idDoanhnghiep       = int.Parse(lskh[0].DoanhNghiepID.ToString());
                         List <Doanhnghiep> lsdn = objbn.GetDoanhNghiep(lsdv[0].ID, idDoanhnghiep, true);
                         if (lsdn[0].NhanTinCoDau == true)
                         {
                             param[0] = message.Trim();
                         }
                         else
                         {
                             param[0] = UnicodeUtility.UnicodeToKoDau(message.Trim());
                         }
                         tem = SendSMS.sendByList("111", lsdn[0].LABELID, lsdn[0].TEMPLATEID, "0", "1", "", sdt, lsdv[0].AGENTID, lsdn[0].APIUSER, lsdn[0].APIPASS, "QB_CS", lsdn[0].CONTRACTID, param);
                         GhiLog(LayNoiDungLog("", sdt, param[0], AppSessionInfo.CurrentUser.TenDangNhap, Xuly(tem), idDoanhnghiep));
                     }
                 }
                 return("Send message success!!!");
             }
         }
     }
 }
Exemplo n.º 10
0
        protected void rptlist_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            if (e.Item.ItemIndex < 0)
            {
                return;
            }
            DataRowView curData    = (DataRowView)e.Item.DataItem;
            Label       ltrGame    = (Label)e.Item.FindControl("ltrGame");
            Literal     ltrTime    = (Literal)e.Item.FindControl("ltrTime");
            HyperLink   lnkTuVan   = (HyperLink)e.Item.FindControl("lnkTuVan");
            HyperLink   lnkThongke = (HyperLink)e.Item.FindControl("lnkThongke");
            HyperLink   lnkKQCho   = (HyperLink)e.Item.FindControl("lnkKQCho");

            if (lang == 1)
            {
                ltrGame.Text    = curData["Team_Name1"] + " ? - ? " + curData["Team_Name2"];
                lnkTuVan.Text   = "Tư vấn";
                lnkThongke.Text = "Thống kê";
                lnkKQCho.Text   = "<span class=\"blue bold\">KQ chờ</span>";
            }
            else
            {
                ltrGame.Text    = UnicodeUtility.UnicodeToKoDau(curData["Team_Name1"].ToString()) + " ? - ? " + UnicodeUtility.UnicodeToKoDau(curData["Team_Name2"].ToString());
                lnkTuVan.Text   = "Tu van";
                lnkThongke.Text = "Thong ke";
                lnkKQCho.Text   = "<span class=\"blue bold\">KQ cho</span>";
            }
            if (ThethaoController.GetDetail_YKCG_ByGameID(curData["PK_Game_ID"].ToString()).Rows.Count > 0)
            {
                lnkThongke.Text        = "<span class=\"blue bold\">" + lnkThongke.Text + "</span>";
                lnkThongke.NavigateUrl = "../ThongKe.aspx?id=" + curData["Sport_Id"].ToString() + "&lang=" + lang + "&w=" + width;
            }
            else
            {
                lnkThongke.Text    = "<span class=\"gray bold\">" + lnkThongke.Text + "</span>";
                lnkThongke.Enabled = false;
            }
            DataTable tip = ThethaoController.GetDetail_Tip_ByGameID(curData["PK_Game_ID"].ToString());

            if (tip.Rows.Count > 0)
            {
                lnkTuVan.Text        = "<span class=\"blue bold\">" + lnkTuVan.Text + "</span>";
                lnkTuVan.NavigateUrl = "../TuVan.aspx?id=" + curData["Sport_Id"].ToString() + "&lang=" + lang + "&w=" + width;
            }
            else
            {
                lnkTuVan.Text    = "<span class=\"gray bold\">" + lnkTuVan.Text + "</span>";
                lnkTuVan.Enabled = false;
            }
            lnkKQCho.NavigateUrl = "../KQCho.aspx?id=" + curData["Sport_Id"].ToString() + "&lang=" + lang + "&w=" + width;
            ltrTime.Text         = ConvertUtility.ToDateTime(curData["StartTime"]).ToString("dd/MM/yyyy HH:mm");
        }
Exemplo n.º 11
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //width = Request.QueryString["w"];
            tab      = Request.QueryString["tab"];
            tvprice  = ConfigurationSettings.AppSettings.Get("tipprice");
            tkprice  = ConfigurationSettings.AppSettings.Get("ykcgprice");
            kqcprice = ConfigurationSettings.AppSettings.Get("kqchoprice");

            if (!IsPostBack)
            {
                catid = ConvertUtility.ToInt32(Request.QueryString["catid"]);
                //lang = ConvertUtility.ToInt32(Request.QueryString["lang"]);
                DataSet ds = ThethaoController.GetAll_CompetitionRelationInfo(catid);
                //if (lang == 1)
                //{
                string name    = string.Empty;
                string catName = string.Empty;

                if (ds.Tables[0].Rows.Count > 0)
                {
                    name    = ds.Tables[0].Rows[0]["NameUnicode"].ToString();
                    catName = ds.Tables[0].Rows[0]["NameUnicode"].ToString();
                }
                if (ConvertUtility.ToString(ds.Tables[3].Rows[0]["Name"].ToString()) != "")
                {
                    name += " - " + UnicodeUtility.UnicodeToKoDau(ds.Tables[3].Rows[0]["Name"].ToString());
                }

                ltrGiaiDau.Text = name;

                //}

                //lnkTheThao.NavigateUrl = UrlProcess.GetSportHomeUrl(lang.ToString(), "home", width);
                //Get ra danh sach tran dau
                if (!string.IsNullOrEmpty(Request.QueryString["cpage"]))
                {
                    curpage = ConvertUtility.ToInt32(Request.QueryString["cpage"]);
                }

                int       totalrecord = 0;
                DataTable dtlst       = ThethaoController.GetAllGameByCompetitionID_KQ(catid, pagesize, curpage, out totalrecord);
                rptLichThiDau.DataSource     = dtlst;
                rptLichThiDau.ItemDataBound += rptlist_ItemDataBound;
                rptLichThiDau.DataBind();
                Paging1.totalrecord  = totalrecord;
                Paging1.pagesize     = pagesize;
                Paging1.numberpage   = pagenumber;
                Paging1.defaultparam = UrlProcess.GameChuyenMuc(catid, curpage, catName);
                Paging1.queryparam   = UrlProcess.GameChuyenMuc(catid, curpage, catName);
            }
        }
Exemplo n.º 12
0
        protected void rptlstResult_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            if (e.Item.ItemIndex < 0)
            {
                return;
            }

            if (e.Item.ItemIndex < pagesize - 1)
            {
                Literal lit = (Literal)e.Item.FindControl("litBlank");
                lit.Text = "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#FFFFFF\"><tr><td align=\"left\" valign=\"top\"><img alt=\"\" src=\"/imagesnew/blank.gif\" width=\"5\" height=\"9\" /></td></tr></table>";
            }

            DataRowView curData = (DataRowView)e.Item.DataItem;

            System.Web.UI.WebControls.Image imgAvatar = (Image)e.Item.FindControl("imgAvatar");
            HyperLink lnkAvatar  = (HyperLink)e.Item.FindControl("lnkAvatar");
            HyperLink lnkTenAnh  = (HyperLink)e.Item.FindControl("lnkTenAnh");
            Literal   ltrTheloai = (Literal)e.Item.FindControl("ltrTheloai");
            Literal   ltrLuottai = (Literal)e.Item.FindControl("ltrLuottai");
            HyperLink lnkTai     = (HyperLink)e.Item.FindControl("lnkTai");

            if (lang == 1)
            {
                lnkTenAnh.Text  = curData["WTitle_Unicode"].ToString();
                ltrTheloai.Text = Resources.Resource.wTheLoai + curData["Web_Name"];
                ltrLuottai.Text = Resources.Resource.wLuotTai + curData["Download"];
                lnkTai.Text     = Resources.Resource.wTai;
            }
            else
            {
                lnkTenAnh.Text  = curData["WTitle"].ToString();
                ltrTheloai.Text = Resources.Resource.wTheLoai_KD + UnicodeUtility.UnicodeToKoDau(curData["Web_Name"].ToString());
                ltrLuottai.Text = Resources.Resource.wLuotTai_KD + curData["Download"];
                lnkTai.Text     = Resources.Resource.wTai_KD;
            }
            lnkAvatar.NavigateUrl = lnkTenAnh.NavigateUrl = UrlProcess.GetWallpaperDetailUrlNew(lang.ToString(), "detail", width, curData["W_WItemID"].ToString());
            lnkTai.NavigateUrl    = UrlProcess.GetWallpaperDownloadUrlNew(lang.ToString(), width, curData["W_WItemID"].ToString(), curData["W_CategoryID"].ToString());
            if (curData["WThumnail"].ToString().LastIndexOf(".gif") > 0)
            {
                WapXzone_VNM.CreateGIFAvatar.Ws_Process ws = new WapXzone_VNM.CreateGIFAvatar.Ws_Process();
                imgAvatar.ImageUrl = preurl + ws.GetAvatarGif(curData["WThumnail"].ToString().Replace("~", "").Replace("thumb_", ""), 82, 66);
            }
            else
            {
                WapXzone_VNM.CreateAvatar.MOReceiver ws = new WapXzone_VNM.CreateAvatar.MOReceiver();
                ws.GenerateAvatarThumnail(curData["WThumnail"].ToString(), 82, 66);
                imgAvatar.ImageUrl = preurl + MultimediaUtility.GetAvatarThumnail(curData["WThumnail"].ToString(), 82, 66).Replace("~", "");
            }
        }
Exemplo n.º 13
0
 protected void HienThiNoiDung(Boolean thuchien)
 {
     pnlNoiDung.Visible = true;
     if (thuchien)
     {
         if (lang == "1")
         {
             ltrNoiDung.Text = "Bạn đã đăng ký thành công dịch vụ " + GetName(madichvu) + ". Những thông tin mới nhất sẽ được cập nhật đến bạn hàng ngày";
         }
         else
         {
             ltrNoiDung.Text = "Ban da dang ky thanh cong dich vu " + UnicodeUtility.UnicodeToKoDau(GetName(madichvu)) + ". Nhung thong tin moi nhat se duoc cap nhat den ban hang ngay.";
         }
     }
 }
Exemplo n.º 14
0
 protected void HienThiNoiDung(Boolean thuchien)
 {
     pnlNoiDung.Visible = true;
     if (thuchien)
     {
         if (lang == "1")
         {
             ltrNoiDung.Text = "Bạn đã đăng ký thành công dịch vụ " + GetName(madichvu) + ". Kết quả sẽ được gửi đến điện thoại của bạn hàng tuần ngay sau khi trận đấu kết thúc";
         }
         else
         {
             ltrNoiDung.Text = "Ban da dang ky thanh cong dich vu " + UnicodeUtility.UnicodeToKoDau(GetName(madichvu)) + ". Ket qua se duoc gui den dien thoai cua ban hang tuan ngay sau khi tran dau ket thuc";
         }
     }
 }
Exemplo n.º 15
0
        protected void rptlastest_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            if (e.Item.ItemIndex < 0)
            {
                return;
            }
            DataRowView curData = (DataRowView)e.Item.DataItem;

            System.Web.UI.WebControls.Image imgAvatar = (System.Web.UI.WebControls.Image)e.Item.FindControl("imgAvatar");
            HyperLink lnkAvatar  = (HyperLink)e.Item.FindControl("lnkAvatar");
            HyperLink lnkTenAnh  = (HyperLink)e.Item.FindControl("lnkTenAnh");
            Literal   ltrTheloai = (Literal)e.Item.FindControl("ltrTheloai");
            Literal   ltrLuottai = (Literal)e.Item.FindControl("ltrLuottai");
            HyperLink lnkTai     = (HyperLink)e.Item.FindControl("lnkTai");
            HyperLink lnkTang    = (HyperLink)e.Item.FindControl("lnkTang");

            if (lang == 1)
            {
                lnkTenAnh.Text  = "<span class=\"bold\">" + curData["WTitle_Unicode"].ToString() + "</span>";
                ltrTheloai.Text = Resources.Resource.wTheLoai + curData["Web_Name"].ToString();
                ltrLuottai.Text = Resources.Resource.wLuotTai + curData["Download"].ToString();
                lnkTai.Text     = "<span class=\"orange bold\">" + Resources.Resource.wTai + "</span>";
                lnkTang.Text    = "<span class=\"orange bold\">" + Resources.Resource.wTang + "</span>";
            }
            else
            {
                lnkTenAnh.Text  = "<span class=\"bold\">" + curData["WTitle"].ToString() + "</span>";
                ltrTheloai.Text = Resources.Resource.wTheLoai_KD + UnicodeUtility.UnicodeToKoDau(curData["Web_Name"].ToString());
                ltrLuottai.Text = Resources.Resource.wLuotTai_KD + curData["Download"].ToString();
                lnkTai.Text     = "<span class=\"orange bold\">" + Resources.Resource.wTai_KD + "</span>";
                lnkTang.Text    = "<span class=\"orange bold\">" + Resources.Resource.wTang_KD + "</span>";
            }
            lnkAvatar.NavigateUrl = lnkTenAnh.NavigateUrl = UrlProcess.GetWallpaperDetailUrl(lang.ToString(), "detail", width, curData["W_WItemID"].ToString()) + "&catid=" + curData["W_CategoryID"].ToString();
            //lnkTai.NavigateUrl = "../Download.aspx?id=" + curData["W_WItemID"].ToString() + "&catid=" + curData["W_CategoryID"].ToString() + "&lang=" + lang + "&w=" + width;
            lnkTai.NavigateUrl  = UrlProcess.GetWallpaperDownloadUrl(lang.ToString(), width, curData["W_WItemID"].ToString(), curData["W_CategoryID"].ToString());
            lnkTang.NavigateUrl = UrlProcess.GetWallpaperDetailUrl(lang.ToString(), "detail", width, curData["W_WItemID"].ToString()) + "&g=1&catid=" + curData["W_CategoryID"].ToString();
            if (curData["WThumnail"].ToString().LastIndexOf(".gif") > 0)
            {
                WapXzone_VNM.CreateGIFAvatar.Ws_Process ws = new WapXzone_VNM.CreateGIFAvatar.Ws_Process();
                imgAvatar.ImageUrl = preurl + ws.GetAvatarGif(curData["WThumnail"].ToString().Replace("~", "").Replace("thumb_", ""), 60, 60);
            }
            else
            {
                WapXzone_VNM.CreateAvatar.MOReceiver ws = new WapXzone_VNM.CreateAvatar.MOReceiver();
                ws.GenerateAvatarThumnail(curData["WThumnail"].ToString(), 60, 60);
                imgAvatar.ImageUrl = preurl + MultimediaUtility.GetAvatarThumnail(curData["WThumnail"].ToString(), 60, 60).Replace("~", "");
            }
        }
Exemplo n.º 16
0
        protected void btnCo_Click(object sender, EventArgs e)
        {
            if (AppEnv.GetSetting("S2Test") == "1")
            {
                pnlSMS.Visible      = false;
                pnlThongBao.Visible = false;

                pnlNoiDung.Visible = true;

                ltrNoiDung.Text = lang == "1" ? "Bạn đã đăng ký thành công dịch vụ " + GetName(madichvu) + ". Những thông tin mới nhất sẽ được cập nhật đến bạn hàng ngày. <br/> Để hủy dịch vụ vui lòng soạn: <b> HUY " + madichvu + " </b> gửi <b> " + AppEnv.GetSetting("S2ShortCode") + " </b>"
                            : "Ban da dang ky thanh cong dich vu " + UnicodeUtility.UnicodeToKoDau(GetName(madichvu)) + ". Nhung thong tin moi nhat se duoc cap nhat den ban hang ngay. <br/> De huy dich vu vui long soan: <b> HUY " + madichvu + " </b> gui <b> " + AppEnv.GetSetting("S2ShortCode") + " </b>";
            }
            else
            {
                string shortCode   = AppEnv.GetSetting("S2ShortCode");   //223
                string requestId   = AppEnv.GetSetting("S2RequestID");
                string commandCode = AppEnv.GetSetting("S2Commandcode"); //DK
                string message     = "DK " + madichvu;
                string msisdn      = Session["msisdn"].ToString();

                string   reResult  = AppEnv.RegisterService(shortCode, requestId, msisdn, commandCode, message);
                string[] arrResult = reResult.Split('|');

                if (arrResult.Length > 0)
                {
                    if (arrResult[0] == "1")
                    {
                        pnlSMS.Visible      = false;
                        pnlThongBao.Visible = false;

                        pnlNoiDung.Visible = true;

                        ltrNoiDung.Text = lang == "1" ? "Bạn đã đăng ký thành công dịch vụ " + GetName(madichvu) + ". Những thông tin mới nhất sẽ được cập nhật đến bạn hàng ngày. <br/> Để hủy dịch vụ vui lòng soạn: <b> HUY " + madichvu + " </b> gửi <b> " + AppEnv.GetSetting("S2ShortCode") + " </b>"
                             : "Ban da dang ky thanh cong dich vu " + UnicodeUtility.UnicodeToKoDau(GetName(madichvu)) + ". Nhung thong tin moi nhat se duoc cap nhat den ban hang ngay. <br/> De huy dich vu vui long soan: <b> HUY " + madichvu + " </b> gui <b> " + AppEnv.GetSetting("S2ShortCode") + " </b>";
                    }
                    else
                    {
                        pnlThongBao.Visible = false;
                        pnlSMS.Visible      = false;

                        pnlNoiDung.Visible = true;

                        ltrNoiDung.Text = lang == "1" ? "Đăng ký không thành công. Vui lòng thử lại" : "Dang ky khong thanh cong. Vui long thu lai";
                    }
                }
            }
        }
Exemplo n.º 17
0
        protected void btnCo_Click(object sender, EventArgs e)
        {
            if (AppEnv.GetSetting("S2Test") == "1")
            {
                pnlSMS.Visible      = false;
                pnlThongBao.Visible = false;

                pnlNoiDung.Visible = true;

                ltrNoiDung.Text = lang == "1" ? "Bạn đã đăng ký thành công dịch vụ " + GetName(madichvu) + ". Kết quả sẽ được gửi đến điện thoại của bạn hàng tuần ngay sau khi trận đấu kết thúc. <br/> Để hủy dịch vụ vui lòng soạn: <b> HUY KQ " + madichvu + " </b> gửi <b> " + AppEnv.GetSetting("S2ShortCode") + " </b>"
                            : "Ban da dang ky thanh cong dich vu " + UnicodeUtility.UnicodeToKoDau(GetName(madichvu)) + ". Ket qua se duoc gui den dien thoai cua ban hang tuan ngay sau khi tran dau ket thuc. <br/> De huy dich vu vui long soan: <b> HUY KQ " + madichvu + " </b> gui <b> " + AppEnv.GetSetting("S2ShortCode") + " </b>";
            }
            else
            {
                string shortCode   = AppEnv.GetSetting("S2ShortCode");   //223
                string requestId   = AppEnv.GetSetting("S2RequestID");
                string commandCode = AppEnv.GetSetting("S2Commandcode"); //DK
                string message     = "DK KQ " + madichvu;
                string msisdn      = Session["msisdn"].ToString();

                string   reResult  = AppEnv.RegisterService(shortCode, requestId, msisdn, commandCode, message);
                string[] arrResult = reResult.Split('|');

                if (arrResult.Length > 0)
                {
                    if (arrResult[0] == "1")
                    {
                        pnlSMS.Visible      = false;
                        pnlThongBao.Visible = false;

                        pnlNoiDung.Visible = true;

                        ltrNoiDung.Text = lang == "1" ? "Bạn đã đăng ký thành công dịch vụ " + GetName(madichvu) + ". Kết quả sẽ được gửi đến điện thoại của bạn hàng tuần ngay sau khi trận đấu kết thúc. <br/> Để hủy dịch vụ vui lòng soạn: <b> HUY KQ " + madichvu + " </b> gửi <b> " + AppEnv.GetSetting("S2ShortCode") + " </b>"
                             : "Ban da dang ky thanh cong dich vu " + UnicodeUtility.UnicodeToKoDau(GetName(madichvu)) + ". Ket qua se duoc gui den dien thoai cua ban hang tuan ngay sau khi tran dau ket thuc. <br/> De huy dich vu vui long soan: <b> HUY KQ " + madichvu + " </b> gui <b> " + AppEnv.GetSetting("S2ShortCode") + " </b>";
                    }
                    else
                    {
                        pnlThongBao.Visible = false;
                        pnlSMS.Visible      = false;

                        pnlNoiDung.Visible = true;

                        ltrNoiDung.Text = lang == "1" ? "Đăng ký không thành công. Vui lòng thử lại" : "Dang ky khong thanh cong. Vui long thu lai";
                    }
                }
            }
        }
Exemplo n.º 18
0
        protected void btnSearch_Click(object sender, EventArgs e)
        {
            string key = txtKey.Text.Trim();

            key = UnicodeUtility.RemoveSpecialCharacter(key);
            key = UnicodeUtility.RemoveHtmlTags(key);
            key = UnicodeUtility.UnicodeToKoDau(key);
            if (!string.IsNullOrEmpty(key))
            {
                key = key.Replace(" ", "+");
                string url = UrlProcess.YoutubeTimKiem(key, 1, "tim-phim");

                HttpContext.Current.RewritePath(url, false);

                Response.Redirect(url);
            }
        }
Exemplo n.º 19
0
        protected void rptATMdetail_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            if (e.Item.ItemIndex < 0)
            {
                return;
            }
            DataRowView curData   = (DataRowView)e.Item.DataItem;
            Literal     ltrDetail = (Literal)e.Item.FindControl("ltrDetail");

            if (lang == 1)
            {
                ltrDetail.Text = curData["address"].ToString();
            }
            else
            {
                ltrDetail.Text = UnicodeUtility.UnicodeToKoDau(curData["address_kd"].ToString());
            }
        }
Exemplo n.º 20
0
        protected void rptTaxidetail_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            if (e.Item.ItemIndex < 0)
            {
                return;
            }
            DataRowView curData     = (DataRowView)e.Item.DataItem;
            Literal     ltrTaxiName = (Literal)e.Item.FindControl("ltrTaxiName");

            if (lang == 1)
            {
                ltrTaxiName.Text = curData["taxi_name"].ToString() + " : " + curData["taxi_phone"].ToString();
            }
            else
            {
                ltrTaxiName.Text = UnicodeUtility.UnicodeToKoDau(curData["taxi_name"].ToString()) + " : " + curData["taxi_phone"].ToString();
            }
        }
Exemplo n.º 21
0
        protected void rptdv87_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            if (e.Item.ItemIndex < 0)
            {
                return;
            }
            DataRowView curData        = (DataRowView)e.Item.DataItem;
            HyperLink   lnkdv87        = (HyperLink)e.Item.FindControl("lnkdv87");
            Literal     ltrDangCapNhat = (Literal)e.Item.FindControl("ltrDangCapNhat");

            DataSet dtcheck = ThethaoController.GetAll_Sport87_DetailBy_PK_Game87ID(curData["PK_Game87_ID"].ToString());

            if (ConvertUtility.ToBoolean(dtcheck.Tables[0].Rows[0]["IsFull"]))
            {
                if (lang == 1)
                {
                    lnkdv87.Text = "<span class=\"blue\">" + curData["Name"].ToString() + "</span>";
                }
                else
                {
                    lnkdv87.Text = "<span class=\"blue\">" + UnicodeUtility.UnicodeToKoDau(curData["Name"].ToString()) + "</span>";
                }
                //Charging
                //string content = cpid + "&" + Constant.thethao + "9" + curData["Game87_Id"].ToString() + "&" + price + "&" + vmstransactionid;
                //lnkdv87.NavigateUrl = UrlProcess.GetSportDV87Url(lang.ToString(), "support", width, curData["PK_Game87_ID"].ToString());
                //lnkTaive.NavigateUrl = UrlProcess.GetSportDV87Url(lang.ToString(), "support", width, curData["PK_Game87_ID"].ToString());
                //lnkdv87.NavigateUrl = ConfigurationSettings.AppSettings.Get("vms3g") + "?link=" + Server.UrlEncode(EAS.EncryptData(content, ConfigurationSettings.AppSettings.Get("vmskey")));
                lnkdv87.NavigateUrl = "../TuVanDacBiet.aspx?id=" + curData["Game87_Id"].ToString() + "&lang=" + lang + "&w=" + width;
            }
            else
            {
                if (lang == 1)
                {
                    lnkdv87.Text        = curData["Name"].ToString();
                    ltrDangCapNhat.Text = "(đang cập nhật)";
                }
                else
                {
                    ltrDangCapNhat.Text = "(dang cap nhat)";
                    lnkdv87.Text        = UnicodeUtility.UnicodeToKoDau(curData["Name"].ToString());
                }
                lnkdv87.NavigateUrl = null;
            }
        }
Exemplo n.º 22
0
        protected void rptTaxi_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            if (e.Item.ItemIndex < 0)
            {
                return;
            }
            DataRowView curData = (DataRowView)e.Item.DataItem;
            HyperLink   lnktaxi = (HyperLink)e.Item.FindControl("lnktaxi");

            if (lang == 1)
            {
                lnktaxi.Text = curData["province_name"].ToString();
            }
            else
            {
                lnktaxi.Text = UnicodeUtility.UnicodeToKoDau(curData["province_name"].ToString());
            }
            lnktaxi.NavigateUrl = UrlProcess.GetBankUrl(lang.ToString(), "listtaxi", width, curData["province_id"].ToString());
        }
Exemplo n.º 23
0
        protected void rptVideo_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            if (e.Item.ItemIndex < 0)
            {
                return;
            }
            DataRowView curData = (DataRowView)e.Item.DataItem;

            System.Web.UI.WebControls.Image imgAvatar = (System.Web.UI.WebControls.Image)e.Item.FindControl("imgAvatar");
            HyperLink lnkAvatar  = (HyperLink)e.Item.FindControl("lnkAvatar");
            HyperLink lnkTenAnh  = (HyperLink)e.Item.FindControl("lnkTenAnh");
            Literal   ltrTheloai = (Literal)e.Item.FindControl("ltrTheloai");
            Literal   ltrLuottai = (Literal)e.Item.FindControl("ltrLuottai");
            HyperLink lnkTai     = (HyperLink)e.Item.FindControl("lnkTai");
            HyperLink lnkXem     = (HyperLink)e.Item.FindControl("lnkXem");
            HyperLink lnkTang    = (HyperLink)e.Item.FindControl("lnkTang");

            if (lang == "1")
            {
                lnkTenAnh.Text  = "<span class=\"black bold\">" + curData["VTitle_Unicode"].ToString() + "</span>";
                ltrTheloai.Text = Resources.Resource.wTheLoai + curData["Web_Name"].ToString();
                ltrLuottai.Text = Resources.Resource.wLuotTai + curData["Download"].ToString();
                lnkTai.Text     = "<span class=\"black bold\">" + Resources.Resource.wTai + "</span>";
                lnkTang.Text    = "<span class=\"black bold\">" + Resources.Resource.wTang + "</span>";
            }
            else
            {
                lnkTenAnh.Text  = "<span class=\"black bold\">" + curData["VTitle"].ToString() + "</span>";
                ltrTheloai.Text = Resources.Resource.wTheLoai_KD + UnicodeUtility.UnicodeToKoDau(curData["Web_Name"].ToString());
                ltrLuottai.Text = Resources.Resource.wLuotTai_KD + curData["Download"].ToString();
                lnkTai.Text     = "<span class=\"black bold\">" + Resources.Resource.wTai_KD + "</span>";
                lnkTang.Text    = "<span class=\"black bold\">" + Resources.Resource.wTang_KD + "</span>";
            }
            lnkAvatar.NavigateUrl = lnkTenAnh.NavigateUrl = UrlProcess.GetVideoDetailUrl(lang.ToString(), "detail", width, curData["W_VItemID"].ToString());
            lnkTai.NavigateUrl    = "../../Video/Download.aspx?id=" + curData["W_VItemID"].ToString() + "&lang=" + lang + "&w=" + width;
            lnkXem.NavigateUrl    = "../../Video/View.aspx?id=" + curData["W_VItemID"].ToString() + "&lang=" + lang + "&w=" + width;
            lnkTang.NavigateUrl   = UrlProcess.GetVideoDetailUrl(lang.ToString(), "detail", width, curData["W_VItemID"].ToString()) + "&g=1";
            WapXzone_VNM.CreateAvatar.MOReceiver ws = new WapXzone_VNM.CreateAvatar.MOReceiver();
            ws.GenerateAvatarThumnail(curData["VThumnail"].ToString(), 60, 45);
            imgAvatar.ImageUrl = preurl + MultimediaUtility.GetAvatarThumnail(curData["VThumnail"].ToString(), 60, 45).Replace("~", "");
            //imgAvatar.ImageUrl = preurl + curData["VThumnail"].ToString().Replace("~", "");
        }
Exemplo n.º 24
0
        protected void rptlstCategory_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            if (e.Item.ItemIndex < 0)
            {
                return;
            }

            if (e.Item.ItemIndex < 2)
            {
                Literal litBlank = (Literal)e.Item.FindControl("litBlank");
                litBlank.Text = "<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#FFFFFF\"><tr><td align=\"left\" valign=\"top\"><img alt=\"\" src=\"/imagesnew/blank.gif\" width=\"5\" height=\"9\" /></td></tr></table>";
            }

            DataRowView curData    = (DataRowView)e.Item.DataItem;
            Image       imgAvatar  = (Image)e.Item.FindControl("imgAvatar");
            HyperLink   lnkAvatar  = (HyperLink)e.Item.FindControl("lnkAvatar");
            HyperLink   lnkTenAnh  = (HyperLink)e.Item.FindControl("lnkTenAnh");
            Literal     ltrTheloai = (Literal)e.Item.FindControl("ltrTheloai");

            HyperLink lnkTai = (HyperLink)e.Item.FindControl("lnkTai");
            HyperLink lnkXem = (HyperLink)e.Item.FindControl("lnkXem");

            if (lang == 1)
            {
                lnkTenAnh.Text  = curData["VTitle_Unicode"].ToString();
                ltrTheloai.Text = Resources.Resource.wTheLoai + curData["Web_Name"];
                lnkTai.Text     = Resources.Resource.wTai;
            }
            else
            {
                lnkTenAnh.Text  = curData["VTitle"].ToString();
                ltrTheloai.Text = Resources.Resource.wTheLoai_KD + UnicodeUtility.UnicodeToKoDau(curData["Web_Name"].ToString());
                lnkTai.Text     = Resources.Resource.wTai_KD;
            }
            lnkAvatar.NavigateUrl = lnkTenAnh.NavigateUrl = UrlProcess.GetVideoDetailUrlNew(lang.ToString(), "detail", width, curData["W_VItemID"].ToString());
            lnkTai.NavigateUrl    = "../DownloadNew.aspx?id=" + curData["W_VItemID"].ToString() + "&lang=" + lang + "&w=" + width;
            lnkXem.NavigateUrl    = "../ViewNew.aspx?id=" + curData["W_VItemID"].ToString() + "&lang=" + lang + "&w=" + width;
            WapXzone_VNM.CreateAvatar.MOReceiver ws = new WapXzone_VNM.CreateAvatar.MOReceiver();
            ws.GenerateAvatarThumnail(curData["VThumnail"].ToString(), 82, 66);
            imgAvatar.ImageUrl = preurl + MultimediaUtility.GetAvatarThumnail(curData["VThumnail"].ToString(), 82, 66).Replace("~", "");
        }
Exemplo n.º 25
0
        protected void rptdv87_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            if (e.Item.ItemIndex < 0)
            {
                return;
            }
            DataRowView curData        = (DataRowView)e.Item.DataItem;
            HyperLink   lnkdv87        = (HyperLink)e.Item.FindControl("lnkdv87");
            Literal     ltrDangCapNhat = (Literal)e.Item.FindControl("ltrDangCapNhat");

            DataSet dtcheck = ThethaoController.GetAll_Sport87_DetailBy_PK_Game87ID(curData["PK_Game87_ID"].ToString());

            if (ConvertUtility.ToBoolean(dtcheck.Tables[0].Rows[0]["IsFull"]))
            {
                if (lang == 1)
                {
                    lnkdv87.Text = curData["Name"].ToString();
                }
                else
                {
                    lnkdv87.Text = UnicodeUtility.UnicodeToKoDau(curData["Name"].ToString());
                }
                lnkdv87.NavigateUrl = "../TuVanDacBietNew.aspx?id=" + curData["Game87_Id"] + "&lang=" + lang + "&w=" + width;
            }
            else
            {
                if (lang == 1)
                {
                    lnkdv87.Text        = curData["Name"].ToString();
                    ltrDangCapNhat.Text = "(đang cập nhật)";
                }
                else
                {
                    ltrDangCapNhat.Text = "(dang cap nhat)";
                    lnkdv87.Text        = UnicodeUtility.UnicodeToKoDau(curData["Name"].ToString());
                }
                lnkdv87.NavigateUrl = null;
            }
        }
Exemplo n.º 26
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string key = Request.QueryString["key"];

            key = UnicodeUtility.RemoveSpecialCharacter(key);
            key = UnicodeUtility.RemoveHtmlTags(key);
            key = UnicodeUtility.UnicodeToKoDau(key);
            key = key.ToLower();

            if (!string.IsNullOrEmpty(key))
            {
                int    totalrecord = 0;
                string cateName    = "tim-phim";

                if (!string.IsNullOrEmpty(Request.QueryString["cpage"]))
                {
                    curpage = ConvertUtility.ToInt32(Request.QueryString["cpage"]);
                }

                DataSet ds = VideoController.KhoClipSearch(key, pagesize, curpage);
                if (ds != null && ds.Tables[0].Rows.Count > 0)
                {
                    rptList.DataSource = ds.Tables[0];
                    rptList.DataBind();

                    totalrecord = ConvertUtility.ToInt32(ds.Tables[1].Rows[0]["totalRows"]);

                    Paging1.totalrecord = totalrecord;
                    Paging1.pagesize    = pagesize;
                    Paging1.numberpage  = pagenumber;

                    Paging1.defaultparam = UrlProcess.YoutubeTimKiem(key, curpage, cateName);
                    Paging1.queryparam   = UrlProcess.YoutubeTimKiem(key, curpage, cateName);
                }

                lblKetqua.Text = "Tìm thấy <b>" + totalrecord + "</b> phim";
            }
        }
Exemplo n.º 27
0
        protected void Page_Load(object sender, EventArgs e)
        {
            lang  = ConvertUtility.ToInt32(Request.QueryString["lang"]);
            width = Request.QueryString["w"];
            catid = ConvertUtility.ToInt32(Request.QueryString["catid"]);
            //Get Taxi by city
            DataTable dtTaxi = BCBController.GetAllTaxyByCity(catid);

            rptTaxidetail.DataSource     = dtTaxi;
            rptTaxidetail.ItemDataBound += new RepeaterItemEventHandler(rptTaxidetail_ItemDataBound);;
            rptTaxidetail.DataBind();

            lang = ConvertUtility.ToInt32(Request.QueryString["lang"]);

            if (lang == 1)
            {
                lblTitle.Text = "<span class=\"trang\">" + dtTaxi.Rows[0]["province_name"].ToString().ToUpper() + "</span>";
            }
            else
            {
                lblTitle.Text = "<span class=\"trang\">" + UnicodeUtility.UnicodeToKoDau(dtTaxi.Rows[0]["province_name"].ToString().ToUpper()) + "</span>";
            }
        }
Exemplo n.º 28
0
        protected void rptGameFree_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            if (e.Item.ItemIndex < 0)
            {
                return;
            }

            DataRowView curData = (DataRowView)e.Item.DataItem;
            HyperLink   lnkFile = (HyperLink)e.Item.FindControl("lnkFile");

            if (lnkFile != null)
            {
                if (lang == 1)
                {
                    lnkFile.Text = curData["Name"].ToString();
                }
                else
                {
                    lnkFile.Text = UnicodeUtility.UnicodeToKoDau(curData["Name"].ToString());
                }

                lnkFile.NavigateUrl = AppEnv.GetSetting("JavaGameDownload") + "?id=" + curData["GameID"] + "&type=3" + "&code=" + SecurityMethod.MD5Encrypt(curData["GameID"].ToString());
            }
        }
Exemplo n.º 29
0
        protected void rptRingTone_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            if (e.Item.ItemIndex < 0)
            {
                return;
            }

            DataRowView curData = (DataRowView)e.Item.DataItem;
            HyperLink   lnkFile = (HyperLink)e.Item.FindControl("lnkFile");

            if (lnkFile != null)
            {
                if (lang == "1")
                {
                    lnkFile.Text = curData["SongName"].ToString();
                }
                else
                {
                    lnkFile.Text = UnicodeUtility.UnicodeToKoDau(curData["SongName"].ToString());
                }

                lnkFile.NavigateUrl = AppEnv.GetSetting("urldata") + curData["Path"].ToString().Replace("~/", "");
            }
        }
Exemplo n.º 30
0
        void rptItem_ItemDataBound(object sender, RepeaterItemEventArgs e)
        {
            if (e.Item.ItemIndex < 0)
            {
                return;
            }

            HyperLink lnkAvatar = (HyperLink)e.Item.FindControl("lnkAvatar");
            Image     imgAvatar = (Image)e.Item.FindControl("imgAvatar");
            HyperLink lnkTen    = (HyperLink)e.Item.FindControl("lnkTen");

            DataRowView row = (DataRowView)e.Item.DataItem;

            imgAvatar.ImageUrl = "http://media.xzone.vn/" + row["Avatar"].ToString().Replace("~/", "");
            lnkTen.NavigateUrl = lnkAvatar.NavigateUrl = "http://media.xzone.vn/" + row["Path"].ToString().Replace("~/", "");
            if (lang == "1")
            {
                lnkTen.Text = row["Video_Name"].ToString();
            }
            else
            {
                lnkTen.Text = UnicodeUtility.UnicodeToKoDau(row["Video_Name"].ToString());
            }
        }