diff --git a/369.png b/369.png new file mode 100644 index 0000000..bf3b126 Binary files /dev/null and b/369.png differ diff --git a/404.aspx b/404.aspx new file mode 100644 index 0000000..0f33ab4 --- /dev/null +++ b/404.aspx @@ -0,0 +1,16 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="404.aspx.cs" Inherits="_404" %> + + + + + + + + +
+
+

Error

+
+
+ + diff --git a/404.aspx.cs b/404.aspx.cs new file mode 100644 index 0000000..5128d36 --- /dev/null +++ b/404.aspx.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +public partial class _404 : System.Web.UI.Page +{ + protected void Page_Load(object sender, EventArgs e) + { + + } +} \ No newline at end of file diff --git a/AboutUs.aspx b/AboutUs.aspx new file mode 100644 index 0000000..40150ce --- /dev/null +++ b/AboutUs.aspx @@ -0,0 +1,127 @@ +<%@ Page Title="About us - mfpower.in" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="AboutUs.aspx.cs" Inherits="AboutUs" %> + + + + +
+
+
+

+About Us +

+ + +
+
+
+
+
+
+
+
+
+ mfpower.in +
+ mfpower.in +
+
+ +

25 Years of Experience

+ + +
+
+ +
+
+ About MFPower +

Better Eat, Better Life

+

If You Get Better Nutrition, You Can Enjoy a Healthy Age

+

D'ultimate Life Sciences is a renowned & prestigious company engaged in the manufacturing of Ayurvedic & Herbal products from last 17 years (since 2005) & has formulated more than 300 products . The registered office & Plant of the company is in Bhilwara (Rajasthan) India.

+

From 2015 company is manufacturing products on the basis of latest technology of Ayurvedic Science that is 'PHYTOMOLECULES & NANO TECHNOLOGY. In this technique our Scientists are extracting only Medicated Molecules from the various Herbs and Plants of nature.

+

D'ultimate Life Sciences products are approved by various Government Authority's of India. Company having various certificates like GMP, FSSAI, AUSH MANTRALAYA, FDA, ISO 22000:2005 & products are 100% Natural Herbal products.

+

We Can Help You

+

Call Now : +91- 86903-05654

+ + + +
+
+
+
+ +
+ mfpower.in +
+
+ + + +
+
+
+
+ +
+
+
+
+ + + +
+ diff --git a/AboutUs.aspx.cs b/AboutUs.aspx.cs new file mode 100644 index 0000000..93756b5 --- /dev/null +++ b/AboutUs.aspx.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +public partial class AboutUs : System.Web.UI.Page +{ + protected void Page_Load(object sender, EventArgs e) + { + + } +} \ No newline at end of file diff --git a/AccountDetails.aspx b/AccountDetails.aspx new file mode 100644 index 0000000..3183041 --- /dev/null +++ b/AccountDetails.aspx @@ -0,0 +1,158 @@ +<%@ Page Title="My Account - mfpower.in" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="AccountDetails.aspx.cs" Inherits="AccountDetails" %> + + + + + +

+
+
+
+

+Profile +

