Пример #1
0
        public ActionResult HomeTextileAndDecoration(HttpPostedFileBase Image, HttpPostedFileBase Image1, HttpPostedFileBase Image2, HttpPostedFileBase Image3, HttpPostedFileBase Image4, String condition, String item_type, String title, String description, String price2, String negotiable)
        {
            TheValues tv = new TheValues();

            if (Session["Email"].ToString().Equals("Null"))
            {
                return(Redirect("~/Login/Login"));
            }

            String x = (Convert.ToInt32(space(tv.getTheLastPID())) + 1).ToString();

            Images(Image, Image1, Image2, Image3, Image4, x);



            Models.MobilePhone mb = new Models.MobilePhone();



            mb.Price = price2 + "" + negotiable;

            String a0 = "কন্ডিশন : " + condition + " <br/> ";
            String a1 = "পণ্যের ধরণ : " + item_type + " <br/> ";
            String a2 = "বিজ্ঞাপন শিরোনাম : " + title + " <br/> ";
            String a3 = "বিবরণ : " + description + " <br/> ";

            mb.FixedDetails = a0 + a1;
            mb.UserDetails  = a2 + a3;



            Models.Database db = new Models.Database();

            db.DatabaseCon("EAlo");
            db.setData("Insert into ApproveTable(DTB,Cat,City,Region,FixedDetails,Price,UID,UserDetails,PID,img1,img2,img3,img4,img5,Phone) values(" + "'" + Session["DTB"].ToString() + "'," + "'" + Session["Cat"].ToString() + "'," + "'" + Session["City"].ToString() + "'," + "'" + Session["Region"].ToString() + "'," + "'" + AscciStar(mb.FixedDetails) + "'," + "'" + AscciStar(mb.Price) + "'," + "'" + Session["Email"].ToString() + "'," + "'" + AscciStar(mb.UserDetails) + "'," + "'" + x + "'," + "'" + this.img1 + "'," + "'" + this.img2 + "'," + "'" + this.img3 + "'," + "'" + this.img4 + "'," + "'" + this.img5 + "'," + "'" + Session["Phone"].ToString() + "'" + ")");
            db.DatabaseCon("EAlo");
            db.setData("Update ApproveTable set PID= '" + x + "' where UID='UID'");

            return(Redirect("~/Confirm/Confirm"));
            //return Redirect("~/" + Session["DTB"] + "/" + Session["Cat"] + "?Area=" + Session["City"] + "***" + Session["Region"] + "***" + Session["DTB"] + "***" + Session["Cat"]);
        }
Пример #2
0
        public ActionResult PlotAndLand(HttpPostedFileBase Image, HttpPostedFileBase Image1, HttpPostedFileBase Image2, HttpPostedFileBase Image3, HttpPostedFileBase Image4, String item_type, String item_type1, String item_type2, String item_type3, String size, String size1, String address, String title, String description, String price2, String MaxMinprice, String negotiable)
        {
            TheValues tv = new TheValues();

            if (Session["Email"].ToString().Equals("Null"))
            {
                return(Redirect("~/Login/Login"));
            }

            String x = (Convert.ToInt32(space(tv.getTheLastPID())) + 1).ToString();

            Images(Image, Image1, Image2, Image3, Image4, x);



            Models.MobilePhone mb = new Models.MobilePhone();


            /* */

            mb.FixedDetails = "জমির ধরণ: " + item_type + "" + item_type1 + "" + item_type2 + "" + item_type3 + " <br/> জমির আয়তন: " + size + " <br/> " + "আয়তন টাইপ: " + size1 + " <br/> " + "ঠিকানা: " + address + " <br/> ";

            mb.Price = price2 + "" + "" + MaxMinprice + "" + negotiable;

            mb.UserDetails = "বিজ্ঞাপন শিরোনাম: " + title + " <br/> " + "বিবরণ: " + description;

            /* */


            Models.Database db = new Models.Database();

            db.DatabaseCon("EAlo");
            db.setData("Insert into ApproveTable(DTB,Cat,City,Region,FixedDetails,Price,UID,UserDetails,PID,img1,img2,img3,img4,img5,Phone) values(" + "'" + Session["DTB"].ToString() + "'," + "'" + Session["Cat"].ToString() + "'," + "'" + Session["City"].ToString() + "'," + "'" + Session["Region"].ToString() + "'," + "'" + AscciStar(mb.FixedDetails) + "'," + "'" + AscciStar(mb.Price) + "'," + "'" + Session["Email"].ToString() + "'," + "'" + AscciStar(mb.UserDetails) + "'," + "'" + x + "'," + "'" + this.img1 + "'," + "'" + this.img2 + "'," + "'" + this.img3 + "'," + "'" + this.img4 + "'," + "'" + this.img5 + "'," + "'" + Session["Phone"].ToString() + "'" + ")");
            db.DatabaseCon("EAlo");
            db.setData("Update ApproveTable set PID= '" + x + "' where UID='UID'");

            return(Redirect("~/Confirm/Confirm"));
            // return Redirect("~/" + Session["DTB"] + "/" + Session["Cat"] + "?Area=" + Session["City"] + "***" + Session["Region"] + "***" + Session["DTB"] + "***" + Session["Cat"]);
        }
