diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b46ee58 --- /dev/null +++ b/.gitignore @@ -0,0 +1,209 @@ +# Download this file using PowerShell v3 under Windows with the following comand: +# Invoke-WebRequest https://gist.githubusercontent.com/kmorcinek/2710267/raw/ -OutFile .gitignore +# or wget: +# wget --no-check-certificate http://gist.githubusercontent.com/kmorcinek/2710267/raw/.gitignore + +# User-specific files +*.suo +*.user +*.sln.docstates + +# Build results + +[Dd]ebug/ +[Rr]elease/ +x64/ +build/ +[Bb]in/ +[Oo]bj/ + +# NuGet Packages +*.nupkg +# The packages folder can be ignored because of Package Restore +**/packages/* +# except build/, which is used as an MSBuild target. +!**/packages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/packages/repositories.config + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +*_i.c +*_p.c +*.ilk +*.meta +*.obj +*.pch +*.pdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.log +*.scc + +# OS generated files # +.DS_Store* +Icon? + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opensdf +*.sdf +*.cachefile + +# Visual Studio profiler +*.psess +*.vsp +*.vspx + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# NCrunch +*.ncrunch* +.*crunch*.local.xml + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.Publish.xml + +# Windows Azure Build Output +csx +*.build.csdef + +# Windows Store app package directory +AppPackages/ + +# Others +*.Cache +ClientBin/ +[Ss]tyle[Cc]op.* +~$* +*~ +*.dbmdl +*.[Pp]ublish.xml +*.pfx +*.publishsettings +modulesbin/ +tempbin/ + +# EPiServer Site file (VPP) +AppData/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file to a newer +# Visual Studio version. Backup files are not needed, because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm + +# vim +*.txt~ +*.swp +*.swo + +# svn +.svn + +# Remainings from resolvings conflicts in Source Control +*.orig + +# SQL Server files +**/App_Data/*.mdf +**/App_Data/*.ldf +**/App_Data/*.sdf + + +#LightSwitch generated files +GeneratedArtifacts/ +_Pvt_Extensions/ +ModelManifest.xml + +# ========================= +# Windows detritus +# ========================= + +# Windows image file caches +Thumbs.db +ehthumbs.db + +# Folder config file +Desktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Mac desktop service store files +.DS_Store + +# SASS Compiler cache +.sass-cache + +# Visual Studio 2014 CTP +**/*.sln.ide + +# Visual Studio temp something +.vs/ + +# VS 2015+ +*.vc.vc.opendb +*.vc.db + +# Rider +.idea/ + +# Output folder used by Webpack or other FE stuff +**/node_modules/* +**/wwwroot/* + +# SpecFlow specific +*.feature.cs +*.feature.xlsx.* +*.Specs_*.html + +##### +# End of core ignore list, below put you custom 'per project' settings (patterns or path) +##### \ No newline at end of file diff --git a/AboutUs.aspx b/AboutUs.aspx new file mode 100644 index 0000000..c46d7cb --- /dev/null +++ b/AboutUs.aspx @@ -0,0 +1,93 @@ +<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" + CodeFile="AboutUs.aspx.cs" Inherits="AboutUsajax" Title="Star Bus: About Us" %> + + + + + + <%--
+

+ About Us

+
--%> +
+ + + + +
+ + +
+
+
+ +
+ + + + + + + + +
+   + + + + + + + +
+ +

+ Starbus is a pioneer in the online bus reservation in India which utilizes + the advantages of the internet to provide our clients with the best in bus transportation + services from the comforts of their homes and offices. Starbus provides real-time + Internet quotations and real-time bus booking services to direct customers, agents + and tour operator partners. +

+

+ The idea for Starbus has stemmed from the need for simple travel solutions. Buses + are the most commonly used form of travel in India, be it within a city or intra-city. + In fact, buses are sometimes the only form of transportation available to reach + the remote parts of India. However, reserving a seat on a bus is one of the most + tedious processes. Starbus aims to provide our customers with a wide range of services + unsurpassed by any competitor in this industry. We are geared to become the top + seller among online travel companies for all the major bus transportation providers + in India. +

+

+ As a company, Starbus believes in engineering win-win relationships with our partners + in order to guarantee ongoing benefits to our customers. The very nature of our + reservation systems demands that they are not only the best today, but can remain + the best for years to come without the need for disruptive ongoing development. + With our systems, we are sure we would be able to provide uninterrupted service + to our customers and partners +

+

+ Here’s to making bus travel more fun…even before you get into one!! +

