earn

Friday, October 29, 2010

CView.jsp


CView.jsp


<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<!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 View</title>  </head> <body><form action="CViewMode.jsp"><div style="position: absolute; width: 997; height: 178; z-index: 1; left:0px; top: 36px; right: 2; bottom:1024" id="layer1">
                <div style="position: absolute; width: 181; height: 31; z-index: 1; left: 10px; top: -33px" id="layer5"><img border="0" src="images/logo5.GIF" width="181" height="31"></div><img border="0" src="images/contacttop-img.jpg" width="997" height="178"></div><div style="position: absolute; width: 831px; height: 325px; z-index: 2; left: 166px; top: 225px" id="layer6">
                                <img border="0" src="images/bkg.gif" width="831" height="325"></div>
<div style="position: absolute; width: 831px; height: 19px; z-index: 3; left: 166px; top: 558px" id="layer7"><div style="position: absolute; width: 361px; height: 18px; z-index: 1; left: 194px; top: 20px" id="layer8" align="center">
                                <font size="3">Copyright © SureVac Call Management,&nbsp;2009. All Rights
                                Reserved.</font></div><p><img border="0" src="images/bg_footer.gif" width="832" height="32"></div> <br><div style="position: absolute; width: 309px; height: 28px; z-index: 4; left: 303px; top: 358px" id="layer9" align="center">
                <div style="position: absolute; width: 102px; height: 24px; z-index: 4; left: 580px; top: -349px" id="layer13">
<p style="line-height: 200%; margin-top: 0; margin-bottom: 2px">&nbsp;&nbsp;<a href="Home.jsp">Home</a>&nbsp;&nbsp;&nbsp;<a href="User.jsp">Back</a></div><div style="position: absolute; width: 148px; height: 219px; z-index: 1; left: -300px; top: -81px;right: 2" id="layer2">
<!-- Begin Free-Web-Buttons.com -->
<style>#web-buttons-idhyzy6 a{display:block;color:transparent;} #web-buttons-idhyzy6 a:hover{background-position:left bottom;}a#web-buttons-idhyzy6a {display:none}</style>
<table id="web-buttons-idhyzy6" width=0 cellpadding=0 cellspacing=0 border=0>
<tr><td style="padding-bottom:15px" title ="Home">
<a href="Home.jsp" title="Home" style="background-image:url(images/bthyzy6.png);width:153px;height:25px;display:block;"><br/></a></td></tr><tr><td style="padding-bottom:15px" title ="Contact Us"><a href="ContactUs.jsp" title="Contact Us" style="background-image:url(images/btkyzy6.png);width:153px;height:25px;display:block;"><br/></a></td></tr>
<tr><td style="padding-bottom:15px" title ="About Us"><a href="AboutUs.jsp" title="About Us" style="background-image:url(images/btgyzy6.png);width:153px;height:25px;display:block;"><br/></a></td></tr><tr><td style="padding-bottom:15px" title ="Customer"><a href="Customer.jsp" title="Customer" style="background-image:url(images/btdxzy6.png);width:153px;height:25px;display:block;"><br/></a></td></tr>
<tr><td style="padding-bottom:15px" title ="Add">
<a href="CAdd.jsp" title="Add" style="background-image:url(images/bt5xzy6.png);width:153px;height:25px;display:block;"></a></td></tr></table></div><div style="position: absolute; width: 1px; height: 18; z-index: 3; left: 639px; top: -344px" id="layer12"><img border="0" src="images/htc.gif" width="1" height="18"></div>
<div style="border:3px groove #0000CC; position: absolute; width: 204px; height: 293px; z-index: 1; left: 450px; top: -120px; padding-left:4px; padding-right:4px; padding-top:1px; padding-bottom:1px" id="layer10"><img border="0" src="images/72c%20copy.png" width="204" height="293"></div>
                                                                <p><select option name="ViewMode" >
                <option value="ListAll" >LIST ALL </option>
                <option value="Delete">DELETE </option>
                <option value="Edit">EDIT</option>           
            </select>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <input type="submit" value="Submit">
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <input type="reset" value="Reset"></p>
                </form>
    </div>
  </body>
</html>

Customer.jsp


Customer.jsp

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<!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</title> </head>
    <body> <div style="position: absolute; width: 997; height: 178; z-index: 1; left:0px; top: 36px; right: 2; bottom:1024" id="layer4"><div style="position: absolute; width: 181; height: 31; z-index: 1; left: 10px; top: -33px" id="layer1"><img border="0" src="images/logo5.GIF" width="181" height="31"></div>
                <img border="0" src="images/contacttop-img.jpg" width="997" height="178"></div>
     <div style="position: absolute; width: 831px; height: 325px; z-index: 2; left: 166px; top: 225px" id="layer6"><img border="0" src="images/bkg.gif" width="831" height="325"></div>