Пример #3
0
        public ActionResult MobilePhone(HttpPostedFileBase Image, HttpPostedFileBase Image1, HttpPostedFileBase Image2, HttpPostedFileBase Image3, HttpPostedFileBase Image4, String used, String brand, String model, String songskoron, String fields1, String fields2, String fields3, String fields4, String fields5, String fields6, String fields7, String fields8, String fields9, String fields10, String fields11, String fields12, String fields13, String description, String geniune, String price, String negotiable)
        {
            TheValues tv = new TheValues();

            if (Session["Email"].ToString().Equals("Null"))
            {
                return(Redirect("~/Login/Login"));
            }

            String x = (Convert.ToInt32(space(tv.getTheLastPID())) + 1).ToString();

            Images(Image, Image1, Image2, Image3, Image4, x);



            Models.MobilePhone mb = new Models.MobilePhone();


            /* */

            mb.FixedDetails = "কন্ডিশন: " + used + " <br/> " + "ব্র্যান্ড: " + brand + " <br/> " + "মডেল: " + model + " <br/> " + "ফিচার: " + fields1 + "" + fields2 + "" + fields3 + "" + fields4 + "" + fields5 + "" + fields6 + "" + fields7 + "" + fields8 + "" + fields9 + "" + fields10 + "" + fields11 + "" + fields12 + "" + fields13 + " <br/> " + "সংস্করণ: " + songskoron + " <br/> " + "জেনুইন: " + geniune + " <br/> ";

            mb.Price = price + "" + negotiable;

            mb.UserDetails = description;

            /* */


            Models.Database db = new Models.Database();

            db.DatabaseCon("EAlo");
            db.setData("Insert into ApproveTable(DTB,Cat,City,Region,FixedDetails,Price,UID,UserDetails,PID,img1,img2,img3,img4,img5,Phone) values(" + "'" + Session["DTB"].ToString() + "'," + "'" + Session["Cat"].ToString() + "'," + "'" + Session["City"].ToString() + "'," + "'" + Session["Region"].ToString() + "'," + "'" + AscciStar(mb.FixedDetails) + "'," + "'" + AscciStar(mb.Price) + "'," + "'" + Session["Email"].ToString() + "'," + "'" + AscciStar(mb.UserDetails) + "'," + "'" + x + "'," + "'" + this.img1 + "'," + "'" + this.img2 + "'," + "'" + this.img3 + "'," + "'" + this.img4 + "'," + "'" + this.img5 + "'," + "'" + Session["Phone"].ToString() + "'" + ")");
            db.DatabaseCon("EAlo");
            db.setData("Update ApproveTable set PID= '" + x + "' where UID='UID'");

            return(Redirect("~/Confirm/Confirm"));
            //  return Redirect("~/Mobile/MobilePhone?Area=" + Session["City"] + "***" + Session["Region"] + "***" + Session["DTB"] + "***" + Session["Cat"]);
        }
