Exemplo n.º 1
0
        protected void btnSend_Click(object sender, EventArgs e)
        {
            try
            {
                ETO.Contact contact = ReceiveHtml();
                ContactBSO contactBSO = new ContactBSO();
                contactBSO.CreateContact(contact);

                ConfigBSO configBSO = new ConfigBSO();
                Config config = configBSO.GetAllConfig(Language.language);

                string strBody = "Thông tin liên hệ tới Website " + config.WebName + " (" + config.WebDomain + "): <br>";
                strBody += "<b>Họ tên  : </b> " + NameContact.Value + "<br>";
                strBody += "<b>Cơ quan công tác : </b> " + Company.Value + "<br>";
                strBody += "<b>Địa chỉ : </b> " + Address.Value + "<br>";
                strBody += "<b>Thành phố : </b> " + City.Value + "<br>";
                strBody += "<b>Điện thoại : </b> " + Telephone.Value + "<br>";
                strBody += "<b>Fax : </b> " + Fax.Value + "<br>";

                strBody += "<b>Email : </b> " + Email.Value + "<br>";
                strBody += "<b>Nội dung Yêu cầu : </b> " + Require.Value + "<br>";

                MailBSO mailBSO = new MailBSO();
                //       mailBSO.EmailFrom = Email.Value;
                mailBSO.EmailFrom = config.Email_from;
                string strObj = "Thông tin liên hệ tới quản trị viên website " + config.WebName + " (" + config.WebDomain + ") - Ngày " + DateTime.Now.ToString("dd:MM:yyyy");
                mailBSO.SendMail(config.Email_to, strObj, strBody);

                Response.Redirect("~/ContactSucceed/Default.aspx");
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message.ToString());
            }
        }
Exemplo n.º 2
0
        private void GetVideobyId(int Id)
        {
            VideoBSO videoBSO = new VideoBSO();
            ETO.Video video = videoBSO.GetVideoById(Id);

            ConfigBSO configBSO = new ConfigBSO();
            Config config = configBSO.GetAllConfig(Language.language);

            if (video == null)
                Response.Redirect("~/Default.aspx");

            //if (video.VideoType == true)
            //    ltlVideo.Text = @"<object type='application/x-shockwave-flash' data='" + ResolveUrl("~/") 
            //        + "images/player_flv_multi.swf' width='480' height='320'><param name='movie' value='" 
            //        + ResolveUrl("~/") + "images/player_flv_multi.swf' /> <param name='allowFullScreen' value='true' /><param name='FlashVars' value='flv=" 
            //        + video.VideoUrl + "&title=" + video.VideoName + "&startimage=" + ResolveUrl("~/") + "Admin/Upload/Video/" 
            //        + video.Image + "&width=480&height=320&autoplay=0&autoload=0&margin=0&showstop=1&showvolume=1&showtime=2&showopen=2&showfullscreen=1&buffer=10&buffermessage=" 
            //        + video.ShortDescribe + "&shortcut=1&showtitleandstartimage=0' /></object>";
            //else
            //    ltlVideo.Text = @"<object type='application/x-shockwave-flash' data='" + ResolveUrl("~/") 
            //        + "images/player_flv_multi.swf' width='480' height='320'><param name='movie' value='" 
            //        + ResolveUrl("~/") + "images/player_flv_multi.swf' /> <param name='allowFullScreen' value='true' /><param name='FlashVars' value='flv=" 
            //        + ResolveUrl("~/") + "Admin/Upload/Video/Files/" + video.FileName + "&title=" + video.VideoName + "&startimage=" 
            //        + ResolveUrl("~/") + "Admin/Upload/Video/" + video.Image + "&width=480&height=320&autoplay=0&autoload=0&margin=0&showstop=1&showvolume=1&showtime=2&showopen=2&showfullscreen=1&buffer=10&buffermessage=" 
            //        + video.ShortDescribe + "&shortcut=1&showtitleandstartimage=0' /></object>";

            if (video.VideoType == true)
                ltlVideo.Text = @"<object width='480' height='320' data='" + (new commonBSO()).EmbedYoutubeLink(video.VideoUrl) + "'></object>";
            else
                ltlVideo.Text = @"<object type='application/x-shockwave-flash' data='http://flv-player.net/medias/player_flv_multi.swf' width='480' height='320'><param name='movie' value='http://flv-player.net/medias/player_flv_multi.swf' /> <param name='allowFullScreen' value='true' /><param name='FlashVars' value='flv="
                    + ResolveUrl("~/") + "Admin/Upload/Video/Files/" + video.FileName + "&title=" + video.VideoName + "&startimage="
                    + ResolveUrl("~/") + "Admin/Upload/Video/" + video.Image + "&width=480&height=320&autoplay=0&autoload=0&margin=0&showstop=1&showvolume=1&showtime=2&showopen=2&showfullscreen=1&buffer=10&buffermessage="
                    + video.ShortDescribe + "&shortcut=1&showtitleandstartimage=0' /></object>";

        }