<div style="position: absolute; width: 831px; height: 19px; z-index: 3; left: 166px; top: 558px" id="layer7">
<div style="position: absolute; width: 148px; height: 219px; z-index: 1; left: -163px; top: -301px;right: 2" id="layer5">
<!-- Begin Free-Web-Buttons.com -->
<style>#web-buttons-idhyzy6 a{display:block;color:transparent;} #web-buttons-idhyzy6 a:hover{background-position:left bottom;}a#web-buttons-idhyzy6a {display:none}</style>
<table id="web-buttons-idhyzy6" width=0 cellpadding=0 cellspacing=0 border=0>
<tr><td style="padding-bottom:15px" title ="Home">
<a href="Home.jsp" title="Home" style="background-image:url(images/bthyzy6.png);width:153px;height:25px;display:block;"><br/></a></td></tr>
<tr><td style="padding-bottom:15px" title ="Contact Us">
<a href="ContactUs.jsp" title="Contact Us" style="background-image:url(images/btkyzy6.png);width:153px;height:25px;display:block;"><br/></a></td></tr>
<tr><td style="padding-bottom:15px" title ="About Us">
<a href="AboutUs.jsp" title="About Us" style="background-image:url(images/btgyzy6.png);width:153px;height:25px;display:block;"><br/></a></td></tr>
<tr><td style="padding-bottom:15px" title ="Customer">
<a href="Customer.jsp" title="Customer" style="background-image:url(images/btdxzy6.png);width:153px;height:25px;display:block;"><br/></a></td></tr>
<tr><td style="padding-bottom:15px" title ="View">
<a href="CView.jsp" title="View" style="background-image:url(images/btmxzy6.png);width:153px;height:25px;display:block;"><br/></a></td></tr>
<tr><td style="padding-bottom:15px" title ="Add">
<a href="CAdd.jsp" title="Add" style="background-image:url(images/bt5xzy6.png);width:153px;height:25px;display:block;"></a></td></tr>
</table></div>
                <div style="position: absolute; width: 361px; height: 18px; z-index: 1; left: 194px; top: 20px" id="layer8" align="center">
                                <font size="3">Copyright © SureVac Call Management,&nbsp;2009. All Rights
                                Reserved.</font></div><p>
                <img border="0" src="images/bg_footer.gif" width="832" height="32"></div>
<div style="position: absolute; left: 889px; top: 13px; width: 97px; height: 18px; z-index: 4" id="layer2">
<a href="Home.jsp">Home</a>&nbsp;&nbsp;&nbsp;
<a href="AdminHome.jsp">Back</a><div style="position: absolute; width: 1; height: 18; z-index: 1; left: 37px; top: 0px" id="layer3">
                <img border="0" src="images/htc.gif" width="1" height="18"></div></div>
<div style="position: absolute; left: 294px; top: 303px; width: 331px; height: 25px; z-index: 5" id="layer9">
                <font face="Calibri" size="4" color="#0000FF">This allows the Administrator
                to view, edit and add Customers.</font><p><font face="Calibri" size="4" color="#0000FF">Only administrators have access to this page.</font></p><p><font face="Calibri" size="4" color="#0000FF">To perform each task please use the menus alongside.</font></div>
        <div style="border-style:groove; border-color:#3399FF; position: absolute; left: 679px; top: 269px; width: 246; height: 228; z-index: 7; padding-left:4px; padding-right:4px; padding-top:1px; padding-bottom:1px" id="layer10"><img border="0" src="images/support-icon-big.png" width="246" height="228"></div>
     </body>
</html>

UEdit.jsp


UEdit.jsp

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" import="java.sql.*"%>
<html>    <head>   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>User Edit</title>   </head>
    <body>    <div style="position: absolute; width: 997; height: 178; z-index: 1; left:0px; top: 36px; right: 2; bottom:1024" id="layer4">
                <div style="position: absolute; width: 181; height: 31; z-index: 1; left: 10px; top: -33px" id="layer1"><img border="0" src="images/logo5.GIF" width="181" height="31"></div><img border="0" src="images/contacttop-img.jpg" width="997" height="178"></div>
   <div style="position: absolute; width: 831px; height: 325px; z-index: 2; left: 166px; top: 225px" id="layer6"><img border="0" src="images/bkg.gif" width="831" height="325"></div>
