95
Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity. Complimentary material for the book “Software Engineering in the Agile World(ISBN: 978-1983801570) published by Create Space Independent Publishing Platform, USA Author - Ashfaque Ahmed

Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

  • Upload
    others

  • View
    9

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

Complimentary material for the book “Software Engineering in the Agile World”

(ISBN: 978-1983801570) published by Create Space Independent Publishing Platform,

USA

Author - Ashfaque Ahmed

Page 2: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

Technical support system JSP files

JSP file: admin_after_login.jsp

----------- ----------------------------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>Customer support system</title>

<link href="style.css" rel="stylesheet" type="text/css">

</head>

<body>

<div id="top_links">

<div id="header">

<h1>Customer support system<span class="style1"></span></h1>

<h2>Welcome to Customer support system</h2>

</div>

<div id="navigation">

<ul>

<li><a href="index.jsp">Home</a></li>

<li><a href="assign_issue_req.jsp">Assign issue</a></li>

<li><a href="edit_profile.jsp">edit account</a></li>

<li><a href="logout.jsp">Logout</a></li>

</ul>

</div>

<table style="width:897px; background:#FFFFFF; margin:0 auto;">

<tr >

<td width="300" valign="top" style="border-right:#666666 1px dotted;">

<div id="services"><h1></h1>

Page 3: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

</div>

</td>

<td width="1200" valign="top">

<%

String userName = null;

String sessionID = null;

Cookie[] cookies = request.getCookies();

if(cookies !=null){

for(Cookie cookie : cookies){

if(cookie.getName().equals("username")) {userName = cookie.getValue();}

}}

else {response.sendRedirect("login.jsp");}

%>

<div id="welcome" style="border-right:#666666 1px dotted;"><h1>You have

successfully logged in the system. PLEASE CHOOSE WHAT YOU WANT TO

CREATE FROM THE TOP MENU</h1><br>

<table align="center" bgcolor="white">

<tr>

</tr>

<tr>

<td>

</td>

</tr>

</table>

</div>

</td>

<td width="299" valign="top">

<div id="welcome" style="border-right:#666666 1px dotted;">

<center></center>

</div>

Page 4: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

</td>

</tr></table>

<div id="footer_top">

<div id="footer_navigation">

</div>

<div id="footer_copyright" >

<center></center><br>

<p></p>

Designed & Developed by Ashfaque Ahmed. Distributed under Creative Commons CC-

BY 2.0 license.

You can use the material for education purpose freely if attribution of source of the

material is provided.

For commercial inquiries please contact Ashfaque Ahmed at <a

href=mailto:[email protected]>[email protected]</a></div>

</div>

<script type="text/javascript">

document.onload = ctck();

</script>

</div>

</body>

</html>

------------ -------------------------

JSP file: assign_issue_req.jsp

------------ ------------------------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<SCRIPT LANGUAGE="JavaScript">

function validate(form)

{

for(var i=0; i<form.elements.length; i++)

{

Page 5: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

if(form.elements[i].value == "")

{

alert("Fill out all Fields")

form.elements[i].focus()

return false

}

}

if(document.F1.title.value=="-1")

{

alert("Please select title")

document.F1.title.focus()

return false

}

if(document.F1.assigned_to.value=="-1")

{

alert("Please select assigned_to")

document.F1.assigned_to.focus()

return false

}

return true

}

</SCRIPT>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>Customer support system</title>

<link href="style.css" rel="stylesheet" type="text/css">

<script type="text/javascript">

function ctck1()

{

var sds = document.getElementById("form");

}

</script>

</head>

<body>

<div id="top_links">

<%

Page 6: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

String userName = null;

String sessionID = null;

Cookie[] cookies = request.getCookies();

if(cookies !=null){

for(Cookie cookie : cookies){

if(cookie.getName().equals("username")) {userName = cookie.getValue();}

}}

else {response.sendRedirect("login.jsp");}

%>

<div id="header">

<h1>Smart City System<span class="style1"></span></h1>

<h2>Welcome to Brisbane Smart city</h2>

</div>

<div id="navigation">

<ul>

<li><a href="index.jsp">Home</a></li>

<li><a href="edit_profile.jsp">edit account</a></li>

<li><a href="logout.jsp">Logout</a></li>

</ul>

</div>

<table style="width:897px; background:#FFFFFF; margin:0 auto;">

<tr >

<td width="300" valign="top" style="border-right:#666666 1px dotted;">

<div id="services"><h1></h1>

</div>

</td>

<td width="1200" valign="top">

<div id="welcome" style="border-right:#666666 1px dotted;"><h1>assign issue

form</h1><br>

Page 7: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

<table align="center" bgcolor="white">

<tr>

</tr>

<tr>

<td>

<form name=F1 onSubmit="return validate(this)"

action="assign_issue_res.jsp" >

<table cellspacing="5" cellpadding="3">

<tr><td>Select Title:</td><td>

<select name="title" id="title"><option value="">--- Select ---

</option>

<%

Connection con=DB_connection.DBConnection();

String open_status = "o";