+ +
+
+   +
+
+
+ + + + + + + + diff --git a/AboutUs.aspx.cs b/AboutUs.aspx.cs new file mode 100644 index 0000000..475b507 --- /dev/null +++ b/AboutUs.aspx.cs @@ -0,0 +1,24 @@ +/* + Created By: Brij Mohan Dammani + * Object: About 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 AboutUsajax : System.Web.UI.Page +{ + protected void Page_Load(object sender, EventArgs e) + { + + } +} diff --git a/AdminArea/AgentBasicInfo.aspx b/AdminArea/AgentBasicInfo.aspx new file mode 100644 index 0000000..fc9a448 --- /dev/null +++ b/AdminArea/AgentBasicInfo.aspx @@ -0,0 +1,131 @@ +<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" + CodeFile="AgentBasicInfo.aspx.cs" Inherits="AgentBasicInfo" Title="Star Bus: Create Agent" %> + + + + + + + + + + + + +
+ + +
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Enter Your Basic Information +
+ + Name: + + + +
+ Father's + Name: + + + +
+ Shop Name: + + +
+ Shop Adderss: + + +
+ Shop City: + + +
+ Shop Phone Number: + + + + +
+ Mobile Number: + + + +
+ Deposit Amount: + + + +
+ +
+
+
+ + + + + + diff --git a/AdminArea/AgentBasicInfo.aspx.cs b/AdminArea/AgentBasicInfo.aspx.cs new file mode 100644 index 0000000..b7e0674 --- /dev/null +++ b/AdminArea/AgentBasicInfo.aspx.cs @@ -0,0 +1,42 @@ +/* + Created By: Brij Mohan Dammani + * Object: for individual agent's basic information. +*/ +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 AgentBasicInfo : System.Web.UI.Page +{ + OleDbCommand cmd; + OleDbConnection con; + protected void Page_Load(object sender, EventArgs e) + { + txtName.Focus(); + } + protected void btnfinish_Click(object sender, EventArgs e) + { + string strsql = "Insert Into AgentBasicInfo values('" +Request["name"].ToString() + "','" + txtName.Text.ToString() + "','" + txtfname.Text.ToString() + "','" + txtshopname.Text.ToString() + "','" + txtshopadd.Text.ToString() + "','" + txtcity.Text.ToString() + "'," + txtph.Text.ToString() + "," + txtmobile.Text.ToString() + "," + txtdeposit.Text.ToString() + ")"; + using (con = new OleDbConnection(DB.ConnectionString)) + { + cmd = new OleDbCommand(); + con.Open(); + cmd.Connection = con; + cmd.CommandText = strsql; + cmd.ExecuteNonQuery(); + + } + Response.Redirect("HomeForAdmin.aspx"); + } +} diff --git a/AdminArea/Agent_search.aspx b/AdminArea/Agent_search.aspx new file mode 100644 index 0000000..6d6869e --- /dev/null +++ b/AdminArea/Agent_search.aspx @@ -0,0 +1,168 @@ +<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" + CodeFile="Agent_search.aspx.cs" Inherits="AdminArea_Agent_search" Title="Star Bus:Search Agent" %> + + + + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ Search Agent +
 
+ Agent Id + + : + + + + +
+ +
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ Agent Information +
 