<div style="position: absolute; width: 831px; height: 19px; z-index: 3; left: 166px; top: 558px" id="layer7"><div style="position: absolute; width: 148px; height: 219px; z-index: 1; left: -163px; top: -301px;right: 2" id="layer5">
<!-- Begin Free-Web-Buttons.com -->
<style>#web-buttons-idhyzy6 a{display:block;color:transparent;} #web-buttons-idhyzy6 a:hover{background-position:left bottom;}a#web-buttons-idhyzy6a {display:none}</style>
<table id="web-buttons-idhyzy6" width=0 cellpadding=0 cellspacing=0 border=0><tr><td style="padding-bottom:15px" title ="Home">
<a href="Home.jsp" title="Home" style="background-image:url(images/bthyzy6.png);width:153px;height:25px;display:block;"><br/></a></td></tr>
<tr><td style="padding-bottom:15px" title ="Contact Us">
<a href="ContactUs.jsp" title="Contact Us" style="background-image:url(images/btkyzy6.png);width:153px;height:25px;display:block;"><br/></a></td></tr>
<tr><td style="padding-bottom:15px" title ="About Us">
<a href="AboutUs.jsp" title="About Us" style="background-image:url(images/btgyzy6.png);width:153px;height:25px;display:block;"><br/></a></td></tr>
<tr><td style="padding-bottom:15px" title ="User"><a href="UserList.jsp" title="User.jsp" style="background-image:url(images/btcxzy6.png);width:153px;height:25px;display:block;"><br/></a></td></tr>
<tr><td style="padding-bottom:15px" title ="Add"><a href="UAdd.jsp" title="Add" style="background-image:url(images/bt5xzy6.png);width:153px;height:25px;display:block;"></a></td></tr>
</table></div><div style="position: absolute; width: 361px; height: 18px; z-index: 1; left: 194px; top: 20px" id="layer8" align="center"><font size="3">Copyright © SureVac Call Management,&nbsp;2009. All Rights
                                Reserved.</font></div>
                <p><img border="0" src="images/bg_footer.gif" width="832" height="32"></div><div style="position: absolute; left: 889px; top: 13px; width: 97px; height: 18px; z-index: 4" id="layer2"><a href="Home.jsp">Home</a>&nbsp;&nbsp;&nbsp;<a href="ContractView.jsp">Back</a><div style="position: absolute; width: 1; height: 18; z-index: 1; left: 37px; top: 0px" id="layer3">
                <img border="0" src="images/htc.gif" width="1" height="18"></div></div> <%
            Connection con=null;
            PreparedStatement ps=null;
            ResultSet rs=null;
            String Ccode=request.getParameter("Code");
            String pwd=request.getParameter("EditPwd");
            String FName=request.getParameter("EditFName");
           String LName=request.getParameter("EditLName");
            int rows=0;
            FName=FName.trim();
            LName=LName.trim();
            try
            {
            Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
            con=DriverManager.getConnection("jdbc:odbc:SureVacCallDS","sa","P@ssw0rd");
           ps=con.prepareStatement("Update users set Pwd=?, FName=?,LName=?");
            ps.setString(1,pwd);
            ps.setString(2,FName);
            ps.setString(3,LName);
            rows=ps.executeUpdate();
                if(rows!=0)    
                    {
                    %>
                       <div style="position: absolute; left: 189px; top: 316px; width: 445px; height: 25px; z-index: 5" id="layer9"><font size="4" face="Calibri" color="#0000FF">Data has been Updated successfully. To continue use the back link above.</font></div><div style="border-style:solid; border-color:#FFFFFF; position: absolute; left: 675px; top: 233px; width: 300; height: 300; z-index: 7; " id="layer10"><img border="0" src="images/done.png" width="299" height="300"></div><%
                                }
                                else
                                {
                        %>
                        <div style="position: absolute; left: 189px; top: 316px; width: 445px; height: 25px; z-index: 5" id="layer9"><font size="4" face="Calibri" color="#0000FF">There are some invalid data::: Please try again</font></div>
                        <%
                                }
            }
            catch(Exception e)
            {
            %><div style="position: absolute; left: 189px; top: 316px; width: 445px; height: 25px; z-index: 5" id="layer9"><font size="4" face="Calibri" color="#0000FF">There are some invalid data::: Please try again</font></div><%
            }
            finally
            {
            con.close();
            }
            %></body></html>

UDelete.jsp