Пример #4
0
        public ActionResult Car(HttpPostedFileBase Image, HttpPostedFileBase Image1, HttpPostedFileBase Image2, HttpPostedFileBase Image3, HttpPostedFileBase Image4, String brand, String model, String edition, String model_year, String registration_year, String condition, String transmission, String body, String fuels, String fuels1, String fuels2, String fuels3, String fuels4, String engine_capacity, String mileage, String description, String price2, String negotiable)
        {
            TheValues tv = new TheValues();

            if (Session["Email"].ToString().Equals("Null"))
            {
                return(Redirect("~/Login/Login"));
            }

            String x = (Convert.ToInt32(space(tv.getTheLastPID())) + 1).ToString();

            Images(Image, Image1, Image2, Image3, Image4, x);



            Models.MobilePhone mb = new Models.MobilePhone();


            /* */

            mb.FixedDetails = "ব্র্যান্ড: " + brand + " <br/> " + " মডেল: " + model + " <br/> " + "সংস্করণ: " + edition + " <br/> " + "মডেল ইয়ার: " + model_year + " <br/> " + "রেজিস্ট্রেশন সাল: " + registration_year + " <br/> " + "কন্ডিশন: " + condition + " <br/> " + "ট্রান্সমিশন: " + transmission + " <br/> " + " বডি টাইপ: " + body + " <br/> " + " ফুয়েল টাইপ: " + fuels + "," + fuels1 + "," + fuels2 + "," + fuels3 + "," + fuels4 + "," + " <br/> " + "ইঞ্জিন ক্ষমতা: " + engine_capacity + " <br/> " + "কিলোমিটার চলেছে: " + mileage + " <br/> ";

            mb.Price = price2 + "" + negotiable;

            mb.UserDetails = description;

            /* */


            Models.Database db = new Models.Database();

            db.DatabaseCon("EAlo");
            db.setData("Insert into ApproveTable(DTB,Cat,City,Region,FixedDetails,Price,UID,UserDetails,PID,img1,img2,img3,img4,img5,Phone) values(" + "'" + Session["DTB"].ToString() + "'," + "'" + Session["Cat"].ToString() + "'," + "'" + Session["City"].ToString() + "'," + "'" + Session["Region"].ToString() + "'," + "'" + AscciStar(mb.FixedDetails) + "'," + "'" + AscciStar(mb.Price) + "'," + "'" + Session["Email"].ToString() + "'," + "'" + AscciStar(mb.UserDetails) + "'," + "'" + x + "'," + "'" + this.img1 + "'," + "'" + this.img2 + "'," + "'" + this.img3 + "'," + "'" + this.img4 + "'," + "'" + this.img5 + "'," + "'" + Session["Phone"].ToString() + "'" + ")");
            db.DatabaseCon("EAlo");
            db.setData("Update ApproveTable set PID= '" + x + "' where UID='UID'");

            return(Redirect("~/Confirm/Confirm"));
            // return Redirect("~/"+Session["DTB"]+"/"+Session["Cat"]+"?Area=" + Session["City"] + "***" + Session["Region"] + "***" + Session["DTB"] + "***" + Session["Cat"]);
        }
Пример #5
0
        // GET: Registration
        public ActionResult Registration(String name, String email, String phone, String password, String password_confirm)
        {
            string sua = Request.UserAgent.Trim().ToLower();

            var request = HttpContext.Request;



            if (request.Browser.IsMobileDevice)
            {
                sua += "*Mobile";
            }
            else
            {
                sua += "*Laptop/Desktop";
                //laptop or desktop
            }

            if (sua.Contains("iphone") || sua.Contains("ipad") || sua.Contains("android"))
            {
                Session["D"] = "Mobile";
            }
            else
            {
                String[] x = sua.Split('*');
                if (x[1].Equals("Mobile"))
                {
                    Session["D"] = "Mobile";
                }
                else
                {
                    Session["D"] = "Desktop";
                }
            }



            Models.Registration rg = new Models.Registration();
            try
            {
                rg.name             = name;
                rg.password         = password;
                rg.email            = email;
                rg.password_confrim = password_confirm;
                if (!(rg.password.Equals(rg.password_confrim)))
                {
                    rg.msg = "Password Doesnt Match";
                }
                else
                {
                    Models.Database db = new Models.Database();
                    db.DatabaseCon("EAlo");
                    db.setData("Insert into users(Name,Email,Password,Phone) values(" + "'" + rg.name + "'," + "'" + rg.email + "'," + "'" + rg.password + "'," + "'" + phone + "'" + ")");

                    ///Database
                }
                return(View(rg));
            }
            catch (Exception e)
            {
                return(View(rg));
            }
        }