PreparedStatement ps=con.prepareStatement("Select * from issue where open_status='o'

and assign_status='n'");

ResultSet rs=ps.executeQuery();

while (rs.next())

{

%> <option value="<% out.print(rs.getInt(1)); %>"><% out.print(rs.getString(2));

%></option> <%

}

%>

</select>

</td></tr>

<tr><td>Select Developer:</td><td>

<select name="assigned_to" id="assigned_to"><option value="">--- Select ---

</option>

<%

Connection con1=DB_connection.DBConnection();

PreparedStatement ps1=con1.prepareStatement("Select * from user_table where

usertype='d'");

ResultSet rs1=ps1.executeQuery();

while (rs1.next())

{

%> <option value="<% out.print(rs1.getInt(1)); %>"><% out.print(rs1.getString(3));

%></option> <%

}

Page 8: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

%>

</select>

</td></tr>

<tr><td></td><td><input type="submit"

value="Submit"/>

<INPUT TYPE=RESET

VALUE="CLEAR"></td></tr>

</table>

</form>

</td>

</tr>

</table>

</div>

</td>

<td width="299" valign="top">

<div id="welcome" style="border-right:#666666 1px dotted;">

<center></center>

</div>

</td>

</tr></table>

<div id="footer_top">

<div id="footer_navigation">

</div>

<div id="footer_copyright" >

<center></center><br>

<p></p>

Designed & Developed by Ashfaque Ahmed. Distributed under Creative Commons CC-

BY 2.0 license.

You can use the material for education purpose freely if attribution of source of the

material is provided.

For commercial inquiries please contact Ashfaque Ahmed at <a

href=mailto:[email protected]>[email protected]</a></div>

Page 9: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

</div>

<script type="text/javascript">

document.onload = ctck();

</script>

</div>

<%@ page import="java.sql.*"%>

<%@ page import="java.io.*" %>

<%@ page import="javax.servlet.*"%>

<%@ page import="tech_support.*" %>

</body>

</html>

------------- ----------------------

JSP file: assign_issue_res.jsp

----------- -----------------------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>Customer support system</title>

<link href="style.css" rel="stylesheet" type="text/css">

</head>

<body>

<div id="top_links">

<div id="header">

<h1>Customer support system<span class="style1"></span></h1>

<h2>Welcome to Customer support system</h2>

</div>

<div id="navigation">

<ul>

<li><a href="index.jsp">Home</a></li>

Page 10: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

<li><a href="edit_profile.jsp">edit account</a></li>

<li><a href="logout.jsp">Logout</a></li>

</ul>

</div>

<div id="navigation">

<ul>

</ul>

</div>

<table style="width:897px; background:#FFFFFF; margin:0 auto;">

<tr >

<td width="300" valign="top" style="border-right:#666666 1px dotted;">

</td>

<td width="1200" valign="top">

<table>

<%

String userName = null;

String sessionID = null;

Cookie[] cookies = request.getCookies();

if(cookies !=null){

for(Cookie cookie : cookies){

if(cookie.getName().equals("username")) {userName = cookie.getValue();}

}}

else {response.sendRedirect("login.jsp");}

%>

<%

String assigned_to =request.getParameter("assigned_to");

int assigned_to_int = Integer.parseInt(assigned_to);

String title =request.getParameter("title");

int title_int=Integer.parseInt(title);

Connection con=DB_connection.DBConnection();

PreparedStatement ps=con.prepareStatement("select username from user_table

where no="+assigned_to_int );

ResultSet rs=ps.executeQuery();

if(rs.next()){

Page 11: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

assigned_to=rs.getString(1);

}

Connection con1=DB_connection.DBConnection();

PreparedStatement ps1=con1.prepareStatement("update issue set assigned_to

=?, assigned_by=?, assign_status='a' where accountno=?" );

ps1.setString(1, assigned_to);

ps1.setString(2, userName);

ps1.setInt(3, title_int);

ps1.executeUpdate();

out.print("issue assigned successfully");

%>

</table>

<div id="footer_copyright" >

<center></center><br>

<p></p>

Designed & Developed by Ashfaque Ahmed. Distributed under Creative Commons CC-

BY 2.0 license.

You can use the material for education purpose freely if attribution of source of the

material is provided.

For commercial inquiries please contact Ashfaque Ahmed at <a

href=mailto:[email protected]>[email protected]</a></div>

</div>

<%@ page import="java.sql.*"%>

<%@ page import="java.io.*" %>

<%@ page import="javax.servlet.*"%>

<%@ page import="tech_support.*" %>

----------- ---------------------------------

JSP file: close_issue_req.jsp

----------- ------------------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<SCRIPT LANGUAGE="JavaScript">

function validate(form)

{

Page 12: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

for(var i=0; i<form.elements.length; i++)

{

if(form.elements[i].value == "")

{

alert("Fill out all Fields")

//document.F1.username.focus()

form.elements[i].focus()

return false

}

}

return true

}

</SCRIPT>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>Customer support system</title>

<link href="style.css" rel="stylesheet" type="text/css">

<script type="text/javascript">

function ctck1()

{

var sds = document.getElementById("form");

}

</script>

</head>

<body>

<div id="top_links">

<div id="header">

<h1>Customer support system<span class="style1"></span></h1>

<h2>Welcome to Customer support system</h2>

</div>

<div id="navigation">

<ul>

<li><a href="index.jsp">Home</a></li>

<li><a href="create_issue_req.jsp">Create issue</a></li>

Page 13: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

<li><a href="reassign_issue_to_dev_req.jsp">assign issue</a></li>

<li><a href="edit_profile.jsp">edit account</a></li>

<li><a href="logout.jsp">Logout</a></li>

</ul>

</div>

<table style="width:897px; background:#FFFFFF; margin:0 auto;">

<tr >

<td width="300" valign="top" style="border-right:#666666 1px dotted;">

<div id="services"><h1></h1>

</div>

</td>

<td width="1200" valign="top">

<div id="welcome" style="border-right:#666666 1px dotted;"><h1>close issue

FORM</h1><br>

<table align="center" bgcolor="white">

<tr>

</tr>

<tr>

<td>

<form name=F1 onSubmit="return validate(this)"

action="close_issue_res.jsp" >

<table cellspacing="5" cellpadding="3">

<tr><td><select name="title"

id="title"><option value="">--- Select ---

</option>

<%

String userName = null;

String sessionID = null;

Cookie[] cookies = request.getCookies();

if(cookies !=null){

for(Cookie cookie : cookies){

if(cookie.getName().equals("username")) {userName = cookie.getValue();}

}}

else {response.sendRedirect("login.jsp");}

%>

<%

Connection con=DB_connection.DBConnection();

Page 14: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

PreparedStatement ps=con.prepareStatement("Select * from issue where open_status='o'

and assign_status='a' and created_by=? ");

ps.setString(1, userName);

ResultSet rs=ps.executeQuery();

while (rs.next())

{

%> <option value="<% out.print(rs.getInt(1)); %>"><% out.print(rs.getString(2));

%></option> <%

}

%>

</select>

</td></tr>

<tr><td><input type="submit"

value="Submit"></td>

<td><INPUT TYPE=RESET

VALUE="CLEAR"></td></tr>

</table>

</form>

</td>

</tr>

</table>

</div>

</td>

<td width="299" valign="top">

<div id="welcome" style="border-right:#666666 1px dotted;">

<center></center>

</div>

</td>

</tr></table>

<div id="footer_top">

Page 15: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

<div id="footer_navigation">

</div>

<div id="footer_copyright" >

<center></center><br>

<p></p>

Designed & Developed by Ashfaque Ahmed. Distributed under Creative Commons CC-

BY 2.0 license.

You can use the material for education purpose freely if attribution of source of the

material is provided.

For commercial inquiries please contact Ashfaque Ahmed at <a

href=mailto:[email protected]>[email protected]</a></div>

</div>

<script type="text/javascript">

document.onload = ctck();

</script>

</div>

<%@ page import="java.sql.*"%>

<%@ page import="java.io.*" %>

<%@ page import="javax.servlet.*"%>

<%@ page import="tech_support.*" %>

</body>

</html>

------------ -------------------------

JSP file: close_issue_res.jsp

-------------------- ---------------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>Customer support system</title>

<link href="style.css" rel="stylesheet" type="text/css">

</head>

Page 16: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

<body>

<div id="top_links">

<%

String userName = null;

String sessionID = null;

Cookie[] cookies = request.getCookies();

if(cookies !=null){

for(Cookie cookie : cookies){

if(cookie.getName().equals("username")) {userName = cookie.getValue();}

}}

else {response.sendRedirect("login.jsp");}

%>

<div id="header">

<h1>Customer support system<span class="style1"></span></h1>

<h2>Welcome to Customer support system</h2>

</div>

<div id="navigation">

<ul>

<li><a href="index.jsp">Home</a></li>

<li><a href="create_issue_req.jsp">create Issue</a></li>

<li><a href="reassign_issue_to_dev_req.jsp">Reassign issue to developer</a></li>

<li><a href="edit_profile.jsp">edit account</a></li>

<li><a href="logout.jsp">Logout</a></li>

</ul>

</div>

<div id="navigation">

<ul>

</ul>

</div>

<table style="width:897px; background:#FFFFFF; margin:0 auto;">

<tr >

<td width="300" valign="top" style="border-right:#666666 1px dotted;">

</td>

Page 17: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

<td width="1200" valign="top">

<table><%

String title =request.getParameter("title");

int title_int=Integer.parseInt(title);

Connection con1=DB_connection.DBConnection();

PreparedStatement ps1=con1.prepareStatement("update issue set

assign_status='n', open_status='c' where accountno=?" );

ps1.setInt(1, title_int);

ps1.executeUpdate();

out.print("issue closed successfully");

%>

</table>

<div id="footer_copyright" >

<center></center><br>

<p></p>

Designed & Developed by Ashfaque Ahmed. Distributed under Creative Commons CC-

BY 2.0 license.

You can use the material for education purpose freely if attribution of source of the

material is provided.

For commercial inquiries please contact Ashfaque Ahmed at <a

href=mailto:[email protected]>[email protected]</a></div>

</div>

<%@ page import="java.sql.*"%>

<%@ page import="java.io.*" %>

<%@ page import="javax.servlet.*"%>

<%@ page import="tech_support.*" %>

---------------- -------------------------

JSP file: create_acc_admin_req.jsp

------------------- ------------------------

create_acc_student_req.jsp

Page 18: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

------------ --------------- -----------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<SCRIPT LANGUAGE="JavaScript">

function validate(form)

{

for(var i=0; i<3; i++)

{

if(!isNaN(form.elements[i].value))

{

alert("This Field must be in Characters")

form.elements[i].value=""

form.elements[i].focus()

return false

}

}

if(document.F1.password.value!=document.F1.repassword.value)

{

alert("retype password is not matching with password. Please re-enter

repassword");

document.F1.repassword.value=""

document.F1.repassword.focus()

return false

}

if(!isNaN(document.F1.phone.value))

{

if(document.F1.phone.value >9999999999 )

{

alert("Phone number must be 10 digits long. Please re-enter phone

number")

document.F1.phone.value=""

document.F1.phone.focus()

return false

}

}

else

{

alert("This field must be number")

document.F1.phone.value=""

document.F1.phone.focus()

return false

Page 19: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

}

for(var i=0; i<form.elements.length; i++)

{

if(form.elements[i].value == "")

{

alert("Fill out all Fields")

form.elements[i].focus()

return false

}

}

return true

}

</SCRIPT>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>Customer support system</title>

<link href="style.css" rel="stylesheet" type="text/css">

<script type="text/javascript">

function ctck1()

{

var sds = document.getElementById("form");

}

</script>

</head>

<body>

<div id="top_links">

<div id="header">

<h1>Customer support system<span class="style1"></span></h1>

<h2>Welcome to Customer support system</h2>

</div>

<div id="navigation">

<ul>

<li><a href="index.jsp">Home</a></li>

Page 20: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

</ul>

</div>

<table style="width:897px; background:#FFFFFF; margin:0 auto;">

<tr >

<td width="300" valign="top" style="border-right:#666666 1px dotted;">

<div id="services"><h1></h1>

</div>

</td>

<td width="1200" valign="top">

<div id="welcome" style="border-right:#666666 1px dotted;"><h1>CREATE

administrator ACCOUNT FORM</h1><br>

<table align="center" bgcolor="white">

<tr>

</tr>

<tr>

<td>

<form name=F1 onSubmit="return validate(this)"

action="registration_servlet" >

<table cellspacing="5" cellpadding="3">

<tr><td> NAME:</td><td><input

type="text" name="name" /></td></tr>

<tr><td>USER NAME:</td><td> <input

type="text" name="username"/></td></tr>

<tr><td>ADDRESS:</td><td> <input

type="text" name="address"/></td></tr>

<tr><td>PASSWORD:</td><td> <input

type="password" name="password"/></td></tr>

<tr><td>RE-PASSWORD:</td><td> <input

type="password" name="repassword"/></td></tr>

<tr><td>email:</td><td> <input type="text"

name="email"/></td></tr>

<tr><td>PHONE:</td><td> <input type="text"

name="phone"/></td></tr>

<tr><td> <input type="hidden" name="usertype"

value="a" /></td></tr>

Page 21: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

<tr><td></td><td><input type="submit"

value="Submit"/>

<INPUT TYPE=RESET

VALUE="CLEAR"></td></tr>

</table>

</form>

</td>

</tr>

</table>

</div>

</td>

<td width="299" valign="top">

<div id="welcome" style="border-right:#666666 1px dotted;">

<center></center>

</div>

</td>

</tr></table>

<div id="footer_top">

<div id="footer_navigation">

</div>

<div id="footer_copyright" >

<center></center><br>

<p></p>

Designed & Developed by Ashfaque Ahmed. Distributed under Creative Commons CC-

BY 2.0 license.

You can use the material for education purpose freely if attribution of source of the

material is provided.

For commercial inquiries please contact Ashfaque Ahmed at <a

href=mailto:[email protected]>[email protected]</a></div>

</div>

<script type="text/javascript">

document.onload = ctck();

Page 22: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

</script>

</div>

</body>

</html>

----------------------- -------------------

JSP file: create_acc_admin_res.jsp

---------------- -----------------------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>Customer support system</title>

<link href="style.css" rel="stylesheet" type="text/css">

</head>

<body>

<div id="top_links">

<%

String userName = null;

String sessionID = null;

Cookie[] cookies = request.getCookies();

if(cookies !=null){

for(Cookie cookie : cookies){

if(cookie.getName().equals("username")) {userName = cookie.getValue();}

}}

else {response.sendRedirect("login.jsp");}

%>

<div id="header">

<h1>Customer support system<span class="style1"></span></h1>

<h2>Welcome to Customer support system</h2>

Page 23: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

</div>

<div id="navigation">

<ul>

<li><a href="index.jsp">Home</a></li>

<li><a href="assign_issue_req.jsp">Assign issue</a></li>

<li><a href="edit_profile.jsp">edit account</a></li>

<li><a href="logout.jsp">Logout</a></li>

</ul>

</div>

<div id="navigation">

<ul>

</ul>

</div>

<table style="width:897px; background:#FFFFFF; margin:0 auto;">

<tr >

<td width="300" valign="top" style="border-right:#666666 1px dotted;">

</td>

<td width="1200" valign="top">

<h2>welcome. Your account has been created.</h2>

<%

%>

</table>

<div id="footer_copyright" >

<center></center><br>

<p></p>

Designed & Developed by Ashfaque Ahmed. Distributed under Creative Commons CC-

BY 2.0 license.

Page 24: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

You can use the material for education purpose freely if attribution of source of the

material is provided.

For commercial inquiries please contact Ashfaque Ahmed at <a

href=mailto:[email protected]>[email protected]</a></div>

</div>

<%@ page import="java.sql.*"%>

<%@ page import="java.io.*" %>

<%@ page import="javax.servlet.*"%>

<%@ page import="tech_support.*" %>

----------- --------------------------------

JSP file: create_acc_customer_req.jsp

------------------------ -------------------------

create_acc_student_req.jsp

------------ --------------- -----------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<SCRIPT LANGUAGE="JavaScript">

function validate(form)

{

for(var i=0; i<3; i++)

{

if(!isNaN(form.elements[i].value))

{

alert("This Field must be in Characters")

form.elements[i].value=""

form.elements[i].focus()

return false

}

}

if(document.F1.password.value!=document.F1.repassword.value)

{

alert("retype password is not matching with password. Please re-enter

repassword");

document.F1.repassword.value=""

document.F1.repassword.focus()

return false

}

Page 25: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

if(!isNaN(document.F1.phone.value))

{

if(document.F1.phone.value >9999999999 )

{

alert("Phone number must be 10 digits long. Please re-enter phone

number")

document.F1.phone.value=""

document.F1.phone.focus()

return false

}

}

else

{

alert("This field must be number")

document.F1.phone.value=""

document.F1.phone.focus()

return false

}

for(var i=0; i<form.elements.length; i++)

{

if(form.elements[i].value == "")

{

alert("Fill out all Fields")

form.elements[i].focus()

return false

}

}

return true

}

</SCRIPT>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>Customer support system</title>

<link href="style.css" rel="stylesheet" type="text/css">

<script type="text/javascript">

function ctck1()

{

var sds = document.getElementById("form");

}

Page 26: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

</script>

</head>

<body>

<div id="top_links">

<div id="header">

<h1>Customer support system<span class="style1"></span></h1>

<h2>Welcome to Customer support system</h2>

</div>

<div id="navigation">

<ul>

<li><a href="index.jsp">Home</a></li>

<li><a href="create_issue_req.jsp">create issue</a></li>

<li><a href="close_issue_req.jsp">close issue</a></li>

<li><a href="reassign_issue_to_dev.jsp"><SR>reassign issue</SR></a></li>

</ul>

</div>

<table style="width:897px; background:#FFFFFF; margin:0 auto;">

<tr >

<td width="300" valign="top" style="border-right:#666666 1px dotted;">

<div id="services"><h1></h1>

</div>

</td>

<td width="1200" valign="top">

<div id="welcome" style="border-right:#666666 1px dotted;"><h1>CREATE

customer ACCOUNT FORM</h1><br>

<table align="center" bgcolor="white">

<tr>

</tr>

<tr>

<td>

<form name=F1 onSubmit="return validate(this)"

action="registration_servlet" >

<table cellspacing="5" cellpadding="3">

Page 27: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

<tr><td> NAME:</td><td><input

type="text" name="name" /></td></tr>

<tr><td>USER NAME:</td><td> <input

type="text" name="username"/></td></tr>

<tr><td>ADDRESS:</td><td> <input

type="text" name="address"/></td></tr>

<tr><td>PASSWORD:</td><td> <input

type="password" name="password"/></td></tr>

<tr><td>RE-PASSWORD:</td><td> <input

type="password" name="repassword"/></td></tr>

<tr><td>email:</td><td> <input type="text"

name="email"/></td></tr>

<tr><td>PHONE:</td><td> <input type="text"

name="phone"/></td></tr>

<tr><td> <input type="hidden" name="usertype"

value="c" /></td></tr>

<tr><td></td><td><input type="submit"

value="Submit"/>

<INPUT TYPE=RESET

VALUE="CLEAR"></td></tr>

</table>

</form>

</td>

</tr>

</table>

</div>

</td>

<td width="299" valign="top">

<div id="welcome" style="border-right:#666666 1px dotted;">

<center></center>

</div>

</td>

</tr></table>

<div id="footer_top">

<div id="footer_navigation">

Page 28: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

</div>

<div id="footer_copyright" >

<center></center><br>

<p></p>

Designed & Developed by Ashfaque Ahmed. Distributed under Creative Commons CC-

BY 2.0 license.

You can use the material for education purpose freely if attribution of source of the

material is provided.

For commercial inquiries please contact Ashfaque Ahmed at <a

href=mailto:[email protected]>[email protected]</a></div>

</div>

<script type="text/javascript">

document.onload = ctck();

</script>

</div>

</body>

</html>

--------------- --------------------------

JSP file: create_acc_customer_res.jsp

----------------- --------------------------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>Customer support system</title>

<link href="style.css" rel="stylesheet" type="text/css">

</head>

<body>

<div id="top_links">

<%

Page 29: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

String userName = null;

String sessionID = null;

Cookie[] cookies = request.getCookies();

if(cookies !=null){

for(Cookie cookie : cookies){

if(cookie.getName().equals("username")) {userName = cookie.getValue();}

}}

else {response.sendRedirect("login.jsp");}

%>

<div id="header">

<h1>Customer support system<span class="style1"></span></h1>

<h2>Welcome to Customer support system</h2>

</div>

<div id="navigation">

<ul>

<li><a href="create_issue_req.jsp">create issue</a></li>

<li><a href="close_issue_req.jsp">close issue</a></li>

<li><a href="reassign_issue_to_dev_req.jsp"><SR>reassign issue</SR></a></li>

<li><a href="edit_profile.jsp">edit account</a></li>

<li><a href="logout.jsp">logout</a></li>

</ul>

</div>

<table style="width:897px; background:#FFFFFF; margin:0 auto;">

<tr >

<td width="300" valign="top" style="border-right:#666666 1px dotted;">

</td>

<td width="1200" valign="top">

<h2>welcome. Your account is created.</h2>

Page 30: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

<%

%>

</table>

<div id="footer_copyright" >

<center></center><br>

<p></p>

Designed & Developed by Ashfaque Ahmed. Distributed under Creative Commons CC-

BY 2.0 license.

You can use the material for education purpose freely if attribution of source of the

material is provided.

For commercial inquiries please contact Ashfaque Ahmed at <a

href=mailto:[email protected]>[email protected]</a></div>

</div>

<%@ page import="java.sql.*"%>

<%@ page import="java.io.*" %>

<%@ page import="javax.servlet.*"%>

<%@ page import="tech_support.*" %>

--------------- ------------------------------------

JSP file: create_acc_developer_req.jsp

---------------- ---------------------------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<SCRIPT LANGUAGE="JavaScript">

function validate(form)

{

for(var i=0; i<3; i++)

{

if(!isNaN(form.elements[i].value))

{

alert("This Field must be in Characters")

form.elements[i].value=""

form.elements[i].focus()

return false

Page 31: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

}

}

if(document.F1.password.value!=document.F1.repassword.value)

{

alert("retype password is not matching with password. Please re-enter

repassword");

document.F1.repassword.value=""

document.F1.repassword.focus()

return false

}

if(!isNaN(document.F1.phone.value))

{

if(document.F1.phone.value >9999999999 )

{

alert("Phone number must be 10 digits long. Please re-enter phone

number")

document.F1.phone.value=""

document.F1.phone.focus()

return false

}

}

else

{

alert("This field must be number")

document.F1.phone.value=""

document.F1.phone.focus()

return false

}

for(var i=0; i<form.elements.length; i++)

{

if(form.elements[i].value == "")

{

alert("Fill out all Fields")

form.elements[i].focus()

return false

}

}

return true

Page 32: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

}

</SCRIPT>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>Customer support system</title>

<link href="style.css" rel="stylesheet" type="text/css">

<script type="text/javascript">

function ctck1()

{

var sds = document.getElementById("form");

}

</script>

</head>

<body>

<div id="top_links">

<div id="header">

<h1>Customer support system<span class="style1"></span></h1>

<h2>Welcome to Customer support system</h2>

</div>

<div id="navigation">

<ul>

<li><a href="index.jsp">Home</a></li>

<li><a href="view_issue_req.jsp">view issue</a></li>

<li><a href="reassign_issue_to_cust_req.jsp"><SR>reassign issue</SR></a></li>

</ul>

</div>

<table style="width:897px; background:#FFFFFF; margin:0 auto;">

<tr >

<td width="300" valign="top" style="border-right:#666666 1px dotted;">

<div id="services"><h1></h1>

</div>

</td>

Page 33: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

<td width="1200" valign="top">

<div id="welcome" style="border-right:#666666 1px dotted;"><h1>CREATE

developer ACCOUNT FORM</h1><br>

<table align="center" bgcolor="white">

<tr>

</tr>

<tr>

<td>

<form name=F1 onSubmit="return validate(this)"

action="registration_servlet" >

<table cellspacing="5" cellpadding="3">

<tr><td> NAME:</td><td><input

type="text" name="name" /></td></tr>

<tr><td>USER NAME:</td><td> <input

type="text" name="username"/></td></tr>

<tr><td>ADDRESS:</td><td> <input

type="text" name="address"/></td></tr>

<tr><td>PASSWORD:</td><td> <input

type="password" name="password"/></td></tr>

<tr><td>RE-PASSWORD:</td><td> <input

type="password" name="repassword"/></td></tr>

<tr><td>email:</td><td> <input type="text"

name="email"/></td></tr>

<tr><td>PHONE:</td><td> <input type="text"

name="phone"/></td></tr>

<tr><td> <input type="hidden" name="usertype"

value="d" /></td></tr>

<tr><td></td><td><input type="submit"

value="Submit"/>

<INPUT TYPE=RESET

VALUE="CLEAR"></td></tr>

</table>

</form>

</td>

</tr>

</table>

</div>

</td>

<td width="299" valign="top">

Page 34: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

<div id="welcome" style="border-right:#666666 1px dotted;">

<center></center>

</div>

</td>

</tr></table>

<div id="footer_top">

<div id="footer_navigation">

</div>

<div id="footer_copyright" >

<center></center><br>

<p></p>

Designed & Developed by Ashfaque Ahmed. Distributed under Creative Commons CC-

BY 2.0 license.

You can use the material for education purpose freely if attribution of source of the

material is provided.

For commercial inquiries please contact Ashfaque Ahmed at <a

href=mailto:[email protected]>[email protected]</a></div>

</div>

<script type="text/javascript">

document.onload = ctck();

</script>

</div>

</body>

</html>

------------------------ -------------------------

JSP file: create_acc_developer_res.jsp

---------------------- -----------------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

Page 35: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>Customer support system</title>

<link href="style.css" rel="stylesheet" type="text/css">

</head>

<body>

<div id="top_links">

<%

String userName = null;

String sessionID = null;

Cookie[] cookies = request.getCookies();

if(cookies !=null){

for(Cookie cookie : cookies){

if(cookie.getName().equals("username")) {userName = cookie.getValue();}

}}

else {response.sendRedirect("login.jsp");}

%>

<div id="header">

<h1>Customer support system<span class="style1"></span></h1>

<h2>Welcome to Customer support system</h2>

</div>

<div id="navigation">

<ul>

<li><a href="index.jsp">Home</a></li>

<li><a href="view_issue_req.jsp">view issue</a></li>

<li><a href="reassign_issue_to_cust_req.jsp"><SR>reassign issue</SR></a></li>

<li><a href="edit_profile.jsp">edit account</a></li>

<li><a href="logout.jsp">Logout</a></li>

</ul>

</div>

Page 36: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

<table style="width:897px; background:#FFFFFF; margin:0 auto;">

<tr >

<td width="300" valign="top" style="border-right:#666666 1px dotted;">

</td>

<td width="1200" valign="top">

<h2>welcome. Your account is created.</h2>

<%

%>

</table>

<div id="footer_copyright" >

<center></center><br>

<p></p>

Designed & Developed by Ashfaque Ahmed. Distributed under Creative Commons CC-

BY 2.0 license.

You can use the material for education purpose freely if attribution of source of the

material is provided.

For commercial inquiries please contact Ashfaque Ahmed at <a

href=mailto:[email protected]>[email protected]</a></div>

</div>

<%@ page import="java.sql.*"%>

<%@ page import="java.io.*" %>

<%@ page import="javax.servlet.*"%>

<%@ page import="tech_support.*" %>

--------------------- -------------------------

JSP file: create_acc_err.jsp

--------------- ------------------------

Page 37: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>Customer support system</title>

<link href="style.css" rel="stylesheet" type="text/css">

</head>

<body>

<div id="top_links">

<div id="header">

<h1>Customer support system<span class="style1"></span></h1>

<h2>Welcome to Customer support system</h2>

</div>

<div id="navigation">

<ul>

<li><a href="index.jsp">Home</a></li>

<li><a href="login.jsp">login</a></li>

</ul>

</div>

<table style="width:897px; background:#FFFFFF; margin:0 auto;">

<tr >

<td width="300" valign="top" style="border-right:#666666 1px dotted;">

</td>

<td width="1200" valign="top">

<%

%>

<table><%

int err = (Integer) request.getAttribute("err");

out.print("<table align='left' cellspacing='5' cellpadding='5'>");

Page 38: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

if (err==1) {out.print("<tr><td>Incorrect User Name, Password or Account No! Please

try again</td></tr>");}

if (err==2) {out.print("<tr><td>Registration Failed! Please try

again</td></tr>");}

out.print("</table>");

%></table><%

%>

</table>

<div id="footer_copyright" >

<center></center><br>

<p></p>

Designed & Developed by Ashfaque Ahmed. Distributed under Creative Commons CC-

BY 2.0 license.

You can use the material for education purpose freely if attribution of source of the

material is provided.

For commercial inquiries please contact Ashfaque Ahmed at <a

href=mailto:[email protected]>[email protected]</a></div>

</div>

<%@ page import="java.sql.*"%>

<%@ page import="java.io.*" %>

<%@ page import="javax.servlet.*"%>

<%@ page import="tech_support.*" %>

----------------------- ---------------------------

JSP file: create_issue_req.jsp

---------------- -------------------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<SCRIPT LANGUAGE="JavaScript">

function validate(form)

{

for(var i=0; i<3; i++)

{

Page 39: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

if(!isNaN(form.elements[i].value))

{

alert("This Field must be in Characters")

form.elements[i].value=""

form.elements[i].focus()

return false

}

}

if(document.F1.description.value.length>100)

{

alert("Please make description up to 100 character long");

document.F1.description.value=""

document.F1.description.focus()

return false

}

for(var i=0; i<form.elements.length; i++)

{

if(form.elements[i].value == "")

{

alert("Fill out all Fields")

//document.F1.username.focus()

form.elements[i].focus()

return false

}

}

return true

}

</SCRIPT>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>Technical support System - TSS</title>

<link href="style.css" rel="stylesheet" type="text/css">

<script type="text/javascript">

function ctck1()

{

var sds = document.getElementById("form");

}

</script>

Page 40: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

</head>

<body>

<div id="top_links">

<div id="header">

<h1>Technical Support System<span class="style1"></span></h1>

<h2>Welcome to technical support</h2>

</div>

<div id="navigation">

<ul>

<li><a href="index.jsp">Home</a></li>

<li><a href="close_issue_req.jsp">close issue</a></li>

<li><a href="reassign_issue_to_dev_req.jsp"><SR>reassign issue</SR></a></li>

<li><a href="edit_profile.jsp">edit account</a></li>

<li><a href="logout.jsp">Logout</a></li>

</ul>

</div>

<table style="width:897px; background:#FFFFFF; margin:0 auto;">

<tr >

<td width="300" valign="top" style="border-right:#666666 1px dotted;">

<div id="services"><h1></h1>

</div>

</td>

<td width="1200" valign="top">

<div id="welcome" style="border-right:#666666 1px dotted;"><h1>CREATE

issue FORM</h1><br>

<table align="center" bgcolor="white">

<tr>

</tr>

<tr>

<td>

Page 41: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

<form name=F1 id=F1 onSubmit="return validate(this)"

action="create_servlet" >

<table cellspacing="5" cellpadding="3">

<tr><td> Title:</td><td><input type="text"

name="title" /></td></tr>

<!-- <tr><td>Description:</td><td> <input

type="textarea" name="description" style="height: 92px; "/></td></tr> -->

<tr><td>Description:</td><td><textarea name="description"

form="F1">Enter text here...</textarea>

<%

String userName = null;

String sessionID = null;

Cookie[] cookies = request.getCookies();

if(cookies !=null){

for(Cookie cookie : cookies){

if(cookie.getName().equals("username")) {userName = cookie.getValue();}

}}

else {response.sendRedirect("login.jsp");}

%>

<% out.print("<tr><td> <input type=hidden

name=created_by value =" +userName );%>

<% out.print("/></td></tr> ");

%>

<tr><td><input type="submit" name = submit

value="Submit"/></td>

<td><INPUT TYPE=RESET name = reset

VALUE="CLEAR"/></td></tr>

</table>

</form>

</td>

</tr>

</table>

</div>

</td>

<td width="299" valign="top">

<div id="welcome" style="border-right:#666666 1px dotted;">

<center></center>

</div>

Page 42: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

</td>

</tr></table>

<div id="footer_top">

<div id="footer_navigation">

</div>

<div id="footer_copyright" >

<center></center><br>

<p></p>

Designed & Developed by Ashfaque Ahmed. Distributed under Creative Commons CC-

BY 2.0 license.

You can use the material for education purpose freely if attribution of source of the

material is provided.

For commercial inquiries please contact Ashfaque Ahmed at <a

href=mailto:[email protected]>[email protected]</a></div>

</div>

<script type="text/javascript">

document.onload = ctck();

</script>

</div>

<%@ page import="java.sql.*"%>

<%@ page import="java.io.*" %>

<%@ page import="javax.servlet.*"%>

<%@ page import="tech_support.*" %>

</body>

</html>

--------------------- -----------------------------

JSP file: create_issue_res.jsp

---------------- ----------------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

Page 43: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

<title>Customer support system</title>

<link href="style.css" rel="stylesheet" type="text/css">

</head>

<body>

<div id="top_links">

<%

String userName = null;

String sessionID = null;

Cookie[] cookies = request.getCookies();

if(cookies !=null){

for(Cookie cookie : cookies){

if(cookie.getName().equals("username")) {userName = cookie.getValue();}

}}

else {response.sendRedirect("login.jsp");}

%>

<div id="header">

<h1>Customer support system<span class="style1"></span></h1>

<h2>Welcome to Customer support system</h2>

</div>

<div id="navigation">

<ul>

<li><a href="index.jsp">Home</a></li>

<li><a href="close_issue_req.jsp">close issue</a></li>

<li><a href="reassign_issue_to_dev_req.jsp"><SR>reassign issue</SR></a></li>

<li><a href="edit_profile.jsp">edit account</a></li>

<li><a href="logout.jsp">Logout</a></li>

</ul>

</div>

<div id="navigation">

<ul>

</ul>

</div>

Page 44: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

<table style="width:897px; background:#FFFFFF; margin:0 auto;">

<tr >

<td width="300" valign="top" style="border-right:#666666 1px dotted;">

</td>

<td width="1200" valign="top">

<td width="1200" valign="top">

<div id="welcome" style="border-right:#666666 1px dotted;"><h1>Issue has

been successfully created. </h1><br>

<table align="center" bgcolor="white">

<tr>

</tr>

<tr>

<td>

</td>

</tr>

</table>

</div>

</td>

<table>

</table>

<div id="footer_copyright" >

<center></center><br>

<p></p>

Designed & Developed by Ashfaque Ahmed. Distributed under Creative Commons CC-

BY 2.0 license.

You can use the material for education purpose freely if attribution of source of the

material is provided.

For commercial inquiries please contact Ashfaque Ahmed at <a

href=mailto:[email protected]>[email protected]</a></div>

</div>

<%@ page import="java.sql.*"%>

<%@ page import="java.io.*" %>

<%@ page import="javax.servlet.*"%>

<%@ page import="tech_support.*" %>

Page 45: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

---------------- ---------------- ----------------

JSP file: customer_after_login.jsp

---------------- -----------------------------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>Customer support system</title>

<link href="style.css" rel="stylesheet" type="text/css">

<script type="text/javascript">

function ctck1()

{

var sds = document.getElementById("form");

}

</script>

</head>

<body>

<div id="top_links">

<%

String userName = null;

String sessionID = null;

Cookie[] cookies = request.getCookies();

if(cookies !=null){

for(Cookie cookie : cookies){

if(cookie.getName().equals("username")) {userName = cookie.getValue();}

}}

else {response.sendRedirect("login.jsp");}

%>

<div id="header">

<h1>Customer support system<span class="style1"></span></h1>

Page 46: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

<h2>Welcome to Customer support system</h2>

</div>

<div id="navigation">

<ul>

<li><a href="create_issue_req.jsp">create issue</a></li>

<li><a href="close_issue_req.jsp">close issue</a></li>

<li><a href="reassign_issue_to_dev_req.jsp"><SR>reassign issue</SR></a></li>

<li><a href="edit_profile.jsp">edit account</a></li>

<li><a href="logout.jsp">logout</a></li>

</ul>

</div>

<table style="width:897px; background:#FFFFFF; margin:0 auto;">

<tr >

<td width="300" valign="top" style="border-right:#666666 1px dotted;">

<div id="services"><h1></h1>

</div>

</td>

<td width="1200" valign="top">

<div id="welcome" style="border-right:#666666 1px dotted;"><h1>You have

successfully logged. Please choose any of the

above menu to view reports.</h1><br>

<table align="center" bgcolor="white">

<tr>

</tr>

<tr>

<td>

</td>

</tr>

</table>

</div>

</td>

<td width="299" valign="top">

<div id="welcome" style="border-right:#666666 1px dotted;">

<center></center>

Page 47: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

</div>

</td>

</tr></table>

<div id="footer_top">

<div id="footer_navigation">

</div>

<div id="footer_copyright" >

<center></center><br>

<p></p>

Designed & Developed by Ashfaque Ahmed. Distributed under Creative Commons CC-

BY 2.0 license.

You can use the material for education purpose freely if attribution of source of the

material is provided.

For commercial inquiries please contact Ashfaque Ahmed at <a

href=mailto:[email protected]>[email protected]</a></div>

</div>

<script type="text/javascript">

document.onload = ctck();

</script>

</div>

</body>

</html>

----------------------------- ----------------

JSP file: developer_after_login.jsp

----------------- --------------------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

Page 48: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>Customer support system</title>

<link href="style.css" rel="stylesheet" type="text/css">

</head>

<body>

<div id="top_links">

<div id="header">

<h1>Customer support system<span class="style1"></span></h1>

<h2>Welcome to Customer support system</h2>

</div>

<div id="navigation">

<ul>

<li><a href="index.jsp">Home</a></li>

<li><a href="view_issue_req.jsp">View issue</a></li>

<li><a href="reassign_issue_to_cust_req.jsp"><SR>reassign issue</SR></a></li>

< <li><a href="edit_profile.jsp">edit account</a></li>

<li><a href="logout.jsp">Logout</a></li>

</ul>

</div>

<table style="width:897px; background:#FFFFFF; margin:0 auto;">

<tr >

<td width="300" valign="top" style="border-right:#666666 1px dotted;">

<div id="services"><h1></h1>

</div>

</td>

<td width="1200" valign="top">

<%

String userName = null;

Page 49: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

String sessionID = null;

Cookie[] cookies = request.getCookies();

if(cookies !=null){

for(Cookie cookie : cookies){

if(cookie.getName().equals("username")) {userName = cookie.getValue();}

}}

else {response.sendRedirect("login.jsp");}

%>

<div id="welcome" style="border-right:#666666 1px dotted;"><h1>You have

successfully logged in the system. PLEASE CHOOSE WHAT YOU WANT TO

CREATE FROM THE TOP MENU</h1><br>

<table align="center" bgcolor="white">

<tr>

</tr>

<tr>

<td>

</td>

</tr>

</table>

</div>

</td>

<td width="299" valign="top">

<div id="welcome" style="border-right:#666666 1px dotted;">

<center></center>

</div>

</td>

</tr></table>

<div id="footer_top">

<div id="footer_navigation">

</div>

Page 50: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

<div id="footer_copyright" >

<center></center><br>

<p></p>

Designed & Developed by Ashfaque Ahmed. Distributed under Creative Commons CC-

BY 2.0 license.

You can use the material for education purpose freely if attribution of source of the

material is provided.

For commercial inquiries please contact Ashfaque Ahmed at <a

href=mailto:[email protected]>[email protected]</a></div>

</div>

<script type="text/javascript">

document.onload = ctck();

</script>

</div>

</body>

</html>

----------------------- -----------------------

JSP file: edit_profile.jsp

---------------------- ---------------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<SCRIPT LANGUAGE="JavaScript">

function validate(form)

{

for(var i=1; i<3; i++)

{

if(!isNaN(form.elements[i].value))

{

alert("This Field must be in Characters")

form.elements[i].value=""

form.elements[i].focus()

return false

}

}

if(document.F1.password.value!=document.F1.repassword.value)

{

Page 51: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

alert("retype password is not matching with password. Please re-enter

repassword");

document.F1.repassword.value=""

document.F1.repassword.focus()

return false

}

if(!isNaN(document.F1.phone.value))

{

if(document.F1.phone.value >9999999999 )

{

alert("Phone number must be 10 digits long. Please re-enter phone

number")

document.F1.phone.value=""

document.F1.phone.focus()

return false

}

}

else

{

alert("This field must be number")

document.F1.phone.value=""

document.F1.phone.focus()

return false

}

for(var i=0; i<form.elements.length; i++)

{

if(form.elements[i].value == "")

{

alert("Fill out all Fields")

form.elements[i].focus()

return false

}

}

return true

}

</SCRIPT>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

Page 52: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

<title>Customer support system</title>

<link href="style.css" rel="stylesheet" type="text/css">

<script type="text/javascript">

function ctck1()

{

var sds = document.getElementById("form");

}

</script>

</head>

<body>

<div id="top_links">

<%

%>

<div id="header">

<h1>Customer support system<span class="style1"></span></h1>

<h2>Welcome to Customer support system</h2>

</div>

<div id="navigation">

<ul>

<li><a href="index.jsp">Home</a></li>

<li><a href="login.jsp">Login</a></li>

<li><a href="logout.jsp">Log out</a></li>

</ul>

</div>

<table style="width:897px; background:#FFFFFF; margin:0 auto;">

<tr >

<td width="300" valign="top" style="border-right:#666666 1px dotted;">

<div id="services"><h1></h1>

</div>

</td>

Page 53: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

<td width="1200" valign="top">

<div id="welcome" style="border-right:#666666 1px dotted;"><h1>Edit

profile</h1><br>

<table align="center" bgcolor="white">

<tr>

</tr>

<tr>

<td>

<form name=F1 onSubmit="return validate(this)"

action="updated_profile.jsp" >

<table cellspacing="5" cellpadding="3">

<% try {

String userName = null;

String sessionID = null;

Cookie[] cookies = request.getCookies();

if(cookies !=null){

for(Cookie cookie : cookies){

if(cookie.getName().equals("username")) {userName =

cookie.getValue();}

}}

else {response.sendRedirect("login.jsp");}

Connection con = DB_connection.DBConnection();

PreparedStatement ps=con.prepareStatement("Select * from user_table where

username ='"+userName+"'");

System.out.print (userName);

ResultSet rs=ps.executeQuery();

while(rs.next()){

%>

<tr><td> <input type="hidden" name="no" value

="<%=rs.getInt(1)%>"></td></tr>

<tr><td> NAME:</td><td><input type="text" name="name"

value ="<%=rs.getString(2)%>"/></td></tr>

<tr><td>USER NAME:</td><td> <input type="text"

name="username" value ="<%=rs.getString(3)%>"></td></tr>

<tr><td>ADDRESS:</td><td> <input type="text"

name="address"value ="<%=rs.getString(4)%>"></td></tr>

Page 54: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

<tr><td>PASSWORD:</td><td> <input type="password"

name="password"value ="<%=rs.getString(5)%>"></td></tr>

<tr><td>RE-PASSWORD:</td><td> <input type="password"

name="repassword"value ="<%=rs.getString(6)%>"></td></tr>

<tr><td>email:</td><td> <input type="text"

name="email"value ="<%=rs.getString(7)%>"></td></tr>

<tr><td>PHONE:</td><td> <input type="text"

name="phone"value ="<%=rs.getInt(8)%>"></td></tr>

<tr><td> <input type="hidden" name="usertype" value

="<%=rs.getString(9)%>"></td></tr>

<tr><td></td><td><input type="submit" value="Submit"/>

<INPUT TYPE=RESET VALUE="CLEAR"></td></tr>

<%

}

} catch (SQLException e) {

e.printStackTrace();

}

%>

</table>

</form>

</td>

</tr>

</table>

</div>

</td>

<td width="299" valign="top">

<div id="welcome" style="border-right:#666666 1px dotted;">

<center></center>

</div>

</td>

</tr></table>

<div id="footer_top">

<div id="footer_navigation">

Page 55: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

</div>

<div id="footer_copyright" >

<center></center><br>

<p></p>

Designed & Developed by Ashfaque Ahmed. Distributed under Creative Commons CC-

BY 2.0 license.

You can use the material for education purpose freely if attribution of source of the

material is provided.

For commercial inquiries please contact Ashfaque Ahmed at <a

href=mailto:[email protected]>[email protected]</a></div>

</div>

<script type="text/javascript">

document.onload = ctck();

</script>

</div>

<%@ page import="java.sql.*"%>

<%@ page import="java.io.*" %>

<%@ page import="javax.servlet.*"%>

<%@ page import="tech_support.*" %>

</body>

</html>

-------------------- ----------------------

JSP file: index.jsp

------------- ---------------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>Customer support system</title>

<link href="style.css" rel="stylesheet" type="text/css">

<script type="text/javascript">

function ctck()

{

var sds = document.getElementById("form");

Page 56: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

}

</script>

</head>

<body>

<div id="top_links">

<div id="header">

<h1>Customer support system<span class="style1"></span></h1>

<h2>Welcome to Customer support system</h2>

</div>

<div id="navigation">

<ul>

<li><a href="create_acc_customer_req.jsp">Create Account</a></li>

<li><a href="login.jsp">Login</a></li>

</ul>

</div>

<table style="width:897px; background:#FFFFFF; margin:0 auto;">

<tr >

<td width="300" valign="top" style="border-right:#666666 1px dotted;">

<div id="services">

<p>PLEASE CHOOSE ONE OF THE MENUS ABOVE TO CREATE A SUITABLE

ACCOUNT.

IF YOU HAVE A VALID ACCOUNT THEN PLEASE LOGIN.</p><br>

</div>

</td>

<td width="1400" valign="top">

<div id="welcome" style="border-right:#666666 1px dotted;">

<table align="center" bgcolor="white">

<tr>

<P>Welcome to the portal of customer technical support. </P>

Page 57: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

<P>We provide fast and transparent customer technical support. Once a

customer complaint is registered then

it is immediately assigned to the concerned person for fixing the problem.

Once the person makes a fix then

the customer is notified. If the fix is as per satisfaction of the customer

then the customer can close

the complaint.</P>

<P>If a complaint is not fixed as per satisfaction of the customer then the

customer can reassign the

complaint to the concerned person for fixing.</P>

</tr>

<tr>

</tr>

</td>

</tr>

</table>

</div>

</td>

<td width="9" valign="top">

</td>

</tr></table>

<div id="footer_top">

<div id="footer_navigation">

</div>

<div id="footer_copyright" >

<center></center><br>

<p></p>

Designed & Developed by Ashfaque Ahmed. Distributed under Creative Commons CC-

BY 2.0 license.

You can use the material for education purpose freely if attribution of source of the

material is provided.

For commercial inquiries please contact Ashfaque Ahmed at <a

href=mailto:[email protected]>[email protected]</a></div>

</div>

<script type="text/javascript">

Page 58: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

document.onload = ctck();

</script>

</div>

</body>

</html>

----------------- -------------------------

JSP file: login.jsp

---------------------- -----------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<SCRIPT LANGUAGE="JavaScript">

function check(form)

{

for(var i=0; i<form.elements.length; i++)

{

if(form.elements[i].value == "")

{

alert("Fill out all Fields")

form.elements[i].focus()

return false

}

}

if(document.F1.usertype.value=="-1")

{

alert("Please select usertype")

document.F1.usertype.focus()

return false

}

if(!isNaN(document.F1.username.value))

{

alert("User Name must be characters & can't be null")

document.F1.username.value=""

document.F1.username.focus()

return false

}

Page 59: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

if(document.F1.password.value!=document.F1.repassword.value)

{

alert("Password and reapssword must match")

document.F1.repassword.value=""

document.F1.repassword.focus()

return false

}

return true

}

</SCRIPT>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>Customer support system</title>

<link href="style.css" rel="stylesheet" type="text/css">

<script type="text/javascript">

function ctck()

{

var sds = document.getElementById("form");

}

</script>

</head>

<body>

<div id="top_links">

<div id="header">

<h1>Customer support system<span class="style1"></span></h1>

<h2>Welcome to the Customer support system</h2>

</div>

<div id="navigation">

<ul>

<li><a href="index.jsp">Home</a></li>

</ul>

</div>

<h3>Hi, Please login.</h3>

Page 60: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

<table style="width:897px; background:#FFFFFF; margin:0 auto;">

<tr >

<td width="300" valign="top" style="border-right:#666666 1px dotted;">

<div id="services"><ul>

</ul>

</div>

</td>

<td width="1200" valign="top">

<div id="welcome" style="border-right:#666666 1px

dotted;"><h1>Login</h1><br>

<table align="center" bgcolor="white">

<tr>

</tr>

<tr>

<td><div></div>

<form name=F1 onSubmit="return check(this)"

action="login_servlet" >

<table cellspacing="5" cellpadding="3">

<tr><td>USER NAME:</td><td> <input

type="text" name="username"/></td></tr>

<tr><td>PASSWORD:</td><td> <input

type="password" name="password"/></td></tr>

<tr><td>REPASSWORD:</td><td> <input

type="password" name="repassword"/></td></tr>

<tr><td>Select usertype</td><td>

<select name="usertype" id="usertype">

<option value="-1">--- Select ---</option>

<option value="c"

>Customer</option>

<option value="d"

>Developer</option>

<option value="a"

>Administrator</option>

</select>

</td></tr>

<tr><td><input type="submit"

value="Submit"></td><td>

Page 61: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

<INPUT TYPE=RESET VALUE="CLEAR"></td></tr>

</table>

</form>

</td>

</tr>

</table>

</div>

</td>

<td width="299" valign="top">

</td>

</tr></table>

<div id="footer_top">

<div id="footer_navigation">

</div>

<div id="footer_copyright" >

<center></center><br>

<p></p>

Designed & Developed by Ashfaque Ahmed. Distributed under Creative Commons CC-

BY 2.0 license.

You can use the material for education purpose freely if attribution of source of the

material is provided.

For commercial inquiries please contact Ashfaque Ahmed at <a

href=mailto:[email protected]>[email protected]</a></div>

</div>

<script type="text/javascript">

document.onload = ctck();

</script>

</div>

</body>

</html>

----------------- ------------------------

Page 62: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

JSP file: logout.jsp

-------------- -----------------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<SCRIPT LANGUAGE="JavaScript">

function check(form)

{

for(var i=0; i<form.elements.length; i++)

{

if(form.elements[i].value == "")

{

alert("Fill out all Fields")

form.elements[i].focus()

return false

}

}

if(document.F1.usertype.value=="-1")

{

alert("Please select usertype")

document.F1.usertype.focus()

return false

}

if(!isNaN(document.F1.username.value))

{

alert("User Name must be characters & can't be null")

document.F1.username.value=""

document.F1.username.focus()

return false

}

if(!isNaN(document.F1.password.value))

{

alert("Password must be characters & can't be null")

document.F1.password.value=""

document.F1.password.focus()

return false

}

return true

}

</SCRIPT>

Page 63: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>Customer support system</title>

<link href="style.css" rel="stylesheet" type="text/css">

<script type="text/javascript">

function ctck()

{

var sds = document.getElementById("form");

}

</script>

</head>

<body>

<div id="top_links">

<div id="header">

<h1>Customer support system<span class="style1"></span></h1>

<h2>Welcome to the Customer support system</h2>

</div>

<div id="navigation">

<ul>

<li><a href="index.jsp">Home</a></li>

</ul>

</div>

<%

//allow access only if session exists

String userName = null;

String sessionID = null;

Cookie[] cookies = request.getCookies();

if(cookies !=null){

for(Cookie cookie : cookies){

if(cookie.getName().equals("username")) userName = cookie.getValue();

cookie.setMaxAge(0);

}

}

%>

<h3>Hi <%=userName %>, You have successfully logged out. Please log in to

continue.</h3>

Page 64: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

<table style="width:897px; background:#FFFFFF; margin:0 auto;">

<tr >

<td width="300" valign="top" style="border-right:#666666 1px dotted;">

<div id="services"><ul>

</ul>

</div>

</td>

<td width="1200" valign="top">

<div id="welcome" style="border-right:#666666 1px dotted;"><h1>LOGIN

FORM</h1><br>

<table align="center" bgcolor="white">

<tr>

</tr>

<tr>

<td><div></div>

<form name=F1 onSubmit="return check(this)"

action="login_servlet" >

<table cellspacing="5" cellpadding="3">

<tr><td>USER NAME:</td><td> <input

type="text" name="username"/></td></tr>

<tr><td>PASSWORD:</td><td> <input

type="password" name="password"/></td></tr>

<tr><td>REPASSWORD:</td><td> <input

type="password" name="repassword"/></td></tr>

<tr><td>Select usertype</td><td>

<select name="usertype" id="usertype">

<option value="-1">--- Select ---</option>

<option value="a"

>Administrator</option>

<option value="c"

>Customer</option>

<option value="d"

>Developer</option>

</select>

</td></tr>

<tr><td><input type="submit"

value="Submit"></td><td>

Page 65: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

<INPUT TYPE=RESET VALUE="CLEAR"></td></tr>

</table>

</form>

</td>

</tr>

</table>

</div>

</td>

<td width="299" valign="top">

</td>

</tr></table>

<div id="footer_top">

<div id="footer_navigation">

</div>

<div id="footer_copyright" >

<center></center><br>

<p></p>

Designed & Developed by Ashfaque Ahmed. Distributed under Creative Commons CC-

BY 2.0 license.

You can use the material for education purpose freely if attribution of source of the

material is provided.

For commercial inquiries please contact Ashfaque Ahmed at <a

href=mailto:[email protected]>[email protected]</a></div>

</div>

<script type="text/javascript">

document.onload = ctck();

</script>

</div>

</body>

</html>

-------------------- ----------------------

Page 66: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

JSP file: reassign_issue_to_cust_req.jsp

--------------- -----------------------------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<SCRIPT LANGUAGE="JavaScript">

function validate(form)

{

if(document.F1.department.value.length>100)

{

alert("Please make department up to 100 character long");

document.F1.department.value=""

document.F1.department.focus()

return false

}

for(var i=0; i<form.elements.length; i++)

{

if(form.elements[i].value == "")

{

alert("Fill out all Fields")

//document.F1.username.focus()

form.elements[i].focus()

return false

}

}

return true

}

</SCRIPT>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>Customer support system</title>

<link href="style.css" rel="stylesheet" type="text/css">

<script type="text/javascript">

function ctck1()

{

var sds = document.getElementById("form");

Page 67: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

}

</script>

</head>

<body>

<div id="top_links">

<div id="header">

<h1>Customer support system<span class="style1"></span></h1>

<h2>Welcome to Customer support system</h2>

</div>

<div id="navigation">

<ul>

<li><a href="index.jsp">Home</a></li>

<li><a href="view_issue_req.jsp">View issue</a></li>

<li><a href="edit_profile.jsp">edit account</a></li>

<li><a href="logout.jsp">Logout</a></li>

</ul>

</div>

<table style="width:897px; background:#FFFFFF; margin:0 auto;">

<tr >

<td width="300" valign="top" style="border-right:#666666 1px dotted;">

<div id="services"><h1></h1>

</div>

</td>

<td width="1200" valign="top">

<div id="welcome" style="border-right:#666666 1px dotted;"><h1>reassign issue

to customer FORM</h1><br>

<table align="center" bgcolor="white">

<tr>

</tr>

Page 68: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

<tr>

<td>

<form name=F1 onSubmit="return validate(this)"

action="reassign_issue_to_cust_res.jsp" >

<table cellspacing="5" cellpadding="3">

<tr><td>Select Title:</td><td>

<select name="title" id="title"><option value="">--- Select ---

</option>

<%

String userName = null;

String sessionID = null;

Cookie[] cookies = request.getCookies();

if(cookies !=null){

for(Cookie cookie : cookies){

if(cookie.getName().equals("username")) {userName = cookie.getValue();}

}}

else {response.sendRedirect("login.jsp");}

%>

<%

Connection con=DB_connection.DBConnection();

String assigned_to = "o";

PreparedStatement ps=con.prepareStatement("Select * from issue where open_status='o'

and assigned_to=?");

ps.setString(1, userName);

ResultSet rs=ps.executeQuery();

while (rs.next())

{

%> <option value="<% out.print(rs.getInt(1)); %>"><% out.print(rs.getString(2));

%></option> <%

}

%>

</select></td></tr>

<tr><td></td><td><input type="submit"

value="Submit"/>

Page 69: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

<INPUT TYPE=RESET

VALUE="CLEAR"></td></tr>

</table>

</form>

</td>

</tr>

</table>

</div>

</td>

<td width="299" valign="top">

<div id="welcome" style="border-right:#666666 1px dotted;">

<center></center>

</div>

</td>

</tr></table>

<div id="footer_top">

<div id="footer_navigation">

</div>

<div id="footer_copyright" >

<center></center><br>

<p></p>

Designed & Developed by Ashfaque Ahmed. Distributed under Creative Commons CC-

BY 2.0 license.

You can use the material for education purpose freely if attribution of source of the

material is provided.

For commercial inquiries please contact Ashfaque Ahmed at <a

href=mailto:[email protected]>[email protected]</a></div>

</div>

<script type="text/javascript">

document.onload = ctck();

</script>

</div>

<%@ page import="java.sql.*"%>

Page 70: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

<%@ page import="java.io.*" %>

<%@ page import="javax.servlet.*"%>

<%@ page import="tech_support.*" %>

</body>

</html>

--------------- ---------------------------

JSP file: reassign_issue_to_cust_res.jsp

---------------------- -----------------------------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>Customer support system</title>

<link href="style.css" rel="stylesheet" type="text/css">

</head>

<body>

<div id="top_links">

<%

String userName = null;

String sessionID = null;

Cookie[] cookies = request.getCookies();

if(cookies !=null){

for(Cookie cookie : cookies){

if(cookie.getName().equals("username")) {userName = cookie.getValue();}

}}

else {response.sendRedirect("login.jsp");}

%>

<div id="header">

<h1>Customer support system<span class="style1"></span></h1>

<h2>Welcome to Customer support system</h2>

Page 71: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

</div>

<div id="navigation">

<ul>

<li><a href="index.jsp">Home</a></li>

<li><a href="view_issue_req.jsp"><SR>reassign issue</SR></a></li>

<li><a href="edit_profile.jsp">edit account</a></li>

<li><a href="logout.jsp">Logout</a></li>

</ul>

</div>

<div id="navigation">

<ul>

</ul>

</div>

<table style="width:897px; background:#FFFFFF; margin:0 auto;">

<tr >

<td width="300" valign="top" style="border-right:#666666 1px dotted;">

</td>

<td width="1200" valign="top">

<table><%

String assigned_to="";

String title =request.getParameter("title");

int title_int = Integer.parseInt(title);

Connection con=DB_connection.DBConnection();

PreparedStatement ps=con.prepareStatement("select created_by from issue

where accountno=?" );

ps.setInt(1, title_int);

ResultSet rs=ps.executeQuery();

if(rs.next()){

assigned_to=rs.getString(1);

}

Connection con1=DB_connection.DBConnection();

Page 72: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

PreparedStatement ps1=con1.prepareStatement("update issue set assigned_to

=?, assigned_by=?, assign_status='a'"

+ ", open_status='o' where accountno=?" );

ps1.setInt(3, title_int);

ps1.setString(2, userName);

ps1.setString(1, assigned_to);

ps1.executeUpdate();

out.print("issue reassigned to customer successfully");

%>

</table>

<div id="footer_copyright" >

<center></center><br>

<p></p>

Designed & Developed by Ashfaque Ahmed. Distributed under Creative Commons CC-

BY 2.0 license.

You can use the material for education purpose freely if attribution of source of the

material is provided.

For commercial inquiries please contact Ashfaque Ahmed at <a

href=mailto:[email protected]>[email protected]</a></div>

</div>

<%@ page import="java.sql.*"%>

<%@ page import="java.io.*" %>

<%@ page import="javax.servlet.*"%>

<%@ page import="tech_support.*" %>

------------------ ------------------------------------

JSP file: reassign_issue_to_dev_req.jsp

---------------------------- ------------------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<SCRIPT LANGUAGE="JavaScript">

function validate(form)

{

Page 73: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

for(var i=0; i<form.elements.length; i++)

{

if(form.elements[i].value == "")

{

alert("Fill out all Fields")

//document.F1.username.focus()

form.elements[i].focus()

return false

}

}

return true

}

</SCRIPT>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>Customer support system</title>

<link href="style.css" rel="stylesheet" type="text/css">

<script type="text/javascript">

function ctck1()

{

var sds = document.getElementById("form");

}

</script>

</head>

<body>

<div id="top_links">

<div id="header">

<h1>Customer support system<span class="style1"></span></h1>

<h2>Welcome to Customer support system</h2>

</div>

<div id="navigation">

<ul>

<li><a href="index.jsp">Home</a></li>

<li><a href="close_issue_req.jsp">close issue</a></li>

<li><a href="create_issue_req.jsp"><SR>create issue</SR></a></li>

Page 74: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

<li><a href="edit_profile.jsp">edit account</a></li>

<li><a href="logout.jsp">Logout</a></li>

</ul>

</div>

<table style="width:897px; background:#FFFFFF; margin:0 auto;">

<tr >

<td width="300" valign="top" style="border-right:#666666 1px dotted;">

<div id="services"><h1></h1>

</div>

</td>

<td width="1200" valign="top">

<div id="welcome" style="border-right:#666666 1px dotted;"><h1>reassign issue

to developer FORM</h1><br>

<table align="center" bgcolor="white">

<tr>

</tr>

<tr>

<td>

<form name=F1 onSubmit="return validate(this)"

action="reassign_issue_to_dev_res.jsp" >

<table cellspacing="5" cellpadding="3">

<tr><td>Select Title:</td><td>

<select name="title" id="title"><option value="">--- Select ---

</option>

<%

String userName = null;

String sessionID = null;

Cookie[] cookies = request.getCookies();

if(cookies !=null){

for(Cookie cookie : cookies){

if(cookie.getName().equals("username")) {userName = cookie.getValue();}

}}

else {response.sendRedirect("login.jsp");}

%>

Page 75: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

<%

Connection con=DB_connection.DBConnection();

String assigned_to = "o";

PreparedStatement ps=con.prepareStatement("Select * from issue where open_status='o'

and assigned_to=?");

ps.setString(1, userName);

ResultSet rs=ps.executeQuery();

while (rs.next())

{

%> <option value="<% out.print(rs.getInt(1)); %>"><% out.print(rs.getString(2));

%></option> <%

}

%>

</select></td></tr>

<tr><td></td><td><input type="submit"

value="Submit"/>

<INPUT TYPE=RESET

VALUE="CLEAR"></td></tr>

</table>

</form>

</td>

</tr>

</table>

</div>

</td>

<td width="299" valign="top">

<div id="welcome" style="border-right:#666666 1px dotted;">

<center></center>

</div>

</td>

</tr></table>

<div id="footer_top">

Page 76: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

<div id="footer_navigation">

</div>

<div id="footer_copyright" >

<center></center><br>

<p></p>

Designed & Developed by Ashfaque Ahmed. Distributed under Creative Commons CC-

BY 2.0 license.

You can use the material for education purpose freely if attribution of source of the

material is provided.

For commercial inquiries please contact Ashfaque Ahmed at <a

href=mailto:[email protected]>[email protected]</a></div>

</div>

<script type="text/javascript">

document.onload = ctck();

</script>

</div>

<%@ page import="java.sql.*"%>

<%@ page import="java.io.*" %>

<%@ page import="javax.servlet.*"%>

<%@ page import="tech_support.*" %>

</body>

</html>

------------------- -----------------------------

JSP file: reassign_issue_to_dev_res.jsp

----------------- ----------------------------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>Customer support system</title>

<link href="style.css" rel="stylesheet" type="text/css">

</head>

Page 77: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

<body>

<div id="top_links">

<div id="header">

<h1>Customer support system<span class="style1"></span></h1>

<h2>Welcome to Customer support system</h2>

</div>

<div id="navigation">

<ul>

<li><a href="index.jsp">Home</a></li>

<li><a href="create_issue_req.jsp">create issue</a></li>

<li><a href="close_issue_req.jsp">close issue</a></li>

<li><a href="edit_profile.jsp">edit account</a></li>

<li><a href="logout.jsp">Logout</a></li>

</ul>

</div>

<div id="navigation">

<ul>

</ul>

</div>

<table style="width:897px; background:#FFFFFF; margin:0 auto;">

<tr >

<td width="300" valign="top" style="border-right:#666666 1px dotted;">

</td>

<td width="1200" valign="top">

<table>

<%

String userName = null;

String sessionID = null;

Cookie[] cookies = request.getCookies();

if(cookies !=null){

for(Cookie cookie : cookies){

if(cookie.getName().equals("username")) {userName = cookie.getValue();}

Page 78: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

}}

else {response.sendRedirect("login.jsp");}

%>

<%

String assigned_to="";

String title =request.getParameter("title");

int title_int = Integer.parseInt(title);

System.out.println(title_int);

Connection con=DB_connection.DBConnection();

PreparedStatement ps=con.prepareStatement("select assigned_by from issue

where accountno=?" );

ps.setInt(1, title_int);

ResultSet rs=ps.executeQuery();

if(rs.next()){

assigned_to=rs.getString(1);

}

Connection con2=DB_connection.DBConnection();

PreparedStatement ps2=con2.prepareStatement("update issue set assigned_to

=?, assigned_by=?, assign_status='a', open_status='o' where accountno=?" );

ps2.setInt(3, title_int);

ps2.setString(2, userName);

ps2.setString(1, assigned_to);

ps2.executeUpdate();

out.print("issue reassigned to developer successfully");

%>

</table>

<div id="footer_copyright" >

<center></center><br>

<p></p>

Designed & Developed by Ashfaque Ahmed. Distributed under Creative Commons CC-

BY 2.0 license.

You can use the material for education purpose freely if attribution of source of the

material is provided.

For commercial inquiries please contact Ashfaque Ahmed at <a

href=mailto:[email protected]>[email protected]</a></div>

</div>

Page 79: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

<%@ page import="java.sql.*"%>

<%@ page import="java.io.*" %>

<%@ page import="javax.servlet.*"%>

<%@ page import="tech_support.*" %>

------------------- -------------------------------

JSP file: updated_profile.jsp

------------------- ----------------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>Customer support system</title>

<link href="style.css" rel="stylesheet" type="text/css">

<script type="text/javascript">

function ctck1()

{

var sds = document.getElementById("form");

}

</script>

</head>

<body>

<div id="top_links">

<%

%>

<div id="header">

<h1>Customer support system<span class="style1"></span></h1>

<h2>Welcome to Customer support system</h2>

</div>

<div id="navigation">

<ul>

Page 80: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

<li><a href="index.jsp">Home</a></li>

<li><a href="edit_acc.jsp">edit account</a></li>

<li><a href="logout.jsp">Logout</a></li>

</ul>

<%

String userName = null;

String sessionID = null;

Cookie[] cookies = request.getCookies();

if(cookies !=null){

for(Cookie cookie : cookies){

if(cookie.getName().equals("username")) {userName = cookie.getValue(); }

}}

else {response.sendRedirect("login.jsp");}

%>

</div>

<table style="width:897px; background:#FFFFFF; margin:0 auto;">

<tr >

<td width="300" valign="top" style="border-right:#666666 1px dotted;">

<div id="services"><h1></h1>

</div>

</td>

<td width="1200" valign="top">

<div id="welcome" style="border-right:#666666 1px dotted;"><h3></h3><br>

<table align="center" bgcolor="white">

<tr>

</tr>

<tr>

<td>

<%

String no = request.getParameter("no");

int ano = Integer.parseInt(no);

System.out.println(ano);

String name=request.getParameter("name");

String username=request.getParameter("username");

String address=request.getParameter("address");

String password=request.getParameter("password");

String repassword=request.getParameter("repassword");

Page 81: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

String email=request.getParameter("email");

String phone=request.getParameter("phone");

double ph = Double.parseDouble(phone);

String usertype2=request.getParameter("usertype");

//char usertype3=usertype.charAt(0);

int status;

Connection con=DB_connection.DBConnection();

PreparedStatement ps;

try {

ps = con.prepareStatement("Update user_table set no=?, name =?,

username= ?, address=?, password=?,repassword=?,email=?,phone=?,usertype=? where

no="+ano);

ps.setInt(1, ano);

ps.setString(2,name);

ps.setString(3,username);

ps.setString(4,address);

ps.setString(5,password);

ps.setString(6,repassword);

ps.setString(7,email);

ps.setDouble(8,ph);

ps.setString(9,usertype2);

status=ps.executeUpdate();

System.out.println(address);

} catch (SQLException e) {

e.printStackTrace();

}

finally {};

//status=register_user.update(ano, name, username, address, password,

repassword, email, ph, usertype);

//if (status ==1){

out.print("Profile updated successfully");

%>

<table cellspacing="5" cellpadding="3">

</td>

</tr>

Page 82: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

</table>

</div>

</td>

<td width="299" valign="top">

<div id="welcome" style="border-right:#666666 1px dotted;">

<center></center>

</div>

</td>

</tr></table>

<div id="footer_top">

<div id="footer_navigation">

</div>

<div id="footer_copyright" >

<center></center><br>

<p></p>

Designed & Developed by Ashfaque Ahmed. Distributed under Creative Commons CC-

BY 2.0 license.

You can use the material for education purpose freely if attribution of source of the

material is provided.

For commercial inquiries please contact Ashfaque Ahmed at <a

href=mailto:[email protected]>[email protected]</a></div>

</div>

<script type="text/javascript">

document.onload = ctck();

</script>

</div>

<%@ page import="java.sql.*"%>

<%@ page import="java.io.*" %>

<%@ page import="javax.servlet.*"%>

<%@ page import="tech_support.*" %>

</body>

</html>

Page 83: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

------------------------- ----------------------------

JSP file: view_issue_req.jsp

---------------- ---------------------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>Customer support system</title>

<link href="style.css" rel="stylesheet" type="text/css">

</head>

<body>

<div id="top_links">

<div id="header">

<h1>Customer support system<span class="style1"></span></h1>

<h2>Welcome to Customer support system</h2>

</div>

<div id="navigation">

<ul>

<li><a href="index.jsp">Home</a></li>

<li><a href="reassign_issue_to_cust_req.jsp">reassign issue</a></li>

<li><a href="edit_profile.jsp">edit account</a></li>

<li><a href="logout.jsp">Logout</a></li>

</ul>

</div>

<div id="services"><h1></h1>

<table style="width:897px; background:#FFFFFF; margin:0 auto;">

<tr >

Page 84: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

<td width="300" valign="top" style="border-right:#666666 1px dotted;"></table>

</div>

</td><tr>

<td width="1200" valign="top">

<div id="welcome" style="border-right:#666666 1px dotted;"><h1>view issue

FORM</h1><br>

<table align="center" bgcolor="white">

<tr>

</tr>

<tr>

<td>

<form name=F1 onSubmit="return validate(this)"

action="view_issue_res.jsp" >

<table cellspacing="5" cellpadding="3">

<tr><td>Select Title:</td><td>

<select name="title" id="title"><option value="">--- Select ---

</option>

<%

String userName = null;

String sessionID = null;

Cookie[] cookies = request.getCookies();

if(cookies !=null){

for(Cookie cookie : cookies){

if(cookie.getName().equals("username")) {userName = cookie.getValue();}

}}

else {response.sendRedirect("login.jsp");}

%>

<%

Connection con=DB_connection.DBConnection();

String open_status = "o";

PreparedStatement ps=con.prepareStatement("Select * from issue where open_status='o'

and assign_status='a' and assigned_to=?");

ps.setString(1, userName);

System.out.println(userName);

ResultSet rs=ps.executeQuery();

while (rs.next())

{

%> <option value="<% out.print(rs.getInt(1)); %>"><% out.print(rs.getString(2));

%></option> <%

Page 85: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

}

%>

</select>

</td></tr>

<tr><td></td><td><input type="submit"

value="Submit"/>

<INPUT TYPE=RESET

VALUE="CLEAR"></td></tr>

</table>

</form>

</td>

</tr>

</table>

<div id="footer_copyright" >

<center></center><br>

<p></p>

Designed & Developed by Ashfaque Ahmed. Distributed under Creative Commons CC-

BY 2.0 license.

You can use the material for education purpose freely if attribution of source of the

material is provided.

For commercial inquiries please contact Ashfaque Ahmed at <a

href=mailto:[email protected]>[email protected]</a></div>

</div>

<%@ page import="java.sql.*"%>

<%@ page import="java.io.*" %>

<%@ page import="javax.servlet.*"%>

<%@ page import="tech_support.*" %>

------------------ --------------------------------

JSP file: view_issue_res.jsp

---------------- -----------------------

Page 86: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title>Customer support system</title>

<link href="style.css" rel="stylesheet" type="text/css">

</head>

<body>

<div id="top_links">

<div id="header">

<h1>Customer support system<span class="style1"></span></h1>

<h2>Welcome to Customer support system</h2>

</div>

<div id="navigation">

<ul>

<li><a href="index.jsp">Home</a></li>

<li><a href="reassign_issue_to_cust_req.jsp">Reassign issue</a></li>

<li><a href="edit_profile.jsp">edit account</a></li>

<li><a href="logout.jsp">Logout</a></li>

</ul>

</div>

<table style="width:897px; background:#FFFFFF; margin:0 auto;">

<tr >

<td width="300" valign="top" style="border-right:#666666 1px dotted;">

</td>

<td width="1200" valign="top">

<%

Page 87: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

String userName = null;

String sessionID = null;

Cookie[] cookies = request.getCookies();

if(cookies !=null){

for(Cookie cookie : cookies){

if(cookie.getName().equals("username")) {userName = cookie.getValue();}

}}

else {response.sendRedirect("login.jsp");}

%>

<table>

<% try {

String title =request.getParameter("title");

int title_int=Integer.parseInt(title);

Connection con = DB_connection.DBConnection();

PreparedStatement ps=con.prepareStatement("Select title, description from issue

where open_status='o' and assign_status='a' and assigned_to=? and accountno=?");

ps.setString(1, userName);

ps.setInt(2, title_int);

ResultSet rs=ps.executeQuery();

out.print("<table align='left' cellspacing='5' cellpadding='5'>");

out.print("<tr><th>TITLE</th></tr>");

while(rs.next()){

out.print("<tr>");

out.print("<td>" + rs.getString(1) + "</td>");

out.print("<tr><th>DESCRIPTION</th></tr>");

out.print("<td>" + rs.getString(2) + "</td>");

out.print("</tr>");

}

out.print("</table>");

Page 88: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

} catch (SQLException e) {

e.printStackTrace();

}

%></table><%

%>

</table>

<div id="footer_copyright" >

<center></center><br>

<p></p>

Designed & Developed by Ashfaque Ahmed. Distributed under Creative Commons CC-

BY 2.0 license.

You can use the material for education purpose freely if attribution of source of the

material is provided.

For commercial inquiries please contact Ashfaque Ahmed at <a

href=mailto:[email protected]>[email protected]</a></div>

</div>

<%@ page import="java.sql.*"%>

<%@ page import="java.io.*" %>

<%@ page import="javax.servlet.*"%>

<%@ page import="tech_support.*" %>

-------------------------- ------------------------------

CSS file: style.css

-------------- -----------------------------

@charset "utf-8";

/* CSS Document */

body{

margin:0;

color:#CD5C5C;

background:#CD5C5C;

}

div, h1, h2, h3, h4, p, form, label, input, textarea, img, span{

margin:0; padding:0;

}

ul{

Page 89: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

margin:0;

padding:0;

list-style-type:none;

font-size:0;

line-height:0;

}

.spacer{

clear:both;

font-size:0;

line-height:0;

}

.more

{

font:normal 11px/18px Arial, Helvetica, sans-serif;

color:#00d09d;

text-decoration:none;

padding-left:230px;

}

.style1{color:#00d09d;}

/*------------------------------------------------body--------------------*/

#top_links

{

margin:0 auto;

padding:0px;

width:1000px;

height:40px;

}

#top_linksin

{

padding:10px 0 0 0;

width:310px;

height:18px;

float:right;

}

#top_linksin ul

{

list-style:none;

margin:0 0 0 40px;

}

#top_linksin ul li

{

font:normal 11px/10px Arial, Helvetica, sans-serif;

Page 90: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

color:#FFFFFF;

border-right:#7f7f7f 1px solid;

padding:0 15px;

float:left;

}

#top_linksin ul li a

{

text-decoration:none;

display:block;

color:#7f7f7f;

}

#top_linksin ul li a:hover

{

text-decoration:none;

display:block;

color:#FFFFFF;

}

#header

{

margin:0 auto;

background:#CD5C5C 0 0 no-repeat;

width:897px;

height:182px;

}

#header h1

{

font:bold 44px/18px Arial, Helvetica, sans-serif;

color:#FFFFFF;

padding:100px 0 0 380px;

}

#header h2

{

font:bold italic 24px/18px Arial, Helvetica, sans-serif;

color:#ababab;

padding:20px 0 0 380px;

}

#navigation

{

margin:0 auto;

width:1096px;

height:40px;

background:#000;

border:1px solid #282828;

}

Page 91: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

#navigation ul

{

list-style:none;

}

#navigation ul li

{

color:#adadad;

float:left;

text-align:center;

font:bold 12px/40px Arial, Helvetica, sans-serif;

width:127px;

border-right:1px solid #282828;

}

#navigation ul li a

{

text-decoration:none;

display:block;

color:#adadad;

}

#navigation ul li a:hover

{

color:#FFFFFF;

}

#navigation ul li.last

{

border:none;

float:left;

}

#content1

{

width:1097px;

margin:0 auto;

background:url(images/globe_05.jpg) 0 0 repeat-y;

}

#content1 h1

{

font:bold italic 22px/79px Arial, Helvetica, sans-serif;

color:#ffffff;

padding-left:30px;

}

#content1 p

{

font:normal 12px/18px Arial, Helvetica, sans-serif;

color:#b2b2b2;

padding:5px 15px 0 15px;

Page 92: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

}

.con

{

background:url(images/globe_06.jpg) 0 0 repeat-y;

width:290px;

}

#heade1

{

width:167px;

height:79px;

background:url(images/image_03.gif) 20px 10px no-repeat;

padding-left:90px;

}

#heade2

{

width:167px;

height:79px;

background:url(images/image_04.gif) 20px 10px no-repeat;

padding-left:90px;

}

#heade3

{

width:167px;

height:79px;

background:url(images/image_05.gif) 20px 5px no-repeat;

padding-left:90px;

}

#services

{

width:257px;

padding:10px;

}

#services h1

{

font:bold italic 20px/25px Arial, Helvetica, sans-serif;

color:#333333;

}

#services ul

{

list-style:none;

margin-left:8px;

}

#services ul li

{

font:normal 12px/22px Arial, Helvetica, sans-serif;

color:#FFFFFF;

Page 93: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

display:block;

padding:0 0 4px 16px;

background:url(images/bullet.png) left center no-repeat;

}

#services ul li a

{

text-decoration:none;

display:block;

color:#7f7f7f;

}

#services ul li a:hover

{

text-decoration:none;

display:block;

color:#000000;

}

#welcome

{

width:287px;

padding:10px;

}

#welcome h1

{

font:bold italic 20px/25px Arial, Helvetica, sans-serif;

color:#333333;

}

#welcome p

{

font:normal 12px/18px Arial, Helvetica, sans-serif;

color:#7f7f7f;

}

#news

{

width:257px;

padding:10px;

}

#news h1

{

font:bold italic 20px/25px Arial, Helvetica, sans-serif;

color:#333333;

}

.img

{

float:left;

padding-right:10px;

}

Page 94: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

#news h2

{

font:bold 12px/18px Arial, Helvetica, sans-serif;

color:#333333;

}

#news p

{

font:normal 12px/18px Arial, Helvetica, sans-serif;

color:#7f7f7f;

}

#footer_navigation

{

width:500px;

height:30px;

margin:0 auto;

}

#footer_navigation ul li

{

width:80px;

font: normal 12px/30px Arial, Helvetica, sans-serif;

color:#7d9942;

float:left;

}

#footer_navigation ul li a

{

text-decoration:none;

color:#7f7f7f;

height:30px;

}

#footer_navigation ul li a:hover

{

text-decoration:none;

color:#ffffff;

height:49px;

}

#footer_copyright

{

color: #7f7f7f;

font: normal 11px/30px Arial, Helvetica, sans-serif;

margin:0 auto;

text-align:center;

}

#footer_design

{

Page 95: Complimentary material for the book “Software …...Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education purpose freely

Copyright material Distributed under Creative Commons CC-BY 2.0 license. You can use the material for education

purpose freely if attribution of source of the material is provided. For commercial inquiries please contact Ashfaque

Ahmed at [email protected]. Do not duplicate and do not give it to any other person or entity.

color: #ffffff;

font: normal 11px/25px Arial, Helvetica, sans-serif;

margin:0 auto;

text-align:center;

width:100%;

background:#000000;

}

#footer_design a

{

color: #b6ff06;

text-decoration:none;

}

#footer_design a:hover

{

color: #b6ff06;

text-decoration:underline;

}