UDelete.jsp

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" import="java.sql.*"%>
<html>    <head>  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">     <title>User Delete</title>  </head>
    <body>    <div style="position: absolute; width: 997; height: 178; z-index: 1; left:0px; top: 36px; right: 2; bottom:1024" id="layer4">
                <div style="position: absolute; width: 181; height: 31; z-index: 1; left: 10px; top: -33px" id="layer1"><img border="0" src="images/logo5.GIF" width="181" height="31"></div><img border="0" src="images/contacttop-img.jpg" width="997" height="178"></div>
     <div style="position: absolute; width: 831px; height: 325px; z-index: 2; left: 166px; top: 225px" id="layer6"><img border="0" src="images/bkg.gif" width="831" height="325"></div>
<div style="position: absolute; width: 831px; height: 19px; z-index: 3; left: 166px; top: 558px" id="layer7">
<div style="position: absolute; width: 148px; height: 219px; z-index: 1; left: -163px; top: -301px;right: 2" id="layer5">
<!-- Begin Free-Web-Buttons.com -->
<style>#web-buttons-idhyzy6 a{display:block;color:transparent;} #web-buttons-idhyzy6 a:hover{background-position:left bottom;}a#web-buttons-idhyzy6a {display:none}</style>
<table id="web-buttons-idhyzy6" width=0 cellpadding=0 cellspacing=0 border=0>
<tr><td style="padding-bottom:15px" title ="Home">
<a href="Home.jsp" title="Home" style="background-image:url(images/bthyzy6.png);width:153px;height:25px;display:block;"><br/></a></td></tr>
<tr><td style="padding-bottom:15px" title ="Contact Us">
<a href="ContactUs.jsp" title="Contact Us" style="background-image:url(images/btkyzy6.png);width:153px;height:25px;display:block;"><br/></a></td></tr>
<tr><td style="padding-bottom:15px" title ="About Us">
<a href="AboutUs.jsp" title="About Us" style="background-image:url(images/btgyzy6.png);width:153px;height:25px;display:block;"><br/></a></td></tr>
<tr><td style="padding-bottom:15px" title ="User">
<a href="UserList.jsp" title="User.jsp" style="background-image:url(images/btcxzy6.png);width:153px;height:25px;display:block;"><br/></a></td></tr>
<tr><td style="padding-bottom:15px" title ="Add"><a href="UAdd.jsp" title="Add" style="background-image:url(images/bt5xzy6.png);width:153px;height:25px;display:block;"></a></td></tr></table></div>
                <div style="position: absolute; width: 361px; height: 18px; z-index: 1; left: 194px; top: 20px" id="layer8" align="center">
<font size="3">Copyright © SureVac Call Management,&nbsp;2009. All Rights Reserved.</font></div>
<p><img border="0" src="images/bg_footer.gif" width="832" height="32"></div>
<div style="position: absolute; left: 889px; top: 13px; width: 97px; height: 18px; z-index: 4" id="layer2">
<a href="Home.jsp">Home</a>&nbsp;&nbsp;&nbsp;
<a href="UView.jsp">Back</a><div style="position: absolute; width: 1; height: 18; z-index: 1; left: 37px; top: 0px" id="layer3">
                <img border="0" src="images/htc.gif" width="1" height="18"></div>
</div>
        <%
      Connection con=null;
      PreparedStatement ps=null;
      ResultSet rs=null;
      String CLogin;
      int rows=0;
      CLogin=request.getParameter("Code");
      try
              {
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              con=DriverManager.getConnection("jdbc:odbc:SureVacCallDS","sa","P@ssw0rd");
              ps=con.prepareStatement("Delete from users where LoginId=?");
               ps.setString(1,CLogin);
               rows=ps.executeUpdate();
                if(rows!=0)    
                    {
                      %>
                       <div style="position: absolute; left: 189px; top: 316px; width: 445px; height: 25px; z-index: 5" id="layer9">
                <font size="4" face="Calibri" color="#0000FF">Data has been Deleted
                successfully. To continue use the back link above.</font></div>
        <div style="border-style:solid; border-color:#FFFFFF; position: absolute; left: 675px; top: 233px; width: 300; height: 300; z-index: 7; " id="layer10">
                <img border="0" src="images/done.png" width="299" height="300"></div>
                        <%
                                }
                                else
                                {
                         %>
                        <div style="position: absolute; left: 189px; top: 316px; width: 445px; height: 25px; z-index: 5" id="layer9">
            <font size="4" face="Calibri" color="#0000FF">There are some invalid data::: Please try again</font></div>
                        <%
                                }
              }
              catch(Exception e)
                 {
                  %>
                        <div style="position: absolute; left: 189px; top: 316px; width: 445px; height: 25px; z-index: 5" id="layer9">
            <font size="4" face="Calibri" color="#0000FF">There are some invalid data::: Please try again</font></div>
                        <%
                  }  
                   finally
                     {
                     con.close();
                     }
      %>    </body></html>