+ Agent ID + + : + + +
+ Name + + : + + +
+ Shop_Name + + : + + +
+ Shop_Address + + : + + +
+ City + + : + + +
+ Phone Number + + : + + +
+ Mobile Number + + : + + +
+ Current Bal + + : + + +
+ +
+
+
+
+
+ + + + + + diff --git a/AdminArea/Agent_search.aspx.cs b/AdminArea/Agent_search.aspx.cs new file mode 100644 index 0000000..61e901b --- /dev/null +++ b/AdminArea/Agent_search.aspx.cs @@ -0,0 +1,68 @@ +/* + Created By: Brij Mohan Dammani + * Object: To search agent information. +*/ +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 AdminArea_Agent_search : System.Web.UI.Page +{ + OleDbConnection con; + OleDbCommand cmd; + OleDbDataReader rea; + protected void Page_Load(object sender, EventArgs e) + { + txtname.Focus(); + } + protected void btnsubmit_Click(object sender, EventArgs e) + { + string strsql = "Select * from AgentBasicInfo where Agent_id = '" + txtname.Text.ToString() + "'"; + con = new OleDbConnection(DB.ConnectionString); + cmd = new OleDbCommand(); + + con.Open(); + cmd.Connection = con; + cmd.CommandText = strsql; + using (rea = cmd.ExecuteReader()) + { + if (rea.Read()) + { + pnl1.Visible = true; + pnl.Visible = false; + litid.Text = rea[0].ToString(); + litname.Text = rea[1].ToString(); + litshop.Text = rea[3].ToString(); + litadd.Text = rea[4].ToString(); + litcity.Text = rea[5].ToString(); + litph.Text = rea[6].ToString(); + litmobile.Text = rea[7].ToString(); + litbal.Text = rea[8].ToString(); + } + else + { + lblerror.Text = "Enter the Corret Agent Id "; + } + + } + rea.Close(); + con.Close(); + + } + protected void btnsub_Click(object sender, EventArgs e) + { + Response.Redirect("Agent.aspx"); + } +} diff --git a/AdminArea/All_Agents_info.aspx b/AdminArea/All_Agents_info.aspx new file mode 100644 index 0000000..e0f1fe4 --- /dev/null +++ b/AdminArea/All_Agents_info.aspx @@ -0,0 +1,59 @@ +<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="All_Agents_info.aspx.cs" Inherits="AdminArea_AllAgents" Title="Star Bus:Agent List" %> + + + + + + + + + + + +
+ + +
 
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + diff --git a/AdminArea/All_Agents_info.aspx.cs b/AdminArea/All_Agents_info.aspx.cs new file mode 100644 index 0000000..d70981d --- /dev/null +++ b/AdminArea/All_Agents_info.aspx.cs @@ -0,0 +1,24 @@ +/* + Created By: Brij Mohan Dammani + * Object: for Agent information +*/ +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 AdminArea_AllAgents : System.Web.UI.Page +{ + protected void Page_Load(object sender, EventArgs e) + { + + } +} diff --git a/AdminArea/Bus_list.aspx b/AdminArea/Bus_list.aspx new file mode 100644 index 0000000..3d83ba2 --- /dev/null +++ b/AdminArea/Bus_list.aspx @@ -0,0 +1,63 @@ +<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Bus_list.aspx.cs" Inherits="AdminArea_Bus_list" Title="Star Bus: Bus List" %> + + + + + + + + + + + +
+ + +
 
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + + + + diff --git a/AdminArea/Bus_list.aspx.cs b/AdminArea/Bus_list.aspx.cs new file mode 100644 index 0000000..d290eb8 --- /dev/null +++ b/AdminArea/Bus_list.aspx.cs @@ -0,0 +1,24 @@ +/* + Created By: Brij Mohan Dammani + * Object: To show bus list. +*/ +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 AdminArea_Bus_list : System.Web.UI.Page +{ + protected void Page_Load(object sender, EventArgs e) + { + + } +} diff --git a/AdminArea/CreateAgent.aspx b/AdminArea/CreateAgent.aspx new file mode 100644 index 0000000..11a34fc --- /dev/null +++ b/AdminArea/CreateAgent.aspx @@ -0,0 +1,122 @@ +<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="CreateAgent.aspx.cs" Inherits="CreateAgent" Title="Star Bus: Create Agent" %> + + + + + + + + + + + + + + + +
+ + +
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Sign Up for New Account
+ User Name: + + * +
+ Password: + + * +
+ Confirm Password: + + * +
+ E-mail: + + * + +
+ Security Question: + + * +
+ Security Answer: + + * +
+ +
+ +
+
+
+ +
+
+

+ +
+ + +
+ + + + + diff --git a/AdminArea/CreateAgent.aspx.cs b/AdminArea/CreateAgent.aspx.cs new file mode 100644 index 0000000..c4e417a --- /dev/null +++ b/AdminArea/CreateAgent.aspx.cs @@ -0,0 +1,61 @@ +/* + Created By: Brij Mohan Dammani + * Object: To create new agent. +*/ +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; + +public partial class CreateAgent : System.Web.UI.Page +{ + + protected void Page_Load(object sender, EventArgs e) + { + lblError.Text = ""; + CreateUserWizard1. Focus(); + } + + protected void CreateUserWizard1_CreatingUser(object sender, LoginCancelEventArgs e) + { + Page.Validate(); + + if (Page.IsValid) + { + string qry = "select count(*) from UserInfo where [UserName]='" + CreateUserWizard1.UserName.Trim() + "'"; + if (Convert.ToInt32(DB.ExecuteScaler(qry)) > 0) + { + + lblError.Text = "This user name is not available."; + e.Cancel = true; + return; + } + + qry = "insert into UserInfo ([UserName],[Password],SecQues,SecAns,EMail) values ('{0}','{1}','{2}','{3}','{4}')"; + qry = String.Format(qry, CreateUserWizard1.UserName, + CreateUserWizard1.Password, + CreateUserWizard1.Question, + CreateUserWizard1.Answer, + CreateUserWizard1.Email); + try + { + DB.ExecuteNonQuery(qry); + Response.Redirect("AgentBasicInfo.aspx?name="+CreateUserWizard1.UserName.ToString()+""); + } + catch (Exception) + { + + } + } + e.Cancel = true; + } +} diff --git a/AdminArea/Deposit.aspx b/AdminArea/Deposit.aspx new file mode 100644 index 0000000..7a967f2 --- /dev/null +++ b/AdminArea/Deposit.aspx @@ -0,0 +1,89 @@ +<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" + CodeFile="Deposit.aspx.cs" Inherits="AdminArea_Deposit" Title="Star Bus: Deposit Amount" %> + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Deposit Amount +
 