+ + +
+
+
+ +
+
+ + +
+
+
+ +
+
+
+ + +
+
+ + + <%--
+ +
--%> + + +
+
+ + + +
+
+
+ +
+
+
diff --git a/AccountDetails.aspx.cs b/AccountDetails.aspx.cs new file mode 100644 index 0000000..12fe4c4 --- /dev/null +++ b/AccountDetails.aspx.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +public partial class AccountDetails : System.Web.UI.Page +{ + ClsConnection Cnn = new ClsConnection(); + public static string refercode = ""; + protected void Page_Load(object sender, EventArgs e) + { + if (Session["UserId"] == null) + { + Response.Redirect("login.aspx"); + } + + } + protected void Button2_Click(object sender, EventArgs e) + { + + } + protected void btnregister_Click(object sender, EventArgs e) + { + try + { + Cnn.Open(); + foreach (ListViewItem myListViewItem in ListView1.Items) + { + // string id = ((Label)myListViewItem.FindControl("lblid")).Text; + TextBox TxtName = ((TextBox)myListViewItem.FindControl("TxtName")); + TextBox Txtaddress = ((TextBox)myListViewItem.FindControl("Txtaddress")); + TextBox TxtMobile = ((TextBox)myListViewItem.FindControl("TxtMobile")); + TextBox Txtemail = ((TextBox)myListViewItem.FindControl("TxtEmail")); + TextBox Txtpincode = ((TextBox)myListViewItem.FindControl("txtpincode")); + Label id = (Label)myListViewItem.FindControl("LblErr") as Label; + + Cnn.Open(); + Cnn.ExecuteNonQuery("update register set name='" + TxtName.Text.Trim() + "',Address='" + Txtaddress.Text.Trim() + "',MobileNumber='" + TxtMobile.Text.Trim() + "',EmailId='" + Txtemail.Text.Trim() + "',ZipCode='" + Txtpincode.Text + "' where UserId='" + Session["UserId"] + "'"); + Cnn.Close(); + id.Text = "changed successfully"; + } + + Page.ClientScript.RegisterStartupScript(this.GetType(), "alert", "window.location.href = '#data-step3'", true); + Cnn.Close(); + } + catch (Exception ex) + { + throw ex; + } + + } +} \ No newline at end of file diff --git a/AffiliateProgram.aspx b/AffiliateProgram.aspx new file mode 100644 index 0000000..b927263 --- /dev/null +++ b/AffiliateProgram.aspx @@ -0,0 +1,143 @@ +<%@ Page Title="369 Affiliate Program - mfpower.in" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="AffiliateProgram.aspx.cs" Inherits="AffiliateProgram" %> + + + + +
+
+
+

+3-6-9 Affiliate Program +

+ +
    + +
  • + + Home + +
  • + + + +
  • +3-6-9 Affiliate Program +
  • +
+
+
+
+
+
+
+
+ +
+ + +
+
+ The one & only Herbal Golden Affiliate Opportunity + + +

Hello friends we have bought this Golden Affiliate Opportunity to everyone out there, now you can achieve your dreams easily by becoming our affiliate partner, there is no time limit you can work as many hours you want in a day. +

+

Now you can earn as much as you want by joining our Affiliate program. Work from home at your suitable time, just give a few hours online & create a huge profit every day. Refer & earn points & convert your points into huge huge discounts. Work on best result-oriented herbal products. It's the right time & right opportunity grab it right now to become our affiliate partner. +

+

Refer every day to as many people you can, our product results are supper fast & 100% result oriented, there are no side effects, and it’s completely Herbal, clinically Tested & approved by the Indian Govt. +

+

See our product details & complete work plan on our website. There is no age limit to becoming our affiliate partner. Contact us for more information. +

+

Call Now : ++91 (869) 030-5654

+<%--

Call Now : +91 (722) 999-1777

--%> + + + +
+
+ +
+
+ + Refer & Earn Plan + + + +

1. To Become an affiliate partner you need to first Register yourself through our website. The registration is completely free of cost. + +

+

2. As you Register you will get 50 points in your affiliate account, 50 points is equal to 50Rs. + +

+

3. After Registration you will get a referral code, you need to share it with as many as number of people & make them register on our website through your referral code +

+

4. Per referral registration from your side you will get 50 points credited to your affiliate account. + +

+ +

5. The points added to your account will help you get a 50% discount from MRP. +

+

6. For example if our production rate is 1200Rs, so if you have 1000 points in your affiliate account, you will get the product @50% from MRP = 600Rs & your 600 points will be deducted from your account & 400 points will be the balance in your account. +

+

7. So you can deduct your points at the purchase of any product. +

+ + + + +
+
+ +
+ +
+ +
+ + +
+
+

+ 3-6-9 affiliate plan +
+ +
+ +

1. If you refer to 3 people in a month & make them purchase from your referral code you will get 10% of the purchase made by your end-user. + + +

+

2.If you refer to 6 people in a month & make them purchase from your referral code you will get 20% of the purchase made by your end-user. + + +

+ +

3. If you refer to 9 or more people in a month & make them purchase from your referral code you will get 30% of the purchase made by your end-user. + + +

+ + + + + +
+
+ + +

+ +
+
+
+ +
+ mfpower.in +
+
+ + + +
+ diff --git a/AffiliateProgram.aspx.cs b/AffiliateProgram.aspx.cs new file mode 100644 index 0000000..2ae8baa --- /dev/null +++ b/AffiliateProgram.aspx.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +public partial class AffiliateProgram : System.Web.UI.Page +{ + protected void Page_Load(object sender, EventArgs e) + { + Page.MetaKeywords = "Affiliate Program,Affiliate Program website,Affiliate Program information,Affiliate Program online,mf power Affiliate Program,join Affiliate Program,register Affiliate Program,Affiliate marketing,369 Affiliate Program"; + } + protected void Button1_Click(object sender, EventArgs e) + { + Response.Redirect("register.aspx"); + } +} \ No newline at end of file diff --git a/Blog.aspx b/Blog.aspx new file mode 100644 index 0000000..b8812a7 --- /dev/null +++ b/Blog.aspx @@ -0,0 +1,75 @@ +<%@ Page Title="Blog & News - mfpower.in" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Blog.aspx.cs" Inherits="Blog" %> + + + + +
+
+
+

Featured Blog And Advice

+ +
    + +
  • + + Home + +
  • + + + +
  • Featured Blog And Advice
  • +
+
+
+
+
+
+
+ +

Featured Blog And Advice

+
+
+ + + + + + +
+ +
+
+
+ diff --git a/Blog.aspx.cs b/Blog.aspx.cs new file mode 100644 index 0000000..103ff0d --- /dev/null +++ b/Blog.aspx.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +public partial class Blog : System.Web.UI.Page +{ + ClsConnection Cnn = new ClsConnection(); + public enum MessageType { Success, Error, Info, Warning }; + string filename; + protected void Page_Load(object sender, EventArgs e) + { + + + if (!IsPostBack) + { + list(); + } + } + + public void list() + { + + DataTable dtlsrblog = Cnn.FillTable("select category,SUBSTRING(title, 0, 50) AS heading,image,convert(varchar, entrydate, 106) as date,id from [blog_detail] order by newid()", "Detail"); + lsrblog.DataSource = dtlsrblog; + lsrblog.DataBind(); + } +} \ No newline at end of file diff --git a/ContactUs.aspx b/ContactUs.aspx new file mode 100644 index 0000000..c06ff04 --- /dev/null +++ b/ContactUs.aspx @@ -0,0 +1,148 @@ +<%@ Page Title="Contact Us - mfpower.in" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ContactUs.aspx.cs" Inherits="ContactUs" %> + + + + +
+
+
+

+Contact Us +

+ + +
+
+
+ + + +
+
+
+

Contact Us, We Are Here to Help You

+ +
+
+
+
+ + +

6-M-1,Patel Nagar, Bhilwara ,(Raj.)

+
+
+ + + + +
+
+
+ + + +
+
+
+

Write Us

+
+ +
+
+
+
+ + + +
+
+
+ +
+
+ + + +
+
+
+ +
+
+ + + +
+
+
+ +
+
+ + + +
+
+
+ +
+
+ + + +
+
+
+ + + +
+ + +
+
+
+
+
+
+ + + +
+ + +
+
+ diff --git a/ContactUs.aspx.cs b/ContactUs.aspx.cs new file mode 100644 index 0000000..b126383 --- /dev/null +++ b/ContactUs.aspx.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +public partial class ContactUs : System.Web.UI.Page +{ + protected void Page_Load(object sender, EventArgs e) + { + + } + protected void Unnamed_ServerClick(object sender, EventArgs e) + { + + } +} \ No newline at end of file diff --git a/HelpFAQ.aspx b/HelpFAQ.aspx new file mode 100644 index 0000000..4013187 --- /dev/null +++ b/HelpFAQ.aspx @@ -0,0 +1,126 @@ +<%@ Page Title="HelpFAQ - mfpower.in" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="HelpFAQ.aspx.cs" Inherits="HelpFAQ" %> + + + + + +
+
+
+

Faq

+ + +
+
+
+
+ +
+
+
+
+
+

Help & FAQ :-

+
+ + +
+
+ + +
+ + + + + + +
+ + +
+ + + +
+ + + +
+ + +
+ + +
+ + +
+ + +
+ + + + + + + +
+ +
+ + + + + + +
+
+ +
+ +
+
+
+ +
+ +
+
+
+
diff --git a/HelpFAQ.aspx.cs b/HelpFAQ.aspx.cs new file mode 100644 index 0000000..66af89b --- /dev/null +++ b/HelpFAQ.aspx.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +public partial class HelpFAQ : System.Web.UI.Page +{ + protected void Page_Load(object sender, EventArgs e) + { + + } +} \ No newline at end of file diff --git a/Index.aspx b/Index.aspx new file mode 100644 index 0000000..5d80476 --- /dev/null +++ b/Index.aspx @@ -0,0 +1,600 @@ +<%@ Page Title="home - mfpower.in" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Index.aspx.cs" Inherits="Index" %> + + + + + +
+ +
+ +
+ +
+ +
+ +
+ + + +
+
+
+
+
+
+ mfpower.in + +
+ mfpower.in + +
+
+ +

15 Years of Experience

+ + +
+
+ +
+
+ About family kit +

Better Eat, Better Perform

+

If You Get Better Nutrition, You Can Enjoy a Healthy Life

+

+Family kit is a complete combo pack for both male & female . It gives you the Energy to face your self with the reality. When the nature let's you down , family kit helps you to fight by with all the personal problems which are facing in your day to day life. All ingredients added in the kit are completely natural & herbal. Clinically Tested & approved by the Indian Government. No side effects at all , try now & feel the Goodness of Family Kit. +

+ + + + <%--
+
+
    +
  • Low Energy
  • +
  • Stress & Anxiety
  • +
  • In¢rease y0ur $tamin@.
  • +
  • In¢rease £nergy Level.
  • +
+
+ +
+
    +
  • Balance Body & Mind
  • +
  • Advice
  • +
  • Impr0ve $p€rm Qu@lity.
  • +
  • In¢rease Endur@nce.
  • +
+
+
--%> + +

We Can Help You

+

Call Now : +91- 86903-05654

+ Know More +
+
+
+
+ +
+ mfpower.in +
+
+ + +
+
+
+
+
+ + +
+
+ +
+
+

We Give You M-Power Product For Better Performance

+

+ About M-power
Over 40% men in India are experiencing some level of performance issues . It's very normal, what's not normalize not seeking the right solution! The M-power helps you to increase stamina, improve vitality and increase endurance. It's the complete action of our effective OTC solutions that help you to have better intimate times. Try now & feel the change. + +

+ +

Steps to Your Perfect Stamina & Performance.

+ + <%--
+
+
    +
  • In¢rease y0ur $tamin@.
  • +
  • Impr0ve y0ur Vit@lity.
  • +
  • In¢rease Endur@nce.
  • +
  • In¢rease Test0ster0ne levels .
  • +
+
+ +
+
    +
  • In¢rease £nergy Level.
  • +
  • L@st L0nger 0n B€D.
  • +
  • Impr0ve $p€rm Qu@lity.
  • +
  • G€t H@rd & $tay H@rd.
  • +
+
+
--%> +
+
+
+
+
+ +
+
+
+ + +
+
+

We Give You F-Care Product For Woman Organal Health for Happy & Healthy Life

+

+ + About F-Care
+ + Over 70% of women in India are experiencing some level of Performance issues , like loosening of Organal structure. They are not happy with it all , after a age they face this problem , but no worry's we have a solution for all your Organal problem's , it may help you to solve & feel the change. Now we say F-care gives you wings to fly again. Try now & feel the change. +

Steps to Your Perfect Stamina & Performance.

+ + <%--
+
+
    +
  • inst@nt v@gin@ T1ght€n1ng
  • + +
  • outstanding perf0rm@nce €very n1ght
  • +
  • no side effects with every gynecologist's choice
  • +
+
+ +
+
    +
  • T1ghtens the v@gin@ & reduce access disch@rge
  • +
  • Rejuvenates the v@gin@l tissues
  • +
  • F care is completely Herbal & safe
  • + +
+
+
--%> +
+
+ + + +
+
+ mfpower.in + +
+
+
+
+
+ + + +
+
+
+ +
+

Testimonials

+
+
+ + + + + + + +
+
+
+ Our News +

Featured News And Advice

+
+ + +
+
+ + +
+
+
+

Make An Appointment

+ + +
+
+
+
+ + +
+
+ +
+
+ +
+
+ + + + + +
+
+ + +
+
+ +
+
+ +
+
+ +
+ +
+ + +
+
+
+
+
+
+
+
+ +
+
+
+
+ +
+
+
+
+
+ diff --git a/Index.aspx.cs b/Index.aspx.cs new file mode 100644 index 0000000..9a6d696 --- /dev/null +++ b/Index.aspx.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +public partial class Index : System.Web.UI.Page +{ + ClsConnection Cnn = new ClsConnection(); + public enum MessageType { Success, Error, Info, Warning }; + string filename; + protected void Page_Load(object sender, EventArgs e) + { + + + if (!IsPostBack) + { + list(); + } + Page.Title = "Mfpower.in improves the performance level of both male & female. "; + Page.MetaDescription = "Mf power helps to fix the performance issues of male & female , improve the testosterone level , boost up the performance , increases the energy level."; + } + + public void list() + { + + DataTable dtlsrblog = Cnn.FillTable("select top 6 category,SUBSTRING(title, 0, 50) AS heading,image,convert(varchar, entrydate, 106) as date,id from [blog_detail] order by newid()", "Detail"); + lsrblog.DataSource = dtlsrblog; + lsrblog.DataBind(); + + DataTable dttesi = Cnn.FillTable("select top 6 name,info from [SuccessfulStories] order by newid()", "Detail"); + lsttesi.DataSource = dttesi; + lsttesi.DataBind(); + } + + protected void Button1_Click(object sender, EventArgs e) + { + Cnn.Open(); + int ID = Convert.ToInt32(Cnn.ExecuteScalar("Select IsNull(Max(id)+1,1) From [BookConsult]")); + Cnn.ExecuteNonQuery("INSERT INTO BookConsult (id,name,mobile,subject,message,rts,did) values ('" + ID + "','" + txtname.Text + "','" + txtmobile.Text + "','" + txtsubj.Text + "','" + txtmessage.Text + "',getdate(),'')"); + Cnn.Close(); + + txtmessage.Text = ""; + txtname.Text = ""; + txtmobile.Text = ""; + txtsubj.Text = ""; + lblerror.Text = "Thanks for Enquiry.. Admin Contact Soon..."; + + txtmessage.Focus(); + lblerror.Focus(); + } +} \ No newline at end of file diff --git a/LogOut.aspx b/LogOut.aspx new file mode 100644 index 0000000..accc9f6 --- /dev/null +++ b/LogOut.aspx @@ -0,0 +1,7 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="LogOut.aspx.cs" Inherits="LogOut" %> + + + + + + diff --git a/LogOut.aspx.cs b/LogOut.aspx.cs new file mode 100644 index 0000000..4339457 --- /dev/null +++ b/LogOut.aspx.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +public partial class LogOut : System.Web.UI.Page +{ + protected void Page_Load(object sender, EventArgs e) + { + + try + { + Session["GroupName"] = null; + Session["UserId"] = null; + HttpContext context1 = HttpContext.Current; + if (context1.Request.Cookies["mfpowerCart"] != null) + { + if (Request.Cookies["mfpowerCart"].Value != null) + { + Response.Cookies["mfpowerCart"].Expires = DateTime.Now.AddDays(-1); + Response.Cookies.Remove("mfpowerCart"); + HttpCookie myCookie = new HttpCookie("mfpowerCart"); + myCookie.Expires = DateTime.Now.AddDays(-1d); + Response.Cookies.Add(myCookie); + } + } + Response.Redirect("Index.aspx"); + } + + + + catch (Exception ex) + { + throw ex; + } + } +} \ No newline at end of file diff --git a/MasterPage.master b/MasterPage.master new file mode 100644 index 0000000..e1de4cc --- /dev/null +++ b/MasterPage.master @@ -0,0 +1,452 @@ +<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Mfpower.in improves the performance level of both male & female. + + + + + + +<%----%> + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ + + + +
+
+ + + +
+ +
+
+
+
+
+ +
+
+ +
+
+ + + + +
+
+
+
+
+ + + + + +
+ + + + + + + + + + +
+
+

+ Copyright @2022 MF Power +

+
+
+ + + +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + diff --git a/MasterPage.master.cs b/MasterPage.master.cs new file mode 100644 index 0000000..43a6b2a --- /dev/null +++ b/MasterPage.master.cs @@ -0,0 +1,87 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +public partial class MasterPage : System.Web.UI.MasterPage +{ + public static int TotAmt = 0, Realprice = 0, totaldis = 0, count = 0; + ClsConnection Cnn = new ClsConnection(); + public enum MessageType { Success, Error, Info, Warning }; + string filename; + public static string login = "", loginfooter = ""; + protected void Page_Load(object sender, EventArgs e) + { + list(); + + } + public void list() + { + try + { + count = 0; + login = "
  • Account
  • "; + loginfooter = "
  • Login
  • Register
  • "; + string Sql = "select count(*) from trncart"; + string Sql_Inner = ""; + if (Session["UserId"] != null) + { + Sql_Inner = " Where UserId=" + Session["UserId"] + ""; + string username = ""; loginfooter = ""; + Cnn.Open(); + username = Cnn.ExecuteScalar("select Name from register where UserId=" + Session["UserId"] + "").ToString(); + Cnn.Close(); + login = "
  • Hi. " + username + " Account
  • "; + } + else + { + if (Request.Cookies["mfpowerCart"] != null) + { + if (Request.Cookies["mfpowerCart"].Value != null) + { + Sql_Inner = " Where CartId=" + Request.Cookies["mfpowerCart"].Value + ""; + } + } + } + + + if (Sql_Inner != "") + { + Sql = Sql + Sql_Inner; + Cnn.Open(); + + + count = Convert.ToInt32(Cnn.ExecuteScalar(Sql)); + + Cnn.Close(); + + + } + + + } + catch (Exception ex) + { + Session["GroupName"] = null; + Session["UserId"] = null; + Session["UserId"] = null; + HttpContext context1 = HttpContext.Current; + if (context1.Request.Cookies["mfpowerCart"] != null) + { + if (Request.Cookies["mfpowerCart"].Value != null) + { + Response.Cookies["mfpowerCart"].Expires = DateTime.Now.AddDays(-1); + Response.Cookies.Remove("mfpowerCart"); + HttpCookie myCookie = new HttpCookie("mfpowerCart"); + myCookie.Expires = DateTime.Now.AddDays(-1d); + Response.Cookies.Add(myCookie); + } + } + Response.Redirect("Index.aspx"); + } + } + +} diff --git a/MyOrder.aspx b/MyOrder.aspx new file mode 100644 index 0000000..e356852 --- /dev/null +++ b/MyOrder.aspx @@ -0,0 +1,483 @@ +<%@ Page Title="MyOrders - mfpower.in " Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="MyOrder.aspx.cs" Inherits="MyOrder" %> + + + + + +
    +
    +
    +

    +My Order +

    + + +
    +
    +
    +

    +
    +
    + + +
    +
    +
    + +
    +
    + + + + + + + + + +
    +
    +
    +
    + Order Information +
    +
    + +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + Order Form +
    + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    + Name: + + +
    + Address: + + +
    + City: + + + + +
    + Contact No: + + + +
    + Email Id: + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    + Order No: + + +
    + Date: + + +
    + PayMode: + + +
    + Enjoy Online Shopping on...
    + <%-- + + --%> +
    +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
     SNo. + + Particulars + + Amount + + Discount + + NetAmount +
    + <%#Container.DataItemIndex+1 %> + + 0)?Eval("Image"):"noimage.jpg") %>" width="27px" height="40px" /> + + + +
    + + +
    + + + + +
    + Price: +   +
    +
    + + Return + Cancel + + +
    + + + + + + + + + + + + + + + +
    + + + + +
    + <%-- Actual Unit: + + --%> +
    +
    + + + + + +
    + Quantity: +   +
    +
    + + +
    +
    + + +
    +
    +
    + + + + + + + Edit +
    +
    + + + + + +
    + Total Amount (in Rs.)  + + +
    +
    + + + + + +
    + Wallet Amount (-)   + + +
    +
    + + + + + +
    + Delivery Charges (in Rs.)  + + +
    +
    + + + + + +
    + Net Amount (in Rs.)  + + +
    +
    +
    +
    + <%-- + + + + + + + + + --%> +
    + + +
    +
    +
    +
    + +
    +
    +
    + diff --git a/MyOrder.aspx.cs b/MyOrder.aspx.cs new file mode 100644 index 0000000..5652a38 --- /dev/null +++ b/MyOrder.aspx.cs @@ -0,0 +1,235 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Data; +using System.Net; +using System.Web.Script.Serialization; +using System.Text; +using System.Net.Mail; + +public partial class MyOrder : System.Web.UI.Page +{ + ClsConnection Cnn = new ClsConnection(); + BaseUrl api = new BaseUrl(); + API api1 = new API(); + string usercode; + string user; + public static string OldPass; + + + protected void Page_Load(object sender, EventArgs e) + { + try + { + if (Session["UserId"] == null) + { + Response.Redirect("login.aspx"); + } + else + { + + + if (!IsPostBack) + { + Cnn.Open(); + DataTable DTT = Cnn.FillTable("select ShippingEmailId,ShippingMobileNo,OrderId,PaidAmount,DeliveryFees, convert(varchar, RTS, 6) as RTS from trnordermain where UserCode='" + Session["UserId"] + "' and Cancelled !=1 order by orderid desc", "the"); + Lstorder.DataSource = DTT; + Lstorder.DataBind(); + Cnn.Close(); + } + // + + + + + + + + } + } + catch (Exception ex) + { + throw ex; + } + + + + } + + + + + + + + protected void Lstorder_ItemCommand(object sender, ListViewCommandEventArgs e) + { + if (e.CommandName == "View") + { + + divPrint.Visible = true; + pnlOrderInfo.Visible = true; + + string OrderId = ((Label)e.Item.FindControl("lblOrderId")).Text; + Cnn.Open(); + DataRow dr = Cnn.FillRow("Select DeliveryFees,Amount,PaidAmount,WalletAmount From TrnOrderMain where OrderId=" + OrderId + ""); + Cnn.Close(); + + lblAmt.Text = Convert.ToString(dr["Amount"]); + LblDeliveryCharges.Text = Convert.ToString(dr["DeliveryFees"]); + LblNetAmount.Text = Convert.ToString(dr["PaidAmount"])+"/-"; + lblwalletamount.Text = Convert.ToString(dr["WalletAmount"]); + if (Convert.ToInt32(lblwalletamount.Text) > 0) + { + walletdiv.Visible = true; + } + else + { + walletdiv.Visible = false; + } + Label LblInvoiceNo = e.Item.FindControl("LblInvoiceNo") as Label; + DataTable dt = Cnn.FillTable("Select a.size,a.DisInvoiceNo,a.OrderId,a.ProductId,b.ProductName,b.Image as Image,a.Unit,a.weight,a.Quantity,a.Rate,a.Amount,a.Discount,a.NetAmount from TrnOrderDetail as a Inner Join Product as b on a.ProductId=b.ProductId where Orderid='" + OrderId + "'", "Detail"); + + LstConferm.DataSource = dt; + LstConferm.DataBind(); + + + + DataTable dtable = Cnn.FillTable("Select OrderId,'" + OrderId + "' as DisInvoiceNo,ShippingName,ShippingAddress,ShippingMobileNo,ShippingEmailId,ShippingCity,ShippingZipcode,ShippingStats,Convert(varchar,RTS,103) as ShippingDate,PayMode,Convert(varchar,DeliveryDate,103) as DeliveredDate From TrnOrderMain where Orderid='" + OrderId + "'", "Detail"); + LstCategory.DataSource = dtable; + LstCategory.DataBind(); + + + Page.ClientScript.RegisterStartupScript(this.GetType(), "alert", "window.location.href = '#bottom'", true); + } + if (e.CommandName == "cen") + { + + string lblShippingMobileNo = ((Label)e.Item.FindControl("lblShippingMobileNo")).Text; + string ShippingEmailId = ((Label)e.Item.FindControl("ShippingEmailId")).Text; + + string OrderId = ((Label)e.Item.FindControl("lblOrderId")).Text; + Cnn.Open(); + Cnn.ExecuteNonQuery("update TrnOrderMain set Cancelled=1 where OrderId=" + OrderId + ""); + Cnn.ExecuteNonQuery("update TrnOrderDetail set Cancelled=1 where OrderId=" + OrderId + ""); + Cnn.Close(); + + Msg.SendSMS("8955615179", "Order No. " + OrderId + " cancel by customer. mfpower.in"); + Msg.SendSMS(lblShippingMobileNo, "Order Cancel Successfully .. mfpower.in"); + emailfunn(OrderId); + Page.ClientScript.RegisterStartupScript(this.GetType(), "alert", "window.location.href = '#bottom'", true); + Response.Redirect("MyOrder.aspx"); + } + + } + + public void emailfunn(string orderii) + { + int Amount = 0, PaidAmount = 0, DeliveryCharges = 0, OrderAmount = 0, Quantity = 0, AdditionalCharges = 0; + + string emailloop = "", orderid = orderii; + + DataTable dt = Cnn.FillTable("select a.DeliveryCharges,a.Quantity,(select productname from product where productid=a.productid) as productname,a.netamount,a.productid from TrnOrderDetail as a where a.orderid=" + orderid + "", "Detail"); + DataTable dtt = Cnn.FillTable("select * from TrnOrdermain where orderid=" + orderid + "", "Detail"); + if (dt.Rows.Count > 0) + { + for (int i = 0; i < dt.Rows.Count; i++) + { + Amount = Amount + Convert.ToInt32(dt.Rows[i]["netamount"]); + emailloop = emailloop + "
    " + dt.Rows[i]["productname"] + "" + dt.Rows[i]["Quantity"] + "" + dt.Rows[i]["netamount"] + "
    "; + } + + } + + + DeliveryCharges = Convert.ToInt32(dt.Rows[0]["DeliveryCharges"]); + PaidAmount = DeliveryCharges + Amount; + + string emailinfo = "

    Cancelled Order


    Hi " + dtt.Rows[0]["ShippingName"] + ",

    you canceled the order ..

    The Order details are as folows:

    [Order No. #" + orderid + "] [Date : " + dtt.Rows[0]["rts"] + "]

    Product Name Qty. Price
    " + emailloop + "
    Delivery Charge₹" + DeliveryCharges + "/-
    Total₹" + Amount + "/-
    Net Amount₹" + PaidAmount + "/-

    Please let us Know if we can help !

    Regards mfpower

    www.mfpower.in

    "; + string adminemailinfo = "

    Cancelled Order


    Hi Admin,

    Order Cancel BY User ..

    The Order details are as folows:

    [Order No. #" + orderid + "] [Date : " + dtt.Rows[0]["rts"] + "]

    Product Name Qty. Price
    " + emailloop + "
    Delivery Charge₹" + DeliveryCharges + "/-
    Total₹" + Amount + "/-
    Net Amount₹" + PaidAmount + "/-

    Please let us Know if we can help !

    Regards mfpower

    www.mfpower.in

    "; + + + email(dtt.Rows[0]["ShippingEmailId"].ToString(), "Cancel Order: mfpower.in", emailinfo);//send email to user + email("info@mfpower.in", "Cancel Order: mfpower.in", adminemailinfo);//send email to Admin + email("mfpower007@gmail.com", "Cancel Order: mfpower.in", adminemailinfo);//send email to Admin + + + } + + public void email(string tomail, string subject, string mmessage) + { + + + try + { + + MailMessage newmail = new MailMessage(); + MailAddress toadd = new MailAddress(tomail); + MailAddress fromadd = new MailAddress("info@mfpower.in"); + newmail.Subject = subject; + + string msg = mmessage; + + + + newmail.Body = msg; + newmail.To.Add(toadd); + newmail.From = fromadd; + newmail.IsBodyHtml = true; + SmtpClient sserver = new SmtpClient(); + sserver.Host = "mail.aemailsrv.com"; + sserver.Credentials = new NetworkCredential("info@mfpower.in", "4ZqBCR@u3Nu9v5"); + sserver.DeliveryMethod = SmtpDeliveryMethod.Network; + sserver.Port = 25; + sserver.Send(newmail); + + } + catch (Exception ex) + { + + } + } + protected void BtnClose_Click(object sender, EventArgs e) + { + + pnlOrderInfo.Visible = false; + } + protected void Imgbtn_Click(object sender, ImageClickEventArgs e) + { + // tdstoreprint.Visible = false; + Imgbtn.Visible = false; + Session["AdminPrint"] = divPrint; + Response.Redirect("../../print.aspx"); + } + protected void LstCategory_ItemUpdating(object sender, ListViewUpdateEventArgs e) + { + + } + protected void LstCategory_ItemCommand(object sender, ListViewCommandEventArgs e) + { + + } + protected void LstConferm_ItemCommand(object sender, ListViewCommandEventArgs e) + + { + //if (e.CommandName == "Cancel") + //{ + // int OrderId = Convert.ToInt32(((Label)e.Item.FindControl("lblorderid")).Text); + // int LblProductId = Convert.ToInt32(((Label)e.Item.FindControl("LblProductId")).Text); + // int lblaid = Convert.ToInt32(((Label)e.Item.FindControl("lblaid")).Text); + // orderstatus Obj = new orderstatus(); + // Obj.OrderId = OrderId; Obj.AID = lblaid; Obj.ProductId = LblProductId; Obj.RequestReason = "galat saman"; Obj.Cancelled = true; Obj.Delivered = false; Obj.Dispatched = false; Obj.Returned = false; + // api1.PostData("/Order/OrderSettlementStatusEdit", Obj); + // //LstConferm.DataBind(); + // Response.Redirect("MyOrder.aspx"); + //} + } + protected void LstConferm_ItemEditing(object sender, ListViewEditEventArgs e) + { + + } + +} \ No newline at end of file diff --git a/Ordersuccess.aspx b/Ordersuccess.aspx new file mode 100644 index 0000000..1456b50 --- /dev/null +++ b/Ordersuccess.aspx @@ -0,0 +1,22 @@ +<%@ Page Title="Order success - mfpower.in" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Ordersuccess.aspx.cs" Inherits="Default2" %> + + + + + +

    +
    +
    +
    +
    +

    Order Success

    + <%--

    Dear,

    --%> +

    Thank you for Shopping with MF Power We have sent Invoice of your order to Your Registered EmailID .

    +    Explore Product     +

    +
    +
    +
    +


    +
    + diff --git a/Ordersuccess.aspx.cs b/Ordersuccess.aspx.cs new file mode 100644 index 0000000..432fdc5 --- /dev/null +++ b/Ordersuccess.aspx.cs @@ -0,0 +1,41 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +public partial class Default2 : System.Web.UI.Page +{ + ClsConnection Cnn = new ClsConnection(); + protected void Page_Load(object sender, EventArgs e) + { + if (Session["GroupName"] == null) + { + Session["GroupName"] = "3"; + } + + + + //HttpContext context1 = HttpContext.Current; + //if (context1.Request.Cookies["mfpowerCart"] != null) + //{ + // if (Request.Cookies["mfpowerCart"].Value != null) + // { + // Response.Cookies["mfpowerCart"].Expires = DateTime.Now.AddDays(-1); + // Response.Cookies.Remove("mfpowerCart"); + // HttpCookie myCookie = new HttpCookie("mfpowerCart"); + // myCookie.Expires = DateTime.Now.AddDays(-1d); + // Response.Cookies.Add(myCookie); + // } + //} + //if (Session["UserId"] != null) + //{ + + // Cnn.Open(); + // Cnn.ExecuteNonQuery("delete from trncart where id=" + Session["UserId"] + ""); + + // Cnn.Close(); + //} + } +} \ No newline at end of file diff --git a/Privacypolicy.aspx b/Privacypolicy.aspx new file mode 100644 index 0000000..a762d7c --- /dev/null +++ b/Privacypolicy.aspx @@ -0,0 +1,79 @@ +<%@ Page Title=" Privacy policy - mfpower.in" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Privacypolicy.aspx.cs" Inherits="Privacypolicy" %> + + + + + +
    +
    +
    +

    Privacy policy

    + + +
    +
    +
    +

    +
    + +
    + +
    + diff --git a/Privacypolicy.aspx.cs b/Privacypolicy.aspx.cs new file mode 100644 index 0000000..ea4f161 --- /dev/null +++ b/Privacypolicy.aspx.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +public partial class Privacypolicy : System.Web.UI.Page +{ + protected void Page_Load(object sender, EventArgs e) + { + if (Session["GroupName"] == null) + { + Session["GroupName"] = "3"; + } + } +} \ No newline at end of file diff --git a/ProductsOrder.aspx b/ProductsOrder.aspx new file mode 100644 index 0000000..0e21470 --- /dev/null +++ b/ProductsOrder.aspx @@ -0,0 +1,211 @@ +<%@ Page Title="Order Information - mfpower.in" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ProductsOrder.aspx.cs" Inherits="ProductsOrder" %> + + + <%-- --%> + +
    +
    + +
    + +
    +
    +
    + diff --git a/ProductsOrder.aspx.cs b/ProductsOrder.aspx.cs new file mode 100644 index 0000000..237f000 --- /dev/null +++ b/ProductsOrder.aspx.cs @@ -0,0 +1,284 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using System.Net; +using System.Text; +using System.Web; +using System.Web.Script.Serialization; +using System.Web.UI; +using System.Web.UI.WebControls; + +public partial class ProductsOrder : System.Web.UI.Page +{ + ClsConnection Cnn = new ClsConnection(); +// ClsQuantity objQty = new ClsQuantity(); + API api = new API(); + BaseUrl api1 = new BaseUrl(); + string ProductInfo = ""; + orderfunction odd = new orderfunction(); + public static int TotAmt = 0, Realprice = 0, totaldis = 0; + int ordercount = 0, UserTotalCashPoint, PromoCodeId = 0, PromoCodeAmt = 0; + public static int walletuse = 0; + protected void Page_Load(object sender, EventArgs e) + { + if (Session["UserId"] == null) + { + Response.Redirect("login.aspx"); + } + if (!IsPostBack) + { + UserDetailes(); + LoadProducts(); + + } + if (RadioButton1.Checked == true) + { + qrcode.Visible = true; + } + else + { + qrcode.Visible = false; + } + } + + + + public void UserDetailes() + { + try + { + DataSet ds = new DataSet(); + Cnn.Open(); + Cnn.FillDataSet(ds, "select a.* from register as a where a.userid='" + Session["UserId"] + "'", "Admin_Login"); + + Cnn.Close(); + lblname.Text = ds.Tables[0].Rows[0]["name"].ToString(); + lbladdress.Text = ds.Tables[0].Rows[0]["Address"].ToString(); + lblcity.Text = ds.Tables[0].Rows[0]["District"].ToString(); + lblstate.Text = ds.Tables[0].Rows[0]["State"].ToString(); + lblmobile.Text = ds.Tables[0].Rows[0]["MobileNumber"].ToString(); + lblmailid.Text = ds.Tables[0].Rows[0]["EmailId"].ToString(); + lblpincode.Text = ds.Tables[0].Rows[0]["Zipcode"].ToString(); + lblpoint.Text = ds.Tables[0].Rows[0]["Wallet"].ToString(); + if (Convert.ToInt32(lblpoint.Text) > 0) + { + walletdiv.Visible = true; + } + else + { + walletdiv.Visible = false; + } + + } + catch (Exception ex) + { + throw ex; + } + } + public void LoadProducts() + { + //(b.price*a.Quantity) as totalprice,(b.discount*a.Quantity) as totaldiscount, + string Sql = "select ((b.price*a.Quantity)-(b.discount*a.Quantity)) as totalamount,a.id,a.productid,a.color,a.Size,b.productname,a.Quantity,b.image from trncart as a inner join product as b on a.productid=b.productid Where a.UserId=" + Session["UserId"] + ""; + + DataTable Dt = Cnn.FillTable(Sql, "Dt"); + + lstcart.DataSource = Dt; + lstcart.DataBind(); + + Cnn.Open(); + TotAmt = 0; Realprice = 0; totaldis = 0; + for (int i = 0; i < lstcart.Items.Count; i++) + { + Label lblquantity = lstcart.Items[i].FindControl("lblquantity") as Label; + + Label LblTotalAmoun111t = lstcart.Items[i].FindControl("LblTotalAmoun111t") as Label; + + + TotAmt += Convert.ToInt32(LblTotalAmoun111t.Text); + + + + } + // lbltotaldilverycharge.Text = odd.GetCourier(Convert.ToInt32(Session["UserId"]), lblstate.Text); + + lbltotaldilverycharge.Text = "0"; + + Cnn.Close(); + + Realprice = TotAmt - totaldis; + + lbltotalamount.Text = Realprice.ToString(); + + if (Convert.ToInt32(lblpoint.Text) > 0) + { + + if (Convert.ToInt32(lblpoint.Text) > Realprice) + { + + walletuse = Realprice/2; + if (Realprice > 500) + { + lbltotaldilverycharge.Text = "0"; + LblNetAmount.Text = (Realprice).ToString(); + LblPaidAmount.Text = (Convert.ToInt32(LblNetAmount.Text) - walletuse).ToString(); + + } + else + { + LblNetAmount.Text = (Realprice + Convert.ToInt32(lbltotaldilverycharge.Text)).ToString(); + LblPaidAmount.Text = (Convert.ToInt32(LblNetAmount.Text) - walletuse).ToString(); + } + + } + else + { + + int realpricehalf = Realprice / 2; + if (Convert.ToInt32(lblpoint.Text) > realpricehalf) + { + walletuse = Convert.ToInt32(realpricehalf); + if (Realprice > 500) + { + lbltotaldilverycharge.Text = "0"; + LblNetAmount.Text = (Realprice).ToString(); + LblPaidAmount.Text = (Convert.ToInt32(LblNetAmount.Text) - Convert.ToInt32(walletuse)).ToString(); + } + else + { + LblNetAmount.Text = (Realprice + Convert.ToInt32(lbltotaldilverycharge.Text)).ToString(); + LblPaidAmount.Text = (Convert.ToInt32(LblNetAmount.Text) - Convert.ToInt32(walletuse)).ToString(); + } + } + else + { + walletuse = Convert.ToInt32(lblpoint.Text); + if (Realprice > 500) + { + lbltotaldilverycharge.Text = "0"; + LblNetAmount.Text = (Realprice).ToString(); + LblPaidAmount.Text = (Convert.ToInt32(LblNetAmount.Text) - Convert.ToInt32(walletuse)).ToString(); + } + else + { + LblNetAmount.Text = (Realprice + Convert.ToInt32(lbltotaldilverycharge.Text)).ToString(); + LblPaidAmount.Text = (Convert.ToInt32(LblNetAmount.Text) - Convert.ToInt32(walletuse)).ToString(); + } + } + + + + } + + + + + } + else + + { + if (Realprice > 500) + { + lbltotaldilverycharge.Text = "0"; + LblNetAmount.Text = (Realprice).ToString(); + LblPaidAmount.Text = LblNetAmount.Text; + + } + else + { + LblNetAmount.Text = (Realprice + Convert.ToInt32(lbltotaldilverycharge.Text)).ToString(); + LblPaidAmount.Text = LblNetAmount.Text; + } + + + } + + + } + + + protected void ChkWallet_CheckedChanged(object sender, EventArgs e) + { + + LoadProducts(); + } + protected void LnkOrderConfirm_Click(object sender, EventArgs e) + { + Application["Name"] = lblname.Text; Application["Address"] = lbladdress.Text; + Application["MobileNo"] = lblmobile.Text; Application["EmailId"] = lblmailid.Text; Application["City"] = lblcity.Text; + Application["State"] = lblstate.Text; Application["Zipcode"] = lblpincode.Text; + Application["DeliveryFees"] = lbltotaldilverycharge.Text; + + Application["IsWalletDeduct"] = false; + + string Addamount = "0"; + + + // + //online pera meter + + Application["WalletAmount"] = walletuse; + + Application["AddAmount"] = Addamount; + Application["ProductInfo"] = ProductInfo; Application["Amount"] = LblNetAmount.Text; Application["DCharges"] = lbltotaldilverycharge.Text; + Application["UserId"] = Session["UserId"].ToString(); + // + + if (RadioButton1.Checked == true) + { + try + { + Order Obj = new Order(); + Obj.Usercode = Convert.ToInt32(Session["UserId"].ToString()); Obj.Paymode = "Cash"; Obj.TrnId = ""; Obj.TrnStatus = ""; Obj.ShippingName = lblname.Text; + Obj.ShippingAddress = lbladdress.Text; Obj.ShippingMobileNo = lblmobile.Text; Obj.ShippingEmailId = lblmailid.Text; + Obj.ShippingCity = lblcity.Text; Obj.ShippingZipcode = lblpincode.Text; Obj.ShippingStats = lblstate.Text; Obj.PromoCodeAmount = PromoCodeAmt; Obj.PromoCodeId = PromoCodeId; Obj.OrderThrough = "Web"; + Obj.DeliveryFees =Convert.ToInt32(lbltotaldilverycharge.Text); + + Obj.IsWalletDeduct = false; + + + Obj.DeliveryFees = Convert.ToInt32(lbltotaldilverycharge.Text); + Obj.WalletAmount = walletuse; + + + + odd.GenerateOrder(Obj); + Response.Redirect("Ordersuccess.aspx", false); + // ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('Order Placed Successfully!!')", true); + } + catch (Exception ex) + { + Response.Write(ex); + } + } + else + { + Response.Redirect("request.aspx"); + } + + } + + + + protected void RdbOnine_CheckedChanged(object sender, EventArgs e) + { + //if (RdbOnine.Checked == true) + //{ + // DivWallet.Visible = true; + + //} + LoadProducts(); + } + protected void RdbCash_CheckedChanged(object sender, EventArgs e) + { + + LoadProducts(); + } + protected void RadioButton1_CheckedChanged(object sender, EventArgs e) + { + LoadProducts(); + } +} +//Condition for Online and Offline + +//Condition for Online \ No newline at end of file diff --git a/README.md b/README.md index 20d8fec..33cf8b8 100644 --- a/README.md +++ b/README.md @@ -1 +1,41 @@ -# OHT2 \ No newline at end of file +# Java GUI crud with MYSQL Database XAMPP + +## Crud operation in java with NetBeans + +## versions :- +1. java jdk version: 21.0.0 + +## Packages/Import :- +1. simple . crud +2. sql connection // driver manager + +## TECHNOLOGIES + +1. Java +2. Swing +3. Java JFrame + + +## Crud operation :- +1. Insertation +2. Deleting +3. Creating +4. Find +5. Update +6. Clear + +## with responsive designs + +## Images design one :- +![WhatsApp Image 2024-02-25 at 3 43 39 PM (1)](https://github.com/bhagwanlsalvi/OHT2/assets/131893066/b0eb04f4-b861-449a-bafb-77e931c8a6f6) + + + +## Images design two:- +![WhatsApp Image 2024-02-25 at 3 43 27 PM](https://github.com/bhagwanlsalvi/OHT2/assets/131893066/740c84d1-6a46-4c4a-9228-ab5b096ba590) + + + + + + diff --git a/Terms.aspx b/Terms.aspx new file mode 100644 index 0000000..6d82eab --- /dev/null +++ b/Terms.aspx @@ -0,0 +1,75 @@ +<%@ Page Title="Terms - mfpower.in" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Terms.aspx.cs" Inherits="Terms" %> + + + + + + +
    +
    +
    +

    Terms Conditions

    + + +
    +
    +
    + +
    +
    +
    +
    + diff --git a/Terms.aspx.cs b/Terms.aspx.cs new file mode 100644 index 0000000..0c4b8b1 --- /dev/null +++ b/Terms.aspx.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +public partial class Terms : System.Web.UI.Page +{ + protected void Page_Load(object sender, EventArgs e) + { + if (Session["GroupName"] == null) + { + Session["GroupName"] = "3"; + } + } +} \ No newline at end of file diff --git a/View.form b/View.form new file mode 100644 index 0000000..89e46ef --- /dev/null +++ b/View.form @@ -0,0 +1,239 @@ + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    + + + + + <Editor/> + <Renderer/> + </Column> + <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> + <Title/> + <Editor/> + <Renderer/> + </Column> + <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> + <Title/> + <Editor/> + <Renderer/> + </Column> + <Column maxWidth="-1" minWidth="-1" prefWidth="-1" resizable="true"> + <Title/> + <Editor/> + <Renderer/> + </Column> + </TableColumnModel> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[500, 400]"/> + </Property> + <Property name="tableHeader" type="javax.swing.table.JTableHeader" editor="org.netbeans.modules.form.editors2.JTableHeaderEditor"> + <TableHeader reorderingAllowed="true" resizingAllowed="true"/> + </Property> + </Properties> + </Component> + </SubComponents> + </Container> + <Component class="javax.swing.JTextField" name="serachData"> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="serachDataActionPerformed"/> + </Events> + </Component> + <Component class="javax.swing.JLabel" name="jLabel5"> + <Properties> + <Property name="text" type="java.lang.String" value="Search By ID"/> + </Properties> + </Component> + <Component class="javax.swing.JButton" name="Clear"> + <Properties> + <Property name="text" type="java.lang.String" value="Clear"/> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="ClearActionPerformed"/> + </Events> + </Component> + </SubComponents> +</Form> diff --git a/View.java b/View.java new file mode 100644 index 0000000..709f338 --- /dev/null +++ b/View.java @@ -0,0 +1,508 @@ +/* + * Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license + * Click nbfs://nbhost/SystemFileSystem/Templates/GUIForms/JFrame.java to edit this template + */ +package simple.crud; +import java.sql.Connection; +import java.sql.DriverManager; +import java.sql.ResultSet; +import java.sql.Statement; +import javax.swing.JFrame; +import javax.swing.JOptionPane; +import static javax.swing.JOptionPane.showMessageDialog; +import javax.swing.table.DefaultTableModel; + + + +/** + * + * @author Rahemet + */ +public class View extends javax.swing.JFrame { + + /** + * Creates new form View + */ + public View() { + initComponents(); + } + + /** + * This method is called from within the constructor to initialize the form. + * WARNING: Do NOT modify this code. The content of this method is always + * regenerated by the Form Editor. + */ + @SuppressWarnings("unchecked") + // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents + private void initComponents() { + + fName = new javax.swing.JTextField(); + jLabel2 = new javax.swing.JLabel(); + lName = new javax.swing.JTextField(); + jLabel3 = new javax.swing.JLabel(); + email = new javax.swing.JTextField(); + jLabel4 = new javax.swing.JLabel(); + submit = new javax.swing.JButton(); + update = new javax.swing.JButton(); + searchBtn = new javax.swing.JButton(); + delete = new javax.swing.JButton(); + jScrollPane1 = new javax.swing.JScrollPane(); + Table = new javax.swing.JTable(); + serachData = new javax.swing.JTextField(); + jLabel5 = new javax.swing.JLabel(); + Clear = new javax.swing.JButton(); + + setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); + setTitle("JAVA CRUD GUI Application"); + setPreferredSize(new java.awt.Dimension(1000, 550)); + + fName.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + fNameActionPerformed(evt); + } + }); + + jLabel2.setText("First Name"); + + lName.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + lNameActionPerformed(evt); + } + }); + + jLabel3.setText("Last Name"); + + email.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + emailActionPerformed(evt); + } + }); + + jLabel4.setText("Email"); + + submit.setText("Create"); + submit.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + submitActionPerformed(evt); + } + }); + + update.setText("Update"); + update.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + updateActionPerformed(evt); + } + }); + + searchBtn.setText("Find"); + searchBtn.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + searchBtnActionPerformed(evt); + } + }); + + delete.setText("Delete"); + delete.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + deleteActionPerformed(evt); + } + }); + + Table.setModel(new javax.swing.table.DefaultTableModel( + new Object [][] { + {null, null, null, null}, + {null, null, null, null}, + {null, null, null, null}, + {null, null, null, null} + }, + new String [] { + "ID", "First Name", "Last Name", "Email" + } + ) { + Class[] types = new Class [] { + java.lang.Integer.class, java.lang.String.class, java.lang.String.class, java.lang.String.class + }; + boolean[] canEdit = new boolean [] { + false, false, false, false + }; + + public Class getColumnClass(int columnIndex) { + return types [columnIndex]; + } + + public boolean isCellEditable(int rowIndex, int columnIndex) { + return canEdit [columnIndex]; + } + }); + Table.setPreferredSize(new java.awt.Dimension(500, 400)); + jScrollPane1.setViewportView(Table); + if (Table.getColumnModel().getColumnCount() > 0) { + Table.getColumnModel().getColumn(0).setMaxWidth(50); + } + + serachData.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + serachDataActionPerformed(evt); + } + }); + + jLabel5.setText("Search By ID"); + + Clear.setText("Clear"); + Clear.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + ClearActionPerformed(evt); + } + }); + + javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); + getContentPane().setLayout(layout); + layout.setHorizontalGroup( + layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(layout.createSequentialGroup() + .addGap(31, 31, 31) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jLabel2) + .addGroup(layout.createSequentialGroup() + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jLabel5) + .addComponent(jLabel3) + .addComponent(jLabel4) + .addGroup(layout.createSequentialGroup() + .addComponent(serachData, javax.swing.GroupLayout.PREFERRED_SIZE, 252, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(18, 18, 18) + .addComponent(searchBtn)) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) + .addComponent(fName, javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(lName, javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(email, javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup() + .addComponent(submit) + .addGap(18, 18, 18) + .addComponent(update) + .addGap(18, 18, 18) + .addComponent(delete) + .addGap(18, 18, 18) + .addComponent(Clear)))) + .addGap(46, 46, 46) + .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 556, Short.MAX_VALUE))) + .addGap(26, 26, 26)) + ); + layout.setVerticalGroup( + layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(layout.createSequentialGroup() + .addGap(21, 21, 21) + .addComponent(jLabel2) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addGroup(layout.createSequentialGroup() + .addComponent(fName, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(18, 18, 18) + .addComponent(jLabel3) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addComponent(lName, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(18, 18, 18) + .addComponent(jLabel4) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addComponent(email, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(31, 31, 31) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(submit, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(update, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(delete, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(Clear, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addGap(29, 29, 29) + .addComponent(jLabel5) + .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) + .addComponent(serachData, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE) + .addComponent(searchBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE))) + .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 400, javax.swing.GroupLayout.PREFERRED_SIZE)) + .addContainerGap(95, Short.MAX_VALUE)) + ); + + pack(); + }// </editor-fold>//GEN-END:initComponents + + private void fNameActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_fNameActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_fNameActionPerformed + + private void lNameActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_lNameActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_lNameActionPerformed + + private void emailActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_emailActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_emailActionPerformed + + public void loadData(){ + try { + Class.forName("com.mysql.cj.jdbc.Driver"); + + String url = "jdbc:MySQL://localhost:3306/java_users_db"; + String user = "root"; + String pass = ""; + + Connection con = DriverManager.getConnection(url, user, pass); + Statement st = con.createStatement(); + + DefaultTableModel model = new DefaultTableModel(new String[]{"ID", "First Name", "Last Name", "email"}, 0); + + Table.setModel(model); + String sql = "SELECT * FROM user"; + + ResultSet rs = st.executeQuery(sql); + String i, f, l,e; + while(rs.next()){ + i = rs.getString("id"); + f = rs.getString("first_name"); + l = rs.getString("last_name"); + e = rs.getString("email"); + model.addRow(new Object[]{i, f, l, e}); + } + }catch(Exception e){ + System.out.println("Error "+ e.getMessage()); + } + + + } + private void submitActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_submitActionPerformed + String fN, lN, em, query; + + + //connect to database + try { + Class.forName("com.mysql.cj.jdbc.Driver"); + + String url = "jdbc:MySQL://localhost:3306/java_users_db"; + String user = "root"; + String pass = ""; + + Connection con = DriverManager.getConnection(url, user, pass); + Statement st = con.createStatement(); + + if("".equals(fName.getText())){ + + JOptionPane.showMessageDialog(new JFrame(), "First Name is require", "Dialog", + JOptionPane.ERROR_MESSAGE); + }else if("".equals(lName.getText())){ + + JOptionPane.showMessageDialog(new JFrame(), "Last Name is require", "Dialog", + JOptionPane.ERROR_MESSAGE); + }else if("^[a-zA-Z0-9-_]+[@]+[gmail]+[.]+[com]+$".equals(email.getText())){ + + JOptionPane.showMessageDialog(new JFrame(), "Email Adress is require", "Dialog", + JOptionPane.ERROR_MESSAGE); + } + else { + fN = fName.getText(); + lN = lName.getText(); + em = email.getText(); + query = "INSERT INTO user (first_name, last_name, email) " + + "VALUES ('"+fN+"','"+lN+"','"+em+"')"; + + st.executeUpdate(query); + fName.setText(""); + lName.setText(""); + email.setText(""); + showMessageDialog(null, "Successfully registered."); + loadData(); + con.close(); + } + }catch(Exception e){ + System.out.println("Error "+ e.getMessage()); + + } + + }//GEN-LAST:event_submitActionPerformed + + private void updateActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_updateActionPerformed + String ID; + int notFound = 0; + String fN, lN, em; + try { + Class.forName("com.mysql.cj.jdbc.Driver"); + + String url = "jdbc:MySQL://localhost:3306/java_users_db"; + String user = "root"; + String pass = ""; + + Connection con = DriverManager.getConnection(url, user, pass); + Statement st = con.createStatement(); + + ID = serachData.getText(); + if("".equals(ID)){ + JOptionPane.showMessageDialog(new JFrame(), "ID is require", "Dialog", + JOptionPane.ERROR_MESSAGE); + }else { + String sql = "SELECT * FROM user WHERE id="+ID; + ResultSet rs = st.executeQuery(sql); + while(rs.next()){ + notFound = 1; + fN = fName.getText(); + lN = lName.getText(); + em = email.getText(); + String sql2 = "UPDATE user SET first_name='"+fN+"', last_name='"+lN+"', email='"+em+"' WHERE id="+ID; + st.executeUpdate(sql2); + loadData(); + con.close(); + } + if(notFound == 0){ + JOptionPane.showMessageDialog(new JFrame(), "invalid ID", "Dialog", + JOptionPane.ERROR_MESSAGE); + } + } + }catch(Exception e){ + System.out.println("Error "+ e.getMessage()); + + } + }//GEN-LAST:event_updateActionPerformed + + private void searchBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_searchBtnActionPerformed + String ID; + int notFound = 0; + try { + Class.forName("com.mysql.cj.jdbc.Driver"); + + String url = "jdbc:MySQL://localhost:3306/java_users_db"; + String user = "root"; + String pass = ""; + + Connection con = DriverManager.getConnection(url, user, pass); + Statement st = con.createStatement(); + + ID = serachData.getText(); + if("".equals(ID)){ + JOptionPane.showMessageDialog(new JFrame(), "ID is require", "Dialog", + JOptionPane.ERROR_MESSAGE); + }else { + String sql = "SELECT * FROM user WHERE id="+ID; + ResultSet rs = st.executeQuery(sql); + while(rs.next()){ + fName.setText(rs.getString("first_name")); + lName.setText(rs.getString("last_name")); + email.setText(rs.getString("email")); + notFound = 1; + + con.close(); + } + if(notFound == 0){ + JOptionPane.showMessageDialog(new JFrame(), "invalid ID", "Dialog", + JOptionPane.ERROR_MESSAGE); + } + } + }catch(Exception e){ + System.out.println("Error "+ e.getMessage()); + + } + + + }//GEN-LAST:event_searchBtnActionPerformed + + private void deleteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_deleteActionPerformed + String ID; + int notFound = 0; + try { + Class.forName("com.mysql.cj.jdbc.Driver"); + + String url = "jdbc:MySQL://localhost:3306/java_users_db"; + String user = "root"; + String pass = ""; + + Connection con = DriverManager.getConnection(url, user, pass); + Statement st = con.createStatement(); + + ID = serachData.getText(); + if("".equals(ID)){ + JOptionPane.showMessageDialog(new JFrame(), "ID is require", "Dialog", + JOptionPane.ERROR_MESSAGE); + }else { + String sql = "SELECT * FROM user WHERE id="+ID; + ResultSet rs = st.executeQuery(sql); + while(rs.next()){ + notFound = 1; + String sql2 = "DELETE FROM user WHERE id="+ID; + st.executeUpdate(sql2); + loadData(); + con.close(); + } + if(notFound == 0){ + JOptionPane.showMessageDialog(new JFrame(), "invalid ID", "Dialog", + JOptionPane.ERROR_MESSAGE); + } + } + }catch(Exception e){ + System.out.println("Error "+ e.getMessage()); + + } + }//GEN-LAST:event_deleteActionPerformed + + private void serachDataActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_serachDataActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_serachDataActionPerformed + + private void ClearActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ClearActionPerformed + fName.setText(""); + lName.setText(""); + email.setText(""); + }//GEN-LAST:event_ClearActionPerformed + + /** + * @param args the command line arguments + */ + public static void main(String args[]) { + /* Set the Nimbus look and feel */ + //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> + /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. + * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html + */ + + try { + for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { + if ("Nimbus".equals(info.getName())) { + javax.swing.UIManager.setLookAndFeel(info.getClassName()); + break; + } + } + } catch (ClassNotFoundException ex) { + java.util.logging.Logger.getLogger(View.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (InstantiationException ex) { + java.util.logging.Logger.getLogger(View.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (IllegalAccessException ex) { + java.util.logging.Logger.getLogger(View.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } catch (javax.swing.UnsupportedLookAndFeelException ex) { + java.util.logging.Logger.getLogger(View.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); + } + //</editor-fold> + + /* Create and display the form */ + java.awt.EventQueue.invokeLater(new Runnable() { + public void run() { + + View x = new View(); + x.loadData(); + x.setLocationRelativeTo(null); + x.setVisible(true); + } + }); + } + + // Variables declaration - do not modify//GEN-BEGIN:variables + private javax.swing.JButton Clear; + private javax.swing.JTable Table; + private javax.swing.JButton delete; + private javax.swing.JTextField email; + private javax.swing.JTextField fName; + private javax.swing.JLabel jLabel2; + private javax.swing.JLabel jLabel3; + private javax.swing.JLabel jLabel4; + private javax.swing.JLabel jLabel5; + private javax.swing.JScrollPane jScrollPane1; + private javax.swing.JTextField lName; + private javax.swing.JButton searchBtn; + private javax.swing.JTextField serachData; + private javax.swing.JButton submit; + private javax.swing.JButton update; + // End of variables declaration//GEN-END:variables +} diff --git a/Wallet.aspx b/Wallet.aspx new file mode 100644 index 0000000..ed76855 --- /dev/null +++ b/Wallet.aspx @@ -0,0 +1,77 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Wallet.aspx.cs" Inherits="Wallet" %> + +<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> +</asp:Content> +<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> + + <br /><br /><br /> + + <div class="product-section section mt-30"> + + <div class="container"> + <div class="row text-center"> + <div class="col-sm-2"> + + <a href="myaccount.aspx"> + <div style="border:solid 2px #4267b2"> + <h4>Back</h4> + </div> + </a> + + </div> + + <div class="col-sm-4"> + + + + </div> + + <div class="col-sm-6"> + + + </div> + + <div class="col-sm-12"> + <h4 class="mb-4">Total Point : <asp:Label ID="lblpoint" runat="server" Text="Label"></asp:Label></h4> + <h4 class="mb-4">Wallet History List</h4> +<div class="card transaction-table mb-0"> +<div class="card-body"> +<div class="table-responsive"> +<table class="table table-center mb-0"> +<thead> +<tr> +<th>S.No</th> +<th>Date</th> +<th>Remark</th> + +</tr> + +</thead> + + <asp:ListView ID="ListView1" runat="server"> + <ItemTemplate> + + +<tbody> +<tr> + <td><%#Container.DataItemIndex+1%> </td> +<td><%# Eval("rts") %></td> +<td><%# Eval("Remark") %></td> + +</tr> + +</tbody> + </ItemTemplate> + </asp:ListView> + +</table> +</div> +</div> +</div> + + </div> + </div> + </div> + </div> +</asp:Content> + diff --git a/Wallet.aspx.cs b/Wallet.aspx.cs new file mode 100644 index 0000000..c5f90b7 --- /dev/null +++ b/Wallet.aspx.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +public partial class Wallet : System.Web.UI.Page +{ + ClsConnection Cnn = new ClsConnection(); + protected void Page_Load(object sender, EventArgs e) + { + if (Session["UserId"] == null) + { + Response.Redirect("login.aspx"); + + } + list(); + } + public void list() + { + Cnn.Open(); + DataTable Dt = Cnn.FillTable("select * from referlist where mid=" + Session["UserId"] + " order by [id] desc ", "the"); + ListView1.DataSource = Dt; + ListView1.DataBind(); + lblpoint.Text = Cnn.ExecuteScalar("select Wallet from register where UserId=" + Session["UserId"] + "").ToString(); + Cnn.Close(); + + } +} \ No newline at end of file diff --git a/affiliateprogram.jpg b/affiliateprogram.jpg new file mode 100644 index 0000000..8a44137 Binary files /dev/null and b/affiliateprogram.jpg differ diff --git a/appointment.aspx b/appointment.aspx new file mode 100644 index 0000000..3084c15 --- /dev/null +++ b/appointment.aspx @@ -0,0 +1,86 @@ +<%@ Page Title="Appointment - mfpower.in " Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="appointment.aspx.cs" Inherits="appointment" %> + +<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> +</asp:Content> +<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> + <!-- Start Page Title Area --> + <div class="page-title-area bg-10" style="background-image:url('assets/images/bg_hd.jpg');background-size:cover"> + <div class="container"> + <div class="page-title-content"> + <h2> +Appointment +</h2> + + <ul> + + <li> + <a href="Index.aspx"> + Home + </a> + </li> + + + + <li class="active"> +Appointment +</li> + </ul> + </div> + </div> + </div> + <!-- End Page Title Area --> + + <!-- Start Appointment Area --> + <section class="appointment-area appointment-area-style-three ptb-100"> + <div class="container"> + <div class="appointment-action"> + <h2>Make An Appointment</h2> + <asp:UpdatePanel ID="UpdatePanel1" runat="server"> + <ContentTemplate> + <form> + <div class="row"> + <div class="col-lg-6"> + <div class="form-group"> + <asp:TextBox ID="txtname" runat="server" placeholder="Your Name" required="required" class="form-control" ></asp:TextBox> + + </div> + </div> + + <div class="col-lg-6"> + <div class="form-group"> + <asp:TextBox ID="txtmobile" runat="server" placeholder="Your Mobile Number" class="form-control" required="required"></asp:TextBox> + </div> + </div> + + + + + + <div class="col-12"> + <div class="form-group"> + <asp:TextBox ID="txtsubj" runat="server" placeholder="Your Subject" class="form-control" required="required"></asp:TextBox> + + </div> + </div> + + <div class="col-12"> + <div class="form-group"> + <asp:TextBox ID="txtmessage" runat="server" placeholder="Your Message.." class="form-control" TextMode="MultiLine" Rows="3" required="required"></asp:TextBox> + </div> + </div> + + <div class="col-12"> + <asp:Button ID="Button1" runat="server" Text="submit" class="default-btn" OnClick="Button1_Click"/> + <br /> + <asp:Label ID="lblerror" runat="server" ForeColor="Red"></asp:Label> + + </div> + </div> + </form> + </ContentTemplate> + </asp:UpdatePanel> + </div> + </div> + </section> +</asp:Content> + diff --git a/appointment.aspx.cs b/appointment.aspx.cs new file mode 100644 index 0000000..eedb6fa --- /dev/null +++ b/appointment.aspx.cs @@ -0,0 +1,56 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +public partial class appointment : System.Web.UI.Page +{ + ClsConnection Cnn = new ClsConnection(); + protected void Page_Load(object sender, EventArgs e) + { + + if (Session["UserId"] != null) + { + UserDetailes(); + } + } + + public void UserDetailes() + { + try + { + DataSet ds = new DataSet(); + Cnn.Open(); + Cnn.FillDataSet(ds, "select a.* from register as a where a.userid='" + Session["UserId"] + "'", "Admin_Login"); + Cnn.Close(); + txtname.Text = ds.Tables[0].Rows[0]["name"].ToString(); + + txtmobile.Text = ds.Tables[0].Rows[0]["MobileNumber"].ToString(); + + + } + catch (Exception ex) + { + throw ex; + } + } + protected void Button1_Click(object sender, EventArgs e) + { + Cnn.Open(); + int ID = Convert.ToInt32(Cnn.ExecuteScalar("Select IsNull(Max(id)+1,1) From [BookConsult]")); + Cnn.ExecuteNonQuery("INSERT INTO BookConsult (id,name,mobile,subject,message,rts,did) values ('" + ID + "','" + txtname.Text + "','" + txtmobile.Text + "','" + txtsubj.Text + "','" + txtmessage.Text + "',getdate(),'')"); + Cnn.Close(); + + txtmessage.Text = ""; + txtname.Text = ""; + txtmobile.Text = ""; + txtsubj.Text = ""; + lblerror.Text = "Thanks for Enquiry.. Admin Contact Soon..."; + + txtmessage.Focus(); + lblerror.Focus(); + } +} \ No newline at end of file diff --git a/bg.jpg b/bg.jpg new file mode 100644 index 0000000..4d17a60 Binary files /dev/null and b/bg.jpg differ diff --git a/blogview.aspx b/blogview.aspx new file mode 100644 index 0000000..46cc405 --- /dev/null +++ b/blogview.aspx @@ -0,0 +1,81 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="blogview.aspx.cs" Inherits="blogview" %> + +<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server"> +</asp:Content> +<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server"> + <div class="page-title-area bg-10" style="background-image: url('assets/images/bg_hd.jpg'); background-size: cover"> + <div class="container"> + <div class="page-title-content"> + <h2><%=heading %></h2> + + <ul> + + <li> + <a href="Index.aspx">Home + </a> + </li> + + + + <li class="active"><%=heading %></li> + </ul> + </div> + </div> + </div> + <section class="news-details ptb-100"> + <div class="container"> + <div class="row"> + <div class="col-lg-1"></div> + <div class="col-lg-10"> + <asp:ListView ID="lsrblog" runat="server"> + <ItemTemplate> + <div class="news-details-content"> + <div class="news-details-img"> + <img src="img/blog/<%# Eval("image") %>" alt="<%# Eval("heading") %>" style="border:solid 2px #d5d5d5;padding:5px"> + </div> + + <div class="news-top-content"> + <div class="news-content"> + <ul class="admin"> + <li> + <a href="#"> + <i class="bx bxs-user"></i> + Admin + </a> + </li> + + <li> + <i class="bx bx-calendar"></i> + <%# Eval("date") %> + </li> + + + </ul> + + <h3><%# Eval("heading") %></h3> + + <p> <%# Eval("description") %></p> + + + </div> + + + + + </div> + + + + + </div> + </ItemTemplate> + </asp:ListView> + </div> + + <div class="col-lg-1"> + </div> + </div> + </div> + </section> +</asp:Content> + diff --git a/blogview.aspx.cs b/blogview.aspx.cs new file mode 100644 index 0000000..f0fe2ed --- /dev/null +++ b/blogview.aspx.cs @@ -0,0 +1,37 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +public partial class blogview : System.Web.UI.Page +{ + ClsConnection Cnn = new ClsConnection(); + public enum MessageType { Success, Error, Info, Warning }; + public static string heading; + protected void Page_Load(object sender, EventArgs e) + { + + if (Request.QueryString["id"] == null) + { + + Response.Redirect("blog.aspx"); + } + if (!IsPostBack) + { + list(); + } + } + + public void list() + { + + DataTable dtlsrblog = Cnn.FillTable("select category,title AS heading,image,convert(varchar, entrydate, 106) as date,id,description from [blog_detail] where id=" + Request.QueryString["id"] + " order by newid()", "Detail"); + lsrblog.DataSource = dtlsrblog; + lsrblog.DataBind(); + Page.Title = dtlsrblog.Rows[0]["heading"].ToString() + "- mfpower.in"; + heading = dtlsrblog.Rows[0]["heading"].ToString(); + } +} \ No newline at end of file diff --git a/cancelorder.aspx b/cancelorder.aspx new file mode 100644 index 0000000..f478545 --- /dev/null +++ b/cancelorder.aspx @@ -0,0 +1,483 @@ +<%@ Page Title="Cancel Order - mfpower.in " Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="cancelorder.aspx.cs" Inherits="cancelorder" %> + +<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server"> + <style> + table#t01 tr:nth-child(even) { + background-color: #eee; + } + + table#t01 tr:nth-child(odd) { + background-color: #fff; + } + + table#t01 th { + background-color: #FF5252; + color: white; + padding: 6px; + } + </style> +</asp:Content> +<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server"> + <div class="page-title-area bg-10" style="background-image:url('assets/images/bg_hd.jpg');background-size:cover"> + <div class="container"> + <div class="page-title-content"> + <h2> +Cancel Order +</h2> + + <ul> + + <li> + <a href="Index.aspx"> + Home + </a> + </li> + + + + <li class="active"> +Cancel Order +</li> + </ul> + </div> + </div> + </div> + + <br /><br /> + <div class="mian-contain"> + <div class="container"> + + <!-- CONTAIN START ptb-95--> + <section class="checkout-section ptb-95 ptb-sm-60 ptb-xs-30"> + <div class="row"> + <div class="col-md-2 col-sm-4"> + + </div> + <div class="col-md-10 col-sm-8"> + + <div id="data-step3" class="account-content" data-temp="tabdata"> + <div id="form-print" class="admission-form-wrapper"> + <div class="row"> + <div class="col-xs-8 col-lg-8"> + <div class="heading-part heading-bg mb-30"> + <h2 class="heading m-0"><i class="fa fa-clock-o" aria-hidden="true"></i>Cancel Orders</h2> + </div> + </div> + + <div class="col-xs-4 col-lg-4"> + <a href="myaccount.aspx" class="theme-btn-1 btn btn-effect-1" style="border:solid 2px #17a9fc;margin-top:5px">Back</a> + </div> + </div> + <div class="row"> + <div class="col-xs-12 mb-xs-30"> + <div class="cart-item-table commun-table"> + <div class="table-responsive" style="width: 100%"> + <table class="table"> + <thead> + <tr> + <th>Order No. </th> + <th>Order Date </th> + <th>Order Amount</th> + <th>Delivery Charges</th> + <th></th> + </tr> + </thead> + <tbody> + <asp:ListView ID="Lstorder" runat="server" OnItemCommand="Lstorder_ItemCommand"> + <ItemTemplate> + <tr> + <td> + <asp:Label ID="LblOrderId" runat="server" Text='<%#Eval("OrderId") %>'></asp:Label> + + </td> + <td> + <%#Eval("RTS")%> + </td> + <td> + <i class="fa fa-inr"></i><%#Eval("PaidAmount")%> + </td> + <td> + <i class="fa fa-inr"></i><%#Eval("DeliveryFees")%> + </td> + + <td> + <asp:LinkButton ID="LnkViews" runat="server" Font-Bold="true" CommandName="View">Order Detail</asp:LinkButton> + </td> + <%-- <td> + <asp:LinkButton ID="LinkButton1" runat="server" Font-Bold="true" CommandName="cen" Style="color:red">Cancel</asp:LinkButton> + </td>--%> + </tr> + </ItemTemplate> + </asp:ListView> + + + </tbody> + </table> + </div> + </div> + </div> + </div> + </div> + + </div> + + + <a id="bottom"></a> + + <asp:Panel ID="pnlOrderInfo" runat="server" Visible="false"> + <asp:Button ID="BtnClose" Text="Close" runat="server" OnClick="BtnClose_Click" Style="float: right" class="btn btn-danger" /> + + <div style="width: 840px; padding-top: 20px; padding-bottom: 20px;"> + <div id="divPrint" runat="server"> + <div style="width: 100%; padding-bottom: 10px; background-color: #f1f0f0; padding: 20px 0px; border: 1px solid #d6d6d6;"> + <div style="width: 850px; text-align: center;"> + <b style="color: #000; font-family: Tahoma; font-size: 18px; font-weight: normal; letter-spacing: 1px">Order Information</b> + </div> + <div id="tdPrint" runat="server" style="width: 180px; text-align: right; margin-left: 600px; margin-top: -35px;"> + <asp:ImageButton ID="Imgbtn" ImageUrl="~/Images/print.png" runat="server" OnClick="Imgbtn_Click" /> + </div> + </div> + <div style="width: 100%; padding-bottom: 10px; border-bottom: 1px solid #d6d6d6; border-left: 1px solid #d6d6d6; border-right: 1px solid #d6d6d6;"> + <table cellpadding="0" cellspacing="0" style="width: 100%; padding-top: 20px;"> + <tr> + <td colspan="2" align="left" style="padding-bottom: 8px; border-bottom: 1px solid #e8e5e5; background-color: #f1f0f0;"> + <span style="font-size: 16px; color: #961515; font-weight: bold; padding-left: 5px;">Order Form</span> + </td> + </tr> + <tr> + <td style="width: 500px; padding-top: 0px; background-color: #ffffff; border: 1px solid #e8e5e5; border-bottom: none; border-top: 1px solid #e8e5e5;" valign="top"> + + <asp:ListView ID="LstCategory" runat="server" OnItemUpdating="LstCategory_ItemUpdating" OnItemCommand="LstCategory_ItemCommand"> + <LayoutTemplate> + <asp:PlaceHolder ID="itemPlaceholder" runat="server"></asp:PlaceHolder> + </LayoutTemplate> + <ItemTemplate> + <asp:Label ID="LblUserCode" runat="server" Visible="false" Text='<%#Eval("OrderId") %>'></asp:Label> + <tr> + <td style="width: 300px; padding-top: 0px; background-color: #ffffff; border: 1px solid #e8e5e5; border-bottom: none; border-top: 1px solid #e8e5e5;" valign="top"> + <table width="300px" cellpadding="0" cellspacing="0" border="0"> + <tr> + <td style="width: 70px; padding: 3px"> + <b>Name:</b> + </td> + <td style="width: 200px; padding: 3px" colspan="2"> + <asp:Label ID="LblName" runat="server" Text='<%# Eval("ShippingName") %>'></asp:Label> + </td> + + </tr> + <tr> + <td style="padding: 3px" valign="top"> + <b>Address:</b> + </td> + <td style="padding: 3px" colspan="2" valign="top"> + <asp:Label ID="LblAddress" runat="server" Text='<%# Eval("ShippingAddress") %>'></asp:Label> + </td> + + </tr> + <tr> + <td style="width: 70px; padding: 3px" valign="top"> + <b>City:</b> + </td> + <td style="width: 200px; padding: 3px" colspan="2"> + <asp:Label ID="Lblcity" runat="server" Text='<%# Eval("ShippingCity") %>'></asp:Label> + <asp:Label ID="Label5" runat="server" Text='<%# "-" + Eval("ShippingZipCode") %>'></asp:Label> + <asp:Label ID="Label4" runat="server" Text='<%# "(" + Eval("ShippingStats") + ")" %>'></asp:Label> + </td> + + </tr> + <tr> + <td style="padding: 3px"> + <b>Contact No:</b> + </td> + <td style="padding: 3px" colspan="2"> + <asp:Label ID="Label12" runat="server" Text='<%# Eval("ShippingMobileNo") %>'></asp:Label> + + </td> + + </tr> + <tr> + <td valign="top" style="padding: 3px"> + <b>Email Id:</b> + </td> + <td valign="top" style="padding: 3px" colspan="2"> + <asp:Label ID="Label10" Font-Size="12px" runat="server" Text='<%# Eval("ShippingEmailId")%>'></asp:Label> + </td> + </tr> + + <tr> + <td valign="top" style="padding: 3px"></td> + <td valign="top" style="padding: 3px" colspan="2"></td> + </tr> + <tr> + <td align="left" colspan="6" style="padding: 3px; height: 60px;" valign="top"></td> + </tr> + </table> + <table width="200px" cellpadding="0" cellspacing="0" border="0" style="margin-left: 576px; margin-top: -194px; padding-top: 9px;"> + <tr> + <td style="width: 100px; padding: 3px; text-align: right;" valign="top"></td> + <td style="width: 120px; padding: 3px" valign="top"></td> + </tr> + <tr> + <td style="padding: 3px; text-align: right;"></td> + <td style="padding: 3px;"></td> + </tr> + <tr> + <td style="width: 100px; padding: 3px; text-align: right;" valign="top"> + <b>Order No:</b> + </td> + <td style="width: 120px; padding: 3px" valign="top"> + <asp:Label ID="LblOrderNo" runat="server" Text='<%# Eval("DisInvoiceNo") %>'></asp:Label> + </td> + </tr> + <tr> + <td style="padding: 3px; text-align: right;"> + <b>Date:</b> + </td> + <td style="padding: 3px"> + <asp:Label ID="LblOrderDate" runat="server" Text='<%# Eval("ShippingDate") %>'></asp:Label> + </td> + </tr> + + <tr> + <td style="width: 100px; padding: 3px; text-align: right;" valign="top"> + <b>PayMode:</b> + </td> + <td style="width: 120px; padding: 3px" valign="top"> + <asp:Label ID="Label16" runat="server" Text='<%# Eval("Paymode") %>'></asp:Label> + </td> + </tr> + <tr> + <td style="padding-left: 110px;" colspan="2" rowspan="8"> + <span style="color: Gray; font-family: Arial; font-size: 12px; font-weight: normal; padding-bottom: 5px;">Enjoy Online Shopping on...</span><br /> + <%-- <a style="text-decoration: none" href="http://digitalmobiz.com" target="_blank"> + <img src="img/logo/logo.jpg" width="152" height="100" /> + </a>--%> + </td> + </tr> + </table> + </td> + </tr> + </ItemTemplate> + </asp:ListView> + </td> + </tr> + <tr> + <td style="width: 850px; padding-top: 0px;" valign="top"> + <table cellpadding="0" cellspacing="0" width="100%" border="0" style="border: 1px solid #e2e2e2; border-collapse: collapse;"> + <asp:ListView ID="LstConferm" runat="server" OnItemCommand="LstConferm_ItemCommand" OnItemEditing="LstConferm_ItemEditing"> + <LayoutTemplate> + <tr style="height: 35px; background-color: #DFDFDF; color: #000000;" align="center"> + <td style="text-align: center; width: 10px;"> <b>SNo.</b> + </td> + <td align="center" style="width: 40px;"></td> + <td style="text-align: left; width: 150px; padding-left: 5px; font-weight: bolder; font-family: sans-serif;"> + <b>Particulars</b> + </td> + <td></td> + <td style="width: 85px; font-weight: bolder; font-family: sans-serif; text-align: right;"> + <b>Amount</b> + </td> + <td style="width: 85px; font-weight: bolder; font-family: sans-serif; text-align: right;"> + <b>Discount</b> + </td> + <td style="width: 105px; font-weight: bolder; font-family: sans-serif; text-align: right;"> + <b>NetAmount</b> + </td> + </tr> + <asp:PlaceHolder ID="itemPlaceHolder" runat="server"></asp:PlaceHolder> + </LayoutTemplate> + <ItemTemplate> + <asp:Label ID="lblorderid" runat="server" Visible="false" Text='<%# Eval("OrderId") %>'></asp:Label> + <asp:Label ID="LblProductId" runat="server" Visible="false" Text=' <%# Eval("ProductId")%>'></asp:Label> + + + + <asp:HiddenField ID="HdnAmount" runat="server" Value='<%# Eval("Rate") %>' /> + <asp:HiddenField ID="HdnDiscount" runat="server" Value='<%# Eval("Discount") %>' /> + <asp:HiddenField ID="HdnQuantity" runat="server" Value='<%# Eval("Quantity") %>' /> + <asp:HiddenField ID="Hdnweight" runat="server" Value='<%# Eval("Weight") %>' /> + + <asp:Label ID="LblUnit" runat="server" Visible="false" Text='<%# Eval("Unit") %>'></asp:Label> + + + + + <tr style="background-color: white; color: #535353; border-bottom: 1px solid #e2e2e2;" align="center" valign="top" class="spaceUnder"> + + <td class="LstMyCart_td"> + <%#Container.DataItemIndex+1 %> + </td> + <td class="LstMyCart_td"> + <img width="75" height="110" src="img/product/<%# ((Convert.ToString(Eval("Image")).Length>0)?Eval("Image"):"noimage.jpg") %>" width="27px" height="40px" /> + </td> + <td style="text-align: left;" valign="top" class="LstMyCart_td"> + <asp:Label ID="Label4" runat="server" CssClass="pdCode1" ForeColor="#000" Text="Product Name:"></asp:Label> + <asp:Label runat="server" ID="Label1" Font-Size="11px" Text='<%# Eval("ProductName") %>'></asp:Label> + <br /> + <asp:Label ID="Label5" runat="server" CssClass="pdCode1" ForeColor="#000" Text="Brand Name:"></asp:Label> + <asp:Label runat="server" ID="Label6" Font-Size="11px" Text=''></asp:Label> + <br /> + <asp:Label ID="Label9" runat="server" CssClass="pdCode1" ForeColor="#000" Text="Store Name:"></asp:Label> + + + + <div class="pdCode" style="font-size: 11px; padding-left: 10px;"> + Price: +  <asp:Label ID="LblRate" runat="server" Text='<%# Eval("Rate") %>'></asp:Label> + </div> + <br /> + + <asp:LinkButton ID="lktreturn" runat="server" CommandName="Return" Visible="false" ForeColor="Red">Return</asp:LinkButton> + <asp:LinkButton ID="lktcancel" runat="server" CommandName="Cancel" Visible="false" ForeColor="Red">Cancel</asp:LinkButton> + + + </td> + <td width="180px"> + <table cellpadding="0" cellspacing="0" class="rounded-corners" style="padding-top: -7px;"> + + <tr> + <td> + <table style="width: 180px;"> + <tr> + <td style="text-align: left; padding-top: 2px; width: 150px;"> + <%-- <span style="color: #004A79; font-size: 12px;">Actual Unit: </span> + <asp:Label ID="lblWeightActual" runat="server" Text='<%# Eval("Weight") %>'></asp:Label> + <asp:Label ID="lblUnitActual" runat="server" Text='<%# Eval("Unit") %>'></asp:Label>--%> + </td> + </tr> + </table> + </td> + + </tr> + <tr> + <td> + <table> + <tr> + <td style="text-align: left; padding-top: 2px; width: 150px; padding-left: 10px;"> + <span style="color: #004A79; font-size: 12px; padding-left: 5px;">Quantity: </span> +  <asp:Label ID="Label10" runat="server" Text='<%# Eval("Quantity") %>'></asp:Label> + </td> + + </tr> + </table> + </td> + </tr> + <tr> + <td> + <table> + + </table> + </td> + </tr> + <tr> + <td> + <table> + + </table> + </td> + </tr> + </table> + </td> + + <td class="LstMyCart_td" style="text-align: right; padding-right: 20px;"> + <asp:Label runat="server" ID="LblAmount" Text='<%# Eval("Amount") %>'></asp:Label> + </td> + <td class="LstMyCart_td" style="text-align: right; padding-right: 20px;"> + <asp:Label runat="server" ID="lblDiscount" Text='<%# Eval("Discount") %>'></asp:Label> + </td> + <td class="LstMyCart_td" style="text-align: right; padding-right: 20px;"> + <asp:Label runat="server" ID="lblNetAmount" Text='<%# Eval("NetAmount") %>'></asp:Label> + </td> + <td id="Td1" visible="false" runat="server"> + <asp:LinkButton ID="LkBtnEdit" runat="server" CommandName="Edit">Edit</asp:LinkButton> + </td> + </tr> + </ItemTemplate> + </asp:ListView> + </table> + </td> + </tr> + <tr> + <td colspan="12" align="right" style="border: solid 1px #c8c5c5; border-top: none; background-color: #eeeded;"> + <table width="100%" cellpadding="0" cellspacing="0" border="0"> + <tr style="height: 30px;"> + <td style="width: 514px; border-right: 1px solid #c8c5c5; text-align: right;"> + <b>Total Amount (in Rs.)</b>  + </td> + <td style="width: 58.5px; text-align: right; padding: 4px 16px 4px 8px;"> + <asp:Label ID="lblAmt" runat="server"></asp:Label> + </td> + </tr> + </table> + </td> + </tr> + <tr runat="server" id="walletdiv"> + <td colspan="12" align="right" style="border: solid 1px #c8c5c5; border-top: none; background-color: #eeeded;"> + <table width="100%" cellpadding="0" cellspacing="0" border="0"> + <tr style="height: 30px;"> + <td style="width: 514px; border-right: 1px solid #c8c5c5; text-align: right;"> + <b>Wallet Amount (-) </b>  + </td> + <td style="width: 58.5px; text-align: right; padding: 4px 16px 4px 8px;"> + <asp:Label ID="lblwalletamount" runat="server"></asp:Label> + </td> + </tr> + </table> + </td> + </tr> + <tr> + <td colspan="12" align="right" style="border: solid 1px #c8c5c5; border-top: none; background-color: #eeeded;"> + <table width="100%" cellpadding="0" cellspacing="0" border="0"> + <tr style="height: 30px;"> + <td style="width: 514px; border-right: 1px solid #c8c5c5; text-align: right;"> + <b>Delivery Charges (in Rs.)</b>  + </td> + <td style="width: 58.5px; text-align: right; padding: 4px 16px 4px 8px;"> + <asp:Label ID="LblDeliveryCharges" runat="server"></asp:Label> + </td> + </tr> + </table> + </td> + </tr> + <tr> + <td colspan="12" align="right" style="border: solid 1px #c8c5c5; border-top: none; background-color: #eeeded;"> + <table width="100%" cellpadding="0" cellspacing="0" border="0"> + <tr style="height: 30px;"> + <td style="width: 514px; border-right: 1px solid #c8c5c5; text-align: right;"> + <b>Net Amount (in Rs.)</b>  + </td> + <td style="width: 58.5px; text-align: right; padding: 4px 16px 4px 8px;"> + <asp:Label ID="LblNetAmount" runat="server"></asp:Label> + </td> + </tr> + </table> + </td> + </tr> + </table> + </div> + </div> + <%-- <asp:SqlDataSource ID="SrcCart" runat="server" ConnectionString="<%$ ConnectionStrings:ConString%>" + SelectCommand="set dateformat DMY;select CartId,UserCode,ProductId,ProductName,type,Unit,Quantity,Rate,Amount,Image,Weight,CategoryName,Discount,DiscountActual,NetAmount,QuantityActual,UnitActual,SchemeOffer from [Store].[Order_CartDetail] where OrderId=@OrderId" + UpdateCommand=" "> + <SelectParameters> + <asp:QueryStringParameter Name="OrderId" QueryStringField="OrderId" Type="Int32" /> + </SelectParameters> + </asp:SqlDataSource> + <asp:SqlDataSource ID="SrcUser" runat="server" ConnectionString="<%$ ConnectionStrings:ConString%>" + SelectCommand="set dateformat DMY; Select OrderId,'ShippingDate'=CONVERT(varchar(10),ShippingDate,103),right(convert(char(20),ShippingTime,0),7) as ShippingTime,'DeliveredDate'=CONVERT(varchar(10),DeliveredDate,103),right(convert(char(20),DeliveredTime,0),7) as DeliveredTime,UserCode,ShippingName,ShippingAddress,ShippingCountry,ShippingState,ShippingDistrict,ShippingCity,ShippingZipCode,ShippingPhoneNumber,ShippingMobileNumber,ShippingEmailId,ShippingDescription from [Store].[Order_OrderDetail] where OrderId=@OrderId" UpdateCommand=" "> + <SelectParameters> + <asp:QueryStringParameter Name="OrderId" QueryStringField="OrderId" Type="Int32" /> + </SelectParameters> + </asp:SqlDataSource>--%> + </div> + + + </asp:Panel> + </div> + </div> + </section> + <!-- CONTAINER END --> + </div> + </div> +</asp:Content> + diff --git a/cancelorder.aspx.cs b/cancelorder.aspx.cs new file mode 100644 index 0000000..53d4a7d --- /dev/null +++ b/cancelorder.aspx.cs @@ -0,0 +1,159 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Data; +using System.Net; +using System.Web.Script.Serialization; +using System.Text; + +public partial class cancelorder : System.Web.UI.Page +{ + ClsConnection Cnn = new ClsConnection(); + BaseUrl api = new BaseUrl(); + API api1 = new API(); + string usercode; + string user; + public static string OldPass; + + + protected void Page_Load(object sender, EventArgs e) + { + try + { + if (Session["UserId"] == null) + { + Response.Redirect("login.aspx"); + } + else + { + + + if (!IsPostBack) + { + Cnn.Open(); + DataTable DTT = Cnn.FillTable("select OrderId,PaidAmount,DeliveryFees, convert(varchar, RTS, 6) as RTS from trnordermain where UserCode='" + Session["UserId"] + "' and Cancelled =1 order by orderid desc", "the"); + Lstorder.DataSource = DTT; + Lstorder.DataBind(); + Cnn.Close(); + } + // + + + + + + + + } + } + catch (Exception ex) + { + throw ex; + } + + + + } + + + + + + + + protected void Lstorder_ItemCommand(object sender, ListViewCommandEventArgs e) + { + if (e.CommandName == "View") + { + + divPrint.Visible = true; + pnlOrderInfo.Visible = true; + + string OrderId = ((Label)e.Item.FindControl("lblOrderId")).Text; + Cnn.Open(); + DataRow dr = Cnn.FillRow("Select DeliveryFees,Amount,PaidAmount,WalletAmount From TrnOrderMain where OrderId=" + OrderId + ""); + Cnn.Close(); + + lblAmt.Text = Convert.ToString(dr["Amount"]); + LblDeliveryCharges.Text = Convert.ToString(dr["DeliveryFees"]); + LblNetAmount.Text = Convert.ToString(dr["PaidAmount"])+"/-"; + lblwalletamount.Text = Convert.ToString(dr["WalletAmount"]); + if (Convert.ToInt32(lblwalletamount.Text) > 0) + { + walletdiv.Visible = true; + } + else + { + walletdiv.Visible = false; + } + Label LblInvoiceNo = e.Item.FindControl("LblInvoiceNo") as Label; + DataTable dt = Cnn.FillTable("Select a.DisInvoiceNo,a.OrderId,a.ProductId,b.ProductName,b.Image as Image,a.Unit,a.weight,a.Quantity,a.Rate,a.Amount,a.Discount,a.NetAmount from TrnOrderDetail as a Inner Join Product as b on a.ProductId=b.ProductId where Orderid='" + OrderId + "'", "Detail"); + + LstConferm.DataSource = dt; + LstConferm.DataBind(); + + + + DataTable dtable = Cnn.FillTable("Select OrderId,'" + OrderId + "' as DisInvoiceNo,ShippingName,ShippingAddress,ShippingMobileNo,ShippingEmailId,ShippingCity,ShippingZipcode,ShippingStats,Convert(varchar,RTS,103) as ShippingDate,PayMode,Convert(varchar,DeliveryDate,103) as DeliveredDate From TrnOrderMain where Orderid='" + OrderId + "'", "Detail"); + LstCategory.DataSource = dtable; + LstCategory.DataBind(); + + + Page.ClientScript.RegisterStartupScript(this.GetType(), "alert", "window.location.href = '#bottom'", true); + } + if (e.CommandName == "cen") + { + string OrderId = ((Label)e.Item.FindControl("lblOrderId")).Text; + Cnn.Open(); + Cnn.ExecuteNonQuery("update TrnOrderMain set Cancelled=1 where OrderId=" + OrderId + ""); + Cnn.ExecuteNonQuery("update TrnOrderDetail set Cancelled=1 where OrderId=" + OrderId + ""); + Cnn.Close(); + Page.ClientScript.RegisterStartupScript(this.GetType(), "alert", "window.location.href = '#bottom'", true); + } + + } + + protected void BtnClose_Click(object sender, EventArgs e) + { + + pnlOrderInfo.Visible = false; + } + protected void Imgbtn_Click(object sender, ImageClickEventArgs e) + { + // tdstoreprint.Visible = false; + Imgbtn.Visible = false; + Session["AdminPrint"] = divPrint; + Response.Redirect("../../print.aspx"); + } + protected void LstCategory_ItemUpdating(object sender, ListViewUpdateEventArgs e) + { + + } + protected void LstCategory_ItemCommand(object sender, ListViewCommandEventArgs e) + { + + } + protected void LstConferm_ItemCommand(object sender, ListViewCommandEventArgs e) + + { + //if (e.CommandName == "Cancel") + //{ + // int OrderId = Convert.ToInt32(((Label)e.Item.FindControl("lblorderid")).Text); + // int LblProductId = Convert.ToInt32(((Label)e.Item.FindControl("LblProductId")).Text); + // int lblaid = Convert.ToInt32(((Label)e.Item.FindControl("lblaid")).Text); + // orderstatus Obj = new orderstatus(); + // Obj.OrderId = OrderId; Obj.AID = lblaid; Obj.ProductId = LblProductId; Obj.RequestReason = "galat saman"; Obj.Cancelled = true; Obj.Delivered = false; Obj.Dispatched = false; Obj.Returned = false; + // api1.PostData("/Order/OrderSettlementStatusEdit", Obj); + // //LstConferm.DataBind(); + // Response.Redirect("MyOrder.aspx"); + //} + } + protected void LstConferm_ItemEditing(object sender, ListViewEditEventArgs e) + { + + } + +} \ No newline at end of file diff --git a/cart.aspx b/cart.aspx new file mode 100644 index 0000000..8af2293 --- /dev/null +++ b/cart.aspx @@ -0,0 +1,128 @@ +<%@ Page Title="My Cart - mfpower.in" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="cart.aspx.cs" Inherits="cart" %> + +<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> +</asp:Content> +<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> + <div class="page-title-area bg-10" style="background-image:url('assets/images/bg_hd.jpg');background-size:cover"> + <div class="container"> + <div class="page-title-content"> + <h2> +Cart +</h2> + + <ul> + + <li> + <a href="Index.aspx"> + Home + </a> + </li> + + + + <li class="active"> +Cart +</li> + </ul> + </div> + </div> + </div> + <section class="shopping-cart-area ptb-100"> + <div class="container" runat="server" id="nodata"> + <div class="row" style="border:dashed 2px #ffcc29"> + <br /> <p style="font-size:25px;text-align:center;"><br />No Product in Cart List</p> + <div class="col-lg-3" ></div> + + + <div class="col-lg-6" style="text-align:center !important"> <br /> + <a href="index.aspx" class="thm-btn bgclr-1" style="" >Explore Product</a> + + <br /> + </div> + <div class="col-lg-3"></div> + </div><br /> + </div> + <div class="container-fluid" runat="server" id="data"> + <div class="cart-controller"> + <div class="cart-table table-responsive"> + <table class="table table-bordered"> + <thead> + <tr> + <th scope="col">Images</th> + <th scope="col" >Product Name</th> + <th scope="col">Price</th> + <th scope="col" >Discount</th> + + <th scope="col">Subtotal</th> + <th scope="col">Remove</th> + + </tr> + </thead> + + <tbody> + <asp:ListView ID="lstwishlist" runat="server"> + <ItemTemplate> + <tr><asp:Label ID="productid" runat="server" Visible="false" Text='<%# Eval("productid") %>'></asp:Label> + <asp:Label ID="lblquantity" runat="server" Visible="false" Text='<%# Eval("quantity") %>'></asp:Label> + <tr> + + + <td class="product-thumbnail"> + <a href="product-details.html"> + <img src="img/product/<%# Eval("image") %>" alt="mfpower.in" style="height:60px"> + </a> + </td> + + <td class="product-name"> + <a href="#"><%# Eval("productname") %> <br /> ( <%# Eval("Quantity") %> Qty)</a> + </td> + + <td class="product-price"> + <span class="unit-amount">₹<asp:Label ID="lblprice" runat="server" Text='<%# Eval("Price") %>'></asp:Label>/-</span> + </td> + <td class="product-price"> + ₹<asp:Label ID="lbdiscount" runat="server" Text='<%# Eval("discount") %>'></asp:Label> + </td> + <td class="product-subtotal"> + <span class="subtotal-amount"> ₹<asp:Label ID="LblTotalAmoun111t" runat="server" Text='<%# Eval("totalamount") %>'></asp:Label>/-</span> + </td> + <td class="trash"> + <asp:LinkButton ID="LinkButton1" runat="server" style="color:black" OnClick="LinkButton1_Click" CommandArgument='<%# Eval("id") %>'> <i class="bx bx-trash"></i></asp:LinkButton> + + </td> + </tr> + + + </ItemTemplate> +</asp:ListView> + + + + + </tbody> + </table> + </div> + + + </div> + + <div class="col-lg-12"></div> + <div class="cart-totals col-lg-4"> + <h3 class="cart-checkout-title">Checkout Summary</h3> + + <ul> + + <li>Total <span>₹<%=Realprice %>/-</span></li> + + </ul> + + <a href="shipingaddress.aspx" class="default-btn"> + <span>Proceed to checkout</span> + </a> + </div> + </div> + </section> + + +</asp:Content> + diff --git a/cart.aspx.cs b/cart.aspx.cs new file mode 100644 index 0000000..5b174c0 --- /dev/null +++ b/cart.aspx.cs @@ -0,0 +1,106 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +public partial class cart : System.Web.UI.Page +{ + public static int TotAmt = 0, Realprice = 0, totaldis = 0, count = 0; + ClsConnection Cnn = new ClsConnection(); + public enum MessageType { Success, Error, Info, Warning }; + string filename; + protected void Page_Load(object sender, EventArgs e) + { + list(); + } + + public void list() + { + count = 0; + string Sql = "select ((a.price*b.Quantity)-(a.discount*b.Quantity)) as totalamount,b.id,a.productid,a.productname,a.image,a.price,a.discount,b.Quantity,B.SIZE from product as a inner join trncart as b on a.productid=b.productid"; + string Sql_Inner = ""; + if (Session["UserId"] != null) + { + Sql_Inner = " Where b.UserId=" + Session["UserId"] + ""; + } + + + else + { + if (Request.Cookies["mfpowerCart"] != null) + { + if (Request.Cookies["mfpowerCart"].Value != null) + { + Sql_Inner = " Where b.CartId=" + Request.Cookies["mfpowerCart"].Value + ""; + } + } + } + + + if (Sql_Inner != "") + { + Sql = Sql + Sql_Inner; + + DataTable Dt = Cnn.FillTable(Sql, "Dt"); + lstwishlist.DataSource = Dt; + lstwishlist.DataBind(); + + count= Convert.ToInt32(Dt.Rows.Count); + + + + + } + + if (count == 0) + { + nodata.Visible = true; + data.Visible = false; + + } + else + { + nodata.Visible = false; + data.Visible = true; + } + + TotAmt = 0; Realprice = 0; totaldis = 0; + for (int i = 0; i < lstwishlist.Items.Count; i++) + { + Label lblprice = lstwishlist.Items[i].FindControl("LblTotalAmoun111t") as Label; + + Realprice += Convert.ToInt32(lblprice.Text); + + } + } + protected void LinkButton1_Click(object sender, EventArgs e) + { + LinkButton button = (LinkButton)sender; + + Cnn.Open(); + Cnn.ExecuteNonQuery("delete from trncart where id=" + button.CommandArgument + ""); + + Cnn.Close(); + + Response.Redirect("Cart.aspx"); + } + + protected void DDQuantity_SelectedIndexChanged(object sender, EventArgs e) + { + Cnn.Open(); + DropDownList DDQuantity = sender as DropDownList; + Control item = DDQuantity.Parent.FindControl("id"); + Label lblid = ((Label)item.FindControl("id")); + + Cnn.ExecuteNonQuery("update trncart set Quantity=" + DDQuantity.SelectedValue + " where id=" + lblid.Text + ""); + + Cnn.Close(); + + Response.Redirect("Cart.aspx"); + + } + +} \ No newline at end of file diff --git a/default.aspx b/default.aspx new file mode 100644 index 0000000..66bed52 --- /dev/null +++ b/default.aspx @@ -0,0 +1,15 @@ +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <title>The web site is under construction + + + +
    +

    This web site has just been created from SolidCP and it is still under construction.

    +

    The web site is hosted by SolidCP.

    +
    + + \ No newline at end of file diff --git a/familykit.aspx b/familykit.aspx new file mode 100644 index 0000000..630f607 --- /dev/null +++ b/familykit.aspx @@ -0,0 +1,181 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="familykit.aspx.cs" Inherits="familykit" %> + + + + + + + + +
    +
    +
    +

    +Family kit +

    + + +
    +
    +
    +
    +
    +
    +
    + + +
    + +
    +
    +

    Family kit

    + + + +
    +

    Price: ₹<%=netprice %>/- ₹<%=price %>/-  <%= ((Convert.ToInt32(discount)*100)/Convert.ToInt32(price)) %>% Off

    +
    + +

    About Family kit
    + + Family kit is a complete combo pack for both male & female . It gives you the Energy to face your self with the reality. When the nature let's you down , family kit helps you to fight by with all the personal problems which are facing in your day to day life. All ingredients added in the kit are completely natural & herbal. Clinically Tested & approved by the Indian Government. No side effects at all , try now & feel the Goodness of Family Kit. +

    + +
      +
    • Category: Family Kit
    • +
    • Tags: Family Kit
    • +
    + +
    +

    Quantities:

    + + + + + + + + + + + + +
    +
    + + + + +
    +
    + +
    +

    Description

    +

    Family kit is a complete combo pack for both male & female . It gives you the Energy to face your self with the reality. When the nature let's you down , family kit helps you to fight by with all the personal problems which are facing in your day to day life. All ingredients added in the kit are completely natural & herbal. Clinically Tested & approved by the Indian Government. No side effects at all , try now & feel the Goodness of Family Kit.

    + + +

    BENEFITS FOR MALE

    +
      +
    • It Helps you to Increase your Stamina.
    • +
    • It Helps you to Improve your Vitality.
    • +
    • It helps you to increase Endurance.
    • +
    • It helps to Increase Testosterone levels .
    • +
    • It helps to Increase Energy Level.
    • +
    • Desire to Improve your performance..
    • +
    • Maintain your overall Vitality & Wellbeing.
    • + +
    + +

    BENEFITS FOR Fe-MALE

    +
      +
    • Feel like young again in first application.
    • +
    • It can tightens the female organ instantly & gives you grate pleasure.
    • +
    • It rejuvenate the tissues of inner wall & maintain your feelings.
    • +
    • Regular uses of woman care can help you to Re-shape the female organ.
    • +
    • Its completely aayurvedic preparation for regular & long use with no side effects.
    • +
    • It can prevent your female organ from bacteria & miner infections also.
    • +
    • Its proven to be the prime need of every women.
    • +
    • Help to prevent bacteria and minner infections.
    • +
    • Also helpful in Uterine prolapse.
    • +
    • Regular uses of woman care keep organ healthy and gives you better performance with better drive
    • +
    + + + + + + +
    + +
    +
    +
    +
    +
    + +

    SIDE EFFECTS?

    +
             None! 100% Safe to use
    +
    +
    +
    + +

    NATURAL ?

    +
             Yes!
    +
    + + +
    +
    + +

    COUNTRY OF ORIGIN

    +
             Made in India.
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + diff --git a/familykit.aspx.cs b/familykit.aspx.cs new file mode 100644 index 0000000..47099c0 --- /dev/null +++ b/familykit.aspx.cs @@ -0,0 +1,158 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +public partial class familykit : System.Web.UI.Page +{ + ClsConnection cnn = new ClsConnection(); + public static string productname = "", productid = "3", pid="3",image = "", Description = "", img2 = "", img3 = "", img4 = "", img5 = "", img6 = ""; + public static Int32 price = 0, discount=0,netprice=0; + protected void Page_Load(object sender, EventArgs e) + { + cnn.Open(); + DataTable dtlsrblog = cnn.FillTable("select * from [product] where productid=3", "Detail"); + + productname = dtlsrblog.Rows[0]["productname"].ToString(); + price = Convert.ToInt32(dtlsrblog.Rows[0]["price"]); + discount = Convert.ToInt32(dtlsrblog.Rows[0]["discount"]); + netprice = price - discount; + + + image = dtlsrblog.Rows[0]["image"].ToString(); + img2 = dtlsrblog.Rows[0]["img2"].ToString(); + img3 = dtlsrblog.Rows[0]["img3"].ToString(); + img4 = dtlsrblog.Rows[0]["img4"].ToString(); + // img5 = dtlsrblog.Rows[0]["img5"].ToString(); + + // + + + var img11 = ""; + var img22 = ""; + var img33 = ""; + var img44 = ""; + // var img55 = ""; + //var img66 = ""; + + + var titlet = ""; + var desc = ""; + + string url = "https://www.mfpower.in/familykit.aspx"; + + + Page.Title = productname + "- mfpower.in"; + Page.MetaKeywords = "Feel like young again in first application,It Helps you to Increase your Stamina,It Helps you to Improve your Vitality,It helps you to increase Endurance,It helps to Increase Testosterone levels,It helps to Increase Energy Level,Desire to Improve your performance"; + Page.MetaDescription = "family kit is a complete combo pack for both male & female . It gives you the Energy to face your self with the reality. When the nature let's you down , family kit helps you to fight by with all the personal problems which are facing in your day to day life."; + + + + var ogtitle = ""; + var ogdescription = ""; + var ogurl = ""; + + Literal1.Text = img11 + img22 + img33 + img44 ; + + + + litMeta.Text = ogtitle + ogdescription + ogurl; + + cnn.Close(); + + + } + protected void Unnamed_ServerClick(object sender, EventArgs e) + { + adtocart("F-Care"); + } + + public void adtocart(string pack) + { + cnn.Open(); + int ID = Convert.ToInt32(cnn.ExecuteScalar("Select IsNull(Max(id)+1,1) From [TrnCart]")); + + + if (Session["userid"] == null) + { + if (Request.Cookies["mfpowerCart"] == null || Request.Cookies["mfpowerCart"].Value == "") + { + string trncartid = cnn.ExecuteScalar("Select IsNull(Max(CartId)+1,1) From [TrnCart]").ToString(); + Response.Cookies["mfpowerCart"].Value = trncartid; + Request.Cookies["mfpowerCart"].Expires = DateTime.Now.AddDays(30); + cnn.ExecuteNonQuery("insert into trncart (Id,CartId,UserId,ProductId,Quantity,Size,Color,ActiveStatus,RTS) values (" + ID + "," + trncartid + ",0," + pid + ",'" + DDQuantity.SelectedValue + "','" + pack + "','',1,GetDate())"); + // Response.Write(""); + Response.Redirect("Cart.aspx"); + } + else + { + + if (IsRecordAlreadyExist() == false) + { + Request.Cookies["mfpowerCart"].Expires = DateTime.Now.AddDays(30); + cnn.ExecuteNonQuery("insert into trncart (Id,CartId,UserId,ProductId,Quantity,Size,Color,ActiveStatus,RTS) values (" + ID + "," + Request.Cookies["mfpowerCart"].Value + ",0," + pid + ",'" + DDQuantity.SelectedValue + "','" + pack + "','',1,GetDate())"); + // Response.Write(""); + Response.Redirect("Cart.aspx"); + } + else + { + Response.Write(""); + } + } + } + else + { + if (Request.Cookies["mfpowerCart"] == null || Request.Cookies["mfpowerCart"].Value == "") + { + string trncartid = cnn.ExecuteScalar("Select IsNull(Max(CartId)+1,1) From [TrnCart]").ToString(); + Response.Cookies["mfpowerCart"].Value = trncartid; + Request.Cookies["mfpowerCart"].Expires = DateTime.Now.AddDays(30); + cnn.ExecuteNonQuery("insert into trncart (Id,CartId,UserId,ProductId,Quantity,Size,Color,ActiveStatus,RTS) values (" + ID + "," + trncartid + "," + Session["userid"] + "," + pid + ",'" + DDQuantity.SelectedValue + "','" + pack + "','',1,GetDate())"); + // Response.Write(""); + Response.Redirect("Cart.aspx"); + } + else + { + + if (IsRecordAlreadyExist() == false) + { + Request.Cookies["mfpowerCart"].Expires = DateTime.Now.AddDays(30); + cnn.ExecuteNonQuery("insert into trncart (Id,CartId,UserId,ProductId,Quantity,Size,Color,ActiveStatus,RTS) values (" + ID + "," + Request.Cookies["mfpowerCart"].Value + "," + Session["userid"] + "," + pid + ",'" + DDQuantity.SelectedValue + "','" + pack + "','',1,GetDate())"); + // Response.Write(""); + Response.Redirect("Cart.aspx"); + } + else + { + Response.Write(""); + } + } + + } + + cnn.Close(); + } + + private bool IsRecordAlreadyExist() + { + try + { + cnn.Open(); + String Sql = "Select Count(*) From TrnCart Where ProductID='2' And Id='" + Request.Cookies["mfpowerCart"].Value + "'"; + int Count = Convert.ToInt32(cnn.ExecuteScalar(Sql).ToString()); + + if (Count > 0) + return true; + + else + return false; + } + catch (Exception ex) + { + throw ex; + } + } + +} \ No newline at end of file diff --git a/fcare.aspx b/fcare.aspx new file mode 100644 index 0000000..1bfdf6a --- /dev/null +++ b/fcare.aspx @@ -0,0 +1,230 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="fcare.aspx.cs" Inherits="fcare" %> + + + + + + + + +
    +
    +
    +

    +F-Care +

    + + +
    +
    +
    +
    +
    +
    +
    + + +
    + +
    +
    +

    F Care

    + + + +
    +

    Price: ₹<%=netprice %>/- ₹<%=price %>/-  <%= ((Convert.ToInt32(discount)*100)/Convert.ToInt32(price)) %>% Off

    +
    + +

    About F-Care
    + + Over 70% of women in India are experiencing some level of Performance issues , like loosening of Organal structure. They are not happy with it all , after a age they face this problem , but no worry's we have a solution for all your Organal problem's , it may help you to solve & feel the change. Now we say F-care gives you wings to fly again. Try now & feel the change. +

    + +
      +
    • Category: Woman Health
    • +
    • Tags: Woman Health
    • +
    + +
    +

    Quantities:

    + + + + + + + + + + + + +
    +
    + + + + +
    +
    + +
    +

    Description

    +

    F-care is unique product for every woman that enhance the woman pleasure and performance and feel like young again in first application.

    + +

    It can tightens the female organ instantly & gives you grate pleasure.

    +

    It rejuvenate the tissues of inner wall & maintain your feelings.

    +

    Regular uses of woman care can help you to Re-shape the female organ.

    +

    Its completely aayurvedic preparation for regular & long use with no side effects.

    +

    It can prevent your female organ from bacteria & miner infections also.

    +

    Its proven to be the prime need of every women.

    +

    Help to prevent bacteria and minner infections.

    +

    Regular uses of woman care keep organ healthy and gives you better performance with better drive.

    +
      +
    • N0w feel the inst@nt v@gin@ T1ght€n1ng €ffect with in 10 Sec0nds.
    • +
    • Feel v1rg1n again in 10 Seconds.
    • +
    • Feel the T1ght€n1ng €ffect with in 10 Seconds.
    • +
    • Give your p@rtn€r a v1rg1n perf0rm@nce €very n1ght.
    • +
    • T1ghtens the v@gin@ & reduce access disch@rge.
    • +
    • Rejuvenates the v@gin@l tissues of the inner walls.
    • +
    • F care is completely Herbal & there are no side effect.
    • + +
    + + + + + + + + +
    + +
    +
    +
    +
    +
    + +

    SIDE EFFECTS?

    +
             None! 100% Safe to use
    +
    +
    +
    + +

    NATURAL ?

    +
             Yes!
    +
    +
    +
    + +

    HOW TO USE ?

    +
             Apply 4-5 dr0ps one & a-half inch inside the v@gin@l track , wash your v@gin@ every +time before applying
             Apply 10 minutes before the int€rc0urs€
    +
    +
    +
    + +

    COUNTRY OF ORIGIN

    +
             Made in India.
    +

    +
    +
    +
    +

    INGREDIENTS OF F-CARE

    +
    + +
    +
    +
      +
    • Ficus Benghalensis
    • +
    • Ficus Glomerata
    • +
    • Mucuna Pruriens
    • +
    • Myristica Fragrans Houtt
    • +
    • Ficus Religiosa
    • +
    • Quercus Infectoria
    • +
    • Azadirachta Indica
    • +
    • Alum
    • +
    +
    +
    +
    + + +
    +
    + +
    + +

    QUESTION : DO I HAVE TO KEEP USING IT REGULARLY LIKE A +TREATMENT

    +
    Answer : Absolutely Yes. Regular use of F CARE will keep your v@gina@ Healthy & +your V@gin@ shape will change like before.
    +
    + +
    + +
    + +

    QUESTION : WHO CAN USE F CARE LOTION

    +
    Answer : 18 to 75 Years of Females can use F CARE Lotion. It is recommended & +Clinically Proven.
    +
    +
    + +
    + +

    QUESTION : CAN F CARE BE USE LIFEL0NG EVERY-TIME TO ENJOY +QU@LITY TIME WITH L0VED 0NES

    +
    Answer :Yes! F CARE is 100% Safe to use lifel0ng & there’s no long term side effects.
    +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + diff --git a/fcare.aspx.cs b/fcare.aspx.cs new file mode 100644 index 0000000..781ea32 --- /dev/null +++ b/fcare.aspx.cs @@ -0,0 +1,157 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +public partial class fcare : System.Web.UI.Page +{ + ClsConnection cnn = new ClsConnection(); + public static string productname = "", productid = "2", pid="2",image = "", Description = "", img2 = "", img3 = "", img4 = "", img5 = "", img6 = ""; + public static Int32 price = 0, discount=0,netprice=0; + protected void Page_Load(object sender, EventArgs e) + { + cnn.Open(); + DataTable dtlsrblog = cnn.FillTable("select * from [product] where productid=2", "Detail"); + + productname = dtlsrblog.Rows[0]["productname"].ToString(); + price = Convert.ToInt32(dtlsrblog.Rows[0]["price"]); + discount = Convert.ToInt32(dtlsrblog.Rows[0]["discount"]); + netprice = price - discount; + + + image = dtlsrblog.Rows[0]["image"].ToString(); + img2 = dtlsrblog.Rows[0]["img2"].ToString(); + img3 = dtlsrblog.Rows[0]["img3"].ToString(); + img4 = dtlsrblog.Rows[0]["img4"].ToString(); + // img5 = dtlsrblog.Rows[0]["img5"].ToString(); + + // + + + var img11 = ""; + var img22 = ""; + var img33 = ""; + var img44 = ""; + // var img55 = ""; + //var img66 = ""; + + + var titlet = ""; + var desc = ""; + + string url = "https://www.mfpower.in/fcare.aspx"; + + Page.Title = "Mfpower.in , F Care gives complete solution for all your V organ related problems. "; + Page.MetaKeywords = "Feel virgin again in 10 Seconds.,Feel the Tightening effect with in 10 Seconds.,Give your partner a virgin performance every night.,Tightens the vagina & reduce access discharge,Rejuvenates the vaginal tissues of the inner walls,F care is completely Herbal & there are no side effect"; + Page.MetaDescription = "F Care gives you complete V tight Solution , instant V tight in 10 seconds , complete satisfaction , no side effects , desire booster, for more details go to our website www.mfpower.in"; + + + + var ogtitle = ""; + var ogdescription = ""; + var ogurl = ""; + + Literal1.Text = img11 + img22 + img33 + img44 ; + + + + litMeta.Text = ogtitle + ogdescription + ogurl; + + cnn.Close(); + + + } + protected void Unnamed_ServerClick(object sender, EventArgs e) + { + adtocart("F-Care"); + } + + public void adtocart(string pack) + { + cnn.Open(); + int ID = Convert.ToInt32(cnn.ExecuteScalar("Select IsNull(Max(id)+1,1) From [TrnCart]")); + + + if (Session["userid"] == null) + { + if (Request.Cookies["mfpowerCart"] == null || Request.Cookies["mfpowerCart"].Value == "") + { + string trncartid = cnn.ExecuteScalar("Select IsNull(Max(CartId)+1,1) From [TrnCart]").ToString(); + Response.Cookies["mfpowerCart"].Value = trncartid; + Request.Cookies["mfpowerCart"].Expires = DateTime.Now.AddDays(30); + cnn.ExecuteNonQuery("insert into trncart (Id,CartId,UserId,ProductId,Quantity,Size,Color,ActiveStatus,RTS) values (" + ID + "," + trncartid + ",0," + pid + ",'" + DDQuantity.SelectedValue + "','" + pack + "','',1,GetDate())"); + // Response.Write(""); + Response.Redirect("Cart.aspx"); + } + else + { + + if (IsRecordAlreadyExist() == false) + { + Request.Cookies["mfpowerCart"].Expires = DateTime.Now.AddDays(30); + cnn.ExecuteNonQuery("insert into trncart (Id,CartId,UserId,ProductId,Quantity,Size,Color,ActiveStatus,RTS) values (" + ID + "," + Request.Cookies["mfpowerCart"].Value + ",0," + pid + ",'" + DDQuantity.SelectedValue + "','" + pack + "','',1,GetDate())"); + // Response.Write(""); + Response.Redirect("Cart.aspx"); + } + else + { + Response.Write(""); + } + } + } + else + { + if (Request.Cookies["mfpowerCart"] == null || Request.Cookies["mfpowerCart"].Value == "") + { + string trncartid = cnn.ExecuteScalar("Select IsNull(Max(CartId)+1,1) From [TrnCart]").ToString(); + Response.Cookies["mfpowerCart"].Value = trncartid; + Request.Cookies["mfpowerCart"].Expires = DateTime.Now.AddDays(30); + cnn.ExecuteNonQuery("insert into trncart (Id,CartId,UserId,ProductId,Quantity,Size,Color,ActiveStatus,RTS) values (" + ID + "," + trncartid + "," + Session["userid"] + "," + pid + ",'" + DDQuantity.SelectedValue + "','" + pack + "','',1,GetDate())"); + // Response.Write(""); + Response.Redirect("Cart.aspx"); + } + else + { + + if (IsRecordAlreadyExist() == false) + { + Request.Cookies["mfpowerCart"].Expires = DateTime.Now.AddDays(30); + cnn.ExecuteNonQuery("insert into trncart (Id,CartId,UserId,ProductId,Quantity,Size,Color,ActiveStatus,RTS) values (" + ID + "," + Request.Cookies["mfpowerCart"].Value + "," + Session["userid"] + "," + pid + ",'" + DDQuantity.SelectedValue + "','" + pack + "','',1,GetDate())"); + // Response.Write(""); + Response.Redirect("Cart.aspx"); + } + else + { + Response.Write(""); + } + } + + } + + cnn.Close(); + } + + private bool IsRecordAlreadyExist() + { + try + { + cnn.Open(); + String Sql = "Select Count(*) From TrnCart Where ProductID='2' And Id='" + Request.Cookies["mfpowerCart"].Value + "'"; + int Count = Convert.ToInt32(cnn.ExecuteScalar(Sql).ToString()); + + if (Count > 0) + return true; + + else + return false; + } + catch (Exception ex) + { + throw ex; + } + } + +} \ No newline at end of file diff --git a/forgotpassword.aspx b/forgotpassword.aspx new file mode 100644 index 0000000..d32f7b2 --- /dev/null +++ b/forgotpassword.aspx @@ -0,0 +1,78 @@ +<%@ Page Title="forgot password - mfpower.in" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="forgotpassword.aspx.cs" Inherits="forgotpassword" %> + + + + + + + + +
    +
    +
    +

    + +Forgot Password + +

    + +
      + +
    • + + Home + +
    • + + + +
    • + +Forgot Password + +
    • +
    +
    +
    +
    + + +

    +
    + +
    + +
    +


    +
    +

    Forgot Password

    +
    +
    + +
    + +
    + +
    + + + + +
    +


    +
    +
    +
    +




    +
    + diff --git a/forgotpassword.aspx.cs b/forgotpassword.aspx.cs new file mode 100644 index 0000000..dd91a1e --- /dev/null +++ b/forgotpassword.aspx.cs @@ -0,0 +1,78 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Net; +using System.Net.Mail; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +public partial class forgotpassword : System.Web.UI.Page +{ + ClsConnection Cnn = new ClsConnection(); + protected void Page_Load(object sender, EventArgs e) + { + + } + protected void LogIn_Click(object sender, EventArgs e) + { + Send_Mail(); + } + protected void Button2_Click(object sender, EventArgs e) + { + Response.Redirect("login.aspx"); + } + + public void Send_Mail() + { + try + { + + LblErr.Text = "Submit Successfully"; + if (Forgot.Text == "") + { + LblErr.Text = "Enter Your Register MailId.."; + Forgot.Focus(); + return; + } + Cnn.Open(); + string EmailId = Cnn.ExecuteScalar("select Password from Register where EmailID='" + Forgot.Text + "'").ToString(); + Cnn.Close(); + try + { + + MailMessage newmail = new MailMessage(); + MailAddress toadd = new MailAddress(Forgot.Text); + MailAddress fromadd = new MailAddress("info@mfpower.in"); + newmail.Subject = "Forgot Password"; + string msg = "
    "; + msg = DateTime.Now + "
    "; + msg += "

    "; + msg += "Hello ,

    Your Password: " + EmailId + "

    "; + + msg += "
    "; + newmail.Body = msg; + newmail.To.Add(toadd); + newmail.From = fromadd; + newmail.IsBodyHtml = true; + SmtpClient sserver = new SmtpClient(); + sserver.Host = "mail.aemailsrv.com"; + sserver.Credentials = new NetworkCredential("info@mfpower.in", "4ZqBCR@u3Nu9v5"); + sserver.DeliveryMethod = SmtpDeliveryMethod.Network; + sserver.Port = 25; + sserver.Send(newmail); + LblErr.Text = "Password sent successfully"; + Response.Write(""); + Forgot.Text = ""; + } + catch (Exception ex) + { + LblErr.Text = ex.Message; + } + } + catch (Exception ex) + { + throw ex; + } + } +} \ No newline at end of file diff --git a/google0e97abc8b5749984.html b/google0e97abc8b5749984.html new file mode 100644 index 0000000..c39e694 --- /dev/null +++ b/google0e97abc8b5749984.html @@ -0,0 +1 @@ +google-site-verification: google0e97abc8b5749984.html \ No newline at end of file diff --git a/login.aspx b/login.aspx new file mode 100644 index 0000000..464a872 --- /dev/null +++ b/login.aspx @@ -0,0 +1,96 @@ +<%@ Page Title="login - mfpower.in" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="login.aspx.cs" Inherits="login" %> + + + + +
    +
    +
    +

    Log In

    + + +
    +
    +
    + +
    + diff --git a/login.aspx.cs b/login.aspx.cs new file mode 100644 index 0000000..f1e0139 --- /dev/null +++ b/login.aspx.cs @@ -0,0 +1,103 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +public partial class login : System.Web.UI.Page +{ + ClsConnection Cnn = new ClsConnection(); + protected void Page_Load(object sender, EventArgs e) + { + + } + protected void Button1_Click(object sender, EventArgs e) + { + HttpContext context = HttpContext.Current; + if (context.Request.Cookies["mfpowerCart"] != null) + { + if (txtlogin.Text == "") + { + lbleroor.Text = "Please Enter User Name/Mobile Number"; + return; + } + + if (txtpassword.Text == "") + { + lbleroor.Text = "Please Enter Password"; + return; + } + DataSet ds = new DataSet(); + Cnn.Open(); + Cnn.FillDataSet(ds, "select * from register Where MobileNumber = '" + txtlogin.Text.Replace("'", "''") + "'COLLATE SQL_Latin1_General_CP1_CS_AS and Password = '" + txtpassword.Text.Replace("'", "''") + "' ", "Admin_Login"); + + if (ds.Tables[0].Rows.Count == 0) + { + lbleroor.Text = "Please Enter Correct Username & Password"; Button1.Focus(); return; + } + else + { + lbleroor.Text = ""; + HttpContext context1 = HttpContext.Current; + if (context1.Request.Cookies["mfpowerCart"] != null) + { + if (Request.Cookies["mfpowerCart"].Value != null) + { + Cnn.ExecuteNonQuery("update trncart set cartid=0,userid=" + ds.Tables[0].Rows[0]["UserId"] + " where cartid=" + Request.Cookies["mfpowerCart"].Value + ""); + Response.Cookies["mfpowerCart"].Expires = DateTime.Now.AddDays(-1); + Response.Cookies.Remove("mfpowerCart"); + HttpCookie myCookie = new HttpCookie("mfpowerCart"); + myCookie.Expires = DateTime.Now.AddDays(-1d); + Response.Cookies.Add(myCookie); + } + } + Cnn.Close(); + Session["UserId"] = ds.Tables[0].Rows[0]["UserId"].ToString(); + Session["MobileNumber"] = ds.Tables[0].Rows[0]["MobileNumber"].ToString(); + Session["Groupid"] = ds.Tables[0].Rows[0]["Groupid"].ToString(); + Response.Cookies["UserId"].Value = ds.Tables[0].Rows[0]["UserId"].ToString(); + // Response.Cookies["Name"].Expires = DateTime.Now.AddDays(1); + Response.Redirect("shipingaddress.aspx"); + } + } + else + { + + if (txtlogin.Text == "") + { + lbleroor.Text = "Please Enter User Name / Mobile Number"; + return; + } + + if (txtpassword.Text == "") + { + lbleroor.Text = "Please Enter Password"; + return; + } + DataSet ds = new DataSet(); + Cnn.Open(); + + Cnn.FillDataSet(ds, "select * from register Where MobileNumber = '" + txtlogin.Text.Replace("'", "''") + "'COLLATE SQL_Latin1_General_CP1_CS_AS and Password = '" + txtpassword.Text.Replace("'", "''") + "'", "Admin_Login"); + + if (ds.Tables[0].Rows.Count == 0) + { + lbleroor.Text = "Please Enter Correct Username & Password"; Button1.Focus(); return; ; + } + else + { + string count = Cnn.ExecuteScalar("select count(*) from trncart where userid=" + ds.Tables[0].Rows[0]["UserId"].ToString() + "").ToString(); + Cnn.Close(); + lbleroor.Text = ""; + Session["UserId"] = ds.Tables[0].Rows[0]["UserId"].ToString(); + Session["UserName"] = ds.Tables[0].Rows[0]["name"].ToString(); + Session["GroupName"] = ds.Tables[0].Rows[0]["Groupid"].ToString(); + Response.Cookies["UserId"].Value = ds.Tables[0].Rows[0]["UserId"].ToString(); + // Response.Cookies["Name"].Expires = DateTime.Now.AddDays(1); + if (count == "1") { Response.Redirect("shipingaddress.aspx"); } + Response.Redirect("Index.aspx"); + } + } + } +} \ No newline at end of file diff --git a/m1.jpg b/m1.jpg new file mode 100644 index 0000000..da66f21 Binary files /dev/null and b/m1.jpg differ diff --git a/mpower.aspx b/mpower.aspx new file mode 100644 index 0000000..5013467 --- /dev/null +++ b/mpower.aspx @@ -0,0 +1,247 @@ +<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="mpower.aspx.cs" Inherits="mpower" %> + + + + + + + + +
    +
    +
    +

    +M-Power +

    + + +
    +
    +
    +
    +
    +
    +
    + + +
    + +
    +
    +

    M-Power

    + + + +
    +

    Price: ₹<%=netprice %>/- ₹<%=price %>/-  <%= ((Convert.ToInt32(discount)*100)/Convert.ToInt32(price)) %>% Off

    +
    + +

    About M-power
    Over 40% men in India are experiencing some level of performance issues . It's very normal, what's not normalize not seeking the right solution! The M-power helps you to increase stamina, improve vitality and increase endurance. It's the complete action of our effective OTC solutions that help you to have better intimate times. Try now & feel the change.

    + +
      +
    • Category: Man Health
    • +
    • Tags: Man Health
    • +
    + +
    +

    Quantities:

    + + + + + + + + + + + + +
    +
    + + + + +
    +
    + +
    +

    Description

    +

    M-Power is made up with the natural power full ingredients which gives an tremendous results & has the potential power which may help you to solve your problem . Now a days many men after a certain age has started facing the problem of stamina. . Both psychological and biological factors can play a role in performance. Although lack of stamina is a common problem & can be treated very easily. Medications, counseling and other techniques that can help. By using M-Power properly it may help you to recover from all your problems very easily.

    + +

    After using M-Power

    +

    .It may help you to pleasure your partner very easily without any complaints.

    +

    .M-Power may help you to reduces the harmful effects of long-term stress and can also help you to maintain a healthy balance between the nervous system, endocrine glands, and immune system , thus reducing the harmful effects of long-term stress on the body.

    +

    .M-Power may help you to get relief from stress and boosts your health and immunity.

    +

    .It may helps you to recover from anxiety and depression, boosts your brain and nervous system and it may also help you to regain strength.

    +

    .It may strongly boost your energy and stamina for better performance and give you a great pleasure. 

    +

    .It has antioxidant properties which helps in quick recovery from ailments and revitalises your body.

    +

    .By takeing M-Power it may help you to regain the perfect balance of physical-emotional, well-being. It is a non-hormonal vitalizer cum tonic, which helps to restore energy,stamina and performance.

    +
      +
    • In¢rease y0ur $tamin@.
    • +
    • Impr0ve y0ur Vit@lity.
    • +
    • In¢rease Endur@nce.
    • +
    • In¢rease Test0ster0ne levels .
    • +
    • In¢rease £nergy Level.
    • +
    • Impr0ve y0ur Perf0rm@nce.
    • +
    • $olves y0ur Prem@tur£ £j@cul@tion Problem.
    • +
    • $olves y0ur £rectile dy$functi0n.
    • +
    • L@st L0nger 0n B€D.
    • +
    • Impr0ve $p€rm Qu@lity.
    • +
    • G€t H@rd & $tay H@rd.
    • +
    • M@int@in €recti0n & In¢rease $e×u@l D€sir€
    • +
    + + + + + + + + + + + + + + + +
    + +
    +
    +
    +
    +
    + +

    SIDE EFFECTS?

    +
             None! 100% Safe to use
    +
    +
    +
    + +

    NATURAL ?

    +
             Yes!
    +
    +
    +
    + +

    HOW TO USE ?

    +
             T@ke 0ne Capsule in Morning & Evening @fter every Meal with Warm water 0r Milk. +
             (Continue For 20 Days to Get Best Results)
    +
    +
    +
    + +

    COUNTRY OF ORIGIN

    +
             Made in India.
    +

    +
    +
    +
    +

    INGREDIENTS OF F-CARE

    +
    + +
    +
    +
      +
    • Syzygium Aromaticum
    • +
    • Tribulus Terrestris
    • +
    • Berberis Aristata
    • +
    • Chlorophytum Borivilianum
    • +
    • Ocimum Sanctum
    • +
    • Alpinia Galanga
    • +
    • Celastrus Paniculatus
    • + +
    +
    +
    +
    + + +
    +
    + +
    + +

    QUESTION : DO I HAVE TO KEEP TAKING IT REGULARLY LIKE A +TREATMENT OR SUPPLEMENT

    +
    Answer : Absolutely Yes. You have to take 0ne Capsule in Morning & Evening @fter every +Meal with Warm water 0r Milk. (Continue For 20 Days to Get Best Results)
    +
    + +
    + +
    + +

    QUESTION : WHO CAN USE M POWER CAPSULE

    +
    Answer : 18 to 75 Years of Men's can take M P0wer Capsule. It is recommended & +Clinically Proven. "Women’s should not take this medication"
    +
    +
    + +
    + +

    QUESTION : CAN DIABETIC OR HIGH/ LOW BLOOD PRESSURE +PATIENTS CAN TAKE M POWER Capsule

    +
    Answer :Yes! M P0wer Capsule are safe for diabetics & Blood Pressure patients & +works good
    +
    + +
    + +
    + +

    QUESTION : CAN M P0WER CAPSULE BE TAKEN LIFEL0NG EVERY-TIME +TO ENJOY QU@LITY TIME WITH L0VED 0NES

    +
    Answer :Yes! M P0wer Capsule is 100% Safe to use lifel0ng & there’s no long term side +effects.
    +
    +
    +
    +
    +
    +
    +
    +
    +
    + diff --git a/mpower.aspx.cs b/mpower.aspx.cs new file mode 100644 index 0000000..b06fdc6 --- /dev/null +++ b/mpower.aspx.cs @@ -0,0 +1,156 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +public partial class mpower : System.Web.UI.Page +{ + ClsConnection cnn = new ClsConnection(); + public static string productname = "", productid = "1", pid = "1", image = "", Description = "", img2 = "", img3 = "", img4 = "", img5 = "", img6 = ""; + public static Int32 price = 0, discount=0,netprice=0; + protected void Page_Load(object sender, EventArgs e) + { + cnn.Open(); + DataTable dtlsrblog = cnn.FillTable("select * from [product] where productid=1", "Detail"); + + productname = dtlsrblog.Rows[0]["productname"].ToString(); + price = Convert.ToInt32(dtlsrblog.Rows[0]["price"]); + discount = Convert.ToInt32(dtlsrblog.Rows[0]["discount"]); + netprice = price - discount; + + image = dtlsrblog.Rows[0]["image"].ToString(); + img2 = dtlsrblog.Rows[0]["img2"].ToString(); + img3 = dtlsrblog.Rows[0]["img3"].ToString(); + img4 = dtlsrblog.Rows[0]["img4"].ToString(); + // img5 = dtlsrblog.Rows[0]["img5"].ToString(); + + // + + + var img11 = ""; + var img22 = ""; + var img33 = ""; + var img44 = ""; + // var img55 = ""; + //var img66 = ""; + + + var titlet = ""; + var desc = ""; + + string url = "https://www.mfpower.in/mpower.aspx"; + + + + Page.MetaKeywords = "Increase your Stamina,Improve your Vitality,Increase Endurance,Increase Testosterone levels,Increase energy Level,Improve your Performance,solves your Premature ejaculation Problem,solves your erectile dysfunction"; + Page.Title = "Mfpower.in , M Power help to increase the Testosterone level , improves the Performance."; + Page.MetaDescription = "M power Boost up the Stamina , Energy , Testosterone. Give you complete Satisfaction every Night , for more details go to our website www.mfpower.in"; + + + + var ogtitle = ""; + var ogdescription = ""; + var ogurl = ""; + + Literal1.Text = img11 + img22 + img33 + img44; + + + + litMeta.Text = ogtitle + ogdescription + ogurl; + cnn.Close(); + + } + protected void Unnamed_ServerClick(object sender, EventArgs e) + { + adtocart("M-Power"); + } + + public void adtocart(string pack) + { + cnn.Open(); + int ID = Convert.ToInt32(cnn.ExecuteScalar("Select IsNull(Max(id)+1,1) From [TrnCart]")); + + + if (Session["userid"] == null) + { + if (Request.Cookies["mfpowerCart"] == null || Request.Cookies["mfpowerCart"].Value == "") + { + string trncartid = cnn.ExecuteScalar("Select IsNull(Max(CartId)+1,1) From [TrnCart]").ToString(); + Response.Cookies["mfpowerCart"].Value = trncartid; + Request.Cookies["mfpowerCart"].Expires = DateTime.Now.AddDays(30); + cnn.ExecuteNonQuery("insert into trncart (Id,CartId,UserId,ProductId,Quantity,Size,Color,ActiveStatus,RTS) values (" + ID + "," + trncartid + ",0," + pid + ",'" + DDQuantity.SelectedValue + "','" + pack + "','',1,GetDate())"); + // Response.Write(""); + Response.Redirect("Cart.aspx"); + } + else + { + + if (IsRecordAlreadyExist() == false) + { + Request.Cookies["mfpowerCart"].Expires = DateTime.Now.AddDays(30); + cnn.ExecuteNonQuery("insert into trncart (Id,CartId,UserId,ProductId,Quantity,Size,Color,ActiveStatus,RTS) values (" + ID + "," + Request.Cookies["mfpowerCart"].Value + ",0," + pid + ",'" + DDQuantity.SelectedValue + "','" + pack + "','',1,GetDate())"); + // Response.Write(""); + Response.Redirect("Cart.aspx"); + } + else + { + Response.Write(""); + } + } + } + else + { + if (Request.Cookies["mfpowerCart"] == null || Request.Cookies["mfpowerCart"].Value == "") + { + string trncartid = cnn.ExecuteScalar("Select IsNull(Max(CartId)+1,1) From [TrnCart]").ToString(); + Response.Cookies["mfpowerCart"].Value = trncartid; + Request.Cookies["mfpowerCart"].Expires = DateTime.Now.AddDays(30); + cnn.ExecuteNonQuery("insert into trncart (Id,CartId,UserId,ProductId,Quantity,Size,Color,ActiveStatus,RTS) values (" + ID + "," + trncartid + "," + Session["userid"] + "," + pid + ",'" + DDQuantity.SelectedValue + "','" + pack + "','',1,GetDate())"); + // Response.Write(""); + Response.Redirect("Cart.aspx"); + } + else + { + + if (IsRecordAlreadyExist() == false) + { + Request.Cookies["mfpowerCart"].Expires = DateTime.Now.AddDays(30); + cnn.ExecuteNonQuery("insert into trncart (Id,CartId,UserId,ProductId,Quantity,Size,Color,ActiveStatus,RTS) values (" + ID + "," + Request.Cookies["mfpowerCart"].Value + "," + Session["userid"] + "," + pid + ",'" + DDQuantity.SelectedValue + "','" + pack + "','',1,GetDate())"); + // Response.Write(""); + Response.Redirect("Cart.aspx"); + } + else + { + Response.Write(""); + } + } + + } + + cnn.Close(); + } + + private bool IsRecordAlreadyExist() + { + try + { + cnn.Open(); + String Sql = "Select Count(*) From TrnCart Where ProductID='1' And Id='" + Request.Cookies["mfpowerCart"].Value + "'"; + int Count = Convert.ToInt32(cnn.ExecuteScalar(Sql).ToString()); + + if (Count > 0) + return true; + + else + return false; + } + catch (Exception ex) + { + throw ex; + } + } + +} \ No newline at end of file diff --git a/myaccount.aspx b/myaccount.aspx new file mode 100644 index 0000000..df265c1 --- /dev/null +++ b/myaccount.aspx @@ -0,0 +1,133 @@ +<%@ Page Title="my Account- mfpower.in" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="myaccount.aspx.cs" Inherits="myaccount" %> + + + + + + +
    +
    +
    +

    My Account +

    + +
      + +
    • + Home + +
    • + + + +
    • My Account +
    • +
    +
    +
    +
    +
    + +
    + +
    +
    + +
    +
    +
    +
    + + + +
    + + + + + +
    + + +
    +
    +

    Refer Code Is: +

    +
    +
    + + +
    + + + + +
    +
    +
    +
    +
    +
    +
    +
    +
    + diff --git a/myaccount.aspx.cs b/myaccount.aspx.cs new file mode 100644 index 0000000..f9234d3 --- /dev/null +++ b/myaccount.aspx.cs @@ -0,0 +1,95 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Net; +using System.Net.Mail; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +public partial class myaccount : System.Web.UI.Page +{ + ClsConnection Cnn = new ClsConnection(); + public static string code = "",mail=""; + + protected void Page_Load(object sender, EventArgs e) + { + if (Session["UserId"] == null) + { + Response.Redirect("login.aspx"); + + } + + Cnn.Open(); + + + Cnn.Open(); + lblpoint.Text = Cnn.ExecuteScalar("select rcode from register where UserId=" + Session["UserId"] + "").ToString(); Cnn.Close(); + code = lblpoint.Text; + + + Cnn.Close(); + //HttpContext context1 = HttpContext.Current; + //if (context1.Request.Cookies["UserId"] != null) + //{ + // if (Request.Cookies["UserId"].Value != null) + // { + // try + // { + + + // } + // catch (Exception ex) { + // if (Request.Cookies["UserId"] != null) + // { + // Response.Cookies["UserId"].Expires = DateTime.Now.AddDays(-1); + // HttpCookie myCookie = new HttpCookie("UserId"); + // myCookie.Expires = DateTime.Now.AddDays(-1d); + // Response.Cookies.Add(myCookie); + // } + // if (Request.Cookies["username"] != null) + // { + // Response.Cookies["username"].Expires = DateTime.Now.AddDays(-1); + // HttpCookie myCookie = new HttpCookie("username"); + // myCookie.Expires = DateTime.Now.AddDays(-1d); + // Response.Cookies.Add(myCookie); + // } + // Response.Redirect(ResolveUrl("index.aspx")); + // } + // } + //} + //else + //{ + // Response.Redirect("login.aspx"); + //} + } + + protected void referbutton_Click(object sender, EventArgs e) + { + Cnn.Open(); + mail= Cnn.ExecuteScalar("select Emailid from register where UserId=" + Session["UserId"] + "").ToString(); + Cnn.Close(); + + MailMessage newmail = new MailMessage(); + MailAddress toadd = new MailAddress(mail); + MailAddress fromadd = new MailAddress("contact@mfpower.in"); + //MailAddress fromadd = new MailAddress("info@mfpower.in"); + newmail.Subject = "Referral Code - mfpower.in"; + string msg = " Your Referral Code Is=" + code + ""; + newmail.Body = msg; + newmail.To.Add(toadd); + newmail.From = fromadd; + newmail.IsBodyHtml = true; + SmtpClient sserver = new SmtpClient(); + sserver.Host = "mail.aemailsrv.com"; + sserver.Credentials = new NetworkCredential("contact@mfpower.in", "DevENT@2575"); + //sserver.Credentials = new NetworkCredential("info@mfpower.in","4ZqBCR@u3Nu9v5"); + sserver.DeliveryMethod = SmtpDeliveryMethod.Network; + sserver.Port = 25; + sserver.Send(newmail); + Label1.Visible = true; + Label1.Text = "Mail Sent Successfully!!"; + + + } +} \ No newline at end of file diff --git a/product.aspx b/product.aspx new file mode 100644 index 0000000..b82fa0a --- /dev/null +++ b/product.aspx @@ -0,0 +1,85 @@ +<%@ Page Title="Product - mfpower.in" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="product.aspx.cs" Inherits="product" %> + + + + +
    +
    +
    +

    Our Product

    + + +
    +
    +
    +
    + +
    +
    + diff --git a/product.aspx.cs b/product.aspx.cs new file mode 100644 index 0000000..f9d4566 --- /dev/null +++ b/product.aspx.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +public partial class product : System.Web.UI.Page +{ + protected void Page_Load(object sender, EventArgs e) + { + + } +} \ No newline at end of file diff --git a/qr.jpg b/qr.jpg new file mode 100644 index 0000000..6eae792 Binary files /dev/null and b/qr.jpg differ diff --git a/refer.png b/refer.png new file mode 100644 index 0000000..ba7c5dc Binary files /dev/null and b/refer.png differ diff --git a/register.aspx b/register.aspx new file mode 100644 index 0000000..0d3792d --- /dev/null +++ b/register.aspx @@ -0,0 +1,153 @@ +<%@ Page Title="register - mfpower.in" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="register.aspx.cs" Inherits="register" %> + + + + + +
    +
    +
    +

    Register

    + + +
    +
    +
    + + + + + + + + + + + + + +
    + diff --git a/register.aspx.cs b/register.aspx.cs new file mode 100644 index 0000000..982491a --- /dev/null +++ b/register.aspx.cs @@ -0,0 +1,164 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +public partial class register : System.Web.UI.Page +{ + ClsConnection Cnn = new ClsConnection(); + protected void Page_Load(object sender, EventArgs e) + { + if (Request.QueryString["ReferCode"] != null) + { + txtrefer.Text = Request.QueryString["ReferCode"].ToString(); + } + } + + private bool IsRecordAlreadyMobileExist() + { + Cnn.Open(); + String Sql = "Select Count(*) From register Where MobileNumber='" + txtmobile.Text + "'"; + int Count = Convert.ToInt32(Cnn.ExecuteScalar(Sql).ToString()); + if (Count > 0) + return true; + else + return false; + Cnn.Close(); + } + + private bool IsRecordAlreadyEmailExist() + { + Cnn.Open(); + String Sql = "Select Count(*) From register Where EmailId='" + txtemail.Text + "'"; + int Count = Convert.ToInt32(Cnn.ExecuteScalar(Sql).ToString()); + if (Count > 0) + return true; + else + return false; + Cnn.Close(); + } + + protected void Unnamed_ServerClick1(object sender, EventArgs e) + { + string ip = Request.ServerVariables["remote_addr"]; + //if (txtotp.Text == Label1.Text) + //{ + Cnn.Open(); + int Id = Convert.ToInt32(Cnn.ExecuteScalar("Select IsNull(Max(UserId)+1,1) From [register]")); + string rcode = "MFP" + Id; + + Cnn.ExecuteNonQuery("insert into [register] (UserId,Name,EmailId,Address,State,District,City,ZipCode,MobileNumber,password,rts,active,ip,Wallet,OrderCount,Groupid,gst,rcode,referbyid) Values ('" + Id + "','" + txtname.Text + "','" + txtemail.Text + "','','','','','','" + txtmobile.Text.Trim() + "','" + txtpassword.Text + "',GetDate(),'1','" + ip + "','0','1','1','','" + rcode + "',0)"); + + HttpContext context1 = HttpContext.Current; + if (context1.Request.Cookies["mfpowerCart"] != null) + { + if (Request.Cookies["mfpowerCart"].Value != null) + { + + Cnn.ExecuteNonQuery("update trncart set cartid=0,userid=" + Id + " where cartid=" + Request.Cookies["mfpowerCart"].Value + ""); + Response.Cookies["mfpowerCart"].Expires = DateTime.Now.AddDays(-1); + Response.Cookies.Remove("mfpowerCart"); + HttpCookie myCookie = new HttpCookie("mfpowerCart"); + myCookie.Expires = DateTime.Now.AddDays(-1d); + Response.Cookies.Add(myCookie); + } + } + string count = Cnn.ExecuteScalar("select count(*) from trncart where userid=" + Id.ToString() + "").ToString(); + refer(Id); + Cnn.Close(); + Session["UserId"] = Id; + Session["UserName"] = txtname.Text; + Response.Cookies["UserId"].Value = Id.ToString(); + Response.Cookies["Name"].Expires = DateTime.Now.AddDays(30); + if (count == "1") { Response.Redirect("shipingaddress.aspx"); } + + Response.Redirect("index.aspx"); + + //} + //else + //{ + // lbleroor.Text = "Otp Not Match.."; return; + + //} + } + + + public void refer(int userid) + { + if (txtrefer.Text != "") + { + Cnn.Open(); + int count = Convert.ToInt32(Cnn.ExecuteScalar("select count(*) from register where rcode='" + txtrefer.Text.Trim() + "'")); + string idget = Cnn.ExecuteScalar("select UserId from register where rcode='" + txtrefer.Text.Trim() + "' ").ToString(); + if (count > 0) + { + string remark =""+ txtname.Text + " Register with us. using your refer code .. 50 points credited in your Wallet"; + + int nID = Convert.ToInt32(Cnn.ExecuteScalar("Select IsNull(Max(id)+1,1) From [referlist]")); + Cnn.ExecuteNonQuery("insert into referlist values ('" + nID + "','" + idget + "','" + remark + "','50',1,getdate())"); + Cnn.ExecuteNonQuery("update register set Wallet=Wallet+50 where UserId=" + idget + ""); + Cnn.ExecuteNonQuery("update register set referbyid="+idget+" where UserId=" + userid + ""); + } + Cnn.Close(); + + + } + } + + + + protected void otpbutton_Click(object sender, EventArgs e) + { + if (txtname.Text == "") + { + lblerror.Text = "Enter Your Name"; return; + } + if (txtemail.Text == "") + { + lblerror.Text = "Enter Your Email Id"; return; + } + if (IsRecordAlreadyEmailExist() == true) + { + lblerror.Text = "Email Id Already Exist !!!"; return; + } + if (txtmobile.Text == "") + { + lblerror.Text = "Enter Your Mobile Number"; return; + } + if (IsRecordAlreadyMobileExist() == true) + { + lblerror.Text = "Mobile Number Alredy Exist !!!"; return; + } + if (txtpassword.Text == "") + { + lblerror.Text = "Enter Your Password"; return; + } + + + + + + //if (otpbutton.Text == "Get Otp") + //{ + // txtmobile.Enabled = false; + // otpbutton.Text = "Re-Send"; + // txtotp.Visible = true; + // registerdiv.Visible = true; + // Random rand = new Random((int)DateTime.Now.Ticks); + // int numIterations = 0; + // numIterations = rand.Next(1, 10000); + // Label1.Text = numIterations.ToString(); + // Msg.SendSMS(txtmobile.Text, "Your Otp is :" + numIterations.ToString() + "- mfpower.in"); + // lblerror.Text = " OTP sent successfully or OTP sent on your mobile No.."; + // txtotp.Focus(); + //} + //else + //{ + // Msg.SendSMS(txtmobile.Text, "Your Otp is :" + Label1.Text + "- mfpower.in"); txtotp.Focus(); + + //} + + } +} \ No newline at end of file diff --git a/request.aspx b/request.aspx new file mode 100644 index 0000000..d98f62a --- /dev/null +++ b/request.aspx @@ -0,0 +1,37 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="request.aspx.cs" Inherits="request" %> + + + + + + + + + + + <%-- --%> + + <%--

    Please wait.......

    + + + + + + + + + + + + + --%> + + + + diff --git a/request.aspx.cs b/request.aspx.cs new file mode 100644 index 0000000..26d3709 --- /dev/null +++ b/request.aspx.cs @@ -0,0 +1,179 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Reflection; +using System.Security.Cryptography; +using System.Text; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +public partial class request : System.Web.UI.Page +{ + public formrequest model = new formrequest(); + public string signature; + public string amount, firstname, email, txnid, phone, PhoneNumber, productinfo, surl, furl, lastname, curl, address1, address2, city, district, state, country, zipcode, udf1, udf2, udf3, udf4, udf5, udf6, udf7, udf8, udf9, udf10, pg = string.Empty; + public string UserCode, UserOrderId, IP = string.Empty; + public string action, hashcode, hashstring = string.Empty; + + ClsConnection Cnn = new ClsConnection(); + protected void Page_Load(object sender, EventArgs e) + { + try + { + if (string.IsNullOrEmpty(txnid)) // generating txnid + { + Random rnd = new Random(); + string strHash = Generatehash512(rnd.ToString() + DateTime.Now); + txnid = strHash.ToString().Substring(0, 20); + Application["txnid"] = txnid; + } + Cnn.Open(); + if (Application["Name"] == null || Application["MobileNo"] == null || Application["EmailId"] == null || Application["State"] == null || Application["City"] == null || Application["Zipcode"] == null || Application["ProductInfo"] == null) + { + //|| Session["ONetAmount"] == null + Response.Redirect("ProductsOrder.aspx"); + } + // amount = "1";//Order Amount + amount = Application["Amount"].ToString(); + // productinfo = Session["ProductInfo"].ToString(); + productinfo = "New Order"; + action = "https://www.cashfree.com/checkout/post/submit"; + // action = "https://test.cashfree.com/billpay/checkout/post/submit"; + firstname = Application["Name"].ToString(); + email = Application["EmailId"].ToString(); + phone = Application["MobileNo"].ToString(); + + Random random = new Random(); + int value = random.Next(10000001, 99999999); + + + //string secretKey = "9b468fdaca19f84806b9963626e9573e06a768dc"; // test + //model.appId = "CF144133C8QRMNBG1A0QGEN8IVG0"; + + + string secretKey = "a457e5940ae50717a14a05d0dec5a7b36d2ed95c"; // Original + model.appId = "193250c709e51f7aa1bc913550052391"; + + + + + + model.orderCurrency = "INR"; + model.orderId = "Order" + DateTime.Now.Year.ToString() + DateTime.Now.Month.ToString() + DateTime.Now.Day.ToString() + "_" + value; + model.orderAmount = amount; + model.notifyUrl = Request.Form["notifyUrl"]; + model.returnUrl = "https://mfpower.in/response.aspx"; + // model.returnUrl = "http://localhost:49881/de9store/response.aspx"; + model.orderNote = productinfo; + model.customerName = firstname; + model.customerEmail = email; + model.customerPhone = phone; + + + // string mode = "TEST"; //change mode to PROD for production + string signatureData = ""; + PropertyInfo[] keys = model.GetType().GetProperties(); + keys = keys.OrderBy(key => key.Name).ToArray(); + + foreach (PropertyInfo key in keys) + { + signatureData += key.Name + key.GetValue(model, null); + } + var hmacsha256 = new HMACSHA256(StringEncode(secretKey)); + byte[] gensignature = hmacsha256.ComputeHash(StringEncode(signatureData)); + signature = Convert.ToBase64String(gensignature); + System.Collections.Hashtable data = new System.Collections.Hashtable(); // adding values in gash table for data post + data.Add("appId", model.appId); + data.Add("signature", signature); + data.Add("orderNote", model.orderNote); + data.Add("orderCurrency", model.orderCurrency); + data.Add("customerName", model.customerName); + data.Add("customerEmail", model.customerEmail); + data.Add("customerPhone", model.customerPhone); + data.Add("orderAmount", model.orderAmount); + data.Add("notifyUrl", model.notifyUrl); + data.Add("returnUrl", model.returnUrl); + data.Add("orderId", model.orderId); + string strForm = PreparePOSTForm(action, data); + Page.Controls.Add(new LiteralControl(strForm)); + } + catch (Exception ex) + { + Response.Write("" + ex.Message + ""); + //Response.Redirect("Home.aspx"); + } + //model.appId = Request.Form["appId"]; + //model.orderId = Request.Form["orderId"]; + //model.orderAmount = Request.Form["orderAmount"]; + //model.orderCurrency = Request.Form["orderCurrency"]; + //model.orderNote = Request.Form["orderNote"]; + //model.customerName = Request.Form["customerName"]; + //model.customerEmail = Request.Form["customerEmail"]; + //model.customerPhone = Request.Form["customerPhone"]; + //model.notifyUrl = Request.Form["notifyUrl"]; + + //ScriptManager.RegisterStartupScript(this, this.GetType(), System.Guid.NewGuid().ToString(), "redirectPage();", true); + // ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "MyFun1", "ModalClick();", true); + //ViewData["signature"] = signature; + //if (mode == "PROD") + //{ + // ViewData["url"] = "https://www.cashfree.com/checkout/post/submit"; + //} + //else + //{ + // ViewData["url"] = "https://test.cashfree.com/billpay/checkout/post/submit"; + //} + } + + public string Generatehash512(string text) + { + byte[] message = Encoding.UTF8.GetBytes(text); + UnicodeEncoding UE = new UnicodeEncoding(); + byte[] hashValue; + SHA512Managed hashString = new SHA512Managed(); + string hex = ""; + hashValue = hashString.ComputeHash(message); + foreach (byte x in hashValue) + { + hex += String.Format("{0:x2}", x); + } + return hex; + } + + private static byte[] StringEncode(string text) + { + var encoding = new UTF8Encoding(); + return encoding.GetBytes(text); + } + + private string PreparePOSTForm(string url, System.Collections.Hashtable data) // post form + { + //Set a name for the form + string formID = "PostForm"; + //Build the form using the specified data to be posted. + StringBuilder strForm = new StringBuilder(); + strForm.Append("
    "); + + foreach (System.Collections.DictionaryEntry key in data) + { + + strForm.Append(""); + } + + strForm.Append("
    "); + //Build the JavaScript which will do the Posting operation. + StringBuilder strScript = new StringBuilder(); + strScript.Append(""); + //Return the form and the script concatenated. + //(The order is important, Form then JavaScript) + return strForm.ToString() + strScript.ToString(); + } +} \ No newline at end of file diff --git a/response.aspx b/response.aspx new file mode 100644 index 0000000..ff4b925 --- /dev/null +++ b/response.aspx @@ -0,0 +1,24 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="response.aspx.cs" Inherits="response" %> + + + + + + + + + +
    +
    + <%=Request.Form["referenceId"] %>
    + <%=Request.Form["txStatus"] %> +
    +
    + + diff --git a/response.aspx.cs b/response.aspx.cs new file mode 100644 index 0000000..09b13b4 --- /dev/null +++ b/response.aspx.cs @@ -0,0 +1,160 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using System.Security.Cryptography; +using System.Text; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +public partial class response : System.Web.UI.Page +{ + ClsConnection Cnn = new ClsConnection(); + API api = new API(); + public string log_PayResult, UserId, UserOrderId = string.Empty; + public bool log_PayResult_Succeed = false; + /*****************************************************************************************************/ + public string SALT = string.Empty; + public string hashVariable, hashString, hashCode = string.Empty; + public string[] hashArray; + public string Transaction_MihPayId, Transaction_Status, Transaction_Mode, Transaction_ErrorCode, Transaction_BankRefNum, Transaction_UnmappedStatus = string.Empty; + + protected void Page_Load(object sender, EventArgs e) + { + try + { + + Transaction_Status = Request.Form["txStatus"]; //status-SUCCESS/PENDING/FAILURE + if (Request.Form["txStatus"] == "SUCCESS" && (!string.IsNullOrEmpty(Request.Form["referenceId"]))) + { + + log_PayResult_Succeed = true; + try + { + if (Application["UserId"] != null) + { + log_PayResult = Request.Form["txStatus"] + " - Transaction Successful"; + Order Obj = new Order(); + Obj.Usercode = Convert.ToInt32(Application["UserId"].ToString()); + Obj.Paymode = "Bank"; + Obj.TrnId = Request.Form["referenceId"].ToString(); + Obj.TrnStatus = "Success"; + Obj.ShippingName = Application["Name"].ToString(); + Obj.ShippingAddress = Application["Address"].ToString(); + Obj.ShippingMobileNo = Application["MobileNo"].ToString(); + Obj.ShippingEmailId = Application["EmailId"].ToString(); + Obj.ShippingCity = Application["City"].ToString(); + Obj.ShippingZipcode = Application["Zipcode"].ToString(); + Obj.ShippingStats = Application["State"].ToString(); + Obj.IsWalletDeduct = Convert.ToBoolean(Application["IsWalletDeduct"]); + Obj.WalletAmount = Convert.ToInt32(Application["WalletAmount"]); + Obj.AddAmount = 0; + Obj.PromoCodeId = Convert.ToInt32(Application["PrmoCodeId"]); + Obj.PromoCodeAmount = Convert.ToInt32(Application["PrmoCodeAmnt"]); + Obj.OrderThrough = "Web"; + Obj.DeliveryFees = Convert.ToInt32(Application["DCharges"].ToString()); + + orderfunction odd = new orderfunction(); + odd.GenerateOrder(Obj); + HttpContext context1 = HttpContext.Current; + if (context1.Request.Cookies["mfpowerCart"] != null) + { + if (Request.Cookies["mfpowerCart"].Value != null) + { + Response.Cookies["mfpowerCart"].Expires = DateTime.Now.AddDays(-1); + Response.Cookies.Remove("mfpowerCart"); + HttpCookie myCookie = new HttpCookie("mfpowerCart"); + myCookie.Expires = DateTime.Now.AddDays(-1d); + Response.Cookies.Add(myCookie); + } + } + + Cnn.Open(); + DataSet ds = new DataSet(); + Cnn.FillDataSet(ds, "select * from register Where UserId=" + Application["UserId"] + "", "Admin_Login"); + Session["UserId"] = ds.Tables[0].Rows[0]["UserId"].ToString(); + Session["MobileNumber"] = ds.Tables[0].Rows[0]["MobileNumber"].ToString(); + Session["Groupid"] = ds.Tables[0].Rows[0]["Groupid"].ToString(); + Response.Cookies["UserId"].Value = ds.Tables[0].Rows[0]["UserId"].ToString(); + Cnn.Close(); + Response.Redirect("Ordersuccess.aspx", false); + } + else + { + + log_PayResult_Succeed = false; + log_PayResult = Request.Form["status"] + " - Transaction Not Successful"; + if (Application["UserId"] != null) + { + Cnn.Open(); + DataSet ds = new DataSet(); + Cnn.FillDataSet(ds, "select * from register Where UserId=" + Application["UserId"] + "", "Admin_Login"); + Session["UserId"] = ds.Tables[0].Rows[0]["UserId"].ToString(); + Session["MobileNumber"] = ds.Tables[0].Rows[0]["MobileNumber"].ToString(); + Session["Groupid"] = ds.Tables[0].Rows[0]["Groupid"].ToString(); + Response.Cookies["UserId"].Value = ds.Tables[0].Rows[0]["UserId"].ToString(); + Cnn.Close(); + } + Response.Redirect("ProductsOrder.aspx", false); + } + } + catch (Exception ex) + { + + } + } + else + { + log_PayResult_Succeed = false; + log_PayResult = Request.Form["txStatus"] + " - Transaction Not Successful"; + if (Application["UserId"] != null) + { + Cnn.Open(); + DataSet ds = new DataSet(); + Cnn.FillDataSet(ds, "select * from register Where UserId=" + Application["UserId"] + "", "Admin_Login"); + Session["UserId"] = ds.Tables[0].Rows[0]["UserId"].ToString(); + Session["MobileNumber"] = ds.Tables[0].Rows[0]["MobileNumber"].ToString(); + Session["Groupid"] = ds.Tables[0].Rows[0]["Groupid"].ToString(); + Response.Cookies["UserId"].Value = ds.Tables[0].Rows[0]["UserId"].ToString(); + Cnn.Close(); + } + Response.Redirect("ProductsOrder.aspx", false); + } + + } + + catch (Exception Ex) + { + Response.Write("" + Ex.Message + ""); + if (Application["UserId"] != null) + { + Cnn.Open(); + DataSet ds = new DataSet(); + Cnn.FillDataSet(ds, "select * from register Where UserId=" + Application["UserId"] + "", "Admin_Login"); + Session["UserId"] = ds.Tables[0].Rows[0]["UserId"].ToString(); + Session["MobileNumber"] = ds.Tables[0].Rows[0]["MobileNumber"].ToString(); + Session["Groupid"] = ds.Tables[0].Rows[0]["Groupid"].ToString(); + Response.Cookies["UserId"].Value = ds.Tables[0].Rows[0]["UserId"].ToString(); + Cnn.Close(); + } + Response.Redirect("ProductsOrder.aspx"); + } + + } + + public string Generatehash512(string text) + { + byte[] message = Encoding.UTF8.GetBytes(text); + UnicodeEncoding UE = new UnicodeEncoding(); + byte[] hashValue; + SHA512Managed hashString = new SHA512Managed(); + string hex = ""; + hashValue = hashString.ComputeHash(message); + foreach (byte x in hashValue) + { + hex += String.Format("{0:x2}", x); + } + return hex; + } +} \ No newline at end of file diff --git a/returninfo.aspx b/returninfo.aspx new file mode 100644 index 0000000..6ea2ceb --- /dev/null +++ b/returninfo.aspx @@ -0,0 +1,123 @@ +<%@ Page Title="Return Policy - mfpower.in" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="returninfo.aspx.cs" Inherits="returninfo" %> + + + + + +
    +
    +
    +

    +Return Policy +

    + + +
    +
    +
    + + + + +
    +
    +
    + +
    +
    +
    +
    Return
    + +

    + + Cancellation Policy: An order can be canceled through the Website before making the payment. + + +

    +

    + Return Policy: The product will be replaced by the company if in case the product is damaged before delivery & the end-user need to make a video of opening the product, at the point of receiving the product. +

    +

    any part or accessories of the item received are missing

    +

    Item received is different from that described in the product detail page of mfpower.in

    +

    + Delivery & Shipping Policy : The product will be dispatched by the company within 24 hours. +

    +

    No extra fees will be charged for online purchases.

    +

    Cash On Delivery will apply some extra fees.

    +

    If the end-user receives a damaged product then in that case the product will be replaced by the company.

    +

    Product will be delivered within 3 to 7 working days, depending on the area of purchase made.

    +
    + + +
    +
    + + + + + + + + +

    + +
    + +
    +
    +
    + + +
    + diff --git a/returninfo.aspx.cs b/returninfo.aspx.cs new file mode 100644 index 0000000..a717ebf --- /dev/null +++ b/returninfo.aspx.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +public partial class returninfo : System.Web.UI.Page +{ + protected void Page_Load(object sender, EventArgs e) + { + + } +} \ No newline at end of file diff --git a/robot.txt b/robot.txt new file mode 100644 index 0000000..e058906 --- /dev/null +++ b/robot.txt @@ -0,0 +1,4 @@ +User-agent: * +Allow: / +Allow: /sitemap.xml +Sitemap: http://www.mfpower.in/sitemap.xml \ No newline at end of file diff --git a/robots.txt b/robots.txt new file mode 100644 index 0000000..91fbee5 --- /dev/null +++ b/robots.txt @@ -0,0 +1,4 @@ +robots.txt generated by www.seoptimer.com +User-agent: * +Disallow: +Disallow: /admin/ diff --git a/shipingaddress.aspx b/shipingaddress.aspx new file mode 100644 index 0000000..8dde99f --- /dev/null +++ b/shipingaddress.aspx @@ -0,0 +1,96 @@ +<%@ Page Title="Shipping Address - mfpower.in" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="shipingaddress.aspx.cs" Inherits="shipingaddress" %> + + + + + +

    + + +

    +
    + diff --git a/shipingaddress.aspx.cs b/shipingaddress.aspx.cs new file mode 100644 index 0000000..26921ce --- /dev/null +++ b/shipingaddress.aspx.cs @@ -0,0 +1,132 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +public partial class shipingaddress : System.Web.UI.Page +{ + + ClsConnection Cnn = new ClsConnection(); + + protected void Page_Load(object sender, EventArgs e) + { + if (Session["UserId"] == null) + { + Response.Redirect("login.aspx"); + } + if (!IsPostBack) + { + Cnn.Open(); + //DataTable DtState = Cnn.FillTable("Select 'State_Code'=-1,'State_Name'='Select State Name' union select State_Code,State_Name from [Loc_State]", "State"); + //DDState.DataSource = DtState; + //DDState.DataBind(); + + DataSet ds = new DataSet(); + Cnn.FillDataSet(ds, "select * from register as a where a.userid='" + Session["UserId"] + "'", "Admin_Login"); + txtname.Text = ds.Tables[0].Rows[0]["name"].ToString(); + txtAddress.Text = ds.Tables[0].Rows[0]["Address"].ToString(); + string sid = ds.Tables[0].Rows[0]["State"].ToString(); + string did = ds.Tables[0].Rows[0]["District"].ToString(); + txtmobile.Text = ds.Tables[0].Rows[0]["MobileNumber"].ToString(); + txtemail.Text = ds.Tables[0].Rows[0]["EmailId"].ToString(); + + txtpincode.Text = ds.Tables[0].Rows[0]["zipcode"].ToString(); + txtstate.Text = ds.Tables[0].Rows[0]["State"].ToString(); + txtDistrict.Text = ds.Tables[0].Rows[0]["District"].ToString(); + + + //DDState.DataBind(); + //DDState.Items.FindByValue(sid).Selected = true; + //txtpincode.Text = ds.Tables[0].Rows[0]["Zipcode"].ToString(); + //DataTable city = Cnn.FillTable("Select 'District_Code'=-1,'District_Name'='Select District Name' union select District_Code,District_Name from Loc_Districtn where State_Code='" + DDState.SelectedValue + "'", "State"); + //DDDistrict.DataSource = city; + //DDDistrict.DataBind(); + + //DDDistrict.DataBind(); + //DDDistrict.Items.FindByValue(did).Selected = true; + Cnn.Close(); + } + } + //protected void DDState_SelectedIndexChanged(object sender, EventArgs e) + //{ + // Cnn.Open(); + + // DataTable city = Cnn.FillTable("Select 'District_Code'=-1,'District_Name'='Select District Name' union select District_Code,District_Name from Loc_Districtn where State_Code='" + DDState.SelectedValue + "'", "State"); + // DDDistrict.DataSource = city; + // DDDistrict.DataBind(); + // Cnn.Close(); + //} + + protected void LinkButton1_Click(object sender, EventArgs e) + { + string ip = Request.ServerVariables["remote_addr"]; + try + { + if (txtname.Text == "") + { + UserLbl.Text = "Enter Name !!!"; + + return; + + } + if (txtAddress.Text == "") + { + UserLbl.Text = "Enter Address !!!"; + return; + } + + if (txtmobile.Text == "") + { + UserLbl.Text = "Enter Mobile Number.!!!"; + return; + } + if (txtemail.Text == "") + { + UserLbl.Text = "Enter Emil ID.!!!"; + return; + } + if (txtpincode.Text == "") + { + UserLbl.Text = "Enter pincode!!!"; + return; + } + + + if (txtstate.Text == "") + { + UserLbl.Text = "Select State Name !!!"; + return; + } + + if (txtDistrict.Text == "") + { + UserLbl.Text = "Select District Name !!!"; + return; + } + Cnn.Open(); + Cnn.ExecuteNonQuery("update register set Name='" + txtname.Text + "',EmailId='" + txtemail.Text + "',Address='" + txtAddress.Text + "',State='" + txtstate.Text + "',District='" + txtDistrict.Text + "',City='" + txtDistrict.Text + "',ZipCode='" + txtpincode.Text + "',MobileNumber='" + txtmobile.Text + "' where UserId=" + Session["UserId"] + ""); + // Cnn.ExecuteNonQuery("insert into [register] (UserId,Name,EmailId,Address,State,District,City,ZipCode,MobileNumber,password,rts,active,ip,Wallet,OrderCount,Groupid,gst,rcode) Values ('" + Id + "','" + txtname.Text + "','" + txtemail.Text + "','" + txtAddress.Text + "','" + DDState.SelectedValue + "','" + DDDistrict.SelectedValue + "','" + DDDistrict.SelectedItem + "','" + txtpincode.Text + "','" + txtmobile.Text.Trim() + "','" + txtConfirmpassword.Text + "',GetDate(),'1','" + ip + "','" + Firstuser + "','1','1','','" + code + "')"); + + + + + + // Response.Write(""); + + Response.Redirect(ResolveUrl("~/ProductsOrder.aspx#maindiv")); + Cnn.Close(); + + + } + catch { } + + } + + + + + +} \ No newline at end of file diff --git a/sitemap.xml b/sitemap.xml new file mode 100644 index 0000000..25be0ec --- /dev/null +++ b/sitemap.xml @@ -0,0 +1,157 @@ + + + + + + + https://mfpower.in/ + 2022-04-27T07:45:57+00:00 + 1.00 + + + https://mfpower.in/login.aspx + 2022-04-27T07:45:57+00:00 + 0.80 + + + https://mfpower.in/cart.aspx + 2022-04-27T07:45:57+00:00 + 0.80 + + + https://mfpower.in/index.aspx + 2022-04-27T07:45:57+00:00 + 0.80 + + + https://mfpower.in/Index.aspx + 2022-04-27T07:45:57+00:00 + 0.80 + + + https://mfpower.in/fcare.aspx + 2022-04-27T07:45:57+00:00 + 0.80 + + + https://mfpower.in/MPower.aspx + 2022-04-27T07:45:57+00:00 + 0.80 + + + https://mfpower.in/FamilyKit.aspx + 2022-04-27T07:45:57+00:00 + 0.80 + + + https://mfpower.in/Blog.aspx + 2022-04-27T07:45:57+00:00 + 0.80 + + + https://mfpower.in/appointment.aspx + 2022-04-27T07:45:57+00:00 + 0.80 + + + https://mfpower.in/familykit.aspx + 2022-04-27T07:45:57+00:00 + 0.80 + + + https://mfpower.in/mpower.aspx + 2022-04-27T07:45:57+00:00 + 0.80 + + + https://mfpower.in/aboutus.aspx + 2022-04-27T07:45:57+00:00 + 0.80 + + + https://mfpower.in/blogview.aspx?id=2 + 2022-04-27T07:45:57+00:00 + 0.80 + + + https://mfpower.in/blogview.aspx?id=1 + 2022-04-27T07:45:57+00:00 + 0.80 + + + https://mfpower.in/blogview.aspx?id=3 + 2022-04-27T07:45:57+00:00 + 0.80 + + + https://mfpower.in/AboutUs.aspx + 2022-04-27T07:45:57+00:00 + 0.80 + + + https://mfpower.in/ContactUs.aspx + 2022-04-27T07:45:57+00:00 + 0.80 + + + https://mfpower.in/product.aspx + 2022-04-27T07:45:57+00:00 + 0.80 + + + https://mfpower.in/Terms.aspx + 2022-04-27T07:45:57+00:00 + 0.80 + + + https://mfpower.in/HelpFAQ.aspx + 2022-04-27T07:45:57+00:00 + 0.80 + + + https://mfpower.in/Privacypolicy.aspx + 2022-04-27T07:45:57+00:00 + 0.80 + + + https://mfpower.in/returninfo.aspx + 2022-04-27T07:45:57+00:00 + 0.80 + + + https://mfpower.in/register.aspx + 2022-04-27T07:45:57+00:00 + 0.80 + + + https://mfpower.in/forgotpassword.aspx + 2022-04-27T07:45:57+00:00 + 0.64 + + + https://mfpower.in/websider.aspx?id=2 + 2022-04-27T07:45:57+00:00 + 0.64 + + + https://mfpower.in/websider.aspx?id=1 + 2022-04-27T07:45:57+00:00 + 0.64 + + + https://mfpower.in/websider.aspx?id=3 + 2022-04-27T07:45:57+00:00 + 0.64 + + + https://mfpower.in/AffiliateProgram.aspx + 2022-04-27T07:45:57+00:00 + 0.64 + + + + \ No newline at end of file diff --git a/uc.html b/uc.html new file mode 100644 index 0000000..e38939e --- /dev/null +++ b/uc.html @@ -0,0 +1,45 @@ + + + + The Coming soon Website + + + + + + +
    +
    +
    +

    +
    +
    +

    +

    We are Still Working on it.

    + + +
    +
    +
    + + +
    +
    + + + \ No newline at end of file diff --git a/web.config b/web.config new file mode 100644 index 0000000..d69317a --- /dev/null +++ b/web.config @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/websider.aspx b/websider.aspx new file mode 100644 index 0000000..943d359 --- /dev/null +++ b/websider.aspx @@ -0,0 +1,66 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="websider.aspx.cs" Inherits="websider" %> + + + + + + + + + + +
    + +
    + + diff --git a/websider.aspx.cs b/websider.aspx.cs new file mode 100644 index 0000000..8c9ea22 --- /dev/null +++ b/websider.aspx.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Data; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +public partial class websider : System.Web.UI.Page +{ + public static string img1 = "", img2 = "", img3 = "", img4 = "",img5="",img6=""; + ClsConnection cnn = new ClsConnection(); + protected void Page_Load(object sender, EventArgs e) + { + DataTable dtlsrblog = cnn.FillTable("select image,img2,img3,img4,img5,img6 from [product] where productid=" + Request.QueryString["id"] + "", "Detail"); + + img1 = dtlsrblog.Rows[0]["image"].ToString(); + img2 = dtlsrblog.Rows[0]["img2"].ToString(); + img3 = dtlsrblog.Rows[0]["img3"].ToString(); + img4 = dtlsrblog.Rows[0]["img4"].ToString(); + img5 = dtlsrblog.Rows[0]["img5"].ToString(); + img6 = dtlsrblog.Rows[0]["img6"].ToString(); + } +} \ No newline at end of file diff --git a/webslider.aspx b/webslider.aspx new file mode 100644 index 0000000..c09b06b --- /dev/null +++ b/webslider.aspx @@ -0,0 +1,78 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="webslider.aspx.cs" Inherits="webslider" %> + + + + + + + + + + + + + + +
    + +
    + + diff --git a/webslider.aspx.cs b/webslider.aspx.cs new file mode 100644 index 0000000..7e37b20 --- /dev/null +++ b/webslider.aspx.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +public partial class webslider : System.Web.UI.Page +{ + protected void Page_Load(object sender, EventArgs e) + { + + } +} \ No newline at end of file