You are on page 1of 10

<%@page import="java.sql.

ResultSet"%>
<%@page import="java.sql.Statement"%>

<%@page import="com.project.DB.MainCon"%>
<%@page import="java.sql.Connection"%>
<%@ page language="java" contentType="text/html; charset=EUC-KR" pageEncoding="EUC-
KR"%>
<!DOCTYPE html>
<html class="no-js">

<head>
<title>Reply Issue</title>
<!-- Bootstrap -->
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet"
media="screen">
<link href="vendors/easypiechart/jquery.easy-pie-chart.css" rel="stylesheet"
media="screen">
<link href="assets/styles.css" rel="stylesheet" media="screen">
<link href="assets/DT_bootstrap.css" rel="stylesheet" media="screen">
<script src="vendors/modernizr-2.6.2-respond-1.1.0.min.js"></script>
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script type="text/javascript"
src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>

</head>

<body >
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
<a class="btn btn-navbar" data-toggle="collapse" data-
target=".nav-collapse"> <span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="#">Manager</a>
<div class="nav-collapse collapse">
<ul class="nav pull-right">
<li class="dropdown">
<a href="#" role="button" class="dropdown-toggle"
data-toggle="dropdown"> <i class="icon-user"></i> <i class="caret"></i>

</a>
<ul class="dropdown-menu">
<li>
<a tabindex="-1"
href="mgrChangePassword.jsp">Change Password</a>
</li>
<li class="divider"></li>
<li>

jsp"><i class="icon- chevron-right"></i>View Customer</a> </li> <li class="active"> <a href="issueReply.nav-collapse --> </div> </div> </div> <div class="container-fluid"> <div class="row-fluid"> <div class="span3" id="sidebar"> <ul class="nav nav-list bs-docs-sidenav nav-collapse collapse"> <li > <a href="managerHome.jsp"><i class="icon-chevron- right"></i> Assign Project</a> </li> <li> <a href="empAttendance.jsp"><i class="icon-chevron- right"></i> Create Team</a> </li> <li> <a href="assignProject.jsp"><i class="icon- chevron-right"></i>View Issues</a> </li> <li> <a href="issueAndReply.jsp"><i class="icon- chevron-right"></i>Issues and Reply</a> . <a tabindex="-1" href="LogoutServlet">Logout</a> </li> </ul> </li> </ul> </div> <!--/.jsp"><i class="icon-chevron- right"></i> Add New Project</a> </li> <li> <a href="createTeam.jsp"><i class="icon-chevron-right"></i>Delete Attendance</a> </li> <li > <a href="viewCustomer.jsp"><i class="icon- chevron-right"></i>Employee Attendance</a> </li> <li> <a href="deleteAttendance.jsp"><i class="icon-chevron- right"></i> Add New Employee</a> </li> <li> <a href="addNewProject.jsp"><i class="icon-chevron- right"></i> Dashboard</a> </li> <li> <a href="addNewEmployee.

jsp?id=<%=rs.getString(2) %></td> <td><%=rs.createStatement().getInt(1)%>&custmsg=<%=rs. %> <table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered" id="example2" > <thead> <tr> <th>Customer name</th> <th>Issue </th> <th>Reply</th> </tr> </thead> <tbody> <%while(rs.getConnection().block --> <div class="block"> <div class="navbar navbar-inner block-header"> <div class="muted pull-left"><font color="black">Issue Management</font></div> </div> <% Connection con=MainCon.getString(3) %></td> <td><a href="reply.executeQuery("select id.custmsg from chat where mgrmsg='no reply'").getString(3)%>">Reply</a></td> </tr> <% } %> </tbody> </table> </div> .block --> <div class="row-fluid"> <!-. </li> </ul> </div> <!--/span--> <div class="span9" id="content"> <div class="row-fluid"> <!-. ResultSet rs=smt. Statement smt=con.next()) { %> <tr class="odd gradeX"> <td><%=rs.custname.