+ Agent Name + + : + + + + +
+ Deposite Amount + + : + + + + + +
+ +
+ +
+
+ + + + + + + + +
+ Deposited Successfully. +
+ + +
+
+
+ + + + + + diff --git a/AdminArea/Deposit.aspx.cs b/AdminArea/Deposit.aspx.cs new file mode 100644 index 0000000..73626cb --- /dev/null +++ b/AdminArea/Deposit.aspx.cs @@ -0,0 +1,60 @@ +/* + Created By: Brij Mohan Dammani + * Object: To deposit amount in agent's account. +*/ +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 AdminArea_Deposit : System.Web.UI.Page +{ + OleDbConnection con; + OleDbCommand cmd; + OleDbDataReader rea; + protected void Page_Load(object sender, EventArgs e) + { + txtname.Focus(); + } + protected void btnsubmit_Click(object sender, EventArgs e) + { + string strsql = "Select * from AgentBasicInfo where Agent_id = '" + txtname.Text.ToString() + "'"; + con = new OleDbConnection(DB.ConnectionString); + cmd = new OleDbCommand(); + con.Open(); + cmd.Connection = con; + cmd.CommandText = strsql; + rea = cmd.ExecuteReader(); + if (rea.Read()) + { + int dbal = int.Parse(txtamount.Text.ToString()); + int obal = int.Parse(rea[8].ToString()); + int cbal = dbal + obal; + string strsql1 = "Update AgentBasicInfo set Agent_current_bal = "+cbal.ToString() +" where (Agent_id='"+txtname.Text.ToString()+"')"; + OleDbCommand cmd1 = new OleDbCommand(); + OleDbConnection con1 = new OleDbConnection(DB.ConnectionString); + con1.Open(); + cmd1.Connection = con1; + cmd1.CommandText = strsql1; + cmd1.ExecuteNonQuery(); + // lblerror.Text = "Deposti Your Amount "; + pnl1.Visible = false; + pnl2.Visible = true; + } + else + { + lblerror.Text = "plz Enter the Correct Agent Id "; + } + + } +} diff --git a/AdminArea/HomeForAdmin.aspx b/AdminArea/HomeForAdmin.aspx new file mode 100644 index 0000000..31178fe --- /dev/null +++ b/AdminArea/HomeForAdmin.aspx @@ -0,0 +1,108 @@ +<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" + CodeFile="HomeForAdmin.aspx.cs" Inherits="AdminArea_HomeForAdmin" Title="Star Bus" %> + + + + + + + + + + + + +
+ + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + +
+   +
+ + Number Of Bus + + : + + +
+ Number Of Agent + + : + + +
+ +
+
+
+
+ + + + + + + +
+
+
+
+
+ + + + + + diff --git a/AdminArea/HomeForAdmin.aspx.cs b/AdminArea/HomeForAdmin.aspx.cs new file mode 100644 index 0000000..7f53364 --- /dev/null +++ b/AdminArea/HomeForAdmin.aspx.cs @@ -0,0 +1,43 @@ +/* + Created By: Brij Mohan Dammani + * Object: To show basic bus and agents summary report. +*/ +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 AdminArea_HomeForAdmin : System.Web.UI.Page +{ + OleDbConnection con; + OleDbCommand cmd; + OleDbDataReader rea; + protected void Page_Load(object sender, EventArgs e) + { + string strsql = "Select * from AgentBasicInfo "; + con = new OleDbConnection(DB.ConnectionString); + cmd = new OleDbCommand(); + int i=0; + con.Open(); + cmd.Connection = con; + cmd.CommandText = strsql; + rea = cmd.ExecuteReader(); + while (rea.Read()) + { + i = i + 1; + + } + + litagent.Text = i.ToString(); + } +} diff --git a/AdminArea/feedback_list.aspx b/AdminArea/feedback_list.aspx new file mode 100644 index 0000000..a65b7ed --- /dev/null +++ b/AdminArea/feedback_list.aspx @@ -0,0 +1,53 @@ +<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="feedback_list.aspx.cs" Inherits="AdminArea_feedback_list" Title="Star Bus:Feedback" %> + + + + + + + + + + + + + +
+ + +
 
+ + + + + + + + + + + + + + + + + + + + +
+ + + + + diff --git a/AdminArea/feedback_list.aspx.cs b/AdminArea/feedback_list.aspx.cs new file mode 100644 index 0000000..272e863 --- /dev/null +++ b/AdminArea/feedback_list.aspx.cs @@ -0,0 +1,24 @@ +/* + Created By: Brij Mohan Dammani + * Object: To show feedback list +*/ +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 AdminArea_feedback_list : System.Web.UI.Page +{ + protected void Page_Load(object sender, EventArgs e) + { + + } +} diff --git a/Agent_list.aspx b/Agent_list.aspx new file mode 100644 index 0000000..9de1435 --- /dev/null +++ b/Agent_list.aspx @@ -0,0 +1,50 @@ +<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Agent_list.aspx.cs" Inherits="Agent_list" +Title="Agents Info" %> + + + + + + + +


+

+ + + + + + + + + + + + + + + + + +
+
+ + + + + + + diff --git a/Agent_list.aspx.cs b/Agent_list.aspx.cs new file mode 100644 index 0000000..e6b5631 --- /dev/null +++ b/Agent_list.aspx.cs @@ -0,0 +1,24 @@ +/* + Created By: Brij Mohan Dammani + * Object: To show list of all agents. +*/ +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 Agent_list : System.Web.UI.Page +{ + protected void Page_Load(object sender, EventArgs e) + { + + } +} diff --git a/App_Code/CustomRoleProvider.cs b/App_Code/CustomRoleProvider.cs new file mode 100644 index 0000000..77ba2f0 --- /dev/null +++ b/App_Code/CustomRoleProvider.cs @@ -0,0 +1,84 @@ +/* + Created By: Brij Mohan Dammani + * Object: Custom Role Provider for this project. +*/ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.Security; + +/// +/// Summary description for CustomRoleProvider +/// +public class CustomRoleProvider :RoleProvider +{ + public CustomRoleProvider() + { + // + // TODO: Add constructor logic here + // + } + + public override void AddUsersToRoles(string[] usernames, string[] roleNames) + { + throw new NotImplementedException(); + } + + public override string ApplicationName + { + get + { + throw new NotImplementedException(); + } + set + { + throw new NotImplementedException(); + } + } + + public override void CreateRole(string roleName) + { + throw new NotImplementedException(); + } + + public override bool DeleteRole(string roleName, bool throwOnPopulatedRole) + { + throw new NotImplementedException(); + } + + public override string[] FindUsersInRole(string roleName, string usernameToMatch) + { + throw new NotImplementedException(); + } + + public override string[] GetAllRoles() + { + throw new NotImplementedException(); + } + + public override string[] GetRolesForUser(string username) + { + return new string[] {username == "admin" ? username : "Agent"}; + } + + public override string[] GetUsersInRole(string roleName) + { + throw new NotImplementedException(); + } + + public override bool IsUserInRole(string username, string roleName) + { + throw new NotImplementedException(); + } + + public override void RemoveUsersFromRoles(string[] usernames, string[] roleNames) + { + throw new NotImplementedException(); + } + + public override bool RoleExists(string roleName) + { + throw new NotImplementedException(); + } +} diff --git a/App_Code/DB.cs b/App_Code/DB.cs new file mode 100644 index 0000000..ca8e022 --- /dev/null +++ b/App_Code/DB.cs @@ -0,0 +1,44 @@ +/* + Created By: Brij Mohan Dammani + * Object: Act as Data Access Layer for this project. +*/ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Data.OleDb; + +/// +/// Summary description for DB +/// +public static class DB +{ + public static string ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + System.AppDomain.CurrentDomain.BaseDirectory + "db\\starbus.mdb;"; + + public static object ExecuteScaler(string qry) + { + object ret =null; + using (OleDbConnection con = new OleDbConnection(ConnectionString)) + { + OleDbCommand cmd = new OleDbCommand(qry, con); + con.Open(); + ret = (cmd.ExecuteScalar()); + con.Close(); + } + return ret; + } + + public static int ExecuteNonQuery(string qry) + { + int ret = 0; + using (OleDbConnection con = new OleDbConnection(ConnectionString)) + { + OleDbCommand cmd = new OleDbCommand(qry, con); + con.Open(); + ret = Convert.ToInt32(cmd.ExecuteNonQuery()); + con.Close(); + } + return ret; + + } +} diff --git a/Faq.aspx b/Faq.aspx new file mode 100644 index 0000000..7d50401 --- /dev/null +++ b/Faq.aspx @@ -0,0 +1,101 @@ +<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" + CodeFile="Faq.aspx.cs" Inherits="Faqajax" Title="Star Bus: Frequently asked questions" %> + + + + + + <%--
+

FAQ

--%> +
+ + + + +
+ +
+
+
+
+ +
+

+ Frequently asked questions

+
+
+ +
    +
  • Do I have to pay extra when compared + to buying the tickets in the traditional way?
    + Starbus does not charge anything extra when compared to the traditional way. The + tickets are absolutely at the same cost.
  • +
  • I’ve lost my ticket what do I + do now?
    + We required PIN of your ticket. on that basis we will provide you a new ticket. + In near future this problem will be solved by taking your name and destination and + on that, we will provide you a fresh ticket to the particular destination.
  • +
  • Can I cancel the ticket?
    + Yes. The tickets booked through Starbus can be cancelled. Money is transferred back + to the passenger's. Please note that the cancellation fee is 0% of your fare and + cancellation can be done only one day before.
  • +
  • I don't have a credit can I still + buy tickets at Starbus? +
    + Yes. You don't necessarily need to have a credit card to buy tickets on Starbus. + but after few month take a new process in that All you need to have is just an internet + bank account. You can transfer money from any of your below bank accounts to Starbus + to buy tickets.
  • +
      +
    • ICICI Infinity
    • +
    • UTI Services
    • +
    +
  • I missed the bus. Do I get refund?
    + Starbus provides 100% refund if the bus is missed due to either Starbus or its partner + company's fault. However, if the bus is missed due to any other reasons not directly + related to Starbus it does not provide any refund.
  • +
  • What credit/debit cards do you + accept?
    + We accept only cash at present.
  • +
  • What payment options do i have?
    + At present we accept only cash but in near future we also have payment options such + as master and viza card.
  • +
  • Is there any other option to + book tickets from Starbus? +
    + Yes. You can book tickets by going to the nearest agent counter or to our head office. +
  • +
+

+ Top

+
+
+
+
+ + + + + + + + diff --git a/Faq.aspx.cs b/Faq.aspx.cs new file mode 100644 index 0000000..0c214aa --- /dev/null +++ b/Faq.aspx.cs @@ -0,0 +1,24 @@ +/* + Created By: Brij Mohan Dammani + * Object: FAQ 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 Faqajax : System.Web.UI.Page +{ + protected void Page_Load(object sender, EventArgs e) + { + + } +} diff --git a/Feedback.aspx b/Feedback.aspx new file mode 100644 index 0000000..e2b172b --- /dev/null +++ b/Feedback.aspx @@ -0,0 +1,106 @@ +<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" + CodeFile="Feedback.aspx.cs" Inherits="Feedbackajax" Title="Star Bus: Feedback" %> + + + + + +
+ + + + +
+ + +
+
+
+
+ +
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Name: + + + +
+ Email: + + + + +
+ Phone: + + + +
+ Subject: + +
+ + + + + + +
+
+ Comment:
(Max 1000 char) +
+ + +
  + +
+
+ +
+
+
+ + + + + + diff --git a/Feedback.aspx.cs b/Feedback.aspx.cs new file mode 100644 index 0000000..fdd0710 --- /dev/null +++ b/Feedback.aspx.cs @@ -0,0 +1,41 @@ +/* + Created By: Brij Mohan Dammani + * Object: To give feedback. +*/ +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 Feedbackajax : System.Web.UI.Page +{ + OleDbCommand cmd; + OleDbConnection con; + + + protected void Page_Load(object sender, EventArgs e) + { + txtname.Focus(); + } + protected void btnsubmit_Click(object sender, EventArgs e) + { + string strsql = "Insert Into feedback values('" + txtname.Text.ToString() + "','" + txtemail.Text.ToString() + "'," + txtph.Text.ToString() + ",'" + dlsubject.SelectedItem.Text.ToString() + "','" + txtcomment.Text.ToString() + "','other')"; + con = new OleDbConnection(DB.ConnectionString); + cmd = new OleDbCommand(); + con.Open(); + cmd.Connection = con; + cmd.CommandText = strsql; + cmd.ExecuteNonQuery(); + Response.Redirect("index.aspx"); + } +} diff --git a/Forget_password.aspx b/Forget_password.aspx new file mode 100644 index 0000000..226488b --- /dev/null +++ b/Forget_password.aspx @@ -0,0 +1,165 @@ +<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" + CodeFile="Forget_password.aspx.cs" Inherits="Forget_password" Title="Star Bus: Recover Password" %> + + + + + + + + + + + + + + + +
+   +
+ + + + + +
+ + + + + + + + + + + + + + + + + +
+ Forgot Your Password? +
+ Enter your User Name to receive your password. +
+ + * +
+ +
+ +
+
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+ Identity Confirmation +
+ Answer the following question to receive your password. +
+ User Name: + + +
+ Question: + + +
+ Answer: + + + * +
+ +
+ + +
+
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ Show Password +
+ User Name + : + +
+ Password + : + +
 
+ + + +
+
+
+
+
+ + + + + + diff --git a/Forget_password.aspx.cs b/Forget_password.aspx.cs new file mode 100644 index 0000000..c434b18 --- /dev/null +++ b/Forget_password.aspx.cs @@ -0,0 +1,83 @@ +/* + Created By: Brij Mohan Dammani + * Object: To recover 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.SqlClient; +using System.Data.OleDb; + +public partial class Forget_password : System.Web.UI.Page +{ + OleDbConnection con; + OleDbCommand cmd; + OleDbDataReader rea; + + + protected void Page_Load(object sender, EventArgs e) + { + txtname.Focus(); + } + protected void btnque_Click(object sender, EventArgs e) + { + + string strsql = "Select * from UserInfo where UserName = '" + txtname.Text.ToString() + "'"; + con = new OleDbConnection(DB.ConnectionString); + cmd = new OleDbCommand(); + con.Open(); + cmd.Connection = con; + cmd.CommandText = strsql; + using (rea = cmd.ExecuteReader()) + { + if (rea.Read()) + { + pnl1.Visible = false; + pnl2.Visible = true; + txtans.Focus(); + //lithold.Text = rea["UserName"].ToString(); + + litname.Text = txtname.Text.ToString(); + litque.Text = rea["SecQues"].ToString(); + + ViewState["SecAns"] = rea["SecAns"].ToString(); + ViewState["pwd"] = rea["Password"].ToString(); + } + else + { + literror.Visible = true; + literror.Text = "Enter the Correct User Name"; + } + } + } + protected void btnsubmit_Click(object sender, EventArgs e) + { + if (txtans.Text == ViewState["SecAns"].ToString()) + { + pnl2.Visible = false; + pnl3.Visible = true; + btnnext.Focus(); + litname1.Text = txtname.Text.ToString(); + litpass.Text = ViewState["pwd"].ToString(); + } + else + { + literror2.Text = "Enter the Correct Ques Ans "; + } + + + } + protected void btnnext_Click(object sender, EventArgs e) + { + Response.Redirect("index.aspx"); + } +} diff --git a/Images/available_seat_img.gif b/Images/available_seat_img.gif new file mode 100644 index 0000000..639393b Binary files /dev/null and b/Images/available_seat_img.gif differ diff --git a/Images/background_drop_menu.jpg b/Images/background_drop_menu.jpg new file mode 100644 index 0000000..27260ff Binary files /dev/null and b/Images/background_drop_menu.jpg differ diff --git a/Images/bg.gif b/Images/bg.gif new file mode 100644 index 0000000..59abd9e Binary files /dev/null and b/Images/bg.gif differ diff --git a/Images/booked_seat_img.gif b/Images/booked_seat_img.gif new file mode 100644 index 0000000..5959c0c Binary files /dev/null and b/Images/booked_seat_img.gif differ diff --git a/Images/btn_go.gif b/Images/btn_go.gif new file mode 100644 index 0000000..e935a49 Binary files /dev/null and b/Images/btn_go.gif differ diff --git a/Images/go.gif b/Images/go.gif new file mode 100644 index 0000000..43ec7ce Binary files /dev/null and b/Images/go.gif differ diff --git a/Images/inner_middle_line.gif b/Images/inner_middle_line.gif new file mode 100644 index 0000000..127dd80 Binary files /dev/null and b/Images/inner_middle_line.gif differ diff --git a/Images/ladies_seat_img.gif b/Images/ladies_seat_img.gif new file mode 100644 index 0000000..1d42a7a Binary files /dev/null and b/Images/ladies_seat_img.gif differ diff --git a/Images/logo.gif b/Images/logo.gif new file mode 100644 index 0000000..7f98f77 Binary files /dev/null and b/Images/logo.gif differ diff --git a/Images/paper.gif b/Images/paper.gif new file mode 100644 index 0000000..c95709f Binary files /dev/null and b/Images/paper.gif differ diff --git a/Images/reddot.gif b/Images/reddot.gif new file mode 100644 index 0000000..70f115d Binary files /dev/null and b/Images/reddot.gif differ diff --git a/Images/selected_seat_img.gif b/Images/selected_seat_img.gif new file mode 100644 index 0000000..9ed445f Binary files /dev/null and b/Images/selected_seat_img.gif differ diff --git a/Images/tab.gif b/Images/tab.gif new file mode 100644 index 0000000..a249ec0 Binary files /dev/null and b/Images/tab.gif differ diff --git a/Images/tab_bg.gif b/Images/tab_bg.gif new file mode 100644 index 0000000..164048f Binary files /dev/null and b/Images/tab_bg.gif differ diff --git a/Images/tab_dim.gif b/Images/tab_dim.gif new file mode 100644 index 0000000..c4c6ca4 Binary files /dev/null and b/Images/tab_dim.gif differ diff --git a/Images/top_curve2.gif b/Images/top_curve2.gif new file mode 100644 index 0000000..e297985 Binary files /dev/null and b/Images/top_curve2.gif differ diff --git a/Images/volvo-bus-final.gif b/Images/volvo-bus-final.gif new file mode 100644 index 0000000..baea2a2 Binary files /dev/null and b/Images/volvo-bus-final.gif differ diff --git a/MasterPage.master b/MasterPage.master new file mode 100644 index 0000000..d30aaa8 --- /dev/null +++ b/MasterPage.master @@ -0,0 +1,138 @@ +<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage2" %> + + + + + Untitled Page + + + + + +
+
+ + +
+ + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ Welcome , Rs. + + +
+
+
+ + +
+ + +
+ + +
+ + +
+   + +   + +   +
+
+ + + + + diff --git a/MasterPage.master.cs b/MasterPage.master.cs new file mode 100644 index 0000000..fba71f0 --- /dev/null +++ b/MasterPage.master.cs @@ -0,0 +1,37 @@ +/* + Created By: Brij Mohan Dammani + * Object: It will be used in all pages. It has all common things like header,tab menu, footer..etc. +*/ +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 MasterPage2 : System.Web.UI.MasterPage +{ + protected void Page_Load(object sender, EventArgs e) + { + + litdate.Text = System.DateTime.Now.ToString("D"); + if (Page.User.Identity.Name.ToString() != "") + { + litbal.Text = DB.ExecuteScaler(String.Format("Select Agent_current_bal from AgentBasicInfo where Agent_ID='{0}'", Page.User.Identity.Name.ToString().ToLower())).ToString(); + } + else { + up12.Visible = false; + } + + submenu.Visible = (Page.User.Identity.Name.ToString() == "admin"); + lblCreatedBy.Text = "Created By: Brij Mohan Dammani"; + + } +} diff --git a/Privacypolicy.aspx b/Privacypolicy.aspx new file mode 100644 index 0000000..d072df6 --- /dev/null +++ b/Privacypolicy.aspx @@ -0,0 +1,103 @@ +<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" + CodeFile="Privacypolicy.aspx.cs" Inherits="Privacypolicyajax" Title="Star Bus: Privacy Policy" %> + + + + + + + + <%--
+

+ Privacy Policy

+
--%> +
+ + + + +
+ + +
+
+ + + + +
+   + + + + + + + +
+ + + + + + + + + + + +
+

+

+ 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" %> + + + + + + + + + + + + + + + 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" %> + + + + + + +
+ bus +
+ + + + + + + + + +
+ + + + + + + + + + + + +
+

+ Call for bus tickets and home delivery service

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ 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 +
+
+
+
+ + + + + + + + + +
+

+ Starbus Advantage

+
+ + + + + + +
+
+
    +
  • 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