+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Privacy Policy which sets forth our policies regarding the collection, use and protection
+ of the information of those using the Starbus website. Information that can be linked
+ to a specific individual, such as name, address, telephone number, e-mail and address
+ are protected.
+
+ We encourage you to review our Privacy Policy, and become familiar with it, but
+ you should know that we do not sell or rent our customers' personal information
+ to third parties.
+
+ This Privacy Policy explains the following:
+
+
+ What personal information does Starbus gather from
+ me and how is this information used?
+
+
+ When browsing our site, you are not required to provide any personal information
+ unless and until you choose other services as described above.
+
+ What safeguards are in place to protect the loss,
+ misuse or alteration of your information?
+
+ All personal information you provide to Starbus is transmitted using SSL (Secure
+ Socket Layer) encryption. SSL is a proven coding system that lets your browser automatically
+ encrypt, or scramble, data before you send it to us. In addition, when you make
+ travel purchases on Starbus, you are protected.
+
+
+
+
+
+
+
+
+
+
+
+
+ Thank you for Choosing Us.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Privacypolicy.aspx.cs b/Privacypolicy.aspx.cs
new file mode 100644
index 0000000..f92e0ae
--- /dev/null
+++ b/Privacypolicy.aspx.cs
@@ -0,0 +1,24 @@
+/*
+ Created By: Brij Mohan Dammani
+ * Object: To show Privacy Policy Static Page
+*/
+using System;
+using System.Collections;
+using System.Configuration;
+using System.Data;
+using System.Linq;
+using System.Web;
+using System.Web.Security;
+using System.Web.UI;
+using System.Web.UI.HtmlControls;
+using System.Web.UI.WebControls;
+using System.Web.UI.WebControls.WebParts;
+using System.Xml.Linq;
+
+public partial class Privacypolicyajax : System.Web.UI.Page
+{
+ protected void Page_Load(object sender, EventArgs e)
+ {
+
+ }
+}
diff --git a/Search_byuser.aspx b/Search_byuser.aspx
new file mode 100644
index 0000000..e5992e5
--- /dev/null
+++ b/Search_byuser.aspx
@@ -0,0 +1,189 @@
+<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Search_byuser.aspx.cs" Inherits="Search_user" Title="Star Bus:Search Tickets" %>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Enter The PNR number:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ PNR Number
+
+
+ :
+
+
+
+
+
+ Agnet Name
+ :
+
+
+
+
+ Name
+
+
+ :
+
+
+
+
+
+ Phone Number
+ :
+
+
+
+
+ From
+
+
+ :
+
+
+
+
+
+ To
+ :
+
+
+
+
+ Date
+
+
+ :
+
+
+
+
+
+ Time
+ :
+
+
+
+
+ Seat Number
+
+
+ :
+
+
+
+
+
+ Total Seat
+ :
+
+
+
+ State's
+ :
+
+
+
+ Total Rent
+
+
+ :
+
+
+ Rs.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Search_byuser.aspx.cs b/Search_byuser.aspx.cs
new file mode 100644
index 0000000..30125da
--- /dev/null
+++ b/Search_byuser.aspx.cs
@@ -0,0 +1,72 @@
+/*
+ Created By: Brij Mohan Dammani
+ * Object: Search from PNR No
+*/
+using System;
+using System.Collections;
+using System.Configuration;
+using System.Data;
+using System.Linq;
+using System.Web;
+using System.Web.Security;
+using System.Web.UI;
+using System.Web.UI.HtmlControls;
+using System.Web.UI.WebControls;
+using System.Web.UI.WebControls.WebParts;
+using System.Xml.Linq;
+using System.Data.SqlClient;
+using System.Data.OleDb;
+
+public partial class Search_user : System.Web.UI.Page
+{
+ string strcon = DB.ConnectionString;
+ OleDbConnection con;
+ OleDbCommand cmd;
+ OleDbDataReader rea;
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ txtpnr.Focus();
+
+ }
+ protected void btndisplay_Click1(object sender, EventArgs e)
+ {
+ string strsql = "Select * from passengerinfo where Pnr = '" + txtpnr.Text.Trim() + "'";
+ con = new OleDbConnection(DB.ConnectionString);
+ cmd = new OleDbCommand();
+
+ con.Open();
+ cmd.Connection = con;
+ cmd.CommandText = strsql;
+ using (rea = cmd.ExecuteReader())
+ {
+ if (rea.Read())
+ {
+ pnl2.Visible = true;
+ pnl1.Visible = false;
+ lblerror.Text = "";
+ litpnr.Text = rea[0].ToString();
+ litname.Text = rea[1].ToString();
+ litph.Text = rea[2].ToString();
+ litto.Text = rea[3].ToString();
+ litfrom.Text = rea[4].ToString();
+ litdate.Text = rea[5].ToString();
+ littime.Text = rea[6].ToString();
+ littotalseat.Text = rea[7].ToString();
+ litseat.Text = rea[8].ToString();
+ litrent.Text = rea[9].ToString();
+ litagent.Text = rea[10].ToString();
+ litstates.Text = rea[11].ToString();
+
+
+ }
+ else
+ {
+ lblerror.Text = "Plz Enter the Corret PnR Number";
+ pnl1.Visible = true;
+ pnl2.Visible = false;
+
+ }
+ }
+ con.Close();
+ }
+}
diff --git a/Secret/Cancelticket.aspx b/Secret/Cancelticket.aspx
new file mode 100644
index 0000000..714b703
--- /dev/null
+++ b/Secret/Cancelticket.aspx
@@ -0,0 +1,211 @@
+<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
+ CodeFile="Cancelticket.aspx.cs" Inherits="Secret_Cancelticket" Title="Star Bus" %>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Enter The PNR number:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ PNR Number
+
+
+ :
+
+
+
+
+
+ Agnet Name
+ :
+
+
+
+
+ Name
+
+
+ :
+
+
+
+
+
+ Phone Number
+ :
+
+
+
+
+ From
+
+
+ :
+
+
+
+
+
+ To
+ :
+
+
+
+
+ Date
+
+
+ :
+
+
+
+
+
+ Time
+ :
+
+
+
+
+ Seat Number
+
+
+ :
+
+
+
+
+
+ Total Seat
+ :
+
+
+
+
+
+ Status
+
+ :
+
+
+
+
+
+
+
+
+
+
+
+ Total Rent
+
+
+ :
+
+
+ Rs.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Secret/Cancelticket.aspx.cs b/Secret/Cancelticket.aspx.cs
new file mode 100644
index 0000000..efc2b8a
--- /dev/null
+++ b/Secret/Cancelticket.aspx.cs
@@ -0,0 +1,154 @@
+/*
+ Created By: Brij Mohan Dammani
+ * Object: To cancel ticket.
+*/
+using System;
+using System.Collections;
+using System.Configuration;
+using System.Data;
+using System.Linq;
+using System.Web;
+using System.Web.Security;
+using System.Web.UI;
+using System.Web.UI.HtmlControls;
+using System.Web.UI.WebControls;
+using System.Web.UI.WebControls.WebParts;
+using System.Xml.Linq;
+using System.Data.SqlClient;
+using System.Data.OleDb;
+
+public partial class Secret_Cancelticket : System.Web.UI.Page
+{
+ OleDbConnection con;
+ OleDbCommand cmd;
+ OleDbDataReader rea;
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ txtpnr.Focus();
+ if (!Page.IsPostBack)
+ {
+ if (Request.QueryString["q"] != null)
+ {
+ lblerror.Text = "The Ticked is deleted successfully.";
+ }
+
+ }
+ else
+ {
+ lblerror.Text = "";
+ }
+
+ }
+ protected void btnshow_Click1(object sender, EventArgs e)
+ {
+ string strsql = "Select * from passengerinfo where Pnr = '" + txtpnr.Text.Trim() + "'";
+ con = new OleDbConnection(DB.ConnectionString);
+ cmd = new OleDbCommand();
+ con.Open();
+ cmd.Connection = con;
+ cmd.CommandText = strsql;
+ rea = cmd.ExecuteReader();
+ if (rea.Read())
+ {
+ pnl2.Visible = true;
+ pnl1.Visible = false;
+ lblerror.Text = "";
+ litpnr.Text = rea[0].ToString();
+ litname.Text = rea[1].ToString();
+ litph.Text = rea[2].ToString();
+ litto.Text = rea[3].ToString();
+ litfrom.Text = rea[4].ToString();
+ litdate.Text = rea[5].ToString();
+ littime.Text = rea[6].ToString();
+ littotalseat.Text = rea[7].ToString();
+ litseat.Text = rea[8].ToString();
+ litrent.Text = rea[9].ToString();
+ litagent.Text = rea[10].ToString();
+ litStatus.Text = rea[11].ToString();
+ }
+ else
+ {
+ lblerror.Text = "Plz Enter the Corret PnR Number";
+ pnl1.Visible = true;
+ pnl2.Visible = false;
+
+ }
+ con.Close();
+ }
+ protected void btndel_Click(object sender, EventArgs e)
+ {
+ if (litStatus.Text == "Cancel")
+ {
+ lblerror.Text = "This Ticket is already deleted.";
+ pnl1.Visible = true;
+ pnl2.Visible = false;
+
+ }
+ else
+ {
+ DateTime tickettime = System.DateTime.Parse(littime.Text);
+ int diffofdate = System.DateTime.Today.Date.CompareTo(System.DateTime.Parse(litdate.Text.ToString()));
+ if (diffofdate >= 1)
+ {
+ lblerror.Text = "::You cannot Cancel the Back Date Ticket:: Thanks";
+ }
+ /*9:00:00PM";
+ string timeofbus = littime.Text.Substring(1);
+ string timeofbus = littime.Text.Substring(0, 1);
+ string amorpm = littime.Text.Substring(8, 2);
+ int diffofTime = System.DateTime.Today.TimeOfDay.CompareTo(TimeSpan.Parse(littime.Text));*/
+
+ else if ((diffofdate == 0 && tickettime > System.DateTime.Now.AddHours(2.00)) || (diffofdate < 0))
+ {
+
+
+ string[] strseat = litseat.Text.Split(',');
+ for (int j = 0; j < strseat.Length; j++)
+ {
+
+
+ string strsql = "UPDATE States set " + strseat[j].ToString() + " = '' where ((Date = '" + litdate.Text
+ + "')and (Time='" + littime.Text
+ + "')and (Station ='" + litto.Text + "'))";
+ DB.ExecuteNonQuery(strsql);
+
+ }
+
+ string strsql1 = "Update passengerinfo set Status = 'Cancel' where pnr ='" + litpnr.Text + "' ";
+ DB.ExecuteNonQuery(strsql1);
+
+
+ OleDbConnection conbal;
+ OleDbCommand cmdbal;
+ OleDbDataReader reabal;
+ string strsqlbal = "select * from AgentBasicInfo where (Agent_id='" + User.Identity.Name.ToString() + "')";
+ conbal = new OleDbConnection(DB.ConnectionString);
+ cmdbal = new OleDbCommand();
+ cmdbal.Connection = conbal;
+ cmdbal.CommandText = strsqlbal;
+ conbal.Open();
+ reabal = cmdbal.ExecuteReader();
+ if (reabal.Read())
+ {
+ string b;
+ b = reabal[8].ToString();
+ int cbal;
+ int abal;
+ abal = int.Parse(b);
+ cbal = int.Parse(litrent.Text.ToString());
+
+ int rbal = abal + cbal;
+ string strupdatebal = "Update AgentBasicInfo set Agent_current_bal = " + rbal.ToString() + " where (Agent_id ='" + User.Identity.Name.ToString() + "')";
+ DB.ExecuteNonQuery(strupdatebal);
+ }
+ conbal.Close();
+ Response.Cookies["delpnr"].Value= litpnr.Text.ToString();
+ Response.Redirect("Cancelticket.aspx?q=1");
+
+ }
+
+ }
+
+ }
+
+}
diff --git a/Secret/Change_pass.aspx b/Secret/Change_pass.aspx
new file mode 100644
index 0000000..a7fc8ef
--- /dev/null
+++ b/Secret/Change_pass.aspx
@@ -0,0 +1,101 @@
+<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Change_pass.aspx.cs" Inherits="AdminArea_Change_pass" Title="Star Bus: Change Password" %>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Current Password:
+
+
+
+ *
+
+
+
+
+ New Password:
+
+
+
+ *
+
+
+
+
+ Confirm New Password:
+
+
+
+ *
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Secret/Change_pass.aspx.cs b/Secret/Change_pass.aspx.cs
new file mode 100644
index 0000000..ae8d11f
--- /dev/null
+++ b/Secret/Change_pass.aspx.cs
@@ -0,0 +1,65 @@
+/*
+ Created By: Brij Mohan Dammani
+ * Object: To change login password.
+*/
+using System;
+using System.Collections;
+using System.Configuration;
+using System.Data;
+using System.Linq;
+using System.Web;
+using System.Web.Security;
+using System.Web.UI;
+using System.Web.UI.HtmlControls;
+using System.Web.UI.WebControls;
+using System.Web.UI.WebControls.WebParts;
+using System.Xml.Linq;
+using System.Data.OleDb;
+
+public partial class AdminArea_Change_pass : System.Web.UI.Page
+{
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ lblMsg.Text = "";
+ FailureText.Text = "";
+ }
+ bool IsValidPassword(string oldPassword)
+ {
+ try
+ {
+ string qry = String.Format("select [Password] from userInfo where userName='{0}'", Page.User.Identity.Name);
+ string OldPassword = DB.ExecuteScaler(qry).ToString();
+ return (oldPassword == OldPassword);
+ }
+ catch (Exception)
+ {
+ return false;
+ }
+
+ }
+ void UpdatePassword(string newPassword)
+ {
+ try
+ {
+ string qry = String.Format("Update UserInfo set [Password] = '{0}' where username='{1}'", newPassword, Page.User.Identity.Name);
+ DB.ExecuteNonQuery(qry);
+ lblMsg.Text = "Password is updated successfully. ";
+ }
+ catch (Exception ex)
+ {
+ FailureText.Text = "Error: " + ex.ToString();
+ }
+ }
+
+ protected void ChangePasswordPushButton_Click(object sender, EventArgs e)
+ {
+ if (IsValidPassword(CurrentPassword.Text))
+ {
+ UpdatePassword(NewPassword.Text);
+ }
+ else
+ {
+ FailureText.Text = "Invalid Current Password.";
+ }
+ }
+}
diff --git a/Secret/Selectseat.aspx b/Secret/Selectseat.aspx
new file mode 100644
index 0000000..33ae11a
--- /dev/null
+++ b/Secret/Selectseat.aspx
@@ -0,0 +1,378 @@
+<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
+ CodeFile="~/Secret/selectseat.aspx.cs" Inherits="starselectseet2" Title="Star Bus:Book Tickets Now" %>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ From:
+
+
+
+
+
+
+
+
+
+ To:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Depart on :
+
+
+
+
+
+
+
+
+
+
+
+
+ Time
+
+
+
+
+
+
+
+
+
+
+
+
+ Seat Number
+
+
+
+
+
+
+
+ Rent
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1
+
+ 6
+
+ 7
+
+ 12
+
+ 13
+
+ 18
+
+ 19
+
+ 24
+
+ 25
+
+ 31
+
+
+ 2
+
+ 5
+
+ 8
+
+ 11
+
+ 14
+
+ 17
+
+ 20
+
+ 23
+
+ 26
+
+ 30
+
+
+
+
+
+
+
+
+
+
+
+
+ 29
+
+
+
+ 3
+
+ 4
+
+ 9
+
+ 10
+
+ 15
+
+ 16
+
+ 21
+
+ 22
+
+ 27
+
+ 28
+
+
+
+
+
+
+
+ CUSTOMER INFORMATION
+
+
+
+
+
+
+
+ Ticket Number
+
+
+ :
+
+
+
+
+
+
+
+ Name
+
+
+ :
+
+
+
+
+ <%-- --%>
+
+
+
+
+ Phone Number
+
+
+ :
+
+
+
+
+
+
+
+
+ Total Seat
+
+
+ :
+
+
+
+
+
+
+
+ Rent Per Seat
+
+
+ :
+
+
+
+
+
+
+
+ Bus Number
+
+
+ :
+
+
+
+
+
+
+
+ Total Rent
+
+
+ :
+
+
+ Rs.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Secret/print1.aspx b/Secret/print1.aspx
new file mode 100644
index 0000000..d29834c
--- /dev/null
+++ b/Secret/print1.aspx
@@ -0,0 +1,424 @@
+<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/MasterPage.master" CodeFile="print1.aspx.cs" Inherits="Secret_print1" Title="Star Bus:Print Ticket Now" %>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ H.O :-Star Bus,Rani Bazar,Bikaner
+ Ph :- 9887301585
+
+ B.O :-Star Bus, J.N.V.,Bikaner
+ Ph :-9214961605
+
+
+
+
+ Ticket Number
+
+
+ :
+
+
+
+
+
+
+
+ Agent Name
+
+
+ :
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ :
+
+
+
+
+
+
+
+ Phone Number
+
+
+ :
+
+
+
+
+
+
+
+
+
+ Source
+
+
+ :
+
+
+ Bikaner
+
+
+ Destination
+
+
+ :
+
+
+
+
+
+
+
+
+
+ Joutney Date
+
+
+ :
+
+
+
+
+
+
+
+ Journey Time
+
+
+ :
+
+
+
+
+
+
+
+
+
+ Seat Numbers
+
+
+ :
+
+
+
+
+
+
+
+ No.of Passengers
+
+
+ :
+
+
+
+
+
+
+
+
+ Boarding Point
+
+
+ :
+
+
+ J.N.V Colony, Bikaner
+
+
+ Bus Number
+
+
+ :
+
+
+
+
+
+
+
+
+
+ Booking Date
+
+
+ :
+
+
+
+
+
+
+
+ Total Rent
+
+
+ :
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ H.O :- Star Bus,Rani Bazar,Bikaner
+ Ph :- 9887301585
+
+ B.O :- Star Bus, J.N.V.,Bikaner
+ Ph :- 9214961605
+
+
+
+
+ Ticket Number
+
+
+ :
+
+
+
+
+
+
+
+ Agent Name
+
+
+ :
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ :
+
+
+
+
+
+
+
+ Phone Number
+
+
+ :
+
+
+
+
+
+
+
+
+
+ Source
+
+
+ :
+
+
+ Bikaner
+
+ Destination
+
+
+ :
+
+
+
+
+
+
+
+
+
+ Joutney Date
+
+
+ :
+
+
+
+
+
+
+
+ Journey Time
+
+
+ :
+
+
+
+
+
+
+
+
+
+ Seat Numbers
+
+
+ :
+
+
+
+
+
+
+
+ No.of Passengers
+
+
+ :
+
+
+
+
+
+
+
+
+ Total Rent
+
+
+ :
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Secret/print1.aspx.cs b/Secret/print1.aspx.cs
new file mode 100644
index 0000000..ff62f8a
--- /dev/null
+++ b/Secret/print1.aspx.cs
@@ -0,0 +1,49 @@
+/*
+ Created By: Brij Mohan Dammani
+ * Object: To print bus ticket.
+*/
+using System;
+using System.Collections;
+using System.Configuration;
+using System.Data;
+using System.Linq;
+using System.Web;
+using System.Web.Security;
+using System.Web.UI;
+using System.Web.UI.HtmlControls;
+using System.Web.UI.WebControls;
+using System.Web.UI.WebControls.WebParts;
+using System.Xml.Linq;
+
+public partial class Secret_print1 : System.Web.UI.Page
+{
+ protected void Page_Load(object sender, EventArgs e)
+ {
+
+ litagent.Text = User.Identity.Name.ToString();
+ litbookingdate.Text = System.DateTime.Now.ToString("D");// System.DateTime.Now.Date.ToString();
+ litdestination.Text = Request.Cookies["destination"].Value;
+ litpnr.Text = Request.Cookies["pnr"].Value;
+ litname.Text = Request.Cookies["name"].Value;
+ litph.Text = Request.Cookies["ph"].Value;
+ litrent.Text = Request.Cookies["rent"].Value;
+ litjourneydate.Text = Request.Cookies["jodate"].Value;
+ litjourneytime.Text = Request.Cookies["jotime"].Value;
+ litseatnum.Text = Request.Cookies["seatnum"].Value;
+ littotalseat.Text = Request.Cookies["totalseat"].Value;
+ litbusnumber.Text = Request.Cookies["busnumber"].Value;
+
+ litpnr1.Text = Request.Cookies["pnr"].Value;
+ litaname1.Text = User.Identity.Name.ToString();
+ litcname1.Text = Request.Cookies["name"].Value;
+ litph1.Text = Request.Cookies["ph"].Value;
+ litdes1.Text = Request.Cookies["destination"].Value;
+ litdate1.Text = Request.Cookies["jodate"].Value;
+ littime1.Text = Request.Cookies["jotime"].Value;
+ litseat1.Text = Request.Cookies["seatnum"].Value;
+ littseat.Text = Request.Cookies["totalseat"].Value;
+ litrent1.Text = Request.Cookies["rent"].Value;
+
+ }
+
+}
diff --git a/Secret/selectseat.aspx.cs b/Secret/selectseat.aspx.cs
new file mode 100644
index 0000000..0db56b2
--- /dev/null
+++ b/Secret/selectseat.aspx.cs
@@ -0,0 +1,427 @@
+/*
+ Created By: Brij Mohan Dammani
+ * Object: To book sheet.
+*/
+using System;
+using System.Collections;
+using System.Configuration;
+using System.Data;
+using System.Linq;
+using System.Web;
+using System.Web.Security;
+using System.Web.UI;
+using System.Web.UI.HtmlControls;
+using System.Web.UI.WebControls;
+using System.Web.UI.WebControls.WebParts;
+using System.Xml.Linq;
+using System.Data.SqlClient;
+using System.Data.OleDb;
+
+public partial class starselectseet2 : System.Web.UI.Page
+{
+ OleDbConnection con;
+ OleDbCommand cmd;
+ OleDbDataReader rea;
+
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ seattable.Visible = false;
+ ibnext.Visible = false;
+ txtname.Focus();
+ }
+
+
+ protected void departon_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ if (departon.SelectedItem.Text.ToString() == "--Select--")
+ {
+ DepartureTime.Items.Clear();
+ }
+ else
+ {
+ DepartureTime.Items.Clear();
+ string strsql = "Select * from Time_list where Station_name = '" + Destination.SelectedItem.Text.ToString() + "'";
+ con = new OleDbConnection(DB.ConnectionString);
+ cmd = new OleDbCommand();
+ System.DateTime jtime = new DateTime();
+ con.Open();
+ cmd.Connection = con;
+ cmd.CommandText = strsql;
+ rea = cmd.ExecuteReader();
+ DepartureTime.Items.Add("--Select--");
+ while (rea.Read())
+ {
+ jtime = System.DateTime.Parse(rea["Time"].ToString());
+ if (departon.SelectedItem.Text.ToString() == System.DateTime.Today.ToShortDateString())
+ {
+ if (jtime > System.DateTime.Now)
+ {
+ DepartureTime.Items.Add(rea["Time"].ToString());
+
+ }
+ }
+ else
+ {
+ DepartureTime.Items.Add(rea["Time"].ToString());
+ }
+ }
+ con.Close();
+ }
+ }
+ protected void Destination_SelectedIndexChanged(object sender, EventArgs e)
+ {
+
+ departon.Items.Clear();
+ departon.Items.Add("--Select--");
+ departon.Items.Add(System.DateTime.Today.ToShortDateString());
+ departon.Items.Add(System.DateTime.Now.AddDays(1.00).ToShortDateString());
+ departon.Items.Add(System.DateTime.Now.AddDays(2.00).ToShortDateString());
+
+ }
+
+ protected void DepartureTime_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ string strsql;
+ if (DepartureTime.SelectedItem.Text.ToString() != "--Select--")
+ {
+ seattable.Visible = true;
+ DepartureTime.Enabled = false;
+ departon.Enabled = false;
+ Destination.Enabled = false;
+ Source.Enabled = false;
+ // display Rent
+ strsql = "Select * from Time_list where Station_name = '" + Destination.SelectedItem.Text.ToString() + "'";
+ con = new OleDbConnection(DB.ConnectionString);
+ cmd = new OleDbCommand();
+
+ con.Open();
+ cmd.Connection = con;
+ cmd.CommandText = strsql;
+ rea = cmd.ExecuteReader();
+ if (rea.HasRows == true)
+ {
+ while (rea.Read())
+ {
+ litrent.Text = rea[2].ToString();
+ litrent1.Text = rea[2].ToString();
+ litbusnumber.Text = rea[5].ToString();
+ }
+ }
+ }
+ rea.Close();
+ con.Close();
+ strsql = "Select * from States where ((date = '" + departon.SelectedItem.Text.ToString() + "') and (Time ='" + DepartureTime.SelectedItem.Text.ToString() + "')and (Station='" + Destination.SelectedItem.Text.ToString() + "'))";
+ con = new OleDbConnection(DB.ConnectionString);
+ cmd = new OleDbCommand();
+ con.Open();
+ cmd.Connection = con;
+ cmd.CommandText = strsql;
+ rea = cmd.ExecuteReader();
+ while (rea.Read())
+ {
+ for (int j = 1; j <= 31; j++)
+ {
+ string s = "s" + j;
+ if (rea[s.ToString()].ToString() == "b")
+ {
+ ImageButton img = (ImageButton)pnl1.FindControl(s.ToString());
+ img.ImageUrl = "~/Images/booked_seat_img.gif";
+ img.Enabled = false;
+ }
+
+ }
+ }
+ }
+ protected void ibnext_Click(object sender, ImageClickEventArgs e)
+ {
+ string[] str = txtseatnumber.Text.Split('s');
+ int len = str.Length - 1;
+ littotalseat.Text = len.ToString();
+ int z = len * int.Parse(litrent.Text.ToString());
+ littotalrent.Text = z.ToString();
+
+ Random rnd = new Random();
+ Random rnd1 = new Random();
+
+ litpnr.Text = rnd.Next(50000).ToString() + rnd1.Next(548775).ToString();
+ if (len == 0)
+ {
+
+ // Label1.Text = "if";
+ pnl1.Visible = true;
+ pnl2.Visible = false;
+ btnSave.Visible = false;
+ Response.Redirect("Selectseat.aspx");
+
+ }
+ else
+ {
+ btnSave.Visible = true;
+ pnl1.Visible = false;
+ pnl2.Visible = true;
+ ibnext.Visible = false;
+ // Label1.Text = "else";
+ }
+
+
+ }
+ protected void seatClick(ImageButton btn)
+ {
+ ibnext.Visible = true;
+ if (btn.ImageUrl == "~/Images/selected_seat_img.gif")
+ {
+ seattable.Visible = true;
+ btn.ImageUrl = "~/Images/available_seat_img.gif";
+ if (txtseatnumber.Text.IndexOf(btn.ID.ToString() + ",") > -1)
+ {
+ txtseatnumber.Text = txtseatnumber.Text.Replace(btn.ID.ToString() + ",", "");
+ }
+ else
+ {
+ txtseatnumber.Text = txtseatnumber.Text.Replace(btn.ID.ToString(), "");
+ }
+ }
+ else if (btn.ImageUrl == "~/Images/available_seat_img.gif")
+ {
+ seattable.Visible = true;
+ btn.ImageUrl = "~/Images/selected_seat_img.gif";
+ if (txtseatnumber.Text.Trim().Length == 0)
+ {
+ txtseatnumber.Text = btn.ID.ToString();
+ }
+ else if (txtseatnumber.Text.Trim().EndsWith(","))
+ {
+ txtseatnumber.Text = txtseatnumber.Text + btn.ID.ToString();
+ }
+ else
+ {
+ txtseatnumber.Text = txtseatnumber.Text + "," + btn.ID.ToString();
+ }
+ }
+
+
+ }
+ protected void s1click(object sender, ImageClickEventArgs e)
+ {
+ seatClick(s1);
+ }
+ protected void s2click(object sender, ImageClickEventArgs e)
+ {
+ seatClick(s2);
+ }
+ protected void s6click(object sender, ImageClickEventArgs e)
+ {
+ seatClick(s6);
+ }
+ protected void s7click(object sender, ImageClickEventArgs e)
+ {
+ seatClick(s7);
+ }
+ protected void s12click(object sender, ImageClickEventArgs e)
+ {
+ seatClick(s12);
+ }
+ protected void s13click(object sender, ImageClickEventArgs e)
+ {
+ seatClick(s13);
+ }
+ protected void s18click(object sender, ImageClickEventArgs e)
+ {
+ seatClick(s18);
+ }
+ protected void s19click(object sender, ImageClickEventArgs e)
+ {
+ seatClick(s19);
+ }
+ protected void s24click(object sender, ImageClickEventArgs e)
+ {
+ seatClick(s24);
+ }
+ protected void s25click(object sender, ImageClickEventArgs e)
+ {
+ seatClick(s25);
+ }
+ protected void s31click(object sender, ImageClickEventArgs e)
+ {
+ seatClick(s31);
+ }
+ protected void s3click(object sender, ImageClickEventArgs e)
+ {
+ seatClick(s3);
+ }
+ protected void s4click(object sender, ImageClickEventArgs e)
+ {
+ seatClick(s4);
+ }
+ protected void s5click(object sender, ImageClickEventArgs e)
+ {
+ seatClick(s5);
+ }
+ protected void s8click(object sender, ImageClickEventArgs e)
+ {
+ seatClick(s8);
+ }
+ protected void s9click(object sender, ImageClickEventArgs e)
+ {
+ seatClick(s9);
+ }
+
+ protected void s10click(object sender, ImageClickEventArgs e)
+ {
+ seatClick(s10);
+ }
+ protected void s11click(object sender, ImageClickEventArgs e)
+ {
+ seatClick(s11);
+ }
+ protected void s14click(object sender, ImageClickEventArgs e)
+ {
+ seatClick(s14);
+ }
+ protected void s15click(object sender, ImageClickEventArgs e)
+ {
+ seatClick(s15);
+ }
+ protected void s16click(object sender, ImageClickEventArgs e)
+ {
+ seatClick(s16);
+ }
+ protected void s17click(object sender, ImageClickEventArgs e)
+ {
+ seatClick(s17);
+ }
+ protected void s20click(object sender, ImageClickEventArgs e)
+ {
+ seatClick(s20);
+ }
+ protected void s21click(object sender, ImageClickEventArgs e)
+ {
+ seatClick(s21);
+ }
+ protected void s22click(object sender, ImageClickEventArgs e)
+ {
+ seatClick(s22);
+
+ }
+
+ protected void s23click(object sender, ImageClickEventArgs e)
+ {
+ seatClick(s23);
+ }
+ protected void s26click(object sender, ImageClickEventArgs e)
+ {
+ seatClick(s26);
+ }
+ protected void s27click(object sender, ImageClickEventArgs e)
+ {
+ seatClick(s27);
+
+ }
+ protected void s28click(object sender, ImageClickEventArgs e)
+ {
+ seatClick(s28);
+ }
+ protected void s29click(object sender, ImageClickEventArgs e)
+ {
+ seatClick(s29);
+ }
+ protected void s30click(object sender, ImageClickEventArgs e)
+ {
+ seatClick(s30);
+ }
+
+
+ protected void btnSave_Click(object sender, ImageClickEventArgs e)
+ {
+
+ OleDbConnection conbal;
+ OleDbCommand cmdbal;
+ OleDbDataReader reabal;
+ string strsqlbal = "select * from AgentBasicInfo where (Agent_id='" + User.Identity.Name.ToString() + "')";
+ conbal = new OleDbConnection(DB.ConnectionString);
+ cmdbal = new OleDbCommand();
+ cmdbal.Connection = conbal;
+ cmdbal.CommandText = strsqlbal;
+ conbal.Open();
+ reabal = cmdbal.ExecuteReader();
+ if (reabal.Read())
+ {
+ string b;
+ b = reabal[8].ToString();
+ if (int.Parse(b) >= int.Parse(littotalrent.Text.ToString()))
+ {
+ int cbal;
+ int abal;
+ abal = int.Parse(b);
+ cbal = int.Parse(littotalrent.Text.ToString());
+
+ int rbal = abal - cbal;
+ string strupdatebal = "Update AgentBasicInfo set Agent_current_bal = " + rbal.ToString() + " where (Agent_id ='" + User.Identity.Name.ToString() + "')";
+ DB.ExecuteNonQuery(strupdatebal);
+
+
+
+ string[] forsave = txtseatnumber.Text.Split(',');
+ string strsql = "select Count(*) from States where((Date='" + departon.SelectedItem.Text
+ + "') and (Time= '" + DepartureTime.SelectedItem.Text
+ + "') and (Station= '" + Destination.SelectedItem.Text
+ + "'))";
+
+
+ if (Convert.ToInt32(DB.ExecuteScaler(strsql)) == 0)
+ {
+ string sqladd = "INSERT into States ([Date],[Time],Station) values('" + departon.SelectedItem.Text
+ + "','" + DepartureTime.SelectedItem.Text
+ + "','" + Destination.SelectedItem.Text + "')";
+ DB.ExecuteNonQuery(sqladd);
+
+ }
+
+
+ for (int j = 0; j <= forsave.Length - 1; j++)
+ {
+ if (forsave[j].ToString().Trim().Length > 0) {
+ string strsql1 = "Update States set " + forsave[j].ToString() + " = 'b' where ((Date='" + departon.SelectedItem.Text.ToString()
+ + "')and(Time='" + DepartureTime.Text.ToString()
+ + "')and (Station= '" + Destination.SelectedItem.Text.ToString()
+ + "'))";
+ DB.ExecuteNonQuery(strsql1);
+
+ }
+ }
+
+
+
+
+
+
+ string strsql2 = "Insert Into passengerinfo values('" + litpnr.Text.ToString() + "','" + txtname.Text.ToString() + "'," + txtphone.Text.ToString() + ",'" + Destination.SelectedItem.Text.ToString() + "','" + Source.SelectedItem.Text.ToString() + "','" + departon.SelectedItem.Text.ToString() + "','" + DepartureTime.SelectedItem.Text.ToString() + "','" + littotalseat.Text.ToString() + "','" + txtseatnumber.Text.ToString() + "','" + littotalrent.Text.ToString() + "','" + User.Identity.Name.ToString() + "','Booked')";
+ DB.ExecuteNonQuery(strsql2);
+
+ Response.Cookies["destination"].Value = Destination.SelectedItem.Text.ToString();
+ Response.Cookies["pnr"].Value = litpnr.Text.ToString();
+ Response.Cookies["name"].Value = txtname.Text.ToString();
+ Response.Cookies["ph"].Value = txtphone.Text.ToString();
+ Response.Cookies["jodate"].Value = departon.SelectedItem.Text.ToString();
+ Response.Cookies["jotime"].Value = DepartureTime.SelectedItem.Text.ToString();
+ Response.Cookies["seatnum"].Value = txtseatnumber.Text.ToString();
+ Response.Cookies["totalseat"].Value = littotalseat.Text.ToString();
+ Response.Cookies["rent"].Value = littotalrent.Text.ToString();
+ Response.Cookies["busnumber"].Value = litbusnumber.Text.ToString();
+ Response.Redirect("print1.aspx");
+
+ }
+ else
+ {
+ lblerror.Text = "Unsufficient Balance to book ticket.";
+ }
+
+ }
+ }
+
+
+}
+
+
+
+
diff --git a/Status.aspx b/Status.aspx
new file mode 100644
index 0000000..dfe625e
--- /dev/null
+++ b/Status.aspx
@@ -0,0 +1,247 @@
+<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
+ CodeFile="Status.aspx.cs" Inherits="stt" Title="Star Bus:Check Status Now!" %>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ From:
+
+
+
+
+
+
+
+
+
+ To:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Depart on :
+
+
+
+
+
+
+
+
+
+
+ Time
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <%--
+
+ Total Seat
+
+
+
+
+ --%>
+
+
+
+
+
+
+
+
+
+
+
+
+ 1
+
+ 6
+
+ 7
+
+ 12
+
+ 13
+
+ 18
+
+ 19
+
+ 24
+
+ 25
+
+ 31
+
+
+ 2
+
+ 5
+
+ 8
+
+ 11
+
+ 14
+
+ 17
+
+ 20
+
+ 23
+
+ 26
+
+ 30
+
+
+
+
+
+
+
+
+
+
+
+
+ 29
+
+
+
+ 3
+
+ 4
+
+ 9
+
+ 10
+
+ 15
+
+ 16
+
+ 21
+
+ 22
+
+ 27
+
+ 28
+
+
+
+ <%--// Start--%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <%-- End--%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Status.aspx.cs b/Status.aspx.cs
new file mode 100644
index 0000000..a3d451c
--- /dev/null
+++ b/Status.aspx.cs
@@ -0,0 +1,129 @@
+/*
+ Created By: Brij Mohan Dammani
+ * Object: To show current status of booked sheet in bus
+*/
+using System;
+using System.Collections;
+using System.Configuration;
+using System.Data;
+using System.Linq;
+using System.Web;
+using System.Web.Security;
+using System.Web.UI;
+using System.Web.UI.HtmlControls;
+using System.Web.UI.WebControls;
+using System.Web.UI.WebControls.WebParts;
+using System.Xml.Linq;
+using System.Data.SqlClient;
+using System.Data.OleDb;
+
+public partial class stt : System.Web.UI.Page
+{
+ OleDbConnection con;
+ OleDbCommand cmd;
+ OleDbDataReader rea;
+
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!Page.IsPostBack)
+ {
+ pnl1.Visible = false;
+ logoIndicator.Visible = false;
+ }
+ }
+
+
+ protected void departon_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ if (departon.SelectedItem.Text.ToString() == "--Select--")
+ {
+ DepartureTime.Items.Clear();
+ }
+ else
+ {
+ DepartureTime.Items.Clear();
+ string strsql = "Select * from Time_list where Station_name = '" + Destination.SelectedItem.Text.ToString() + "'";
+ con = new OleDbConnection(DB.ConnectionString);
+ cmd = new OleDbCommand();
+ System.DateTime jtime = new DateTime();
+ con.Open();
+ cmd.Connection = con;
+ cmd.CommandText = strsql;
+ rea = cmd.ExecuteReader();
+ DepartureTime.Items.Add("--Select--");
+ while (rea.Read())
+ {
+ jtime = System.DateTime.Parse(rea["Time"].ToString());
+ if (departon.SelectedItem.Text.ToString() == System.DateTime.Today.ToShortDateString())
+ {
+ if (jtime > System.DateTime.Now)
+ {
+ DepartureTime.Items.Add(rea["Time"].ToString());
+
+ }
+ }
+ else
+ {
+ DepartureTime.Items.Add(rea["Time"].ToString());
+ }
+ }
+ con.Close();
+
+ }
+ }
+ protected void Destination_SelectedIndexChanged(object sender, EventArgs e)
+ {
+
+ departon.Items.Clear();
+ departon.Items.Add("--Select--");
+ departon.Items.Add(System.DateTime.Today.ToShortDateString());
+ departon.Items.Add(System.DateTime.Now.AddDays(1.00).ToShortDateString());
+ departon.Items.Add(System.DateTime.Now.AddDays(2.00).ToShortDateString());
+
+ }
+
+ protected void DepartureTime_SelectedIndexChanged(object sender, EventArgs e)
+ {
+
+ string strsql;
+ if (DepartureTime.SelectedItem.Text.ToString() != "--Select--")
+ {
+ seattable.Visible = true;
+ Source.Enabled = false;
+
+ }
+ pnl1.Visible = true;
+ logoIndicator.Visible = true;
+ for (int j = 1; j <= 31; j++)
+ {
+ string s = "s" + j;
+
+ ImageButton img = (ImageButton)pnl1.FindControl(s.ToString());
+ img.ImageUrl = "~/Images/available_seat_img.gif";
+ }
+
+ strsql = "Select * from States where ((date = '" + departon.SelectedItem.Text.ToString() + "') and (Time ='" + DepartureTime.SelectedItem.Text.ToString() + "')and (Station='" + Destination.SelectedItem.Text.ToString() + "'))";
+ con = new OleDbConnection(DB.ConnectionString);
+ cmd = new OleDbCommand();
+ con.Open();
+ cmd.Connection = con;
+ cmd.CommandText = strsql;
+ rea = cmd.ExecuteReader();
+ while (rea.Read())
+ {
+ for (int j = 1; j <= 31; j++)
+ {
+ string s = "s" + j;
+ if (rea[s.ToString()].ToString() == "b")
+ {
+ ImageButton img = (ImageButton)pnl1.FindControl(s.ToString());
+ img.ImageUrl = "~/Images/booked_seat_img.gif";
+ img.Enabled = false;
+
+ }
+
+ }
+ }
+ }
+
+}
diff --git a/TermsandConditions.aspx b/TermsandConditions.aspx
new file mode 100644
index 0000000..5ee7834
--- /dev/null
+++ b/TermsandConditions.aspx
@@ -0,0 +1,130 @@
+<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
+ CodeFile="TermsandConditions.aspx.cs" Inherits="TermsandConditionsajax" Title="Star Bus: Terms And Conditions" %>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1. The arrival and departure times mentioned on the ticket are
+ only tentative timings. Busses may be delayed due to some unavoidable reasons like
+ traffic jams etc., However the bus will not leave the source before the time that
+ is mentioned on the ticket.
+
+ 2. Passengers are requested to arrive at the boarding point at
+ least 15 min. before the scheduled time of departure.
+
+
+ 3. Passengers are required to furnish the following at the time
+ of boarding the bus. Failing to do so, they may not be allowed to board the bus.
+
+ 1. A copy of the ticket . (A print out
+ of the ticket.)
+
+ 2. Identity proof. (Driving license, student
+ id card, company id card, passport, PAN card or voter id card).
+
+
+ 4. Unless it is explicitly mentioned on the ticket, neither Starbus
+ nor any of its travel partners take the responsibility of picking up passengers
+ at their places. The passengers should reach at the mentioned office 15 min. before
+ the scheduled travel.
+
+
+ 5. The company is not responsible for any loss of goods or property
+ of the passengers and accident.
+
+ 6. The company shall not be responsible for any delay or inconvenience
+ during the journey due to breakdown of the vehicle or other reasons beyond the control
+ of the company.
+
+
+ 7. The trips are subject to cancellation or postponement due to
+ breakdown of the vehicle or insufficient passengers for the trip. Under such circumstance
+ passengers will be intimated through phone number as soon as possible and the ticket
+ amount will be refunded. No passenger will be taken on the wayside. Baggage and
+ Luggage will be booked at owner's risk subjected to the acceptance by Starbus' travel
+ partner.
+
+
+ 8. The tickets booked through Starbus are cancellable. The refunded
+ money is given to the passenger's hand to hand.
+
+
+ 9. Video and Air conditioning in the busses is not guaranteed.
+
+
+
+ 10. Cancellation / Refunds:
+ • For ticket cancelled before 2 hours prior to the start time of departure
+ nothing shall be deducted on the fare. No refund will be given to “NO-SHOW”
+ passenger who do not report at the boarding point on time
+
+ 11. Cancellation of tickets is only done either by the agent or
+ from the main office.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/TermsandConditions.aspx.cs b/TermsandConditions.aspx.cs
new file mode 100644
index 0000000..dc07f84
--- /dev/null
+++ b/TermsandConditions.aspx.cs
@@ -0,0 +1,24 @@
+/*
+ Created By: Brij Mohan Dammani
+ * Object: Terms and Conditions static page.
+*/
+using System;
+using System.Collections;
+using System.Configuration;
+using System.Data;
+using System.Linq;
+using System.Web;
+using System.Web.Security;
+using System.Web.UI;
+using System.Web.UI.HtmlControls;
+using System.Web.UI.WebControls;
+using System.Web.UI.WebControls.WebParts;
+using System.Xml.Linq;
+
+public partial class TermsandConditionsajax : System.Web.UI.Page
+{
+ protected void Page_Load(object sender, EventArgs e)
+ {
+
+ }
+}
diff --git a/Web.sitemap b/Web.sitemap
new file mode 100644
index 0000000..2db6066
--- /dev/null
+++ b/Web.sitemap
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/contactus.aspx b/contactus.aspx
new file mode 100644
index 0000000..22fe7ae
--- /dev/null
+++ b/contactus.aspx
@@ -0,0 +1,181 @@
+<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
+ CodeFile="contactus.aspx.cs" Inherits="contasus" Title="Star Bus: Contact Us" %>
+
+
+
+
+
+
+
+
+
+
+ <%-- //
--%>
+
+ <%--
+ Contas Us For
+ --%>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Dial Customer Care:
+
+
+
+ +91 9200000000
+
+
+ +91 9800000000
+
+
+
+ (Timing: 10:00 am - 10:00 pm, Mon-Sun)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Brij Mohan Dammani
+
+
+
+
+
+ Shashi Mohan Dammani
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Tilak Nagar,
+
+ Dammani Chowk,
+ Bikaner-334001 (Raj.)
+
+
+
+
+
+
+
+
+ Jethmal Agarwal & company,
+
+ Bada Bazar,
+
+ Bikaner-334001(Raj.)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ or Email us at:
+
+ brij.net@gmail.com
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <%--
--%>
+
+
+
+
+
+
diff --git a/contactus.aspx.cs b/contactus.aspx.cs
new file mode 100644
index 0000000..286add3
--- /dev/null
+++ b/contactus.aspx.cs
@@ -0,0 +1,24 @@
+/*
+ Created By: Brij Mohan Dammani
+ * Object: Contact Us page, Static Page.
+*/
+using System;
+using System.Collections;
+using System.Configuration;
+using System.Data;
+using System.Linq;
+using System.Web;
+using System.Web.Security;
+using System.Web.UI;
+using System.Web.UI.HtmlControls;
+using System.Web.UI.WebControls;
+using System.Web.UI.WebControls.WebParts;
+using System.Xml.Linq;
+
+public partial class contasus : System.Web.UI.Page
+{
+ protected void Page_Load(object sender, EventArgs e)
+ {
+
+ }
+}
diff --git a/css/Style.css b/css/Style.css
new file mode 100644
index 0000000..a085d0a
--- /dev/null
+++ b/css/Style.css
@@ -0,0 +1,448 @@
+body
+{
+ background: white none repeat scroll 0 0;
+ color: #000000;
+ font-family: Verdana,Lucida Grande,Lucida Sans Regular,Lucida Sans Unicode,Arial,sans-serif;
+ font-size: 12px;
+ margin: 0px;
+ padding: 0px;
+}
+a
+{
+ font-weight: bold;
+ color: #707070;
+ text-decoration: underline;
+}
+a:hover
+{
+ color: #2a5a8a;
+ text-decoration: none;
+}
+a img
+{
+ border-top-style: none;
+ border-right-style: none;
+ border-left-style: none;
+ border-bottom-style: none;
+}
+/*Tabs*/
+/*begin creating the tabs */
+.menu
+{
+ margin-left: 28px;
+ background: url(../images/tab_bg.gif) repeat-x;
+ font-size: 10px;
+ font-weight: bold;
+}
+/* set tab1 as top level container table, then target TDs inside*/
+.menuItem td
+{
+ color: #FFFFFF;
+ height: 24px;
+ background: url(../images/tab_dim.gif) no-repeat;
+ width: 100px;
+ text-align: center;
+ z-index:10;
+}
+.menuItem td table
+{
+ width:100px;
+ position:relative;
+ table-layout:fixed;
+ }
+/* make current tab gray,set the background-color also in case images are not on*/
+.menuSelectedItem td
+{
+ background: url(../images/tab.gif) no-repeat #919191;
+}
+/* make link and visited the same look,set the background-color also in case images are not on*/
+.menuItem a:link, .menuItem a:visited, .menuPopupItem a:link, .menuPopupItem a:visited
+{
+ color: #FFFFFF;
+ text-decoration: none;
+}
+/* make hover by changing vertical position of background to -22px (the tab_dim2.gif is 44px high) */
+.menuItem a:hover
+{
+ text-decoration: underline;
+}
+
+/* make drop down menu container style */
+.menuPopup
+{
+ background: url(../images/background_drop_menu.jpg) repeat #8C9FB4;
+ border: 1px solid #666666;
+ border-bottom: none;
+ color: #ffffff;
+}
+
+/* make drop down menu item style */
+.menuPopupItem
+{
+ color: #ffffff;
+ border-bottom: 1px solid #666666;
+ padding: 3px;
+}
+.menuItemHover
+{
+ width:100px;
+ position:relative;
+ z-index:10;
+}
+/*tabs end */
+#submenu
+{
+background-color:#656565;
+}
+ul#submenulist
+{float:right;
+background:none repeat scroll 0 0 #ECECEC;
+margin:0;
+padding:7px 20px;
+}
+ul#submenulist li
+{
+
+ font-size: 12px;
+ padding-bottom: 2px;
+ margin: 1px 0px 1px 2px;
+ color: #000000;
+ line-height: 17px;
+ padding: 2px 5px 2px 5px;
+ border-bottom: #efefef 1px dotted;
+ list-style-type: none;
+ text-align:right;
+ display:inline;
+}
+
+
+
+
+
+#container
+{
+ margin: 0 auto;
+ width: 900px;
+ text-align: left;
+}
+#header
+{
+ width: 900px;
+ color: #656565;
+ height: 135px;
+}
+
+#logo
+{
+ float: left;
+ width: 214px;
+}
+#logoright
+{
+ float: right;
+ width: 686px;
+}
+#topbar1
+{
+ float: right;
+ width: 600px;
+}
+.empty
+{
+ float: right;
+ width: auto;
+ color: #656565;
+ height: 21px;
+}
+.empty A
+{
+ font-weight: normal;
+ font-size: 11px;
+ color: #656565;
+ letter-spacing: 1px;
+ text-decoration: none;
+}
+.empty A:hover
+{
+ font-size: 11px;
+ color: #000000;
+ text-decoration: none;
+}
+#navigation
+{
+ float: right;
+ width: 100%;
+ border-bottom: #E0E0E0 2px solid;
+ height: 24px;
+}
+#navigation table
+{
+ float: right;
+ text-align: right;
+}
+.dark-header
+{
+ border-top: #b2b2b2 1px solid;
+ background-color: #f2f2f2;
+}
+
+.phoneNumbers
+{
+ font-size: 12px;
+ color: #000000;
+ line-height: 1.9;
+}
+
+General
+{
+ padding-right: 0px;
+ padding-left: 0px;
+ font-size: 12px;
+ padding-bottom: 0px;
+ margin: 0px;
+ width: 100%;
+ color: #000000;
+ line-height: 18px;
+ padding-top: 0px;
+}
+.General ul
+{
+ padding-right: 0px;
+ padding-left: 0px;
+ font-size: 11px;
+ padding-bottom: 0px;
+ margin: 0px;
+ color: #000000;
+ line-height: 18px;
+ padding-top: 0px;
+ text-align: left;
+}
+.General ul li
+{
+ padding-right: 0px;
+ padding-left: 2px;
+ font-size: 12px;
+ padding-bottom: 2px;
+ margin: 1px 0px 1px 2px;
+ color: #000000;
+ line-height: 17px;
+ padding-top: 2px;
+ border-bottom: #efefef 1px dotted;
+ list-style-type: none;
+ text-align: left;
+}
+.General ul li span
+{
+ background-position: 0px 2px;
+ display: block;
+ padding-left: 18px;
+ font-size: 12px;
+ background-image: url(/images/arrow.gif);
+ margin-left: 6px;
+ color: #000000;
+ line-height: 17px;
+ background-repeat: no-repeat;
+ text-align: left;
+}
+
+#footer
+{
+ clear: both;
+ border-top: #e0e0e0 1px solid;
+ font-size: 12px;
+ margin-left: auto;
+ width: 900px;
+ color: #626262;
+ margin-right: auto;
+ letter-spacing: -1px;
+ height: 30px;
+}
+#footerlinks
+{
+ padding-right: 18px;
+ padding-left: 8px;
+ font-weight: normal;
+ padding-bottom: 8px;
+ padding-top: 5px;
+ height: 15px;
+}
+#footerlinks A
+{
+ font-weight: normal;
+ color: #626262;
+ text-decoration: none;
+}
+#footerlinks A:hover
+{
+ font-weight: normal;
+ color: #f5921e;
+ text-decoration: none;
+}
+#footerright
+{
+ margin-top: 8px;
+ float: right;
+ margin-bottom: 8px;
+ width: 360px;
+ text-align: right;
+}
+.orange11
+{
+ color: #F5921E;
+ font-size: 11px;
+}
+#maintextBox
+{
+ padding-right: 8px;
+ padding-left: 24px;
+ padding-bottom: 35px;
+ margin-left: auto;
+ width: 640px;
+ margin-right: auto;
+ padding-top: 0px;
+ height: auto;
+ text-align: left;
+}
+#form
+{
+ width: 571px;
+ height: auto;
+}
+#fromtitleNew
+{
+ padding-right: 26px;
+ padding-left: 0px;
+ background: url(images/formtitle_top_bg2.gif) no-repeat;
+ float: left;
+ padding-bottom: 5px;
+ width: 834px;
+ padding-top: 5px;
+ height: 26px;
+}
+.formBodyLeftNew
+{
+ padding-right: 10px;
+ padding-left: 26px;
+ background: url(images/form_body_bg2.gif) repeat-y;
+ float: left;
+ padding-bottom: 20px;
+ width: 824px;
+ padding-top: 20px;
+ height: auto;
+}
+#fromtitle
+{
+ padding-left: 26px;
+ background: url(images/formtitle_top_bg.gif) no-repeat;
+}
+#fromtitle H3
+{
+ font-weight: bold;
+ font-size: 16px;
+ color: #0073ae;
+ font-family: "trebuchet ms" , arial, helvetica, sans-serif;
+ letter-spacing: -1px;
+}
+#formBody
+{
+ padding-right: 10px;
+ padding-left: 26px;
+ background: url(images/form_body_bg.gif) repeat-y;
+ padding-bottom: 20px;
+ width: 540px;
+ padding-top: 0px;
+ height: auto;
+}
+#formBody li
+{
+ margin-bottom: 15px;
+ list-style-type: none;
+}
+#formBody li a
+{
+ margin-bottom: 5px;
+}
+#formBottom
+{
+ background: url(images/formtitle_bottom_bg.gif) no-repeat;
+ width: 571px;
+ height: 12px;
+}
+#formBodycontact
+{
+ padding-right: 10px;
+ padding-left: 26px;
+ padding-bottom: 20px;
+ width: 540px;
+ padding-top: 20px;
+ height: auto;
+}
+#formcontact
+{
+ background: url(images/formtitle_bottom_bg.gif) no-repeat;
+ width: 571px;
+ height: 12px;
+}
+#formBottomNew
+{
+ background: url(images/formtitle_bottom_bg2.gif) no-repeat;
+ float: left;
+ width: 860px;
+ height: 12px;
+}
+
+#contentBox
+{
+ padding-right: 12px;
+ margin-top: -4px;
+ padding-left: 12px;
+ padding-top: 3px;
+}
+#contentBox li
+{
+ padding-left: 10px;
+ font-size: 12px;
+ background: url(images/green_bullet.gif) no-repeat 0px 5px;
+ margin: 3px 8px 8px 0px;
+ color: #707070;
+ line-height: 14px;
+ list-style-type: none;
+}
+#contentBox li a
+{
+ font-weight: normal;
+ font-size: 12px;
+ color: #707070;
+ line-height: 14px;
+}
+#contentBox li a:hover
+{
+ font-size: 12px;
+ color: #f7990d;
+ line-height: 14px;
+}
+.logininfo
+{
+ margin: 0 auto;
+}
+.border-header
+{
+ border-top: #e0e0e0 1px solid;
+ padding-left: 15px;
+ font-size: 14px;
+ height: 40px;
+ background-color: #fafafa;
+ text-align: left;
+ font-weight:bold;
+}
+.border-header-date
+{
+ padding-right: 15px;
+ border-top: #e0e0e0 1px solid;
+ font-weight: normal;
+ font-size: 11px;
+ color: #000000;
+ height: 40px;
+ background-color: #fafafa;
+ text-align: right;
+}
diff --git a/db/starbus.mdb b/db/starbus.mdb
new file mode 100644
index 0000000..d388831
Binary files /dev/null and b/db/starbus.mdb differ
diff --git a/index.aspx b/index.aspx
new file mode 100644
index 0000000..e11ae46
--- /dev/null
+++ b/index.aspx
@@ -0,0 +1,209 @@
+<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
+ CodeFile="index.aspx.cs" Inherits="starloginpage" Title="Star Bus: Make Yourself Comfortable" %>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ National toll no.
+
+
+ :
+
+
+ (1860) 425-1111
+
+
+
+
+
+
+ Ahmedabad
+
+
+ :
+
+
+ (079) 394-12345
+
+
+
+
+
+
+ Bangalore
+
+
+ :
+
+
+ (080) 394-12345
+
+
+
+
+
+
+ Delhi
+
+
+ :
+
+
+ (011) 435-58580
+
+
+
+
+
+
+ Hyderabad
+
+
+ :
+
+
+ (040) 394-12345
+
+
+
+
+
+
+ Mumbai
+
+
+ :
+
+
+ (022) 394-12345
+
+
+
+
+
+
+ Pune
+
+
+ :
+
+
+ (020) 394-12345
+
+
+
+
+
+
+ Chennai (temporary)
+
+
+ :
+
+
+ (080) 394-12345
+
+
+ / 9840755447
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Home delivery service of bus tickets @ Rs.25 in major
+ cities
+ Book bus tickets online with over 300 bus travel operators
+
+ Book bus tickets online for over 4000+ routes across
+ India
+ Return bus tickets reservation
+ Cancel your bus tickets way Agent
+ Return ticket Facility is available for major cities.
+
+ Book for the same day.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/index.aspx.cs b/index.aspx.cs
new file mode 100644
index 0000000..e2d7d75
--- /dev/null
+++ b/index.aspx.cs
@@ -0,0 +1,26 @@
+/*
+ Created By: Brij Mohan Dammani
+ * Object: This is default page.
+*/
+using System;
+using System.Collections;
+using System.Configuration;
+using System.Data;
+using System.Linq;
+using System.Web;
+using System.Web.Security;
+using System.Web.UI;
+using System.Web.UI.HtmlControls;
+using System.Web.UI.WebControls;
+using System.Web.UI.WebControls.WebParts;
+using System.Xml.Linq;
+using System.Data.SqlClient;
+using System.Data.OleDb;
+
+public partial class starloginpage : System.Web.UI.Page
+{
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ }
+
+}
diff --git a/login.aspx b/login.aspx
new file mode 100644
index 0000000..527b686
--- /dev/null
+++ b/login.aspx
@@ -0,0 +1,92 @@
+<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="login.aspx.cs" Inherits="login" Title="Star Bus: Log In" %>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Log In
+
+
+
+ User Name:
+
+
+
+ *
+
+
+
+
+ Password:
+
+
+
+ *
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Forget Password
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/login.aspx.cs b/login.aspx.cs
new file mode 100644
index 0000000..6e77ce3
--- /dev/null
+++ b/login.aspx.cs
@@ -0,0 +1,30 @@
+/*
+ Created By: Brij Mohan Dammani
+ * Object: Login Page
+*/
+using System;
+using System.Collections;
+using System.Configuration;
+using System.Data;
+using System.Linq;
+using System.Web;
+using System.Web.Security;
+using System.Web.UI;
+using System.Web.UI.HtmlControls;
+using System.Web.UI.WebControls;
+using System.Web.UI.WebControls.WebParts;
+using System.Xml.Linq;
+
+public partial class login : System.Web.UI.Page
+{
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ Login1.Focus();
+ }
+
+ protected void Login1_Authenticate(object sender, AuthenticateEventArgs e)
+ {
+ String qry = String.Format("select Count(*) from UserInfo where UserName='{0}' and Password = '{1}'", Login1.UserName, Login1.Password);
+ e.Authenticated = Convert.ToInt32(DB.ExecuteScaler(qry)) > 0;
+ }
+}
diff --git a/logout.aspx b/logout.aspx
new file mode 100644
index 0000000..f79935f
--- /dev/null
+++ b/logout.aspx
@@ -0,0 +1,16 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeFile="logout.aspx.cs" Inherits="logout" %>
+
+
+
+
+
+
+
+
+
+
+
diff --git a/logout.aspx.cs b/logout.aspx.cs
new file mode 100644
index 0000000..ca31ba7
--- /dev/null
+++ b/logout.aspx.cs
@@ -0,0 +1,25 @@
+/*
+ Created By: Brij Mohan Dammani
+ * Object: To logout. clears cookies, session and cache.
+*/
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using System.Web.Security;
+
+public partial class logout : System.Web.UI.Page
+{
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ Response.Cache.SetCacheability(HttpCacheability.NoCache);
+ Response.Cache.SetExpires(DateTime.UtcNow.AddMinutes(-1));
+ Response.Cache.SetNoStore();
+ Response.Cache.SetRevalidation(HttpCacheRevalidation.AllCaches);
+ Session.Abandon();
+ FormsAuthentication.SignOut();
+ Response.Redirect(FormsAuthentication.LoginUrl);
+ }
+}
diff --git a/starbus.sln b/starbus.sln
new file mode 100644
index 0000000..312734f
--- /dev/null
+++ b/starbus.sln
@@ -0,0 +1,37 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 14
+VisualStudioVersion = 14.0.25420.1
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "sb", ".", "{D38C961F-62A2-4603-9B75-ED0790F32D92}"
+ ProjectSection(WebsiteProperties) = preProject
+ TargetFrameworkMoniker = ".NETFramework,Version%3Dv3.5"
+ Debug.AspNetCompiler.VirtualPath = "/starbus Final"
+ Debug.AspNetCompiler.PhysicalPath = "F:\starbus Final\"
+ Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\starbus Final\"
+ Debug.AspNetCompiler.Updateable = "true"
+ Debug.AspNetCompiler.ForceOverwrite = "true"
+ Debug.AspNetCompiler.FixedNames = "false"
+ Debug.AspNetCompiler.Debug = "True"
+ Release.AspNetCompiler.VirtualPath = "/starbus Final"
+ Release.AspNetCompiler.PhysicalPath = "F:\starbus Final\"
+ Release.AspNetCompiler.TargetPath = "PrecompiledWeb\starbus Final\"
+ Release.AspNetCompiler.Updateable = "true"
+ Release.AspNetCompiler.ForceOverwrite = "true"
+ Release.AspNetCompiler.FixedNames = "false"
+ Release.AspNetCompiler.Debug = "False"
+ VWDPort = "1047"
+ EndProjectSection
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|.NET = Debug|.NET
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {D38C961F-62A2-4603-9B75-ED0790F32D92}.Debug|.NET.ActiveCfg = Debug|Any CPU
+ {D38C961F-62A2-4603-9B75-ED0790F32D92}.Debug|.NET.Build.0 = Debug|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/web.config b/web.config
new file mode 100644
index 0000000..35c75f0
--- /dev/null
+++ b/web.config
@@ -0,0 +1,187 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file