0.easy-pie-chart.uniform_on").js"></script> <script src="assets/form-validation.datepicker").validate.chosen(). .js"></script> <script src="vendors/wysiwyg/bootstrap-wysihtml5.bootstrap.js"></script> <script src="vendors/chosen.length. $(".init().dataTables.js"></script> <script src="vendors/bootstrap-datepicker.chart').js"></script> <script src="bootstrap/js/bootstrap. $(".datepicker().wizard.find('li').wysihtml5(). var $current = index+1.js"></script> <script type="text/javascript" src="vendors/jquery- validation/dist/jquery. <!-. }).js"></script> <script> jQuery(document).js"></script> <script src="vendors/easypiechart/jquery.min.min.js"></script> <script src="vendors/bootstrap-datepicker.min.chzn-select"). index) { var $total = navigation.js"></script> <script src="assets/scripts.js"></script> <script src="vendors/jquery.min.js"></script> <script src="vendors/wizard/jquery.easyPieChart({animate: 1000}).js"></script> <script src="vendors/wysiwyg/wysihtml5-0.3. $(function() { $('.uniform.fluid-container--> <script src="vendors/jquery-1.js"></script> <script src="vendors/datatables/js/jquery./block --> </div> </div> </div> <hr> <!--/./block --> </div> </div> <!-. $(".min.min. navigation.1.textarea'). $('.js"></script> <script src="assets/DT_bootstrap.min.uniform().9.bootstrapWizard({onTabShow: function(tab.ready(function() { FormValidation. $('#rootwizard').jquery.js"></script> <script src="assets/scripts.

annotation. }).pager .sql.pager .finish').css({width:$percent+'%'}). }).servlet.pager .finish'). $('#rootwizard'). } }}). $('#rootwizard'). import java.Controller.find("a[href*='tab1']"). import java.trigger('click').Statement.ResultSet.show().IOException. </script> </body> </html> =============================================================================== package com.hide(). Starting over!'). import java. import java.io.next').finish').find('.sql.sql.removeClass('disabled').next'). $('#rootwizard . import java. import javax.hide().show().sql.PrintWriter.find('.finish').SQLException. $('#rootwizard').find('. var $percent = ($current/$total) * 100.find('.bar').pager .pager .project. import javax. $('#rootwizard').Connection. import java.servlet.WebServlet.find('.ServletException. $('#rootwizard'). . // If it's the last tab then hide the last button and show the finish instead if($current >= $total) { $('#rootwizard').io.find('. } else { $('#rootwizard').click(function() { alert('Finished!.

/** * Servlet implementation class BackupServlet */ @WebServlet("/BackupServlet") public class BackupServlet extends HttpServlet { private static final long serialVersionUID = 1L. import com. HttpServletResponse response) throws ServletException.servlet. HttpServletResponse response) */ protected void doGet(HttpServletRequest request.servlet. import javax.http.http.DB. /** * @see HttpServlet#HttpServlet() */ public BackupServlet() { super(). IOException { .import javax.HttpServletResponse.project.HttpServlet.http. // TODO Auto-generated constructor stub } /** * @see HttpServlet#doGet(HttpServletRequest request.servlet. import javax.HttpServletRequest.MainCon.

try { int c1=0. HttpServletResponse response) */ protected void doPost(HttpServletRequest request. IOException { // TODO Auto-generated method stub String team=request.getParameter("project_name").next()) { Statement s1=con. while(rs.createStatement(). ResultSet rs=smt.getParameter("team_name"). // TODO Auto-generated method stub } /** * @see HttpServlet#doPost(HttpServletRequest request. deadline_date. String project=request. s1. complition) . Statement smt = con.executeUpdate("insert into assignprojectbackup(id. Connection con=MainCon.createStatement().getConnection(). HttpServletResponse response) throws ServletException. project_name.c2=0. team_name. assign_date.executeQuery("select * from assignproject where team_name='"+team+"' and project_name='"+project+"'").

'"+rs.'"+rs.createStatement(). s2. '"+rs2. '"+rs2. int res2=s2.getString(3)+"'.values('"+rs.createStatement().'"+rs. c1++.getInt(1)+"'.getString(6)+"')").getDate(7)+"'.createStatement().getString(9)+"')"). '"+rs2. '"+rs2. } if(c1>0 & c2>0) { Statement s1=con.getDate(6)+"'. project_name.createStatement(). ResultSet rs2=smt2.executeUpdate("delete from task where team_name='"+team+"' and project_name='"+project+"' "). '"+rs2. team_name.getString(8)+"'. '"+rs2. task_status)values('"+rs2. member_name. } Statement smt2=con. int res1=s1.getString(3)+"'.executeQuery("select * from task where team_name='"+team+"' and project_name='"+project+"'"). '"+rs2. task_name.executeUpdate("delete from assignproject where team_name='"+team+"' and project_name='"+project+"' "). .executeUpdate("insert into taskbackup(id.' "+rs. Statement s2=con. '"+rs2.getString(5)+"'. while(rs2.getString(2)+"'.next()) { Statement s2=con.getDate(5)+"'. deadline_date.'"+rs.getString(2)+"'. c2++.getInt(1)+"'.getDate(4)+"'. assign_date.getString(4)+"'. status.

. int rr2=ss2.createStatement(). } } } . out. response. out.').println("location='assignProject. out..println("<script type=\"text/javascript\">").setContentType("text/html").").").println("alert('Backup taken Sucessfully. out.getWriter().createStatement().executeUpdate("update team_members set task_status='Not Assign' where team_name='"+team+"'"). if(rr>0 && rr2>0) { PrintWriter out = response.println("</script>"). if(res1>0 & res2>0) { Statement ss=con.jsp'.executeUpdate("update team set status='Free' where team_name='"+team+"'"). int rr=ss. Statement ss2=con.

printStackTrace(). } catch (SQLException e) { // TODO Auto-generated catch block e. } } } .