Exemplo n.º 3
0
        public Member ReceiveHtml()
        {
            ConfigBSO configBSO = new ConfigBSO();
            Config config = configBSO.GetAllConfig(Language.language);
            int icon_w = Convert.ToInt32(config.New_icon_w);
            int icon_h = Convert.ToInt32(config.New_icon_h);


            SecurityBSO securityBSO = new SecurityBSO();
            Member member = new Member();

            string path = Request.PhysicalApplicationPath.Replace(@"\", "/") + "/Upload/Avatar/";
            commonBSO commonBSO = new commonBSO();
            string image_thumb = commonBSO.UploadImage(txtAvatar, path, icon_w, icon_h);

            member.MemberID = (hddMemberID.Value != "") ? Convert.ToInt32(hddMemberID.Value) : 0;
            member.UserName = (txtUserName.Text != "") ? txtUserName.Text.Trim() : hddUsername.Value;
            member.Email = (txtEmail.Text != "") ? txtEmail.Text.Trim() : "";
            member.Password = (txtPassword.Text != "") ? securityBSO.EncPwd(txtPassword.Text.Trim()) : "";
            member.FullName = (txtFullName.Text != "") ? txtFullName.Text.Trim() : "";
            member.Address = (txtAddress.Text != "") ? txtAddress.Text.Trim() : "";
            member.Phone = (txtPhone.Text != "") ? txtPhone.Text.Trim() : "";
            member.NickYahoo = (txtNickYahoo.Text != "") ? txtNickYahoo.Text.Trim() : "";
            member.NickSkype = (txtNickSkype.Text != "") ? txtNickSkype.Text.Trim() : "";
            member.Avatar = (image_thumb != "") ? image_thumb : hddImageThumb.Value;
            member.Sex = Convert.ToBoolean(rdbSex.SelectedItem.Value);
            member.Birth = txtBirth.SelectedDate.Value;


            member.Actived = Convert.ToBoolean(rdbList.SelectedItem.Value);
            return member;
        }
Exemplo n.º 4
0
        protected void initControl()
        {

            ConfigBSO configBSO = new ConfigBSO();
            int Ngon_Ngu = Convert.ToInt32(ViewState["CauHinh_Viet"]);
            if (Ngon_Ngu == 1 || Ngon_Ngu == 0)
            {
                VideoBSO videoBSO = new VideoBSO();
                DataTable table = videoBSO.GetVideoAll(Language.language);
                commonBSO commonBSO = new commonBSO();
                commonBSO.FillToGridView(grvVideo, table);

            }
            else
            {
                VideoBSO videoBSO = new VideoBSO();
                DataTable table = videoBSO.GetVideoAll(Language.language_Eng);
                commonBSO commonBSO = new commonBSO();
                commonBSO.FillToGridView(grvVideo, table);
            }




        }
Exemplo n.º 5
0
        protected void btn_add_Click(object sender, EventArgs e)
        {
            try
            {
                ConfigBSO configBSO = new ConfigBSO();
                Config config = configBSO.GetAllConfig(Language.language);

                MailBSO mailBSO = new MailBSO();
                mailBSO.EmailFrom = config.Email_from;

                EmailBSO emailBSO = new EmailBSO();
                DataTable table = emailBSO.GetEmailAll();


                string subject = txtTitle.Text;
                string body = txtRadFull.Html;

                for (int i = 0; i < table.Rows.Count; i++)
                    mailBSO.SendMail(table.Rows[i]["EmailAddress"].ToString(), subject, body);

                clientview.Text = "Thư đã được gửi đến danh sách Người dùng";

            }
            catch (Exception ex)
            {
                clientview.Text = ex.Message.ToString();
            }
        }
Exemplo n.º 6
0
        protected void InitValue(string lang)
        {
            ConfigBSO configBSO = new ConfigBSO();
            Config config = configBSO.GetAllConfig(lang);
            ltrCallCenter.Text = config.Info1;
            ltrLogo.Text = config.Info2;

            if (lang == Language.language)
                imgFlag.ImageUrl = "~/Img/flag-en.png";
            else if (lang == Language.language_Eng)
                imgFlag.ImageUrl = "~/Img/flag-vn.png";
        }
Exemplo n.º 7
0
        private Brand ReceiveHtml()
        {
            ConfigBSO configBSO = new ConfigBSO();
            Config config = configBSO.GetAllConfig(Language.language);
            int thumb_w = Convert.ToInt32(config.Product_thumb_w);
            int thumb_h = Convert.ToInt32(config.Product_thumb_h);

            string path = Request.PhysicalApplicationPath.Replace(@"\", "/") + "/Upload/Brand/";
            commonBSO commonBSO = new commonBSO();
            string icon = commonBSO.UploadImage(file_icon, path, thumb_w, thumb_h);
            Brand brand = new Brand();
            brand.BrandID = (hddBrandID.Value != "") ? Convert.ToInt32(hddBrandID.Value) : 0;
            brand.BrandName = txtBrandName.Text;
            brand.BrandUrl = txtBrandUrl.Text;
            brand.Image = icon;
            brand.ShortDescribe = txtShortDescribe.Text;
            brand.Language = Language.language;
            return brand;
        }
Exemplo n.º 8
0
        protected void btn_GetPass_Click(object sender, EventArgs e)
        {
            string email = txtEmail.Text.Trim();

            AdminBSO adminBSO = new AdminBSO();
            DataTable table = adminBSO.GetAllAdmin();

            DataView dataView = new DataView(table);
            dataView.RowFilter = "Admin_Email = '" + email + "'";
            if (dataView.Count > 0)
            {
                SecurityBSO securityBSO = new SecurityBSO();
                DataTable dataTable = dataView.ToTable();
                string oldpass = dataTable.Rows[0]["Admin_Password"].ToString();
                string newpass = securityBSO.DecPwd(oldpass);

                ConfigBSO configBSO = new ConfigBSO();
                Config config = configBSO.GetAllConfig(Language.language);

                MailBSO mailBSO = new MailBSO();
                mailBSO.EmailFrom = config.Email_from;

                string subject = "Web Support EVNIT - Phục hồi lại mật khẩu đăng nhập hệ thống";
                string body = "Chào bạn :  " + dataTable.Rows[0]["Admin_FullName"].ToString() + "<br>";
                body += "Tài khoản Email đăng nhập của bạn :  " + dataTable.Rows[0]["Admin_Email"].ToString() + "<br>";
                body += "Mật khẩu đăng nhập hệ thống của bạn :  " + newpass;

                if (mailBSO.SendMail(email, subject, body) == true)
                    labMassege.Text = "Mật khẩu đăng nhập đã được gửi tới Email của bạn !";
                else
                    labMassege.Text = "Hệ thống không thể gửi Email";
            }
            else
            {
                labMassege.Text = "Xin lỗi! Chúng tôi không tìm thấy tài khoản của bạn trong hệ thống.";
            }
        }
        private void ViewCateGroup()
        {
            ConfigBSO configBSO = new ConfigBSO();
            int Ngon_Ngu = Convert.ToInt32(ViewState["CauHinh_Viet"]);
            if (Ngon_Ngu == 1 || Ngon_Ngu == 0)
            {
                CateNewsGroupBSO CateBSO = new CateNewsGroupBSO();
                DataTable table = CateBSO.GetCateLanguage(Language.language);
                commonBSO commonBSO = new commonBSO();
                commonBSO.FillToGridView(grvCateNewsGroup, table);
            }
            else
            {
                CateNewsGroupBSO CateBSO = new CateNewsGroupBSO();
                DataTable table = CateBSO.GetCateLanguage(Language.language_Eng);
                commonBSO commonBSO = new commonBSO();
                commonBSO.FillToGridView(grvCateNewsGroup, table);
            }
            //CateNewsGroupBSO catenewsGroupBSO = new CateNewsGroupBSO();
            //DataTable table = catenewsGroupBSO.GetCateNewsGroupAll();
            //commonBSO commonBSO = new commonBSO();
            //commonBSO.FillToGridView(grvCateNewsGroup, table);

        }
Exemplo n.º 10
0
        private SinglePage ReceiveHtml()
        {
            ConfigBSO configBSO = new ConfigBSO();
            Config config = configBSO.GetAllConfig(Language.language);
            int icon_w = Convert.ToInt32(config.New_thumb_w);
            int icon_h = Convert.ToInt32(config.New_thumb_h);

            commonBSO commonBSO = new commonBSO();
            string path = Request.PhysicalApplicationPath.Replace(@"\", "/") + "/Upload/SinglePage/";
            string imgIcon = commonBSO.UploadImage(fileIcon, path, icon_w, icon_h);


            SinglePage singlepage = new SinglePage();
            singlepage.SinglePageID = (hddSinglePageID.Value != "") ? Convert.ToInt32(hddSinglePageID.Value) : 0;
            singlepage.SinglePageName = txtSinglePageName.Text;
            singlepage.Icon = (imgIcon != "") ? imgIcon : hddIcon.Value;
            singlepage.SinglePageDesc = txtRadSinglePageDesc.Html;
            singlepage.SinglePageContent = txtRadSinglePageContent.Html;
            singlepage.Language = Language.language;
            singlepage.Status = Convert.ToBoolean(rdbStatus.SelectedValue);
            singlepage.CreateDate = DateTime.Now;
            singlepage.CreatedUserName = Session["Admin_UserName"].ToString();
            return singlepage;
        }
Exemplo n.º 11
0
        private void sendMailToUser(ListQuestion lstQuestion)
        {
            /* ------------- Gui email den nguoi gui cau hoi --*/
            string strObj = "Yeu cau cua ban da duoc gui thanh cong den trang Support EVNIT. Ngay gui: " + DateTime.Now.ToString("dd/MM/yyyy");
            string strBody = "Câu hỏi đã được gửi thành công tới người Quản lý sản phẩm";
            strBody += "<br><i>Tiêu đề : </i><strong>" + lstQuestion.Question_Title + "</strong><br/>";
            strBody += "<span><i>Nội dung:</i><br /></span>";
            strBody += "<div style='margin-left: 20px; font-size: 11pt; border-left: 3px solid green; padding: 5px;'>";
            strBody += lstQuestion.Question_Content;
            strBody += "</div><p style='font-size: 10pt;'><b>Để xem danh sách các câu hỏi đã gửi và câu trả lời xin thực hiện theo các bước:</b>";
            strBody += "<br>Đăng nhập vào trang http://support.evn.com.vn -> truy cập mục Quản trị.";
            strBody += "</p>";
            strBody += "<div style='border-bottom: 1px dashed red; width: 500px; height: 20px;'/>";
            strBody += "<p>Trang hỗ trợ sản phẩm dịch vụ EVNIT <strong>http://support.evn.com.vn</strong></p>";

            ETO.Admin adminUser = new ETO.Admin();
            AdminBSO adminBSO = new AdminBSO();
            adminUser = adminBSO.GetAdminById(Session["Admin_UserName"].ToString());

            MailBSO mailBSO = new MailBSO();
            ConfigBSO configBSO = new ConfigBSO();
            Config config = configBSO.GetAllConfig(Language.language);
            mailBSO.EmailFrom = config.Email_from;
            mailBSO.SendMail(adminUser.AdminEmail, strObj, strBody);
        }
Exemplo n.º 12
0
        private void sendMailToGroup(ListQuestion lstQuestion)
        {
            /* ------------- Gui email den nguoi co trach nhiem tra loi cau hoi --*/
            string strObj = "Ban nhan duoc yeu cau ho tro tu khach hang cua EVNIT. Ngay gui: " + DateTime.Now.ToString("dd/MM/yyyy");
            string strBody = "Khách hàng có gửi cho bạn một yêu cầu hỗ trợ.<br /><br/>";
            strBody += "<i>Tiêu đề : </i><strong>" + lstQuestion.Question_Title + "</strong><br/>";
            strBody += "<span><i>Nội dung:</i><br /></span>";
            strBody += "<div style='margin-left: 20px; font-size: 11pt; border-left: 3px solid green; padding: 5px;'>";
            strBody += lstQuestion.Question_Content;
            strBody += "</div>";
            strBody += "<div style='border-bottom: 1px dashed red; width: 500px; height: 20px;'/>";
            strBody += "<p>Trang hỗ trợ sản phẩm dịch vụ EVNIT <strong>http://support.evn.com.vn</strong></p>";


            MailBSO mailBSO = new MailBSO();
            ConfigBSO configBSO = new ConfigBSO();
            Config config = configBSO.GetAllConfig(Language.language);
            mailBSO.EmailFrom = config.Email_from;

            CateNewsBSO cateNewsBSO = new CateNewsBSO();
            CateNews cateNews = new CateNews();
            cateNews = cateNewsBSO.GetCateNewsById(int.Parse(ddlCateNews.SelectedValue.ToString())); //list user of product           

            //Get list email
            AdminBSO adminBSO = new AdminBSO();
            DataTable dtUser = new DataTable();
            dtUser = adminBSO.GetAllAdmin();
            if (dtUser.Rows.Count > 0)
            {
                DataView view1 = new DataView(dtUser);
                string strUser = cateNews.Roles;
                strUser = strUser.Remove(strUser.LastIndexOf(",")).Replace(",", "','");
                view1.RowFilter = "Admin_UserName in('" + strUser + "')";
                dtUser = view1.ToTable();

                for (int i = 0; i < dtUser.Rows.Count; i++)
                {
                    //clientview.Text += dtUser.Rows[i]["Admin_Email"].ToString();
                    mailBSO.SendMail(dtUser.Rows[i]["Admin_Email"].ToString(), strObj, strBody);
                    //sendMailToGroup(dtUser.Rows[i]["Admin_Email"].ToString().Trim()); //Gui mai den nhom support cua san pham                
                }
            }
            /* ------------- End Gui email den nguoi co trach nhiem tra loi cau hoi --*/
        }
Exemplo n.º 13
0
        private AlbumsCate ReceiveHtml()
        {

            ConfigBSO configBSO = new ConfigBSO();
            Config config = configBSO.GetAllConfig(Language.language);
            int thumb_w = Convert.ToInt32(config.New_thumb_w);
            int thumb_h = Convert.ToInt32(config.New_thumb_h);

            //int large_w = Convert.ToInt32(config.New_large_w);
            //int large_h = Convert.ToInt32(config.New_large_h);


            string path_thumb = Request.PhysicalApplicationPath.Replace(@"\", "/") + "Upload/Albums/AlbumsCate/ImgThumb/";
            //string path_large = Request.PhysicalApplicationPath.Replace(@"\", "/") + "Upload/Albums/AlbumsCate/ImgLarge/";

            commonBSO commonBSO = new commonBSO();
            string image_thumb = commonBSO.UploadImage(file_icon, path_thumb, thumb_w, thumb_h);
            //string image_large = commonBSO.UploadImage(file_icon, path_large, large_w, large_h);


            AlbumsCate albumscate = new AlbumsCate();
            albumscate.AlbumsCateID = (hddAlbumsCateID.Value != "") ? Convert.ToInt32(hddAlbumsCateID.Value) : 0;
            albumscate.ParentCateID = (ddlAlbumsCate.SelectedValue != "") ? Convert.ToInt32(ddlAlbumsCate.SelectedValue) : 0;
            albumscate.AlbumsCateName = txtAlbumsCateName.Text;
            albumscate.AlbumsCateOrder = (hddAlbumsCateOrder.Value != "") ? Convert.ToInt32(hddAlbumsCateOrder.Value) : 0;
            albumscate.AlbumsCateTotal = (hddAlbumsCateTotal.Value != "") ? Convert.ToInt32(hddAlbumsCateTotal.Value) : 0;


            albumscate.ImageThumb = (image_thumb != "") ? image_thumb : hddImageThumb.Value;
            //albumscate.ImageLarge = (image_large != "") ? image_large : hddImageLarge.Value;
            albumscate.ImageLarge = "";

            albumscate.Description = txtSlogan.Text;

            albumscate.UserName = (hddUserName.Value != "") ? hddUserName.Value : Session["Admin_UserName"].ToString();
            albumscate.Created = (hddCreated.Value != "") ? Convert.ToDateTime(hddCreated.Value) : DateTime.Now;


            return albumscate;
        }
Exemplo n.º 14
0
 private void ViewWelcome(string lang)
 {
     ConfigBSO configBSO = new ConfigBSO();
     Config config = configBSO.GetAllConfig(lang);
     LiteralContact.Text = config.Contact;
 }
Exemplo n.º 15
0
 private void ViewSupport()
 {
     ConfigBSO configBSO = new ConfigBSO();
     Config config = configBSO.GetAllConfig(Language.language);
     ltlSupport.Text = config.Support;
 }
Exemplo n.º 16
0
 protected void ViewInfomation(string lang)
 {
     ConfigBSO configBSO = new ConfigBSO();
     Config config = configBSO.GetAllConfig(lang);
     ltrInfomation.Text = config.Infocompany;
 }
Exemplo n.º 17
0
        private Album ReceiveHtml()
        {

            ConfigBSO configBSO = new ConfigBSO();
            Config config = configBSO.GetAllConfig(Language.language);

            int thumb_w = Convert.ToInt32(config.New_thumb_w);
            int thumb_h = Convert.ToInt32(config.New_thumb_h);
            string path_thumb = Request.PhysicalApplicationPath.Replace(@"\", "/") + "/Upload/Album/AlbumThumb/";


            int large_w = Convert.ToInt32(config.New_large_w);
            int large_h = Convert.ToInt32(config.New_large_h);
            string path_large = Request.PhysicalApplicationPath.Replace(@"\", "/") + "/Upload/Album/AlbumLarge/";


            commonBSO commonBSO = new commonBSO();
            string image_thumb = commonBSO.UploadImage(file_image_large, path_thumb, thumb_w, thumb_h);
            string image_large = commonBSO.UploadImage(file_image_large, path_large, large_w, large_h);


            Album album = new Album();
            album.AlbumID = (hddAlbumID.Value != "") ? Convert.ToInt32(hddAlbumID.Value) : 0;
            album.CateNewsID = (ddlCateNews.SelectedValue != "") ? Convert.ToInt32(ddlCateNews.SelectedValue) : 0;
            album.ImageThumb = (image_thumb != "") ? image_thumb : hddImageThumb.Value;
            album.ImageLarge = (image_large != "") ? image_large : hddImageLarge.Value;
            album.IsHome = Convert.ToBoolean(rdbIsHome.SelectedValue);
            album.Order = (hddOrder.Value != "") ? Convert.ToInt32(hddOrder.Value) : 0;



            return album;
        }
Exemplo n.º 18
0
 protected void LoadInfo(string lang)
 {
     var configBso = new ConfigBSO();
     var config = configBso.GetAllConfig(lang);
     ltrFooter.Text = config.Infocompany;
 }
Exemplo n.º 19
0
        protected Pages ReceiveHtml()
        {
            ConfigBSO configBSO = new ConfigBSO();
            Config config = configBSO.GetAllConfig(Language.language);
            int thumb_w = Convert.ToInt32(config.New_thumb_w);
            int thumb_h = Convert.ToInt32(config.New_thumb_h);

            commonBSO commonBSO = new commonBSO();
            string path = Request.PhysicalApplicationPath.Replace(@"\", "/") + "/Upload/BlogPage/";
            string image = commonBSO.UploadImage(file_image_thumb, path, thumb_w, thumb_h);


            Pages pages = new Pages();
            pages.PageID = (hddPageID.Value != "") ? Convert.ToInt32(hddPageID.Value) : 0;
            pages.PageName = (ddlPage.SelectedIndex != 0) ? ddlPage.SelectedValue.ToString() : txtPageName.Text;
            pages.Icon = rdbGroup.SelectedItem.Value;
            pages.PageTitle = (txtTitle.Text != "") ? txtTitle.Text : "";
            pages.PageType = Convert.ToBoolean(rdbType1.SelectedValue);
            pages.Describe = txtRadshort.Html;
            pages.Imagethumb = (image != "") ? image : hddImage.Value;
            pages.PageContent = txtRad_full.Html;
            pages.PostDate = txtRadDate.SelectedDate.Value;
            pages.Author = txtAuthor.Text;
            pages.Status = Convert.ToBoolean(rdbActive.SelectedItem.Value);
            pages.IsView = Convert.ToBoolean(rdbIsView.SelectedItem.Value);
            pages.Language = Language.language;
            pages.IsComment = Convert.ToBoolean(rdbComment.SelectedValue);

            pages.VisitTotal = (hddVisitTotal.Value != "") ? Convert.ToInt32(hddVisitTotal.Value) : 0;
            pages.CommentTotal = (hddCommentTotal.Value != "") ? Convert.ToInt32(hddCommentTotal.Value) : 0;

            pages.CreatedUserName = (hddCreateUserName.Value != "") ? hddCreateUserName.Value : Session["Admin_UserName"].ToString();


            pages.IsApproval = Convert.ToBoolean(rdbApproval.SelectedValue);
            if (hddApprovalUserName.Value != "")
            {
                pages.ApprovalUserName = hddApprovalUserName.Value;
                pages.ApprovalDate = Convert.ToDateTime(hddApprovalDate.Value);
            }
            else
                if (Convert.ToBoolean(rdbApproval.SelectedValue))
                {
                    pages.ApprovalUserName = Session["Admin_UserName"].ToString();
                    pages.ApprovalDate = DateTime.Now;
                }
                else
                {
                    pages.ApprovalUserName = "";
                    pages.ApprovalDate = DateTime.Now;
                }

            return pages;
        }
Exemplo n.º 20
0
        protected void Send_Click(object sender, EventArgs e)
        {
            ccJoin.ValidateCaptcha(txtCapcha.Text.Trim());

            if (!ccJoin.UserValidated)
            {
                ErrorMess.Visible = true;
                txtCapcha.Focus();
                lblError.Text = "Mã bảo mật chưa chính xác";
                return;
            }
            else
            {
                NewsComment newsComment = ReceiveHtml();
                NewsCommentBSO newsCommentBSO = new NewsCommentBSO();
                newsCommentBSO.CreateNewsComment(newsComment);

                ConfigBSO configBSO = new ConfigBSO();
                Config config = configBSO.GetAllConfig(Language.language);

                string strBody = "Thông tin nhận xét đánh giá về bài viết trên trang Website " + config.WebName + " (" + config.WebDomain + ") : <br>";
                strBody += "<b>Tiêu đề: </b> " + newsComment.Title + "<br>";
                strBody += "<b>Họ tên khách hàng : </b> " + newsComment.FullName + "<br>";

                strBody += "<b>Email : </b> " + newsComment.Email + "<br>";
                strBody += "<b>Mã bài viết : </b> " + newsComment.NewsID + "<br>";
                strBody += "<b>Nội dung : </b> <br>" + newsComment.Content + "<br>";

                NewsGroupBSO newsBSO = new NewsGroupBSO();
                NewsGroup news = newsBSO.GetNewsGroupById(newsComment.NewsID);

                strBody += "<b>Tiêu đề bài viết : </b>  <a href='" + config.WebDomain + "/newsg/" + hddGroupCate.Value + "/" + newsComment.NewsID + "/" + GetString(news.Title) + "/default.aspx'>" + news.Title + "</a><br>";

                MailBSO mailBSO = new MailBSO();
                mailBSO.EmailFrom = newsComment.Email;

                mailBSO.EmailFrom = config.Email_from;

                string strObj = "Thông tin nhận xét về bài viết trên trang Web " + config.WebName + " (" + config.WebDomain + ") - Ngày " + DateTime.Now.ToString("dd:MM:yyyy");
                mailBSO.SendMail(config.Email_to, strObj, strBody);

                int Id = Convert.ToInt32(txtNewsGroupID.Value);
                Response.Redirect("~/newsg/" + hddGroupCate.Value + "/" + Id + "/2//default.aspx");
            }
        }
Exemplo n.º 21
0
 private void Viewpopup()
 {
     ConfigBSO configBSO = new ConfigBSO();
     Config config = configBSO.GetAllConfig(Language.language);
     ltlPopup.Text = config.Popup;
 }
Exemplo n.º 22
0
 protected void UpdateConfig()
 {
     Config config = ReceiveHtml();
     ConfigBSO configBSO = new ConfigBSO();
     configBSO.UpdateConfig(config);
     initControl();
 }
Exemplo n.º 23
0
        private ListQuestion ReceiveHtml_()
        {
            ConfigBSO configBSO = new ConfigBSO();
            Config config = configBSO.GetAllConfig(Language.language);
            int thumb_w = Convert.ToInt32(config.New_large_w);
            int thumb_h = Convert.ToInt32(config.New_large_h);

            commonBSO commonBSO = new commonBSO();
            string path_thumb = Request.PhysicalApplicationPath.Replace(@"\", "/") + "/Upload/Question/Images/";
            string image_thumb = commonBSO.UploadImage(image_Attach, path_thumb, thumb_w, thumb_h);

            string path = Request.PhysicalApplicationPath.Replace(@"\", "/") + "/Upload/Question/Files/";
            string file_upload = commonBSO.UploadFile(file_Attach, path, 18000000000);

            ListQuestion listQuestion = new ListQuestion();

            //Cau hoi moi
            listQuestion.CateNewsID = Convert.ToInt32(ddlCateNews.SelectedValue);
            listQuestion.Question_Title = txtTitle.Text.Trim();
            listQuestion.Question_Content = txtRadShort.Html;
            listQuestion.CreateUserName = Session["Admin_UserName"].ToString();
            listQuestion.Question_FileAttach = (file_upload != "") ? file_upload : HiddenField_FileAttach.Value;
            listQuestion.Question_Image = (image_thumb != "") ? image_thumb : HiddenField_ImageAttach.Value;
            listQuestion.CreateDate = DateTime.Now;
            listQuestion.IsApproval = false; //Chua duoc duyet
            listQuestion.ApprovalUserName = "";
            listQuestion.QuestionStatus = 0;
            listQuestion.ApprovalDate = DateTime.Now;

            if (Page.RouteData.Values["Id"] != null)
            {
                listQuestion.Question_ID = Convert.ToInt32(HiddenField_QuestionID.Value);
                listQuestion.QuestionStatus = int.Parse(HiddenField_QuestionStatus.Value);
                listQuestion.CreateDate = DateTime.Parse(HiddenField_CreateDate.Value);
                listQuestion.CreateUserName = HiddenField_CreateUserName.Value;
            }

            return listQuestion;
        }
Exemplo n.º 24
0
        private Albums ReceiveHtml()
        {

            ConfigBSO configBSO = new ConfigBSO();
            Config config = configBSO.GetAllConfig(Language.language);
            commonBSO commonBSO = new commonBSO();


            int thumb_w = Convert.ToInt32(config.New_icon_w);
            int thumb_h = Convert.ToInt32(config.New_icon_h);
            string path_thumb = Request.PhysicalApplicationPath.Replace(@"\", "/") + "/Upload/Albums/AlbumsImg/ImgThumb/";


            int large_w = Convert.ToInt32(config.New_large_w);
            int large_h = Convert.ToInt32(config.New_large_h);
            string path_large = Request.PhysicalApplicationPath.Replace(@"\", "/") + "/Upload/Albums/AlbumsImg/ImgLarge/";

            string image_thumb = commonBSO.UploadImage(file_image_thumb, path_thumb, thumb_w, thumb_h);
            string image_large = commonBSO.UploadImage(file_image_large, path_large, large_w, large_h);


            Albums album = new Albums();
            //album.AlbumID = (hddAlbumID.Value != "") ? Convert.ToInt32(hddAlbumID.Value) : 0;
            //album.CateNewsID = (ddlCateNews.SelectedValue != "") ? Convert.ToInt32(ddlCateNews.SelectedValue) : 0;
            //album.ImageThumb = (image_thumb != "") ? image_thumb : hddImageThumb.Value;
            //album.ImageLarge = (image_large != "") ? image_large : hddImageLarge.Value;
            //album.IsHome = Convert.ToBoolean(rdbIsHome.SelectedValue);
            //album.Order = (hddOrder.Value != "") ? Convert.ToInt32(hddOrder.Value) : 0;

            album.AlbumsID = (hddAlbumID.Value != "") ? Convert.ToInt32(hddAlbumID.Value) : 0;
            album.AlbumsCateID = Convert.ToInt32(ddlAlbumsCate.SelectedValue);
            album.Title = txtTitle.Text;
            album.Description = txtRadShort.Html;
            album.ImageThumb = (image_thumb != "") ? image_thumb : hddImageThumb.Value;
            album.ImageLarge = (image_large != "") ? image_large : hddImageLarge.Value;
            album.Author = txtAuthor.Text;
            album.PostDate = txtRadDate.SelectedDate.Value;

            album.Status = Convert.ToBoolean(rdbStatus.SelectedItem.Value);
            album.Ishot = Convert.ToBoolean(rdbIshot.SelectedValue);
            album.Ishome = Convert.ToBoolean(rdbIshome.SelectedValue);

            album.Isview = (hddIsView.Value != "") ? Convert.ToInt32(hddIsView.Value) : 0;
            album.CommentTotal = (hddCommentTotal.Value != "") ? Convert.ToInt32(hddCommentTotal.Value) : 0;

            album.CreatedUserName = (hddCreateUserName.Value != "") ? hddCreateUserName.Value : Session["Admin_UserName"].ToString();
            album.ApprovalUserName = (hddApprovalUserName.Value != "") ? hddApprovalUserName.Value : Session["Admin_UserName"].ToString();

            album.IsComment = true;
            album.IsApproval = true;
            album.ApprovalDate = (hddApprovalDate.Value != "") ? Convert.ToDateTime(hddApprovalDate.Value) : DateTime.Now;



            return album;
        }
Exemplo n.º 25
0
        protected void Page_Load(object sender, EventArgs e)
        {
            #region Config
            if (Session["Lang"] == null)
                Session["Lang"] = Language.language;
            Language.lang = Session["Lang"].ToString();
            ConfigBSO configBSO = new ConfigBSO();
            Config config = configBSO.GetAllConfig(Language.lang);
            Page.Title = config.Titleweb;
            if (Session["HitCounter"] == null)
            {
                long SiteHitCounter = 100;
                WebHitCounter webhitcounter = new WebHitCounter();
                SiteHitCounter = webhitcounter.GetHitCounter();

                webhitcounter.UpdateHitCounter(SiteHitCounter + 1);
                Session["HitCounter"] = Convert.ToString(SiteHitCounter + 1);
            }
            #endregion

            switch (Go.ToString())
            {
                case "listalbums":
                    phLeft.Controls.Add(LoadControl("Client/Modules/Albums/AlbumsList.ascx"));
                    break;
                case "listvideo":
                    phLeft.Controls.Add(LoadControl("Client/Modules/Video/VideoList.ascx"));
                    break;
                case "faq":
                    phLeft.Controls.Add(LoadControl("Client/Modules/Faq/Faq.ascx"));
                    break;
                case "questions":
                    phLeft.Controls.Add(LoadControl("Client/Modules/Faq/Question.ascx"));
                    break;
                case "medidangky":
                    phLeft.Controls.Add(LoadControl("Client/Modules/DangKy_TraCuu/MeDi_PhieuXetNghiem.ascx"));
                    break;
                case "faqdetail":
                    phLeft.Controls.Add(LoadControl("Client/Modules/Faq/FaqDetail.ascx"));
                    break;
                case "contact":
                    phLeft.Controls.Add(LoadControl("Client/Modules/Contact/Contact.ascx"));
                    break;
                case "contactsucceed":
                    phLeft.Controls.Add(LoadControl("Client/Modules/Contact/ContactSucceed.ascx"));
                    break;
                case "fullnewsg":
                    switch (g.ToString())
                    {
                        case "4":
                            phLeft.Controls.Add(LoadControl("Client/Modules/Official/OfficialListGroup.ascx"));
                            break;
                        default:
                            phLeft.Controls.Add(LoadControl("Client/Modules/News/NewsgListGroup.ascx"));
                            break;
                    }
                    break;
                case  "mediremoteheath":
                    phLeft.Controls.Add(LoadControl("Client/Modules/Remoteheath/MeDi_remoteheath.ascx"));
                    break;
                case "catenewsg":
                    switch (g.ToString())
                    {
                        case "4":
                            phLeft.Controls.Add(LoadControl("Client/Modules/Official/OfficialList.ascx"));
                            break;
                        case"2":
                            phLeft.Controls.Add(LoadControl("Client/Modules/DangKy_TraCuu/MeDi_TraCuu.ascx"));
                            break;

                        default:
                            phLeft.Controls.Add(LoadControl("Client/Modules/News/NewsgList.ascx"));
                            break;
                    }
                    break;
                case "newsg":
                    switch (g.ToString())
                    {
                        case "4":
                            phLeft.Controls.Add(LoadControl("Client/Modules/Official/OfficialDetail.ascx"));
                            break;
                        default:
                            phLeft.Controls.Add(LoadControl("Client/Modules/News/NewsgDetail.ascx"));
                            break;
                    }
                    break;
                default:
                    phLeft.Controls.Add(LoadControl("Client/MainHomePage.ascx"));
                    phRight.Visible = false;
                    break;
            }

            if (!String.IsNullOrEmpty(Go))
                phRight.Controls.Add(LoadControl("Client/PanelRightModules.ascx"));
        }
Exemplo n.º 26
0
        private News ReceiveHtml()
        {
            ConfigBSO configBSO = new ConfigBSO();
            Config config = configBSO.GetAllConfig(Language.language);
            int thumb_w = Convert.ToInt32(config.New_thumb_w);
            int thumb_h = Convert.ToInt32(config.New_thumb_h);

            commonBSO commonBSO = new commonBSO();
            string path_thumb = Request.PhysicalApplicationPath.Replace(@"\", "/") + "/Upload/News/NewsThumb/";
            string image_thumb = commonBSO.UploadImage(file_image_thumb, path_thumb, thumb_w, thumb_h);

            int large_w = Convert.ToInt32(config.New_large_w);
            int large_h = Convert.ToInt32(config.New_large_h);
            string path_large = Request.PhysicalApplicationPath.Replace(@"\", "/") + "/Upload/News/NewsLarge/";
            string image_large = commonBSO.UploadImage(file_image_large, path_large, large_w, large_h);

            News news = new News();
            news.NewsID = (hddNewsID.Value != "") ? Convert.ToInt32(hddNewsID.Value) : 0;
            news.CateNewsID = Convert.ToInt32(ddlCateNews.SelectedValue);
            news.ParentNewsID = (hddParentNewsID.Value != "") ? Convert.ToInt32(hddParentNewsID.Value) : 0;
            news.Title = txtTitle.Text;
            news.ShortDescribe = txtRadShort.Html;
            news.FullDescribe = txtRadFull.Html;
            news.ImageThumb = (image_thumb != "") ? image_thumb : hddImageThumb.Value;
            news.ImageLarge = (image_large != "") ? image_large : hddImageLarge.Value;
            news.Author = txtAuthor.Text;
            news.PostDate = txtRadDate.SelectedDate.Value;
            news.RelationTotal = (hddRelationTotal.Value != "") ? Convert.ToInt32(hddRelationTotal.Value) : 0;
            news.Status = Convert.ToBoolean(rdbStatus.SelectedItem.Value);
            news.Language = Language.language;
            news.Ishot = Convert.ToBoolean(rdbIshot.SelectedValue);
            news.Ishome = Convert.ToBoolean(rdbIshome.SelectedValue);
            news.IsComment = Convert.ToBoolean(rdbComment.SelectedValue);

            news.Isview = (hddIsView.Value != "") ? Convert.ToInt32(hddIsView.Value) : 0;
            news.CommentTotal = (hddCommentTotal.Value != "") ? Convert.ToInt32(hddCommentTotal.Value) : 0;

            news.CreatedUserName = (hddCreateUserName.Value != "") ? hddCreateUserName.Value : Session["Admin_UserName"].ToString();

            news.GroupCate = 1;

            news.IsApproval = Convert.ToBoolean(rdbApproval.SelectedValue);
            if (hddApprovalUserName.Value != "")
            {
                news.ApprovalUserName = hddApprovalUserName.Value;
                news.ApprovalDate = Convert.ToDateTime(hddApprovalDate.Value);
            }
            else
                if (Convert.ToBoolean(rdbApproval.SelectedValue))
                {
                    news.ApprovalUserName = Session["Admin_UserName"].ToString();
                    news.ApprovalDate = DateTime.Now;
                }
                else
                {
                    news.ApprovalUserName = "";
                    news.ApprovalDate = DateTime.Now;
                }


            return news;

        }
Exemplo n.º 27
0
        protected void Send_Click(object sender, EventArgs e)
        {

            NewsComment newsComment = ReceiveHtml();
            NewsCommentBSO newsCommentBSO = new NewsCommentBSO();
            newsCommentBSO.CreateNewsComment(newsComment);

            ConfigBSO configBSO = new ConfigBSO();
            Config config = configBSO.GetAllConfig(Language.language);

            string strBody = "Thông tin nhận xét đánh giá về bài viết trên trang Website " + config.WebName + " (" + config.WebDomain + ") : <br>";
            strBody += "<b>Tiêu đề: </b> " + newsComment.Title + "<br>";
            strBody += "<b>Họ tên khách hàng : </b> " + newsComment.FullName + "<br>";

            strBody += "<b>Email : </b> " + newsComment.Email + "<br>";
            strBody += "<b>Mã bài viết : </b> " + newsComment.NewsID + "<br>";
            strBody += "<b>Nội dung : </b> <br>" + newsComment.Content + "<br>";

            NewsGroupBSO newsBSO = new NewsGroupBSO();
            NewsGroup news = newsBSO.GetNewsGroupById(newsComment.NewsID);

            strBody += "<b>Tiêu đề bài viết : </b>  <a href='" + config.WebDomain + "/News/" + hddGroupCate.Value + "/" + newsComment.NewsID + "/" + GetString(news.Title) + ".aspx'>" + news.Title + "</a><br>";

            MailBSO mailBSO = new MailBSO();
            mailBSO.EmailFrom = newsComment.Email;




            mailBSO.EmailFrom = config.Email_from;

            string strObj = "Thông tin nhận xét về bài viết trên trang Web " + config.WebName + " (" + config.WebDomain + ") - Ngày " + DateTime.Now.ToString("dd:MM:yyyy");
            mailBSO.SendMail(config.Email_to, strObj, strBody);



            int Id = Convert.ToInt32(txtNewsGroupID.Value);
            Response.Redirect("~/News/" + hddGroupCate.Value + "/" + Id + "/2/Default.aspx");


        }
Exemplo n.º 28
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["Lang"] == null)
                Session["Lang"] = "vi-VN";
            Language.lang = Session["Lang"].ToString();
            ConfigBSO configBSO = new ConfigBSO();
            Config config = configBSO.GetAllConfig(Language.lang);
            Page.Title = config.Titleweb;
            if (Session["HitCounter"] == null)
            {
                long SiteHitCounter = 100;
                WebHitCounter webhitcounter = new WebHitCounter();
                SiteHitCounter = webhitcounter.GetHitCounter();

                webhitcounter.UpdateHitCounter(SiteHitCounter + 1);
                Session["HitCounter"] = Convert.ToString(SiteHitCounter + 1);
            }

            switch (Go.ToString())
            {
                case "albums":
                    PlaceHolder.Controls.Add(LoadControl("Client/Modules/Albums/AlbumsList.ascx"));
                    break;
                case "video":
                    PlaceHolder.Controls.Add(LoadControl("Client/Modules/Video/VideoList.ascx"));
                    break;
                case "question":
                    PlaceHolder.Controls.Add(LoadControl("Client/Modules/Faq/Question.ascx"));
                    break;
                case "faq":
                    PlaceHolder.Controls.Add(LoadControl("Client/Modules/Faq/Faq.ascx"));
                    break;
                case "faqdetail":
                    PlaceHolder.Controls.Add(LoadControl("Client/Modules/Faq/FaqDetail.ascx"));
                    break;
                case "sendemailnewsg":
                    PlaceHolder.Controls.Add(LoadControl("Client/Modules/News/SendEmailNewsg.ascx"));
                    break;
                case "search":
                    PlaceHolder.Controls.Add(LoadControl("Client/Modules/Search/SearchResult.ascx"));
                    break;
                case "singlepage":
                    PlaceHolder.Controls.Add(LoadControl("Client/Modules/News/SinglePageDetail.ascx"));
                    break;
                case "contact":
                    PlaceHolder.Controls.Add(LoadControl("Client/Modules/Contact/Contact.ascx"));
                    break;
                case "succeed":
                    PlaceHolder.Controls.Add(LoadControl("Client/Modules/Contact/ContactSucceed.ascx"));
                    break;
                case "sitemap":
                    PlaceHolder.Controls.Add(LoadControl("Client/Modules/SiteMap/Sitemap.ascx"));
                    break;
                case "hrms":
                    PlaceHolder.Controls.Add(LoadControl("Client/Modules/HRMS/HRMSView.ascx"));
                    break;
                case "phonebook":
                    PlaceHolder.Controls.Add(LoadControl("Client/Modules/PhoneBook/ListPhoneBook.ascx"));
                    break;

                case "fullnews":
                    switch (g.ToString())
                    {
                        case "4":
                            PlaceHolder.Controls.Add(LoadControl("Client/Modules/Official/OfficialListGroup.ascx"));
                            break;
                        case "8":
                            PlaceHolder.Controls.Add(LoadControl("Client/Modules/News/NewsList_FromICON.ascx"));
                            break;
                        case "0":
                            PlaceHolder.Controls.Add(LoadControl("Client/Modules/News/NewsList_FromICON.ascx"));
                            break;
                        //case "2":
                        //    PlaceHolder.Controls.Add(LoadControl("Client/Modules/Company/CompanyList.ascx"));
                        //    break;
                        default:
                            PlaceHolder.Controls.Add(LoadControl("Client/Modules/News/NewsgListGroup.ascx"));
                            break;
                    }
                    break;
                case "category":
                    switch (g.ToString())
                    {
                        case "4":
                            PlaceHolder.Controls.Add(LoadControl("Client/Modules/Official/OfficialList.ascx"));
                            break;
                        //case "2":
                        //    PlaceHolder.Controls.Add(LoadControl("Client/Modules/Company/CompanyList.ascx"));
                        //    break;
                        default:
                            PlaceHolder.Controls.Add(LoadControl("Client/Modules/News/NewsgList.ascx"));
                            break;
                    }
                    break;
                case "news":
                    switch (g.ToString())
                    {
                        case "4":
                            PlaceHolder.Controls.Add(LoadControl("Client/Modules/Official/OfficialDetail.ascx"));
                            break;
                        default:
                            PlaceHolder.Controls.Add(LoadControl("Client/Modules/News/NewsgDetail.ascx"));
                            break;
                    }
                    break;

                case "fullpagesg":
                    PlaceHolder.Controls.Add(LoadControl("Client/Modules/Company/CompanyListGroup.ascx"));
                    break;

                case "catepagesg":
                    PlaceHolder.Controls.Add(LoadControl("Client/Modules/Company/CompanyListGroup.ascx"));
                    break;

                case "pagesg":
                    PlaceHolder.Controls.Add(LoadControl("Client/Modules/Company/CompanyDetailGroup.ascx"));
                    break;

                default:
                    PlaceHolder.Controls.Add(LoadControl("Client/MainHomePage.ascx"));
                    break;
            }
        }
Exemplo n.º 29
0
 private void Viewpopup()
 {
     ConfigBSO configBSO = new ConfigBSO();
     Config config = configBSO.GetAllConfig(Language.language);
     isPopup = Convert.ToInt32(config.IsPopup);
 }
Exemplo n.º 30
0
        protected void initControl()
        {

            ConfigBSO configBSO = new ConfigBSO();
            int Ngon_Ngu = Convert.ToInt32(ViewState["CauHinh_Viet"]);
            if (Ngon_Ngu == 1)
            {
                Config config = configBSO.GetAllConfig(Language.language);
                txttitleweb.Text = config.Titleweb;
                txtgoogle.Text = config.Google;
                txtIntro_desc.Html = config.Intro_desc;
                txtIntroduction.Html = config.Introduction;
                txtInfocompany.Html = config.Infocompany;
                new_icon_w.Text = config.New_icon_w;
                new_icon_h.Text = config.New_icon_h;
                new_thumb_w.Text = config.New_thumb_w;
                new_thumb_h.Text = config.New_thumb_h;
                new_large_w.Text = config.New_large_w;
                new_large_h.Text = config.New_large_h;

                product_icon_w.Text = config.Product_icon_w;
                product_icon_h.Text = config.Product_icon_h;
                product_thumb_w.Text = config.Product_thumb_w;
                product_thumb_h.Text = config.Product_thumb_h;
                product_large_w.Text = config.Product_large_w;
                product_large_h.Text = config.Product_large_h;

                txtNoproduct.Text = config.ProductNo;
                txtNoPage.Text = config.ProductNoPage;
                txtCurrency.Text = config.Currency;

                rdblistClose.SelectedItem.Value = config.Status.ToString();
                txtCloseComment.Text = config.Closecomment;

                txtRadSupport.Html = config.Support;
                txtRadContact.Html = config.Contact;

                txtEmailFrom.Text = config.Email_from;
                txtEmailTo.Text = config.Email_to;

                RadCounter.Html = config.Counter;
                RadInfo1.Html = config.Info1;
                RadInfo2.Html = config.Info2;

                txtWebName.Text = config.WebName;
                txtWebServerIP.Text = config.WebServerIP;
                txtWebDomain.Text = config.WebDomain;
                txtWebMailServer.Text = config.WebMailServer;

                rdbPopup.SelectedValue = Convert.ToString(config.IsPopup);
                radPopup.Html = config.Popup;
                radPopup2.Html = config.Popup2;
            }
            else
            {
                Config config = configBSO.GetAllConfig(Language.language_Eng);
                txttitleweb.Text = config.Titleweb;
                txtgoogle.Text = config.Google;
                txtIntro_desc.Html = config.Intro_desc;
                txtIntroduction.Html = config.Introduction;
                txtInfocompany.Html = config.Infocompany;
                new_icon_w.Text = config.New_icon_w;
                new_icon_h.Text = config.New_icon_h;
                new_thumb_w.Text = config.New_thumb_w;
                new_thumb_h.Text = config.New_thumb_h;
                new_large_w.Text = config.New_large_w;
                new_large_h.Text = config.New_large_h;

                product_icon_w.Text = config.Product_icon_w;
                product_icon_h.Text = config.Product_icon_h;
                product_thumb_w.Text = config.Product_thumb_w;
                product_thumb_h.Text = config.Product_thumb_h;
                product_large_w.Text = config.Product_large_w;
                product_large_h.Text = config.Product_large_h;

                txtNoproduct.Text = config.ProductNo;
                txtNoPage.Text = config.ProductNoPage;
                txtCurrency.Text = config.Currency;

                rdblistClose.SelectedItem.Value = config.Status.ToString();
                txtCloseComment.Text = config.Closecomment;

                txtRadSupport.Html = config.Support;
                txtRadContact.Html = config.Contact;

                txtEmailFrom.Text = config.Email_from;
                txtEmailTo.Text = config.Email_to;

                RadCounter.Html = config.Counter;
                RadInfo1.Html = config.Info1;
                RadInfo2.Html = config.Info2;

                txtWebName.Text = config.WebName;
                txtWebServerIP.Text = config.WebServerIP;
                txtWebDomain.Text = config.WebDomain;
                txtWebMailServer.Text = config.WebMailServer;

                rdbPopup.SelectedValue = Convert.ToString(config.IsPopup);
                radPopup.Html = config.Popup;
                radPopup2.Html = config.Popup2;
            }




        }