formatted with eclipse
authorfelix <felix@zottel>
Mon, 23 Aug 2010 17:10:58 +0000 (19:10 +0200)
committerfelix <felix@zottel>
Mon, 23 Aug 2010 17:10:58 +0000 (19:10 +0200)
WebContent/index.jsp
WebContent/main.jsp
WebContent/menu.jsp
src/org/mcb/services/connectionmanager.java
src/org/mcb/services/loginmanager.java
src/org/mcb/services/passwordservices.java
src/org/mcb/services/udac.java
src/org/mcb/services/userbean.java

index 4c97960..1333f7b 100644 (file)
@@ -1,20 +1,20 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">\r
-<%@ page language="java" session="true" %>\r
-<%@ page language="java" buffer="500kb" autoFlush="false"%>\r
-<%@ page import = "java.io.*" %>\r
-<%@ page import = "java.sql.*" %>\r
-<%@ page import = "java.util.*" %>\r
-<%@ page import = "java.util.Calendar" %>\r
-<%@ page import = "org.mcb.services.*" %>\r
-<%@ include file = "db/dbcon.jsp" %>\r
-<%@ include file = "//procs/audit.jsp" %>\r
-<html>\r
-<head>\r
-<title>Smart Card Generation Application</title>\r
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">\r
-<meta HTTP-EQUIV="Pragma" CONTENT="no-cache" />\r
-<meta HTTP-EQUIV="Expires" CONTENT="-1" />\r
-</head>\r
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<%@ page language="java" session="true"%>
+<%@ page language="java" buffer="500kb" autoFlush="false"%>
+<%@ page import="java.io.*"%>
+<%@ page import="java.sql.*"%>
+<%@ page import="java.util.*"%>
+<%@ page import="java.util.Calendar"%>
+<%@ page import="org.mcb.services.*"%>
+<%@ include file="db/dbcon.jsp"%>
+<%@ include file="//procs/audit.jsp"%>
+<html>
+<head>
+<title>Smart Card Generation Application</title>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<meta HTTP-EQUIV="Pragma" CONTENT="no-cache" />
+<meta HTTP-EQUIV="Expires" CONTENT="-1" />
+</head>
 <SCRIPT language="JavaScript">\r
 function OnSubmitForm(){\r
   if(login_form.txt_userid.value==""){\r
@@ -26,98 +26,120 @@ function OnSubmitForm(){
        return false;\r
   }\r
 }\r
-</SCRIPT>\r
-<body>\r
-<table width="100%" border="0">\r
-  <tr> \r
-    <td width="2%">&nbsp;</td>\r
-    <td width="2%">&nbsp;</td>\r
-    <td width="2%">&nbsp;</td>\r
-    <td width="2%">&nbsp;</td>\r
-    <td width="39%">&nbsp;</td>\r
-    <td width="2%">&nbsp;</td>\r
-    <td width="22%">&nbsp;</td>\r
-    <td width="11%">&nbsp;</td>\r
-    <td width="18%">&nbsp;</td>\r
-  </tr>\r
-  <tr> \r
-    <td width="2%">&nbsp;</td>\r
-    <td width="2%">&nbsp;</td>\r
-    <td colspan="5"><img src="images/header.gif" width="515" height="92"></td>\r
-    <td width="11%">&nbsp;</td>\r
-    <td width="18%">&nbsp;</td>\r
-  </tr>\r
-  <% //out.println(connection); %>\r
-  <tr> \r
-    <td colspan="5"><div align="center"><img src="images/splash.gif" width="566" height="386"></div></td>\r
-    <td colspan="3" background="images/login_box.gif">\r
-       <form name="login_form" method="post" action="loginmanager" onSubmit="return OnSubmitForm();">\r
-        <table width="60%" border="0" align="center">\r
-          <tr>\r
-            <td colspan="3">\r
-            <% if(request.getParameter("user")!=null){ %>\r
-                <strong><font color="#FF0000" size="2" face="Courier New, Courier, mono">Login Unsuccessfull: Either Login credentials are in-valid or account has been locked. </font></strong>\r
-            <%} %>\r
-            </td>\r
-          </tr>\r
-          <tr> \r
-            <td colspan="3"><font color="#FFFFFF" size="4" face="Verdana, Arial, Helvetica, sans-serif"><strong>Login</strong></font></td>\r
-          </tr>\r
-          <tr> \r
-            <td width="33%"><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>User \r
-              Id</strong></font></td>\r
-            <td width="33%">&nbsp;</td>\r
-            <td width="34%">&nbsp;</td>\r
-          </tr>\r
-          <tr> \r
-            <td colspan="3"> <div align="left"> \r
-                <input name="txt_userid" type="text" id="txt_userid" size="50" maxlength="25">\r
-              </div></td>\r
-          </tr>\r
-          <tr> \r
-            <td><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Password</strong></font></td>\r
-            <td>&nbsp;</td>\r
-            <td>&nbsp;</td>\r
-          </tr>\r
-          <tr> \r
-            <td colspan="3"><input name="txt_pass" type="password" id="txt_pass" size="50" maxlength="25"></td>\r
-          </tr>\r
-          <tr> \r
-            <td>&nbsp;</td>\r
-            <td>&nbsp;</td>\r
-            <td><div align="right"> \r
-                <input name="btn_submit" type="submit" id="btn_submit" value="Login &gt;&gt;">\r
-              </div></td>\r
-          </tr>\r
-        </table>\r
-      </form></td>\r
-    <td width="18%">&nbsp;</td>\r
-  </tr>\r
-  <tr> \r
-    <td width="2%">&nbsp;</td>\r
-    <td width="2%">&nbsp;</td>\r
-    <td width="2%">&nbsp;</td>\r
-    <td width="2%">&nbsp;</td>\r
-    <td width="39%">&nbsp;</td>\r
-    <td width="2%">&nbsp;</td>\r
-    <td width="22%">&nbsp;</td>\r
-    <td width="11%">&nbsp;</td>\r
-    <td width="18%">&nbsp;</td>\r
-  </tr>\r
-  <tr> \r
-    <td colspan="9"><div align="center"><img src="images/footer.gif" width="993" height="56"></div></td>\r
-  </tr>\r
-  <tr> \r
-    <td>&nbsp;</td>\r
-    <td>&nbsp;</td>\r
-    <td>&nbsp;</td>\r
-    <td>&nbsp;</td>\r
-    <td>&nbsp;</td>\r
-    <td>&nbsp;</td>\r
-    <td>&nbsp;</td>\r
-    <td>&nbsp;</td>\r
-    <td>&nbsp;</td>\r
-  </tr>\r
-</table>\r
-</body>\r
-</html>\r
+</SCRIPT>
+<body>
+<table width="100%" border="0">
+       <tr>
+               <td width="2%">&nbsp;</td>
+               <td width="2%">&nbsp;</td>
+               <td width="2%">&nbsp;</td>
+               <td width="2%">&nbsp;</td>
+               <td width="39%">&nbsp;</td>
+               <td width="2%">&nbsp;</td>
+               <td width="22%">&nbsp;</td>
+               <td width="11%">&nbsp;</td>
+               <td width="18%">&nbsp;</td>
+       </tr>
+       <tr>
+               <td width="2%">&nbsp;</td>
+               <td width="2%">&nbsp;</td>
+               <td colspan="5"><img src="images/header.gif" width="515"
+                       height="92"></td>
+               <td width="11%">&nbsp;</td>
+               <td width="18%">&nbsp;</td>
+       </tr>
+       <%
+               //out.println(connection);
+       %>
+       <tr>
+               <td colspan="5">
+               <div align="center"><img src="images/splash.gif" width="566"
+                       height="386"></div>
+               </td>
+               <td colspan="3" background="images/login_box.gif">
+               <form name="login_form" method="post" action="loginmanager"
+                       onSubmit="return OnSubmitForm();">
+               <table width="60%" border="0" align="center">
+                       <tr>
+                               <td colspan="3">
+                               <%
+                                       if (request.getParameter("user") != null) {
+                               %> <strong><font
+                                       color="#FF0000" size="2" face="Courier New, Courier, mono">Login
+                               Unsuccessfull: Either Login credentials are in-valid or account has
+                               been locked. </font></strong> <%
+       }
+ %>
+                               </td>
+                       </tr>
+                       <tr>
+                               <td colspan="3"><font color="#FFFFFF" size="4"
+                                       face="Verdana, Arial, Helvetica, sans-serif"><strong>Login</strong></font></td>
+                       </tr>
+                       <tr>
+                               <td width="33%"><font color="#FFFFFF" size="2"
+                                       face="Verdana, Arial, Helvetica, sans-serif"><strong>User
+                               Id</strong></font></td>
+                               <td width="33%">&nbsp;</td>
+                               <td width="34%">&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td colspan="3">
+                               <div align="left"><input name="txt_userid" type="text"
+                                       id="txt_userid" size="50" maxlength="25"></div>
+                               </td>
+                       </tr>
+                       <tr>
+                               <td><font color="#FFFFFF" size="2"
+                                       face="Verdana, Arial, Helvetica, sans-serif"><strong>Password</strong></font></td>
+                               <td>&nbsp;</td>
+                               <td>&nbsp;</td>
+                       </tr>
+                       <tr>
+                               <td colspan="3"><input name="txt_pass" type="password"
+                                       id="txt_pass" size="50" maxlength="25"></td>
+                       </tr>
+                       <tr>
+                               <td>&nbsp;</td>
+                               <td>&nbsp;</td>
+                               <td>
+                               <div align="right"><input name="btn_submit" type="submit"
+                                       id="btn_submit" value="Login &gt;&gt;"></div>
+                               </td>
+                       </tr>
+               </table>
+               </form>
+               </td>
+               <td width="18%">&nbsp;</td>
+       </tr>
+       <tr>
+               <td width="2%">&nbsp;</td>
+               <td width="2%">&nbsp;</td>
+               <td width="2%">&nbsp;</td>
+               <td width="2%">&nbsp;</td>
+               <td width="39%">&nbsp;</td>
+               <td width="2%">&nbsp;</td>
+               <td width="22%">&nbsp;</td>
+               <td width="11%">&nbsp;</td>
+               <td width="18%">&nbsp;</td>
+       </tr>
+       <tr>
+               <td colspan="9">
+               <div align="center"><img src="images/footer.gif" width="993"
+                       height="56"></div>
+               </td>
+       </tr>
+       <tr>
+               <td>&nbsp;</td>
+               <td>&nbsp;</td>
+               <td>&nbsp;</td>
+               <td>&nbsp;</td>
+               <td>&nbsp;</td>
+               <td>&nbsp;</td>
+               <td>&nbsp;</td>
+               <td>&nbsp;</td>
+               <td>&nbsp;</td>
+       </tr>
+</table>
+</body>
+</html>
index f361bc9..b09c176 100644 (file)
@@ -4,12 +4,12 @@
     Author     : yawar.saeed
 --%>
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<%@ page language="java" %>
-<%@ page import = "java.io.*" %>
-<%@ page import="java.sql.*" %>
-<%@ page import = "org.mcb.services.*" %>
-<%@ page language="java" session="true" %>
-<%@ page buffer="32kb" %>
+<%@ page language="java"%>
+<%@ page import="java.io.*"%>
+<%@ page import="java.sql.*"%>
+<%@ page import="org.mcb.services.*"%>
+<%@ page language="java" session="true"%>
+<%@ page buffer="32kb"%>
 <html>
 <head>
 <title>Smart Card Generation Application</title>
 <link rel="stylesheet" type="text/css" href="css/default.css">
 </head>
 <%
-userbean usr        = (userbean) session.getAttribute("user");
-String login_path   = request.getContextPath()+"/index.jsp";
-if( usr == null ){
-    session.invalidate();
-    response.sendRedirect(response.encodeRedirectURL(login_path));
-}
-else{%>
+       userbean usr = (userbean) session.getAttribute("user");
+       String login_path = request.getContextPath() + "/index.jsp";
+       if (usr == null) {
+               session.invalidate();
+               response.sendRedirect(response.encodeRedirectURL(login_path));
+       } else {
+%>
 <body>
 <table width="100%" border="0" cellspacing="1" cellpadding="1">
-  <tr>
-    <td><table width="100%" border="0" cellspacing="1" cellpadding="1">
-        <tr>
-          <td>
-            <jsp:include page= "menu.jsp" />
-          </td>
-        </tr>
-        <tr>
-            <td>
-               
-            </td>
-        </tr>
-      </table></td>
-  </tr>
+       <tr>
+               <td>
+               <table width="100%" border="0" cellspacing="1" cellpadding="1">
+                       <tr>
+                               <td><jsp:include page="menu.jsp" /></td>
+                       </tr>
+                       <tr>
+                               <td></td>
+                       </tr>
+               </table>
+               </td>
+       </tr>
 </table>
 </body>
-<% } %>
+<%
+       }
+%>
 
 </html>
\ No newline at end of file
index f94f08f..ea01ca0 100644 (file)
     Document   : menu\r
     Created on : Jul 28, 2010, 2:42:16 PM\r
     Author     : yawar.saeed\r
---%>\r
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd">\r
-<%@ page import = "org.mcb.services.*" %>\r
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">\r
-<head>\r
-<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\r
-<meta HTTP-EQUIV="Pragma" CONTENT="no-cache" />\r
-<meta HTTP-EQUIV="Expires" CONTENT="-1" />\r
-<title>MCB Smart Card Generation Application</title>\r
-<%\r
-String script_path  = request.getContextPath()+"/scripts/stuhover.js";\r
-String css_path     = request.getContextPath()+"/css/pro_dropdown_2.css";\r
-String login_path   = request.getContextPath()+"/index.jsp";\r
-%>\r
-<link rel="stylesheet" type="text/css" href="<%=css_path %>" />\r
-<script src="<%=script_path%>" type="text/javascript"></script>\r
-</head>\r
-<% userbean usr        = (userbean) session.getAttribute("user");\r
-//if( (session.getAttribute("user_id") == null) | (session.getAttribute("user_id") == "" ) ){\r
-if( usr == null ){\r
-       session.invalidate(); //request.getContextPath()+"/Index.jsp"\r
-//     response.sendRedirect(login_path);\r
-        response.sendRedirect(response.encodeRedirectURL(login_path));\r
-}else{\r
-/*     String user_id      = (String) session.getAttribute("user_id");\r
-       String user_name    = (String) session.getAttribute("user_name");\r
-       //String user_pass    = (String) session.getAttribute("user_pass");\r
-       String role_id      = (String) session.getAttribute("role_id");\r
-       String role_name    = (String) session.getAttribute("role_desc");\r
-       String last_login   = (String) session.getAttribute("last_login");\r
-       // userbean usr        = (userbean) session.getAttribute("user");\r
-       //out.println("object value: "+usr.getName());\r
- */\r
-%>\r
-<body>\r
-<span class="preload1"></span>\r
-<span class="preload2"></span>\r
-<table width="100%" border="0" cellspacing="0" cellpadding="0">\r
-  <tr>\r
-    <td></td>\r
-  </tr>\r
-  <tr>\r
-    <td>\r
-        <table width="100%" border="0" cellspacing="0" cellpadding="0">\r
-        <tr> \r
-          <td><img src="<%=request.getContextPath()%>/images/banner.gif" width="431" height="86" /></td>\r
-          <td><div align="right"><img src="<%=request.getContextPath()%>/images/logo.jpg" width="110" height="86" /></div></td>\r
-        </tr>\r
-        <tr> \r
-          <td><font size="1" face="Courier New, Courier, mono">Welcome\r
-            <%= usr.getName() %>\r
-            </font></td>\r
-          <td><div align="right"><font size="1" face="Courier New, Courier, mono">Logged \r
-              in as \r
-              <%= usr.getRoleDesc() %>\r
-              </font></div></td>\r
-        </tr>\r
-        <tr> \r
-          <td><font size="1" face="Courier New, Courier, mono">Last Login Date: \r
-            <%= usr.getLastLogin() %>\r
-            </font></td>\r
-          <td><div align="right"><font size="1" face="Courier New, Courier, mono">Current \r
-              Date: \r
-              <%= new java.util.Date() %>\r
-              </font></div></td>\r
-        </tr>\r
-      </table>\r
-     </td>\r
-  </tr>\r
-  <tr>\r
-     <td>\r
-<!------  MENU STARTS -->\r
-<%\r
-if( usr.getRole().equals("0")) { // ROOT USER\r
-//if( role_id.equals("0")) { // ROOT USER %>\r
-<ul id="nav">\r
-       <li class="top"><a href="#nogo1" id="profile" class="top_link"><span class="down">Profile</span></a>\r
-            <ul class="sub">\r
-                <li ><a href="<%= request.getContextPath()%>/modules/users/viewprofile.jsp">View Profile</a></li>\r
-                <li ><a href="<%= request.getContextPath()%>/modules/users/editprofile.jsp">Edit/Update Profile</a></li>\r
-                <li ><a href="<%= request.getContextPath()%>/modules/users/changepass.jsp">Change Password</a></li>\r
-            </ul>\r
-       </li>\r
-       <li class="top"><a href="#nogo1" id="users" class="top_link"><span class="down">User Management</span></a>\r
-            <ul class="sub">\r
-                <li><a href="<%= request.getContextPath()%>/modules/users/addnewuser.jsp">Add New User </a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/users/searchuser.jsp">Edit/Update User</a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/users/resetpass.jsp">Reset Password </a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/users/deleteuser.jsp">Delete User</a></li>\r
-            </ul>\r
-       </li>\r
-       <li class="top"><a href="#nogo1" id="addition" class="top_link"><span class="down">Add New Requests</span></a>\r
-            <ul class="sub">\r
-                <li><a href="<%= request.getContextPath()%>/modules/branch/insertaccount.jsp">New Visa Debit Card </a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/ops/newtiacard.jsp">New TIA Card</a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/branch/addremotechannels.jsp">Remote Channel Request</a></li>\r
-            </ul>\r
-       </li>\r
-       <li class="top"><a href="#nogo1" id="requests" class="top_link"><span class="down">View Card Requests</span></a>\r
-            <ul class="sub">\r
-                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=nc" >New Card Requests</a></li>\r
-                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=aa" >Accepted by Approver</a></li>\r
-                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ra" >Rejected by Approver</a></li>\r
-                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ic" >Issued Cards</a></li>\r
-                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=pa" >Pending Activation</a></li>\r
-                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ac" >Activated by Call Center</a></li>\r
-                <li ><a href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=card_reqs" >Error Logs</a></li>\r
-            </ul>\r
-       </li>\r
-        <li class="top"><a href="<%= request.getContextPath()%>/modules/callcenter/viewactivationrequests.jsp" class="top_link"><span>View Activation Requests</span></a></li>\r
-       <li class="top"><a href="#nogo2" id="linking" class="top_link"><span class="down">Account Link/Delink</span></a>\r
-            <ul class="sub">\r
-                <li><a href="<%= request.getContextPath()%>/modules/branch/linkaccounts.jsp">Link Accounts</a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/branch/delinkaccounts.jsp">De-Link Accounts</a></li>\r
-                <li ><a href="#nogo3" class="fly">View Links</a>\r
-                    <ul>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=pa">Pending at Approver</a></li>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=aa">Accepted by Approver</a></li>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=la">Linked at ATM Switch</a></li>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=acct_link">Error Logs</a></li>\r
-                    </ul>\r
-                </li>\r
-                <li ><a href="#nogo3" class="fly">View De-Links</a>\r
-                    <ul>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewdelinks.jsp?flag=pa">Pending at Approver</a></li>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewdelinks.jsp?flag=aa">Accepted by Approver</a></li>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=acct_delink">Error Logs</a></li>\r
-                    </ul>\r
-                </li>\r
-            </ul>\r
-       </li>\r
-       <li class="top"><a href="#nogo22" id="deletion" class="top_link"><span class="down">Card Deletion</span></a>\r
-            <ul class="sub">\r
-                <li><a href="<%= request.getContextPath()%>/modules/branch/deletecard.jsp">Delete Card</a></li>\r
-                <li ><a href="#nogo3" class="fly">View Deletions</a>\r
-                    <ul>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewdeletions.jsp?flag=pa">Pending at Approver</a></li>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewdeletions.jsp?flag=aa">Accepted by Approver</a></li>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=card_del">Error Logs</a></li>\r
-                    </ul>\r
-                </li>\r
-            </ul>\r
-       </li>\r
-       <li class="top"><a href="#nogo1" id="addition" class="top_link"><span class="down">Control Panel</span></a>\r
-            <ul class="sub">\r
-                <li ><a href="#nogo1" class="fly">KYC Settings</a>\r
-                    <ul>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/admin/addkycval.jsp">Add New KYC Values</a></li>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/admin/editkycval.jsp">Edit/Update KYC Values</a></li>\r
-                    </ul>\r
-                </li>\r
-                <li ><a href="#nogo3" class="fly">Product Groups</a>\r
-                    <ul>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/admin/addproducts.jsp">Add Product Groups</a></li>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/admin/editproducts.jsp">Edit/Update Product Groups</a></li>\r
-                    </ul>\r
-                </li>\r
-                <li ><a href="#nogo3" class="fly">Product Mapping</a>\r
-                    <ul>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/admin/addmapping.jsp">Add New Mapping</a></li>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/admin/editmapping.jsp">Edit/Update Mapping</a></li>\r
-                    </ul>\r
-                </li>\r
-            </ul>\r
-       </li>\r
-       <li class="top"><a href="#nogo22" id="reports" class="top_link"><span class="down">Reports</span></a>\r
-            <ul class="sub">\r
-                <li ><a href="<%= request.getContextPath()%>/modules/branch/cardgenreport.jsp">Card Generation Report</a></li>\r
-                <li ><a href="<%= request.getContextPath()%>/modules/branch/adcregreport.jsp">ADC Registration Report</a></li>\r
-            </ul>\r
-       </li>\r
-        <li class="top"><a href="<%= request.getContextPath()%>/modules/branch/searchcards.jsp" class="top_link"><span>Search Cards</span></a></li>\r
-       <li class="top"><a href="#nogo1" id="help" class="top_link"><span class="down">Help</span></a>\r
-            <ul class="sub">\r
-                <li><a href="<%= request.getContextPath()%>/modules/commons/viewprodacctmapping.jsp">Product Account Mapping Info</a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/commons/viewadcchannels.jsp">ADC Channels</a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/commons/aboutscga.jsp">About SCGA</a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/commons/emailcontacts.jsp">Email Contacts</a></li>\r
-            </ul>\r
-       </li>\r
-        <li class="top"><a href="<%= request.getContextPath()%>/logout.jsp" class="top_link"><span>Logout</span></a></li>\r
-</ul>\r
-<% }\r
-if( usr.getRole().equals("1")) { // IDC USER\r
-//if( role_id.equals("1")) { // IDC USER %>\r
-<ul id="nav">\r
-       <li class="top"><a href="#nogo1" id="profile" class="top_link"><span class="down">Profile</span></a>\r
-            <ul class="sub">\r
-                <li><a href="<%= request.getContextPath()%>/modules/users/viewprofile.jsp">View Profile</a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/users/editprofile.jsp">Edit/Update Profile</a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/users/changepass.jsp">Change Password</a></li>\r
-            </ul>\r
-       </li>\r
-       <li class="top"><a href="#nogo1" id="users" class="top_link"><span class="down">User Management</span></a>\r
-            <ul class="sub">\r
-                <li><a href="<%= request.getContextPath()%>/modules/users/addnewuser.jsp">Add New User </a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/users/searchuser.jsp">Edit/Update User</a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/users/resetpass.jsp">Reset Password </a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/users/deleteuser.jsp">Delete User</a></li>\r
-            </ul>\r
-       </li>\r
-       <li class="top"><a href="#nogo22" id="reports" class="top_link"><span class="down">Reports</span></a>\r
-               <ul class="sub">\r
-                    <li><a href="<%= request.getContextPath()%>/modules/users/ViewUserList.jsp">Users List</a></li>\r
-                    <li><a href="<%= request.getContextPath()%>/modules/users/UserLogReport.jsp">User Log Report</a></li>\r
-               </ul>\r
-       </li>\r
-        <li class="top"><a href="<%= request.getContextPath()%>/modules/users/searchuser.jsp" class="top_link"><span>Search User</span></a></li>\r
-       <li class="top"><a href="<%= request.getContextPath()%>/modules/commons/Help.jsp" id="help" class="top_link"><span class="down">Help</span></a>\r
-            <ul class="sub">\r
-                <li><a href="<%= request.getContextPath()%>/modules/commons/aboutscga.jsp">About SCGA</a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/commons/emailcontacts.jsp">Email Contacts</a></li>\r
-            </ul>\r
-       </li>\r
-        <li class="top"><a href="<%= request.getContextPath()%>/logout.jsp" class="top_link"><span>Logout</span></a></li>\r
-</ul>\r
-<% }\r
-if( usr.getRole().equals("11")) { // BRANCH PROCESSOR\r
-//if( role_id.equals("11")) { // BRANCH PROCESSOR %>\r
-<ul id="nav">\r
-       <li class="top"><a href="#nogo1" id="profile" class="top_link"><span class="down">Profile</span></a>\r
-            <ul class="sub">\r
-                <li><a href="<%= request.getContextPath()%>/modules/users/viewprofile.jsp">View Profile</a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/users/editprofile.jsp">Edit/Update Profile</a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/users/changepass.jsp">Change Password</a></li>\r
-            </ul>\r
-       </li>\r
-       <li class="top"><a href="#nogo1" id="addition" class="top_link"><span class="down">Add New Requests</span></a>\r
-            <ul class="sub">\r
-                <li><a href="<%= request.getContextPath()%>/modules/branch/insertaccount.jsp">New Visa Debit Card </a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/branch/addremotechannels.jsp">Remote Channel Request</a></li>\r
-            </ul>\r
-       </li>\r
-       <li class="top"><a href="#nogo1" id="requests" class="top_link"><span class="down">View Card Requests</span></a>\r
-            <ul class="sub">\r
-                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=nc" >New Card Requests</a></li>\r
-                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=aa" >Accepted by Approver</a></li>\r
-                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ra" >Rejected by Approver</a></li>\r
-                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ic" >Issued Cards</a></li>\r
-                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=pa" >Pending Activation</a></li>\r
-                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ac" >Activated by Call Center</a></li>\r
-                <li ><a href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=card_reqs" >Error Logs</a></li>\r
-            </ul>\r
-       </li>\r
-       <li class="top"><a href="#nogo2" id="linking" class="top_link"><span class="down">Account Link/Delink</span></a>\r
-            <ul class="sub">\r
-                <li><a href="<%= request.getContextPath()%>/modules/branch/linkaccounts.jsp">Link Accounts</a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/branch/delinkaccounts.jsp">De-Link Accounts</a></li>\r
-                <li ><a href="#nogo3" class="fly">View Links</a>\r
-                    <ul>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=pa">Pending at Approver</a></li>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=aa">Accepted by Approver</a></li>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=la">Linked at ATM Switch</a></li>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=acct_link">Error Logs</a></li>\r
-                    </ul>\r
-                </li>\r
-                <li ><a href="#nogo3" class="fly">View De-Links</a>\r
-                    <ul>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewdelinks.jsp?flag=pa">Pending at Approver</a></li>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewdelinks.jsp?flag=aa">Accepted by Approver</a></li>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=acct_delink">Error Logs</a></li>\r
-                    </ul>\r
-                </li>\r
-            </ul>\r
-       </li>\r
-       <li class="top"><a href="#nogo22" id="deletion" class="top_link"><span class="down">Card Deletion</span></a>\r
-            <ul class="sub">\r
-                <li><a href="<%= request.getContextPath()%>/modules/branch/deletecard.jsp">Delete Card</a></li>\r
-                <li ><a href="#nogo3" class="fly">View Deletions</a>\r
-                    <ul>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewdeletions.jsp?flag=pa">Pending at Approver</a></li>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewdeletions.jsp?flag=aa">Accepted by Approver</a></li>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=card_del">Error Logs</a></li>\r
-                    </ul>\r
-                </li>\r
-            </ul>\r
-       </li>\r
-       <li class="top"><a href="#nogo22" id="reports" class="top_link"><span class="down">Reports</span></a>\r
-            <ul class="sub">\r
-                    <li ><a href="<%= request.getContextPath()%>/modules/branch/cardgenreport.jsp">Card Generation Report</a></li>\r
-                    <li ><a href="<%= request.getContextPath()%>/modules/branch/adcregreport.jsp">ADC Registration Report</a></li>\r
-            </ul>\r
-       </li>\r
-        <li class="top"><a href="<%= request.getContextPath()%>/modules/branch/searchcards.jsp" class="top_link"><span>Search Cards</span></a></li>\r
-       <li class="top"><a href="<%= request.getContextPath()%>/modules/commons/Help.jsp" id="help" class="top_link"><span class="down">Help</span></a>\r
-            <ul class="sub">\r
-                <li><a href="<%= request.getContextPath()%>/modules/commons/viewprodacctmapping.jsp">Product Account Mapping Info</a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/commons/viewadcchannels.jsp">ADC Channels</a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/commons/aboutscga.jsp">About SCGA</a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/commons/emailcontacts.jsp">Email Contacts</a></li>\r
-            </ul>\r
-       </li>\r
-        <li class="top"><a href="<%= request.getContextPath()%>/logout.jsp" class="top_link"><span>Logout</span></a></li>\r
-</ul>\r
-<% }\r
-if( usr.getRole().equals("12")) { // BRANCH APPROVER\r
-//if( role_id.equals("12")) { // BRANCH APPROVER %>\r
-<ul id="nav">\r
-       <li class="top"><a href="#nogo1" id="profile" class="top_link"><span class="down">Profile</span></a>\r
-            <ul class="sub">\r
-                <li><a href="<%= request.getContextPath()%>/modules/users/viewprofile.jsp">View Profile</a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/users/editprofile.jsp">Edit/Update Profile</a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/users/changepass.jsp">Change Password</a></li>\r
-            </ul>\r
-       </li>\r
-       <li class="top"><a href="#nogo1" id="requests" class="top_link"><span class="down">View Card Requests</span></a>\r
-            <ul class="sub">\r
-                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=nc" >New Card Requests</a></li>\r
-                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=aa" >Accepted by Approver</a></li>\r
-                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ra" >Rejected by Approver</a></li>\r
-                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ic" >Issued Cards</a></li>\r
-                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=pa" >Pending Activation</a></li>\r
-                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ac" >Activated by Call Center</a></li>\r
-                <li ><a href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=card_reqs" >Error Logs</a></li>\r
-            </ul>\r
-       </li>\r
-       <li class="top"><a href="#nogo2" id="linking" class="top_link"><span class="down">Account Link/Delink</span></a>\r
-            <ul class="sub">\r
-                <li ><a href="#nogo3" class="fly">View Links</a>\r
-                    <ul>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=pa">Pending at Approver</a></li>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=aa">Accepted by Approver</a></li>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=la">Linked at ATM Switch</a></li>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=acct_link">Error Logs</a></li>\r
-                    </ul>\r
-                </li>\r
-                <li ><a href="#nogo3" class="fly">View De-Links</a>\r
-                    <ul>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewdelinks.jsp?flag=pa">Pending at Approver</a></li>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewdelinks.jsp?flag=aa">Accepted by Approver</a></li>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=acct_delink">Error Logs</a></li>\r
-                    </ul>\r
-                </li>\r
-            </ul>\r
-       </li>\r
-       <li class="top"><a href="#nogo22" id="deletion" class="top_link"><span class="down">Card Deletion</span></a>\r
-               <ul class="sub">\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewdeletions.jsp?flag=pa">Pending at Approver</a></li>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewdeletions.jsp?flag=aa">Accepted by Approver</a></li>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=card_del">Error Logs</a></li>\r
-               </ul>\r
-       </li>\r
-       <li class="top"><a href="#nogo22" id="reports" class="top_link"><span class="down">Reports</span></a>\r
-               <ul class="sub">\r
-                    <li ><a href="<%= request.getContextPath()%>/modules/branch/cardgenreport.jsp">Card Generation Report</a></li>\r
-                    <li ><a href="<%= request.getContextPath()%>/modules/branch/adcregreport.jsp">ADC Registration Report</a></li>\r
-                    <li ><a href="<%= request.getContextPath()%>/modules/commons/audittrail.jsp">Audit Trail</a></li>\r
-               </ul>\r
-       </li>\r
-        <li class="top"><a href="<%= request.getContextPath()%>/modules/branch/searchcards.jsp" class="top_link"><span>Search Cards</span></a></li>\r
-       <li class="top"><a href="#nogo22" id="help" class="top_link"><span class="down">Help</span></a>\r
-            <ul class="sub">\r
-                <li><a href="<%= request.getContextPath()%>/modules/commons/viewprodacctmapping.jsp">Product Account Mapping Info</a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/commons/viewadcchannels.jsp">ADC Channels</a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/commons/aboutscga.jsp">About SCGA</a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/commons/emailcontacts.jsp">Email Contacts</a></li>\r
-            </ul>\r
-       </li>\r
-        <li class="top"><a href="<%= request.getContextPath()%>/logout.jsp" class="top_link"><span>Logout</span></a></li>\r
-</ul>\r
-<% }\r
-if( usr.getRole().equals("21")) { // OPS PROCESSOR\r
-//if( role_id.equals("21")) { // OPS PROCESSOR %>\r
-<ul id="nav">\r
-       <li class="top"><a href="#nogo1" id="profile" class="top_link"><span class="down">Profile</span></a>\r
-            <ul class="sub">\r
-                <li><a href="<%= request.getContextPath()%>/modules/users/viewprofile.jsp">View Profile</a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/users/editprofile.jsp">Edit/Update Profile</a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/users/changepass.jsp">Change Password</a></li>\r
-            </ul>\r
-       </li>\r
-       <li class="top"><a href="#nogo1" id="addition" class="top_link"><span class="down">Add New Requests</span></a>\r
-            <ul class="sub">\r
-                <li><a href="<%= request.getContextPath()%>/modules/branch/insertaccount.jsp">New Visa Debit Card </a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/ops/newtiacard.jsp">New TIA Card</a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/branch/addremotechannels.jsp">Remote Channel Request</a></li>\r
-            </ul>\r
-       </li>\r
-       <li class="top"><a href="#nogo1" id="requests" class="top_link"><span class="down">View Card Requests</span></a>\r
-            <ul class="sub">\r
-                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=nc" >New Card Requests</a></li>\r
-                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=aa" >Accepted by Approver</a></li>\r
-                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ra" >Rejected by Approver</a></li>\r
-                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ic" >Issued Cards</a></li>\r
-                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=pa" >Pending Activation</a></li>\r
-                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ac" >Activated by Call Center</a></li>\r
-                <li ><a href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=card_reqs" >Error Logs</a></li>\r
-            </ul>\r
-       </li>\r
-       <li class="top"><a href="#nogo2" id="linking" class="top_link"><span class="down">Account Link/Delink</span></a>\r
-            <ul class="sub">\r
-                <li><a href="<%= request.getContextPath()%>/modules/branch/linkaccounts.jsp">Link Accounts</a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/branch/delinkaccounts.jsp">De-Link Accounts</a></li>\r
-                <li ><a href="#nogo3" class="fly">View Links</a>\r
-                    <ul>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=pa">Pending at Approver</a></li>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=aa">Accepted by Approver</a></li>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=la">Linked at ATM Switch</a></li>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=acct_link">Error Logs</a></li>\r
-                    </ul>\r
-                </li>\r
-                <li ><a href="#nogo3" class="fly">View De-Links</a>\r
-                    <ul>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewdelinks.jsp?flag=pa">Pending at Approver</a></li>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewdelinks.jsp?flag=aa">Accepted by Approver</a></li>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=acct_delink">Error Logs</a></li>\r
-                    </ul>\r
-                </li>\r
-            </ul>\r
-       </li>\r
-       <li class="top"><a href="#nogo22" id="deletion" class="top_link"><span class="down">Card Deletion</span></a>\r
-            <ul class="sub">\r
-                <li><a href="<%= request.getContextPath()%>/modules/branch/deletecard.jsp">Delete Card</a></li>\r
-                <li ><a href="#nogo3" class="fly">View Deletions</a>\r
-                    <ul>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewdeletions.jsp?flag=pa">Pending at Approver</a></li>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewdeletions.jsp?flag=aa">Accepted by Approver</a></li>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=card_del">Error Logs</a></li>\r
-                    </ul>\r
-                </li>\r
-            </ul>\r
-       </li>\r
-       <li class="top"><a href="#nogo22" id="reports" class="top_link"><span class="down">Reports</span></a>\r
-               <ul class="sub">\r
-                    <li ><a href="<%= request.getContextPath()%>/modules/branch/cardgenreport.jsp">Card Generation Report</a></li>\r
-                    <li ><a href="<%= request.getContextPath()%>/modules/branch/adcregreport.jsp">ADC Registration Report</a></li>\r
-               </ul>\r
-       </li>\r
-        <li class="top"><a href="<%= request.getContextPath()%>/modules/branch/searchcards.jsp" class="top_link"><span>Search Cards</span></a></li>\r
-       <li class="top"><a href="#nogo22" id="help" class="top_link"><span class="down">Help</span></a>\r
-            <ul class="sub">\r
-                <li><a href="<%= request.getContextPath()%>/modules/commons/viewprodacctmapping.jsp">Product Account Mapping Info</a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/commons/viewadcchannels.jsp">ADC Channels</a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/commons/aboutscga.jsp">About SCGA</a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/commons/emailcontacts.jsp">Email Contacts</a></li>\r
-            </ul>\r
-       </li>\r
-        <li class="top"><a href="<%= request.getContextPath()%>/logout.jsp" class="top_link"><span>Logout</span></a></li>\r
-</ul>\r
-<% }\r
-if( usr.getRole().equals("22")) { // OPS APPROVER\r
-//if( role_id.equals("22")) { // OPS APPROVER %>\r
-<ul id="nav">\r
-       <li class="top"><a href="#nogo1" id="profile" class="top_link"><span class="down">Profile</span></a>\r
-            <ul class="sub">\r
-                <li><a href="<%= request.getContextPath()%>/modules/users/viewprofile.jsp">View Profile</a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/users/editprofile.jsp">Edit/Update Profile</a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/users/changepass.jsp">Change Password</a></li>\r
-            </ul>\r
-       </li>\r
-       <li class="top"><a href="#nogo1" id="requests" class="top_link"><span class="down">View Card Requests</span></a>\r
-            <ul class="sub">\r
-                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=nc" >New Card Requests</a></li>\r
-                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=aa" >Accepted by Approver</a></li>\r
-                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ra" >Rejected by Approver</a></li>\r
-                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ic" >Issued Cards</a></li>\r
-                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=pa" >Pending Activation</a></li>\r
-                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ac" >Activated by Call Center</a></li>\r
-                <li ><a href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=card_reqs" >Error Logs</a></li>\r
-            </ul>\r
-       </li>\r
-       <li class="top"><a href="#nogo2" id="linking" class="top_link"><span class="down">Account Link/Delink</span></a>\r
-            <ul class="sub">\r
-                <li ><a href="#nogo3" class="fly">View Links</a>\r
-                    <ul>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=pa">Pending at Approver</a></li>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=aa">Accepted by Approver</a></li>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=la">Linked at ATM Switch</a></li>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=acct_link">Error Logs</a></li>\r
-                    </ul>\r
-                </li>\r
-                <li ><a href="#nogo3" class="fly">View De-Links</a>\r
-                    <ul>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewdelinks.jsp?flag=pa">Pending at Approver</a></li>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/branch/viewdelinks.jsp?flag=aa">Accepted by Approver</a></li>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=acct_delink">Error Logs</a></li>\r
-                    </ul>\r
-                </li>\r
-            </ul>\r
-       </li>\r
-       <li class="top"><a href="#nogo22" id="deletion" class="top_link"><span class="down">Card Deletions</span></a>\r
-            <ul class="sub">\r
-                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewdeletions.jsp?flag=pa">Pending at Approver</a></li>\r
-                <li ><a href="<%= request.getContextPath()%>/modules/branch/viewdeletions.jsp?flag=aa">Accepted by Approver</a></li>\r
-                <li ><a href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=card_del">Error Logs</a></li>\r
-            </ul>\r
-       </li>\r
-       <li class="top"><a href="#nogo22" id="reports" class="top_link"><span class="down">Reports</span></a>\r
-               <ul class="sub">\r
-                    <li ><a href="<%= request.getContextPath()%>/modules/branch/cardgenreport.jsp">Card Generation Report</a></li>\r
-                    <li ><a href="<%= request.getContextPath()%>/modules/branch/adcregreport.jsp">ADC Registration Report</a></li>\r
-                    <li ><a href="<%= request.getContextPath()%>/modules/commons/audittrail.jsp">Audit Trail</a></li>\r
-               </ul>\r
-       </li>\r
-        <li class="top"><a href="<%= request.getContextPath()%>/modules/branch/searchcards.jsp" class="top_link"><span>Search Cards</span></a></li>\r
-       <li class="top"><a href="#nogo22" id="help" class="top_link"><span class="down">Help</span></a>\r
-               <ul class="sub">\r
-                    <li><a href="<%= request.getContextPath()%>/modules/commons/viewprodacctmapping.jsp">Product Account Mapping Info</a></li>\r
-                    <li><a href="<%= request.getContextPath()%>/modules/commons/viewadcchannels.jsp">ADC Channels</a></li>\r
-                    <li><a href="<%= request.getContextPath()%>/modules/commons/aboutscga.jsp">About SCGA</a></li>\r
-                    <li><a href="<%= request.getContextPath()%>/modules/commons/emailcontacts.jsp">Email Contacts</a></li>\r
-               </ul>\r
-       </li>\r
-        <li class="top"><a href="<%= request.getContextPath()%>/logout.jsp" class="top_link"><span>Logout</span></a></li>\r
-</ul>\r
-<% }\r
-if( usr.getRole().equals("23")) { // OPS ADMIN\r
-//if( role_id.equals("23")) { // OPS ADMIN %>\r
-<ul id="nav">\r
-       <li class="top"><a href="#nogo1" id="profile" class="top_link"><span class="down">Profile</span></a>\r
-            <ul class="sub">\r
-                <li><a href="<%= request.getContextPath()%>/modules/users/viewprofile.jsp">View Profile</a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/users/editprofile.jsp">Edit/Update Profile</a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/users/changepass.jsp">Change Password</a></li>\r
-            </ul>\r
-       </li>\r
-       <li class="top"><a href="#nogo1" id="addition" class="top_link"><span class="down">Control Panel</span></a>\r
-            <ul class="sub">\r
-                <li ><a href="#nogo1" class="fly">KYC Settings</a>\r
-                    <ul>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/admin/addkycval.jsp">Add New KYC Values</a></li>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/admin/editkycval.jsp">Edit/Update KYC Values</a></li>\r
-                    </ul>\r
-                </li>\r
-                <li ><a href="#nogo3" class="fly">Product Groups</a>\r
-                    <ul>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/admin/addproducts.jsp">Add Product Groups</a></li>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/admin/editproducts.jsp">Edit/Update Product Groups</a></li>\r
-                    </ul>\r
-                </li>\r
-                <li ><a href="#nogo3" class="fly">Product Mapping</a>\r
-                    <ul>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/admin/addmapping.jsp">Add New Mapping</a></li>\r
-                        <li ><a href="<%= request.getContextPath()%>/modules/admin/editmapping.jsp">Edit/Update Mapping</a></li>\r
-                    </ul>\r
-                </li>\r
-            </ul>\r
-       </li>\r
-       <li class="top"><a href="#nogo22" id="reports" class="top_link"><span class="down">Reports</span></a>\r
-            <ul class="sub">\r
-                <li ><a href="<%= request.getContextPath()%>/modules/admin/viewkyc.jsp">KYC Rules</a></li>\r
-                <li ><a href="<%= request.getContextPath()%>/modules/commons/viewprodacctmapping.jsp">Product Account Mapping</a></li>\r
-                <li ><a href="<%= request.getContextPath()%>/modules/commons/viewproducts.jsp">Product Group List</a></li>\r
-                <li ><a href="<%= request.getContextPath()%>/modules/commons/audittrail.jsp">Audit Trail</a></li>\r
-            </ul>\r
-       </li>\r
-        <li class="top"><a href="<%= request.getContextPath()%>/modules/branch/searchcards.jsp" class="top_link"><span>Search Cards</span></a></li>\r
-       <li class="top"><a href="#nogo22" id="help" class="top_link"><span class="down">Help</span></a>\r
-            <ul class="sub">\r
-                <li><a href="<%= request.getContextPath()%>/modules/commons/aboutscga.jsp">About SCGA</a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/commons/emailcontacts.jsp">Email Contacts</a></li>\r
-            </ul>\r
-       </li>\r
-        <li class="top"><a href="<%= request.getContextPath()%>/logout.jsp" class="top_link"><span>Logout</span></a></li>\r
-</ul>\r
-<% }\r
-if( usr.getRole().equals("31")) { // CPDU PROCESSOR\r
-//if( role_id.equals("31")) { // CPDU PROCESSOR %>\r
-<ul id="nav">\r
-       <li class="top"><a href="#nogo1" id="profile" class="top_link"><span class="down">Profile</span></a>\r
-            <ul class="sub">\r
-                <li><a href="<%= request.getContextPath()%>/modules/users/viewprofile.jsp">View Profile</a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/users/editprofile.jsp">Edit/Update Profile</a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/users/changepass.jsp">Change Password</a></li>\r
-            </ul>\r
-       </li>\r
-       <li class="top"><a href="#nogo1" id="requests" class="top_link"><span class="down">View Card Requests</span></a>\r
-            <ul class="sub">\r
-                <li><a href="<%= request.getContextPath()%>/modules/cpdu/pendingjobs.jsp">View Pending Cards</a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/cpdu/generatechf.jsp">Process Cards (CHF generation)</a></li>\r
-            </ul>\r
-       </li>\r
-       <li class="top"><a href="#nogo2" id="linking" class="top_link"><span class="down">Process Return Hand-off File (RHF)</span></a>\r
-            <ul class="sub">\r
-                <li><a href="<%= request.getContextPath()%>/modules/cpdu/pendingrhf.jsp">View Pending RHF</a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/cpdu/parserhf.jsp">Process RHF</a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=all">Error Logs</a></li>\r
-            </ul>\r
-       </li>\r
-       <li class="top"><a href="#nogo22" id="reports" class="top_link"><span class="down">Reports</span></a>\r
-            <ul class="sub">\r
-                <li ><a href="<%= request.getContextPath()%>/modules/branch/cardgenreport.jsp">Card Generation Report</a></li>\r
-                <li ><a href="<%= request.getContextPath()%>/modules/cpdu/transmittalreport.jsp">Transmittal Report</a></li>\r
-                <li ><a href="<%= request.getContextPath()%>/modules/cpdu/exportwelcome.jsp">Export for Welcome Letter</a></li>\r
-            </ul>\r
-       </li>\r
-        <li class="top"><a href="<%= request.getContextPath()%>/modules/branch/searchcards.jsp" class="top_link"><span>Search Cards</span></a></li>\r
-       <li class="top"><a href="#nogo22" id="help" class="top_link"><span class="down">Help</span></a>\r
-            <ul class="sub">\r
-                <li><a href="<%= request.getContextPath()%>/modules/commons/aboutscga.jsp">About SCGA</a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/commons/emailcontacts.jsp">Email Contacts</a></li>\r
-            </ul>\r
-       </li>\r
-        <li class="top"><a href="<%= request.getContextPath()%>/logout.jsp" class="top_link"><span>Logout</span></a></li>\r
-</ul>\r
-<% }\r
-if( usr.getRole().equals("41")) { // CALL-CENTER AGENT\r
-//if( role_id.equals("41")) { // CALL-CENTER AGENT %>\r
-<ul id="nav">\r
-       <li class="top"><a href="#nogo1" id="profile" class="top_link"><span class="down">Profile</span></a>\r
-            <ul class="sub">\r
-                <li><a href="<%= request.getContextPath()%>/modules/users/viewprofile.jsp">View Profile</a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/users/editprofile.jsp">Edit/Update Profile</a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/users/changepass.jsp">Change Password</a></li>\r
-            </ul>\r
-       </li>\r
-        <li class="top"><a href="<%= request.getContextPath()%>/modules/branch/searchcards.jsp" class="top_link"><span>Search Cards</span></a></li>\r
-       <li class="top"><a href="<%= request.getContextPath()%>/modules/callcenter/viewactivationrequests.jsp" class="top_link"><span>View Activation Requests</span></a></li>\r
-       <li class="top"><a href="#nogo22" id="reports" class="top_link"><span class="down">Reports</span></a>\r
-            <ul class="sub">\r
-                <li ><a href="<%= request.getContextPath()%>/modules/branch/cardgenreport.jsp">Card Generation Report</a></li>\r
-                <li ><a href="<%= request.getContextPath()%>/modules/branch/adcregreport.jsp">ADC Registration Report</a></li>\r
-                <li><a href="#nogo23"></a></li>\r
-            </ul>\r
-       </li>\r
-       <li class="top"><a href="#nogo22" id="help" class="top_link"><span class="down">Help</span></a>\r
-            <ul class="sub">\r
-                <li><a href="<%= request.getContextPath()%>/modules/commons/viewprodacctmapping.jsp">Product Account Mapping Info</a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/commons/viewadcchannels.jsp">ADC Channels</a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/commons/aboutscga.jsp">About SCGA</a></li>\r
-                <li><a href="<%= request.getContextPath()%>/modules/commons/emailcontacts.jsp">Email Contacts</a></li>\r
-            </ul>\r
-       </li>\r
-        <li class="top"><a href="<%= request.getContextPath()%>/logout.jsp" class="top_link"><span>Logout</span></a></li>\r
-</ul>\r
-<% } %>\r
-<!------  MENU ENDS -->\r
-  </td>\r
-  </tr>\r
-</table>\r
-</body>\r
-<% } %>\r
-</html>\r
+--%>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd">
+<%@ page import="org.mcb.services.*"%>
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<meta HTTP-EQUIV="Pragma" CONTENT="no-cache" />
+<meta HTTP-EQUIV="Expires" CONTENT="-1" />
+<title>MCB Smart Card Generation Application</title>
+<%
+       String script_path = request.getContextPath()
+                       + "/scripts/stuhover.js";
+       String css_path = request.getContextPath()
+                       + "/css/pro_dropdown_2.css";
+       String login_path = request.getContextPath() + "/index.jsp";
+%>
+<link rel="stylesheet" type="text/css" href="<%=css_path %>" />
+<script src="<%=script_path%>" type="text/javascript"></script>
+</head>
+<%
+       userbean usr = (userbean) session.getAttribute("user");
+       //if( (session.getAttribute("user_id") == null) | (session.getAttribute("user_id") == "" ) ){
+       if (usr == null) {
+               session.invalidate(); //request.getContextPath()+"/Index.jsp"
+               //      response.sendRedirect(login_path);
+               response.sendRedirect(response.encodeRedirectURL(login_path));
+       } else {
+               /*      String user_id      = (String) session.getAttribute("user_id");
+                String user_name    = (String) session.getAttribute("user_name");
+                //String user_pass    = (String) session.getAttribute("user_pass");
+                String role_id      = (String) session.getAttribute("role_id");
+                String role_name    = (String) session.getAttribute("role_desc");
+                String last_login   = (String) session.getAttribute("last_login");
+                // userbean usr        = (userbean) session.getAttribute("user");
+                //out.println("object value: "+usr.getName());
+                */
+%>
+<body>
+<span class="preload1"></span>
+<span class="preload2"></span>
+<table width="100%" border="0" cellspacing="0" cellpadding="0">
+       <tr>
+               <td></td>
+       </tr>
+       <tr>
+               <td>
+               <table width="100%" border="0" cellspacing="0" cellpadding="0">
+                       <tr>
+                               <td><img src="<%=request.getContextPath()%>/images/banner.gif"
+                                       width="431" height="86" /></td>
+                               <td>
+                               <div align="right"><img
+                                       src="<%=request.getContextPath()%>/images/logo.jpg" width="110"
+                                       height="86" /></div>
+                               </td>
+                       </tr>
+                       <tr>
+                               <td><font size="1" face="Courier New, Courier, mono">Welcome
+                               <%=usr.getName()%> </font></td>
+                               <td>
+                               <div align="right"><font size="1"
+                                       face="Courier New, Courier, mono">Logged in as <%=usr.getRoleDesc()%>
+                               </font></div>
+                               </td>
+                       </tr>
+                       <tr>
+                               <td><font size="1" face="Courier New, Courier, mono">Last
+                               Login Date: <%=usr.getLastLogin()%> </font></td>
+                               <td>
+                               <div align="right"><font size="1"
+                                       face="Courier New, Courier, mono">Current Date: <%=new java.util.Date()%>
+                               </font></div>
+                               </td>
+                       </tr>
+               </table>
+               </td>
+       </tr>
+       <tr>
+               <td><!------  MENU STARTS --> <%
+       if (usr.getRole().equals("0")) { // ROOT USER
+                       //if( role_id.equals("0")) { // ROOT USER
+ %>
+               <ul id="nav">
+                       <li class="top"><a href="#nogo1" id="profile" class="top_link"><span
+                               class="down">Profile</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/users/viewprofile.jsp">View
+                               Profile</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/users/editprofile.jsp">Edit/Update
+                               Profile</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/users/changepass.jsp">Change
+                               Password</a></li>
+                       </ul>
+                       </li>
+                       <li class="top"><a href="#nogo1" id="users" class="top_link"><span
+                               class="down">User Management</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/users/addnewuser.jsp">Add
+                               New User </a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/users/searchuser.jsp">Edit/Update
+                               User</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/users/resetpass.jsp">Reset
+                               Password </a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/users/deleteuser.jsp">Delete
+                               User</a></li>
+                       </ul>
+                       </li>
+                       <li class="top"><a href="#nogo1" id="addition" class="top_link"><span
+                               class="down">Add New Requests</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/insertaccount.jsp">New
+                               Visa Debit Card </a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/ops/newtiacard.jsp">New
+                               TIA Card</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/addremotechannels.jsp">Remote
+                               Channel Request</a></li>
+                       </ul>
+                       </li>
+                       <li class="top"><a href="#nogo1" id="requests" class="top_link"><span
+                               class="down">View Card Requests</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=nc">New
+                               Card Requests</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=aa">Accepted
+                               by Approver</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ra">Rejected
+                               by Approver</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ic">Issued
+                               Cards</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=pa">Pending
+                               Activation</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ac">Activated
+                               by Call Center</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=card_reqs">Error
+                               Logs</a></li>
+                       </ul>
+                       </li>
+                       <li class="top"><a
+                               href="<%= request.getContextPath()%>/modules/callcenter/viewactivationrequests.jsp"
+                               class="top_link"><span>View Activation Requests</span></a></li>
+                       <li class="top"><a href="#nogo2" id="linking" class="top_link"><span
+                               class="down">Account Link/Delink</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/linkaccounts.jsp">Link
+                               Accounts</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/delinkaccounts.jsp">De-Link
+                               Accounts</a></li>
+                               <li><a href="#nogo3" class="fly">View Links</a>
+                               <ul>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=pa">Pending
+                                       at Approver</a></li>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=aa">Accepted
+                                       by Approver</a></li>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=la">Linked
+                                       at ATM Switch</a></li>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=acct_link">Error
+                                       Logs</a></li>
+                               </ul>
+                               </li>
+                               <li><a href="#nogo3" class="fly">View De-Links</a>
+                               <ul>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/branch/viewdelinks.jsp?flag=pa">Pending
+                                       at Approver</a></li>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/branch/viewdelinks.jsp?flag=aa">Accepted
+                                       by Approver</a></li>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=acct_delink">Error
+                                       Logs</a></li>
+                               </ul>
+                               </li>
+                       </ul>
+                       </li>
+                       <li class="top"><a href="#nogo22" id="deletion" class="top_link"><span
+                               class="down">Card Deletion</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/deletecard.jsp">Delete
+                               Card</a></li>
+                               <li><a href="#nogo3" class="fly">View Deletions</a>
+                               <ul>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/branch/viewdeletions.jsp?flag=pa">Pending
+                                       at Approver</a></li>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/branch/viewdeletions.jsp?flag=aa">Accepted
+                                       by Approver</a></li>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=card_del">Error
+                                       Logs</a></li>
+                               </ul>
+                               </li>
+                       </ul>
+                       </li>
+                       <li class="top"><a href="#nogo1" id="addition" class="top_link"><span
+                               class="down">Control Panel</span></a>
+                       <ul class="sub">
+                               <li><a href="#nogo1" class="fly">KYC Settings</a>
+                               <ul>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/admin/addkycval.jsp">Add
+                                       New KYC Values</a></li>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/admin/editkycval.jsp">Edit/Update
+                                       KYC Values</a></li>
+                               </ul>
+                               </li>
+                               <li><a href="#nogo3" class="fly">Product Groups</a>
+                               <ul>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/admin/addproducts.jsp">Add
+                                       Product Groups</a></li>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/admin/editproducts.jsp">Edit/Update
+                                       Product Groups</a></li>
+                               </ul>
+                               </li>
+                               <li><a href="#nogo3" class="fly">Product Mapping</a>
+                               <ul>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/admin/addmapping.jsp">Add
+                                       New Mapping</a></li>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/admin/editmapping.jsp">Edit/Update
+                                       Mapping</a></li>
+                               </ul>
+                               </li>
+                       </ul>
+                       </li>
+                       <li class="top"><a href="#nogo22" id="reports" class="top_link"><span
+                               class="down">Reports</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/cardgenreport.jsp">Card
+                               Generation Report</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/adcregreport.jsp">ADC
+                               Registration Report</a></li>
+                       </ul>
+                       </li>
+                       <li class="top"><a
+                               href="<%= request.getContextPath()%>/modules/branch/searchcards.jsp"
+                               class="top_link"><span>Search Cards</span></a></li>
+                       <li class="top"><a href="#nogo1" id="help" class="top_link"><span
+                               class="down">Help</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/commons/viewprodacctmapping.jsp">Product
+                               Account Mapping Info</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/commons/viewadcchannels.jsp">ADC
+                               Channels</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/commons/aboutscga.jsp">About
+                               SCGA</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/commons/emailcontacts.jsp">Email
+                               Contacts</a></li>
+                       </ul>
+                       </li>
+                       <li class="top"><a
+                               href="<%= request.getContextPath()%>/logout.jsp" class="top_link"><span>Logout</span></a></li>
+               </ul>
+               <%
+                       }
+                               if (usr.getRole().equals("1")) { // IDC USER
+                                       //if( role_id.equals("1")) { // IDC USER
+               %>
+               <ul id="nav">
+                       <li class="top"><a href="#nogo1" id="profile" class="top_link"><span
+                               class="down">Profile</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/users/viewprofile.jsp">View
+                               Profile</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/users/editprofile.jsp">Edit/Update
+                               Profile</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/users/changepass.jsp">Change
+                               Password</a></li>
+                       </ul>
+                       </li>
+                       <li class="top"><a href="#nogo1" id="users" class="top_link"><span
+                               class="down">User Management</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/users/addnewuser.jsp">Add
+                               New User </a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/users/searchuser.jsp">Edit/Update
+                               User</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/users/resetpass.jsp">Reset
+                               Password </a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/users/deleteuser.jsp">Delete
+                               User</a></li>
+                       </ul>
+                       </li>
+                       <li class="top"><a href="#nogo22" id="reports" class="top_link"><span
+                               class="down">Reports</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/users/ViewUserList.jsp">Users
+                               List</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/users/UserLogReport.jsp">User
+                               Log Report</a></li>
+                       </ul>
+                       </li>
+                       <li class="top"><a
+                               href="<%= request.getContextPath()%>/modules/users/searchuser.jsp"
+                               class="top_link"><span>Search User</span></a></li>
+                       <li class="top"><a
+                               href="<%= request.getContextPath()%>/modules/commons/Help.jsp"
+                               id="help" class="top_link"><span class="down">Help</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/commons/aboutscga.jsp">About
+                               SCGA</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/commons/emailcontacts.jsp">Email
+                               Contacts</a></li>
+                       </ul>
+                       </li>
+                       <li class="top"><a
+                               href="<%= request.getContextPath()%>/logout.jsp" class="top_link"><span>Logout</span></a></li>
+               </ul>
+               <%
+                       }
+                               if (usr.getRole().equals("11")) { // BRANCH PROCESSOR
+                                       //if( role_id.equals("11")) { // BRANCH PROCESSOR
+               %>
+               <ul id="nav">
+                       <li class="top"><a href="#nogo1" id="profile" class="top_link"><span
+                               class="down">Profile</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/users/viewprofile.jsp">View
+                               Profile</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/users/editprofile.jsp">Edit/Update
+                               Profile</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/users/changepass.jsp">Change
+                               Password</a></li>
+                       </ul>
+                       </li>
+                       <li class="top"><a href="#nogo1" id="addition" class="top_link"><span
+                               class="down">Add New Requests</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/insertaccount.jsp">New
+                               Visa Debit Card </a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/addremotechannels.jsp">Remote
+                               Channel Request</a></li>
+                       </ul>
+                       </li>
+                       <li class="top"><a href="#nogo1" id="requests" class="top_link"><span
+                               class="down">View Card Requests</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=nc">New
+                               Card Requests</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=aa">Accepted
+                               by Approver</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ra">Rejected
+                               by Approver</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ic">Issued
+                               Cards</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=pa">Pending
+                               Activation</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ac">Activated
+                               by Call Center</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=card_reqs">Error
+                               Logs</a></li>
+                       </ul>
+                       </li>
+                       <li class="top"><a href="#nogo2" id="linking" class="top_link"><span
+                               class="down">Account Link/Delink</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/linkaccounts.jsp">Link
+                               Accounts</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/delinkaccounts.jsp">De-Link
+                               Accounts</a></li>
+                               <li><a href="#nogo3" class="fly">View Links</a>
+                               <ul>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=pa">Pending
+                                       at Approver</a></li>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=aa">Accepted
+                                       by Approver</a></li>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=la">Linked
+                                       at ATM Switch</a></li>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=acct_link">Error
+                                       Logs</a></li>
+                               </ul>
+                               </li>
+                               <li><a href="#nogo3" class="fly">View De-Links</a>
+                               <ul>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/branch/viewdelinks.jsp?flag=pa">Pending
+                                       at Approver</a></li>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/branch/viewdelinks.jsp?flag=aa">Accepted
+                                       by Approver</a></li>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=acct_delink">Error
+                                       Logs</a></li>
+                               </ul>
+                               </li>
+                       </ul>
+                       </li>
+                       <li class="top"><a href="#nogo22" id="deletion" class="top_link"><span
+                               class="down">Card Deletion</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/deletecard.jsp">Delete
+                               Card</a></li>
+                               <li><a href="#nogo3" class="fly">View Deletions</a>
+                               <ul>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/branch/viewdeletions.jsp?flag=pa">Pending
+                                       at Approver</a></li>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/branch/viewdeletions.jsp?flag=aa">Accepted
+                                       by Approver</a></li>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=card_del">Error
+                                       Logs</a></li>
+                               </ul>
+                               </li>
+                       </ul>
+                       </li>
+                       <li class="top"><a href="#nogo22" id="reports" class="top_link"><span
+                               class="down">Reports</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/cardgenreport.jsp">Card
+                               Generation Report</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/adcregreport.jsp">ADC
+                               Registration Report</a></li>
+                       </ul>
+                       </li>
+                       <li class="top"><a
+                               href="<%= request.getContextPath()%>/modules/branch/searchcards.jsp"
+                               class="top_link"><span>Search Cards</span></a></li>
+                       <li class="top"><a
+                               href="<%= request.getContextPath()%>/modules/commons/Help.jsp"
+                               id="help" class="top_link"><span class="down">Help</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/commons/viewprodacctmapping.jsp">Product
+                               Account Mapping Info</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/commons/viewadcchannels.jsp">ADC
+                               Channels</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/commons/aboutscga.jsp">About
+                               SCGA</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/commons/emailcontacts.jsp">Email
+                               Contacts</a></li>
+                       </ul>
+                       </li>
+                       <li class="top"><a
+                               href="<%= request.getContextPath()%>/logout.jsp" class="top_link"><span>Logout</span></a></li>
+               </ul>
+               <%
+                       }
+                               if (usr.getRole().equals("12")) { // BRANCH APPROVER
+                                       //if( role_id.equals("12")) { // BRANCH APPROVER
+               %>
+               <ul id="nav">
+                       <li class="top"><a href="#nogo1" id="profile" class="top_link"><span
+                               class="down">Profile</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/users/viewprofile.jsp">View
+                               Profile</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/users/editprofile.jsp">Edit/Update
+                               Profile</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/users/changepass.jsp">Change
+                               Password</a></li>
+                       </ul>
+                       </li>
+                       <li class="top"><a href="#nogo1" id="requests" class="top_link"><span
+                               class="down">View Card Requests</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=nc">New
+                               Card Requests</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=aa">Accepted
+                               by Approver</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ra">Rejected
+                               by Approver</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ic">Issued
+                               Cards</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=pa">Pending
+                               Activation</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ac">Activated
+                               by Call Center</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=card_reqs">Error
+                               Logs</a></li>
+                       </ul>
+                       </li>
+                       <li class="top"><a href="#nogo2" id="linking" class="top_link"><span
+                               class="down">Account Link/Delink</span></a>
+                       <ul class="sub">
+                               <li><a href="#nogo3" class="fly">View Links</a>
+                               <ul>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=pa">Pending
+                                       at Approver</a></li>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=aa">Accepted
+                                       by Approver</a></li>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=la">Linked
+                                       at ATM Switch</a></li>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=acct_link">Error
+                                       Logs</a></li>
+                               </ul>
+                               </li>
+                               <li><a href="#nogo3" class="fly">View De-Links</a>
+                               <ul>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/branch/viewdelinks.jsp?flag=pa">Pending
+                                       at Approver</a></li>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/branch/viewdelinks.jsp?flag=aa">Accepted
+                                       by Approver</a></li>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=acct_delink">Error
+                                       Logs</a></li>
+                               </ul>
+                               </li>
+                       </ul>
+                       </li>
+                       <li class="top"><a href="#nogo22" id="deletion" class="top_link"><span
+                               class="down">Card Deletion</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/viewdeletions.jsp?flag=pa">Pending
+                               at Approver</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/viewdeletions.jsp?flag=aa">Accepted
+                               by Approver</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=card_del">Error
+                               Logs</a></li>
+                       </ul>
+                       </li>
+                       <li class="top"><a href="#nogo22" id="reports" class="top_link"><span
+                               class="down">Reports</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/cardgenreport.jsp">Card
+                               Generation Report</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/adcregreport.jsp">ADC
+                               Registration Report</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/commons/audittrail.jsp">Audit
+                               Trail</a></li>
+                       </ul>
+                       </li>
+                       <li class="top"><a
+                               href="<%= request.getContextPath()%>/modules/branch/searchcards.jsp"
+                               class="top_link"><span>Search Cards</span></a></li>
+                       <li class="top"><a href="#nogo22" id="help" class="top_link"><span
+                               class="down">Help</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/commons/viewprodacctmapping.jsp">Product
+                               Account Mapping Info</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/commons/viewadcchannels.jsp">ADC
+                               Channels</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/commons/aboutscga.jsp">About
+                               SCGA</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/commons/emailcontacts.jsp">Email
+                               Contacts</a></li>
+                       </ul>
+                       </li>
+                       <li class="top"><a
+                               href="<%= request.getContextPath()%>/logout.jsp" class="top_link"><span>Logout</span></a></li>
+               </ul>
+               <%
+                       }
+                               if (usr.getRole().equals("21")) { // OPS PROCESSOR
+                                       //if( role_id.equals("21")) { // OPS PROCESSOR
+               %>
+               <ul id="nav">
+                       <li class="top"><a href="#nogo1" id="profile" class="top_link"><span
+                               class="down">Profile</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/users/viewprofile.jsp">View
+                               Profile</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/users/editprofile.jsp">Edit/Update
+                               Profile</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/users/changepass.jsp">Change
+                               Password</a></li>
+                       </ul>
+                       </li>
+                       <li class="top"><a href="#nogo1" id="addition" class="top_link"><span
+                               class="down">Add New Requests</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/insertaccount.jsp">New
+                               Visa Debit Card </a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/ops/newtiacard.jsp">New
+                               TIA Card</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/addremotechannels.jsp">Remote
+                               Channel Request</a></li>
+                       </ul>
+                       </li>
+                       <li class="top"><a href="#nogo1" id="requests" class="top_link"><span
+                               class="down">View Card Requests</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=nc">New
+                               Card Requests</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=aa">Accepted
+                               by Approver</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ra">Rejected
+                               by Approver</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ic">Issued
+                               Cards</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=pa">Pending
+                               Activation</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ac">Activated
+                               by Call Center</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=card_reqs">Error
+                               Logs</a></li>
+                       </ul>
+                       </li>
+                       <li class="top"><a href="#nogo2" id="linking" class="top_link"><span
+                               class="down">Account Link/Delink</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/linkaccounts.jsp">Link
+                               Accounts</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/delinkaccounts.jsp">De-Link
+                               Accounts</a></li>
+                               <li><a href="#nogo3" class="fly">View Links</a>
+                               <ul>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=pa">Pending
+                                       at Approver</a></li>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=aa">Accepted
+                                       by Approver</a></li>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=la">Linked
+                                       at ATM Switch</a></li>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=acct_link">Error
+                                       Logs</a></li>
+                               </ul>
+                               </li>
+                               <li><a href="#nogo3" class="fly">View De-Links</a>
+                               <ul>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/branch/viewdelinks.jsp?flag=pa">Pending
+                                       at Approver</a></li>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/branch/viewdelinks.jsp?flag=aa">Accepted
+                                       by Approver</a></li>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=acct_delink">Error
+                                       Logs</a></li>
+                               </ul>
+                               </li>
+                       </ul>
+                       </li>
+                       <li class="top"><a href="#nogo22" id="deletion" class="top_link"><span
+                               class="down">Card Deletion</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/deletecard.jsp">Delete
+                               Card</a></li>
+                               <li><a href="#nogo3" class="fly">View Deletions</a>
+                               <ul>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/branch/viewdeletions.jsp?flag=pa">Pending
+                                       at Approver</a></li>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/branch/viewdeletions.jsp?flag=aa">Accepted
+                                       by Approver</a></li>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=card_del">Error
+                                       Logs</a></li>
+                               </ul>
+                               </li>
+                       </ul>
+                       </li>
+                       <li class="top"><a href="#nogo22" id="reports" class="top_link"><span
+                               class="down">Reports</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/cardgenreport.jsp">Card
+                               Generation Report</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/adcregreport.jsp">ADC
+                               Registration Report</a></li>
+                       </ul>
+                       </li>
+                       <li class="top"><a
+                               href="<%= request.getContextPath()%>/modules/branch/searchcards.jsp"
+                               class="top_link"><span>Search Cards</span></a></li>
+                       <li class="top"><a href="#nogo22" id="help" class="top_link"><span
+                               class="down">Help</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/commons/viewprodacctmapping.jsp">Product
+                               Account Mapping Info</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/commons/viewadcchannels.jsp">ADC
+                               Channels</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/commons/aboutscga.jsp">About
+                               SCGA</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/commons/emailcontacts.jsp">Email
+                               Contacts</a></li>
+                       </ul>
+                       </li>
+                       <li class="top"><a
+                               href="<%= request.getContextPath()%>/logout.jsp" class="top_link"><span>Logout</span></a></li>
+               </ul>
+               <%
+                       }
+                               if (usr.getRole().equals("22")) { // OPS APPROVER
+                                       //if( role_id.equals("22")) { // OPS APPROVER
+               %>
+               <ul id="nav">
+                       <li class="top"><a href="#nogo1" id="profile" class="top_link"><span
+                               class="down">Profile</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/users/viewprofile.jsp">View
+                               Profile</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/users/editprofile.jsp">Edit/Update
+                               Profile</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/users/changepass.jsp">Change
+                               Password</a></li>
+                       </ul>
+                       </li>
+                       <li class="top"><a href="#nogo1" id="requests" class="top_link"><span
+                               class="down">View Card Requests</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=nc">New
+                               Card Requests</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=aa">Accepted
+                               by Approver</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ra">Rejected
+                               by Approver</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ic">Issued
+                               Cards</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=pa">Pending
+                               Activation</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/viewrequests.jsp?flag=ac">Activated
+                               by Call Center</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=card_reqs">Error
+                               Logs</a></li>
+                       </ul>
+                       </li>
+                       <li class="top"><a href="#nogo2" id="linking" class="top_link"><span
+                               class="down">Account Link/Delink</span></a>
+                       <ul class="sub">
+                               <li><a href="#nogo3" class="fly">View Links</a>
+                               <ul>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=pa">Pending
+                                       at Approver</a></li>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=aa">Accepted
+                                       by Approver</a></li>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/branch/viewlinks.jsp?flag=la">Linked
+                                       at ATM Switch</a></li>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=acct_link">Error
+                                       Logs</a></li>
+                               </ul>
+                               </li>
+                               <li><a href="#nogo3" class="fly">View De-Links</a>
+                               <ul>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/branch/viewdelinks.jsp?flag=pa">Pending
+                                       at Approver</a></li>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/branch/viewdelinks.jsp?flag=aa">Accepted
+                                       by Approver</a></li>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=acct_delink">Error
+                                       Logs</a></li>
+                               </ul>
+                               </li>
+                       </ul>
+                       </li>
+                       <li class="top"><a href="#nogo22" id="deletion" class="top_link"><span
+                               class="down">Card Deletions</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/viewdeletions.jsp?flag=pa">Pending
+                               at Approver</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/viewdeletions.jsp?flag=aa">Accepted
+                               by Approver</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=card_del">Error
+                               Logs</a></li>
+                       </ul>
+                       </li>
+                       <li class="top"><a href="#nogo22" id="reports" class="top_link"><span
+                               class="down">Reports</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/cardgenreport.jsp">Card
+                               Generation Report</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/adcregreport.jsp">ADC
+                               Registration Report</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/commons/audittrail.jsp">Audit
+                               Trail</a></li>
+                       </ul>
+                       </li>
+                       <li class="top"><a
+                               href="<%= request.getContextPath()%>/modules/branch/searchcards.jsp"
+                               class="top_link"><span>Search Cards</span></a></li>
+                       <li class="top"><a href="#nogo22" id="help" class="top_link"><span
+                               class="down">Help</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/commons/viewprodacctmapping.jsp">Product
+                               Account Mapping Info</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/commons/viewadcchannels.jsp">ADC
+                               Channels</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/commons/aboutscga.jsp">About
+                               SCGA</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/commons/emailcontacts.jsp">Email
+                               Contacts</a></li>
+                       </ul>
+                       </li>
+                       <li class="top"><a
+                               href="<%= request.getContextPath()%>/logout.jsp" class="top_link"><span>Logout</span></a></li>
+               </ul>
+               <%
+                       }
+                               if (usr.getRole().equals("23")) { // OPS ADMIN
+                                       //if( role_id.equals("23")) { // OPS ADMIN
+               %>
+               <ul id="nav">
+                       <li class="top"><a href="#nogo1" id="profile" class="top_link"><span
+                               class="down">Profile</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/users/viewprofile.jsp">View
+                               Profile</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/users/editprofile.jsp">Edit/Update
+                               Profile</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/users/changepass.jsp">Change
+                               Password</a></li>
+                       </ul>
+                       </li>
+                       <li class="top"><a href="#nogo1" id="addition" class="top_link"><span
+                               class="down">Control Panel</span></a>
+                       <ul class="sub">
+                               <li><a href="#nogo1" class="fly">KYC Settings</a>
+                               <ul>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/admin/addkycval.jsp">Add
+                                       New KYC Values</a></li>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/admin/editkycval.jsp">Edit/Update
+                                       KYC Values</a></li>
+                               </ul>
+                               </li>
+                               <li><a href="#nogo3" class="fly">Product Groups</a>
+                               <ul>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/admin/addproducts.jsp">Add
+                                       Product Groups</a></li>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/admin/editproducts.jsp">Edit/Update
+                                       Product Groups</a></li>
+                               </ul>
+                               </li>
+                               <li><a href="#nogo3" class="fly">Product Mapping</a>
+                               <ul>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/admin/addmapping.jsp">Add
+                                       New Mapping</a></li>
+                                       <li><a
+                                               href="<%= request.getContextPath()%>/modules/admin/editmapping.jsp">Edit/Update
+                                       Mapping</a></li>
+                               </ul>
+                               </li>
+                       </ul>
+                       </li>
+                       <li class="top"><a href="#nogo22" id="reports" class="top_link"><span
+                               class="down">Reports</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/admin/viewkyc.jsp">KYC
+                               Rules</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/commons/viewprodacctmapping.jsp">Product
+                               Account Mapping</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/commons/viewproducts.jsp">Product
+                               Group List</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/commons/audittrail.jsp">Audit
+                               Trail</a></li>
+                       </ul>
+                       </li>
+                       <li class="top"><a
+                               href="<%= request.getContextPath()%>/modules/branch/searchcards.jsp"
+                               class="top_link"><span>Search Cards</span></a></li>
+                       <li class="top"><a href="#nogo22" id="help" class="top_link"><span
+                               class="down">Help</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/commons/aboutscga.jsp">About
+                               SCGA</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/commons/emailcontacts.jsp">Email
+                               Contacts</a></li>
+                       </ul>
+                       </li>
+                       <li class="top"><a
+                               href="<%= request.getContextPath()%>/logout.jsp" class="top_link"><span>Logout</span></a></li>
+               </ul>
+               <%
+                       }
+                               if (usr.getRole().equals("31")) { // CPDU PROCESSOR
+                                       //if( role_id.equals("31")) { // CPDU PROCESSOR
+               %>
+               <ul id="nav">
+                       <li class="top"><a href="#nogo1" id="profile" class="top_link"><span
+                               class="down">Profile</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/users/viewprofile.jsp">View
+                               Profile</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/users/editprofile.jsp">Edit/Update
+                               Profile</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/users/changepass.jsp">Change
+                               Password</a></li>
+                       </ul>
+                       </li>
+                       <li class="top"><a href="#nogo1" id="requests" class="top_link"><span
+                               class="down">View Card Requests</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/cpdu/pendingjobs.jsp">View
+                               Pending Cards</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/cpdu/generatechf.jsp">Process
+                               Cards (CHF generation)</a></li>
+                       </ul>
+                       </li>
+                       <li class="top"><a href="#nogo2" id="linking" class="top_link"><span
+                               class="down">Process Return Hand-off File (RHF)</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/cpdu/pendingrhf.jsp">View
+                               Pending RHF</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/cpdu/parserhf.jsp">Process
+                               RHF</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/commons/errorlogs.jsp?flag=all">Error
+                               Logs</a></li>
+                       </ul>
+                       </li>
+                       <li class="top"><a href="#nogo22" id="reports" class="top_link"><span
+                               class="down">Reports</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/cardgenreport.jsp">Card
+                               Generation Report</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/cpdu/transmittalreport.jsp">Transmittal
+                               Report</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/cpdu/exportwelcome.jsp">Export
+                               for Welcome Letter</a></li>
+                       </ul>
+                       </li>
+                       <li class="top"><a
+                               href="<%= request.getContextPath()%>/modules/branch/searchcards.jsp"
+                               class="top_link"><span>Search Cards</span></a></li>
+                       <li class="top"><a href="#nogo22" id="help" class="top_link"><span
+                               class="down">Help</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/commons/aboutscga.jsp">About
+                               SCGA</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/commons/emailcontacts.jsp">Email
+                               Contacts</a></li>
+                       </ul>
+                       </li>
+                       <li class="top"><a
+                               href="<%= request.getContextPath()%>/logout.jsp" class="top_link"><span>Logout</span></a></li>
+               </ul>
+               <%
+                       }
+                               if (usr.getRole().equals("41")) { // CALL-CENTER AGENT
+                                       //if( role_id.equals("41")) { // CALL-CENTER AGENT
+               %>
+               <ul id="nav">
+                       <li class="top"><a href="#nogo1" id="profile" class="top_link"><span
+                               class="down">Profile</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/users/viewprofile.jsp">View
+                               Profile</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/users/editprofile.jsp">Edit/Update
+                               Profile</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/users/changepass.jsp">Change
+                               Password</a></li>
+                       </ul>
+                       </li>
+                       <li class="top"><a
+                               href="<%= request.getContextPath()%>/modules/branch/searchcards.jsp"
+                               class="top_link"><span>Search Cards</span></a></li>
+                       <li class="top"><a
+                               href="<%= request.getContextPath()%>/modules/callcenter/viewactivationrequests.jsp"
+                               class="top_link"><span>View Activation Requests</span></a></li>
+                       <li class="top"><a href="#nogo22" id="reports" class="top_link"><span
+                               class="down">Reports</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/cardgenreport.jsp">Card
+                               Generation Report</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/branch/adcregreport.jsp">ADC
+                               Registration Report</a></li>
+                               <li><a href="#nogo23"></a></li>
+                       </ul>
+                       </li>
+                       <li class="top"><a href="#nogo22" id="help" class="top_link"><span
+                               class="down">Help</span></a>
+                       <ul class="sub">
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/commons/viewprodacctmapping.jsp">Product
+                               Account Mapping Info</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/commons/viewadcchannels.jsp">ADC
+                               Channels</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/commons/aboutscga.jsp">About
+                               SCGA</a></li>
+                               <li><a
+                                       href="<%= request.getContextPath()%>/modules/commons/emailcontacts.jsp">Email
+                               Contacts</a></li>
+                       </ul>
+                       </li>
+                       <li class="top"><a
+                               href="<%= request.getContextPath()%>/logout.jsp" class="top_link"><span>Logout</span></a></li>
+               </ul>
+               <%
+                       }
+               %> <!------  MENU ENDS --></td>
+       </tr>
+</table>
+</body>
+<%
+       }
+%>
+</html>
index 689d6d2..64ea79a 100644 (file)
@@ -8,23 +8,25 @@ import java.sql.*;
 import java.util.*;
 import oracle.jdbc.driver.*;
 
-   public class connectionmanager {
-      static Connection scgmcon ;
+public class connectionmanager {
+       static Connection scgmcon;
 
-    public static Connection scgm_conn() throws Exception{
-             String host = "10.20.0.115";
-             String service = "scdb";
-             String usr = "scuser";
-             String pass = "scuser";
-             String driverName = "oracle.jdbc.driver.OracleDriver";
-             String connstr = "jdbc:oracle:thin:@(DESCRIPTION =(ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = " +
-                               host +")(PORT = 1521)))(CONNECT_DATA =(SERVICE_NAME = " + service + ")))";
-             try{
-                Class.forName(driverName).newInstance();
-                scgmcon = DriverManager.getConnection(connstr, usr, pass);
-             }catch(Exception e){
-                System.out.println(e);
-             }
-            return(scgmcon);
-    }
+       public static Connection scgm_conn() throws Exception {
+               String host = "10.20.0.115";
+               String service = "scdb";
+               String usr = "scuser";
+               String pass = "scuser";
+               String driverName = "oracle.jdbc.driver.OracleDriver";
+               String connstr = "jdbc:oracle:thin:@(DESCRIPTION =(ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = "
+                               + host
+                               + ")(PORT = 1521)))(CONNECT_DATA =(SERVICE_NAME = "
+                               + service + ")))";
+               try {
+                       Class.forName(driverName).newInstance();
+                       scgmcon = DriverManager.getConnection(connstr, usr, pass);
+               } catch (Exception e) {
+                       System.out.println(e);
+               }
+               return (scgmcon);
+       }
 }
index eb147ac..4142e47 100644 (file)
@@ -8,88 +8,110 @@ import javax.servlet.http.HttpServlet;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
 import javax.servlet.http.HttpSession;
+
 /**
- *
+ * 
  * @author yawar.saeed
  */
 public class loginmanager extends HttpServlet {
-   
-    /** 
-     * Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
-     * @param request servlet request
-     * @param response servlet response
-     * @throws ServletException if a servlet-specific error occurs
-     * @throws IOException if an I/O error occurs
-     */
-    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
-    throws ServletException, IOException {
-        response.setContentType("text/html;charset=UTF-8");
-        PrintWriter out = response.getWriter();
-        try {
-             userbean user = new userbean();
-             user.setUserId(request.getParameter("txt_userid"));
-             user.setPassword(request.getParameter("txt_pass"));
-             user = udac.login(user);
-             if (user.isValid()){
-                  HttpSession session = request.getSession(true);
-                  session.setAttribute("user", user);
-                  session.setAttribute("user_id",user.getUserId());
-                  session.setAttribute("user_name",user.getName());
-                  session.setAttribute("role_id",user.getRole());
-                  session.setAttribute("role_desc", user.getRoleDesc());
-                  session.setAttribute("last_login", user.getLastLogin());
-                  //response.sendRedirect("main.jsp"); //logged-in page
-                  //response.sendRedirect(response.encodeRedirectURL("main.jsp"));
-                  response.sendRedirect(request.getContextPath() + response.encodeRedirectURL("/main.jsp"));
 
-             }else{
-                //  response.sendRedirect("index.jsp?user="+user.isValid()); //revert back to login page
-                //  response.sendRedirect(response.encodeRedirectURL("index.jsp?user="+user.isValid())); //revert back to login page
-                    response.sendRedirect(request.getContextPath()
-                                        + response.encodeRedirectURL("/index.jsp")
-                                        + "?user="+ user.isValid());
-                                     //   + java.net.URLEncoder.encode());
+       /**
+        * Processes requests for both HTTP <code>GET</code> and <code>POST</code>
+        * methods.
+        * 
+        * @param request
+        *            servlet request
+        * @param response
+        *            servlet response
+        * @throws ServletException
+        *             if a servlet-specific error occurs
+        * @throws IOException
+        *             if an I/O error occurs
+        */
+       protected void processRequest(HttpServletRequest request,
+                       HttpServletResponse response) throws ServletException, IOException {
+               response.setContentType("text/html;charset=UTF-8");
+               PrintWriter out = response.getWriter();
+               try {
+                       userbean user = new userbean();
+                       user.setUserId(request.getParameter("txt_userid"));
+                       user.setPassword(request.getParameter("txt_pass"));
+                       user = udac.login(user);
+                       if (user.isValid()) {
+                               HttpSession session = request.getSession(true);
+                               session.setAttribute("user", user);
+                               session.setAttribute("user_id", user.getUserId());
+                               session.setAttribute("user_name", user.getName());
+                               session.setAttribute("role_id", user.getRole());
+                               session.setAttribute("role_desc", user.getRoleDesc());
+                               session.setAttribute("last_login", user.getLastLogin());
+                               // response.sendRedirect("main.jsp"); //logged-in page
+                               // response.sendRedirect(response.encodeRedirectURL("main.jsp"));
+                               response.sendRedirect(request.getContextPath()
+                                               + response.encodeRedirectURL("/main.jsp"));
+
+                       } else {
+                               // response.sendRedirect("index.jsp?user="+user.isValid());
+                               // //revert back to login page
+                               // response.sendRedirect(response.encodeRedirectURL("index.jsp?user="+user.isValid()));
+                               // //revert back to login page
+                               response.sendRedirect(request.getContextPath()
+                                               + response.encodeRedirectURL("/index.jsp") + "?user="
+                                               + user.isValid());
+                               // + java.net.URLEncoder.encode());
 
-             }
-        } finally {
-            out.close();
-        }
-    } 
+                       }
+               } finally {
+                       out.close();
+               }
+       }
 
-    // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
-    /** 
-     * Handles the HTTP <code>GET</code> method.
-     * @param request servlet request
-     * @param response servlet response
-     * @throws ServletException if a servlet-specific error occurs
-     * @throws IOException if an I/O error occurs
-     */
-    @Override
-    protected void doGet(HttpServletRequest request, HttpServletResponse response)
-    throws ServletException, IOException {
-        processRequest(request, response);
-    } 
+       // <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on
+       // the + sign on the left to edit the code.">
+       /**
+        * Handles the HTTP <code>GET</code> method.
+        * 
+        * @param request
+        *            servlet request
+        * @param response
+        *            servlet response
+        * @throws ServletException
+        *             if a servlet-specific error occurs
+        * @throws IOException
+        *             if an I/O error occurs
+        */
+       @Override
+       protected void doGet(HttpServletRequest request,
+                       HttpServletResponse response) throws ServletException, IOException {
+               processRequest(request, response);
+       }
 
-    /** 
-     * Handles the HTTP <code>POST</code> method.
-     * @param request servlet request
-     * @param response servlet response
-     * @throws ServletException if a servlet-specific error occurs
-     * @throws IOException if an I/O error occurs
-     */
-    @Override
-    protected void doPost(HttpServletRequest request, HttpServletResponse response)
-    throws ServletException, IOException {
-        processRequest(request, response);
-    }
+       /**
+        * Handles the HTTP <code>POST</code> method.
+        * 
+        * @param request
+        *            servlet request
+        * @param response
+        *            servlet response
+        * @throws ServletException
+        *             if a servlet-specific error occurs
+        * @throws IOException
+        *             if an I/O error occurs
+        */
+       @Override
+       protected void doPost(HttpServletRequest request,
+                       HttpServletResponse response) throws ServletException, IOException {
+               processRequest(request, response);
+       }
 
-    /** 
-     * Returns a short description of the servlet.
-     * @return a String containing servlet description
-     */
-    @Override
-    public String getServletInfo() {
-        return "Short description";
-    }// </editor-fold>
+       /**
+        * Returns a short description of the servlet.
+        * 
+        * @return a String containing servlet description
+        */
+       @Override
+       public String getServletInfo() {
+               return "Short description";
+       }// </editor-fold>
 
 }
index c3314a5..79d0f5b 100644 (file)
@@ -6,55 +6,46 @@
 package org.mcb.services;
 
 /**
- *
+ * 
  * @author yawar.saeed
  */
 
 import java.io.UnsupportedEncodingException;
 import java.security.MessageDigest;
-import java.security.NoSuchAlgorithmException;
-//import org.mcb.SystemUnavailableException;
+import java.security.NoSuchAlgorithmException; // import
+                                                                                               // org.mcb.SystemUnavailableException;
 import sun.misc.BASE64Encoder;
 import sun.misc.CharacterEncoder;
-public final class passwordservices
-{
-  private static passwordservices instance;
-  private passwordservices()
-  {
-  }
-  public synchronized String encrypt(String plaintext) throws Exception
-  {
-    MessageDigest md = null;
-    try
-    {
-      md = MessageDigest.getInstance("SHA"); //step 2
-    }
-    catch(NoSuchAlgorithmException e)
-    {
-      throw new Exception(e.getMessage());
-    }
-    try
-    {
-      md.update(plaintext.getBytes("UTF-8")); //step 3
-    }
-    catch(UnsupportedEncodingException e)
-    {
-      throw new Exception(e.getMessage());
-    }
-    byte raw[] = md.digest(); //step 4
-    String hash = (new BASE64Encoder()).encode(raw); //step 5
-    return hash; //step 6
-  }
-  public static synchronized passwordservices getInstance() //step 1
-  {
-    if(instance == null)
-    {
-      return new passwordservices();
-    }
-    else
-    {
-      return instance;
-    }
-  }
-}
 
+public final class passwordservices {
+       private static passwordservices instance;
+
+       private passwordservices() {
+       }
+
+       public synchronized String encrypt(String plaintext) throws Exception {
+               MessageDigest md = null;
+               try {
+                       md = MessageDigest.getInstance("SHA"); // step 2
+               } catch (NoSuchAlgorithmException e) {
+                       throw new Exception(e.getMessage());
+               }
+               try {
+                       md.update(plaintext.getBytes("UTF-8")); // step 3
+               } catch (UnsupportedEncodingException e) {
+                       throw new Exception(e.getMessage());
+               }
+               byte raw[] = md.digest(); // step 4
+               String hash = (new BASE64Encoder()).encode(raw); // step 5
+               return hash; // step 6
+       }
+
+       public static synchronized passwordservices getInstance() // step 1
+       {
+               if (instance == null) {
+                       return new passwordservices();
+               } else {
+                       return instance;
+               }
+       }
+}
index 4dbc3a6..9f6ed8d 100644 (file)
@@ -9,87 +9,92 @@ import java.util.*;
 import java.sql.*;
 import javax.servlet.http.HttpSession;
 
-   public class udac
-   {
-//      static Connection currentCon = null;
-//      static ResultSet rs = null;
-      
-      public static userbean login(userbean bean) {
-            //preparing some objects for connection
-            Connection currentCon = null;
-            ResultSet rs = null;
-            Statement stmt = null;
-            String userid = bean.getUserId();
-            String password = bean.getPassword();
-            String epass = null;
-            String name = null;
-            String user_id = null;
-            String role_id = null;
-            String branch_code = null;
-            String last_login = null;
-            String role_desc = null;
-            try{
-                epass = passwordservices.getInstance().encrypt(password);
-            }catch(Exception e){
-                System.out.println(e);
-            }
-            String searchQuery = "SELECT a.USER_ID,a.NAME, a.BRANCH_CODE, a.PASSWORD, a.LAST_LOGIN_DATE, a.ROLE_ID, b.ROLE_DESC FROM LOGIN_INFORMATION a, ROLES b WHERE a.ACTIVE = 'A' AND a.ROLE_ID = b.ROLE_ID ";
-            searchQuery = searchQuery + "AND LOWER(a.USER_ID) = LOWER('"+ userid + "') AND a.PASSWORD = '"+epass+"'";
-            try{
-                //connect to DB
-                currentCon = connectionmanager.scgm_conn();
-                stmt=currentCon.createStatement();
-                rs = stmt.executeQuery(searchQuery);
-                boolean hasdata=false;
-                while(rs.next()) {
-                    hasdata=true;
-                    name = rs.getString("NAME");
-                    user_id = rs.getString("USER_ID");
-                    branch_code = rs.getString("BRANCH_CODE");
-                    role_id = rs.getString("ROLE_ID");
-                    last_login = rs.getString("LAST_LOGIN_DATE");
-                    role_desc = rs.getString("ROLE_DESC");
-                    bean.setName(name);
-                    bean.setUserId(user_id);
-                    bean.setBranch(branch_code);
-                    bean.setRole(role_id);
-                    bean.setLastLogin(last_login);
-                    bean.setRoleDesc(role_desc);
-                    bean.setValid(true);
-                }
-                if(!hasdata) {
-                    System.out.println("Sorry, you are not a registered user! Please sign up first "+ searchQuery);
-                    bean.setValid(false);
-                }
-            }catch (Exception ex){
-             System.out.println("Log In failed: An Exception has occurred! " + ex);
-            }
-            //some exception handling
-            finally{
-             if (rs != null)   {
-                try {
-                   rs.close();
-                } catch (Exception e) {}
-                   rs = null;
-                }
+public class udac {
+       // static Connection currentCon = null;
+       // static ResultSet rs = null;
 
-             if (stmt != null) {
-                try {
-                   stmt.close();
-                } catch (Exception e) {}
-                   stmt = null;
-                }
+       public static userbean login(userbean bean) {
+               // preparing some objects for connection
+               Connection currentCon = null;
+               ResultSet rs = null;
+               Statement stmt = null;
+               String userid = bean.getUserId();
+               String password = bean.getPassword();
+               String epass = null;
+               String name = null;
+               String user_id = null;
+               String role_id = null;
+               String branch_code = null;
+               String last_login = null;
+               String role_desc = null;
+               try {
+                       epass = passwordservices.getInstance().encrypt(password);
+               } catch (Exception e) {
+                       System.out.println(e);
+               }
+               String searchQuery = "SELECT a.USER_ID,a.NAME, a.BRANCH_CODE, a.PASSWORD, a.LAST_LOGIN_DATE, a.ROLE_ID, b.ROLE_DESC FROM LOGIN_INFORMATION a, ROLES b WHERE a.ACTIVE = 'A' AND a.ROLE_ID = b.ROLE_ID ";
+               searchQuery = searchQuery + "AND LOWER(a.USER_ID) = LOWER('" + userid
+                               + "') AND a.PASSWORD = '" + epass + "'";
+               try {
+                       // connect to DB
+                       currentCon = connectionmanager.scgm_conn();
+                       stmt = currentCon.createStatement();
+                       rs = stmt.executeQuery(searchQuery);
+                       boolean hasdata = false;
+                       while (rs.next()) {
+                               hasdata = true;
+                               name = rs.getString("NAME");
+                               user_id = rs.getString("USER_ID");
+                               branch_code = rs.getString("BRANCH_CODE");
+                               role_id = rs.getString("ROLE_ID");
+                               last_login = rs.getString("LAST_LOGIN_DATE");
+                               role_desc = rs.getString("ROLE_DESC");
+                               bean.setName(name);
+                               bean.setUserId(user_id);
+                               bean.setBranch(branch_code);
+                               bean.setRole(role_id);
+                               bean.setLastLogin(last_login);
+                               bean.setRoleDesc(role_desc);
+                               bean.setValid(true);
+                       }
+                       if (!hasdata) {
+                               System.out
+                                               .println("Sorry, you are not a registered user! Please sign up first "
+                                                               + searchQuery);
+                               bean.setValid(false);
+                       }
+               } catch (Exception ex) {
+                       System.out.println("Log In failed: An Exception has occurred! "
+                                       + ex);
+               }
+               // some exception handling
+               finally {
+                       if (rs != null) {
+                               try {
+                                       rs.close();
+                               } catch (Exception e) {
+                               }
+                               rs = null;
+                       }
 
-             if (currentCon != null) {
-                try {
-                   currentCon.close();
-                } catch (Exception e) {
-                }
+                       if (stmt != null) {
+                               try {
+                                       stmt.close();
+                               } catch (Exception e) {
+                               }
+                               stmt = null;
+                       }
 
-                currentCon = null;
-             }
-            }
-return bean;
+                       if (currentCon != null) {
+                               try {
+                                       currentCon.close();
+                               } catch (Exception e) {
+                               }
 
-    }
+                               currentCon = null;
+                       }
+               }
+               return bean;
+
+       }
 }
index 0fd4db5..d692a66 100644 (file)
@@ -6,80 +6,80 @@
 package org.mcb.services;
 
 /**
- *
+ * 
  * @author yawar.saeed
  */
 public class userbean {
-      private String userid;
-      private String password;
-      private String RoleDesc;
-      private String LastLogin;
-      private String Name;
-      private String Branch;
-      private String RoleId;
-      public boolean valid;
-
-      public String getName() {
-         return Name;
-        }
-
-      public void setName(String newName) {
-         Name = newName;
+       private String userid;
+       private String password;
+       private String RoleDesc;
+       private String LastLogin;
+       private String Name;
+       private String Branch;
+       private String RoleId;
+       public boolean valid;
+
+       public String getName() {
+               return Name;
        }
-      public String getBranch() {
-         return Branch;
-        }
 
-      public void setBranch(String newBranch) {
-         Branch = newBranch;
+       public void setName(String newName) {
+               Name = newName;
        }
-      public String getRole() {
-         return RoleId;
-        }
 
-      public void setRole(String newRole) {
-         RoleId = newRole;
+       public String getBranch() {
+               return Branch;
        }
-      public String getRoleDesc() {
-         return RoleDesc;
+
+       public void setBranch(String newBranch) {
+               Branch = newBranch;
        }
 
-      public void setRoleDesc(String newRoleDesc) {
-         RoleDesc = newRoleDesc;
+       public String getRole() {
+               return RoleId;
        }
 
-      public String getLastLogin() {
-         return LastLogin;
+       public void setRole(String newRole) {
+               RoleId = newRole;
        }
 
-      public void setLastLogin(String newLastLogin) {
-         LastLogin = newLastLogin;
+       public String getRoleDesc() {
+               return RoleDesc;
        }
 
+       public void setRoleDesc(String newRoleDesc) {
+               RoleDesc = newRoleDesc;
+       }
 
-      public String getPassword() {
-         return password;
+       public String getLastLogin() {
+               return LastLogin;
        }
 
-      public void setPassword(String newPassword) {
-         password = newPassword;
+       public void setLastLogin(String newLastLogin) {
+               LastLogin = newLastLogin;
        }
 
+       public String getPassword() {
+               return password;
+       }
 
-      public String getUserId() {
-         return userid;
+       public void setPassword(String newPassword) {
+               password = newPassword;
        }
 
-      public void setUserId(String newUserId) {
-         userid = newUserId;
+       public String getUserId() {
+               return userid;
        }
 
+       public void setUserId(String newUserId) {
+               userid = newUserId;
+       }
 
-      public boolean isValid() {
-         return valid;
+       public boolean isValid() {
+               return valid;
        }
 
-      public void setValid(boolean newValid) {
-         valid = newValid;
+       public void setValid(boolean newValid) {
+               valid = newValid;
        }
 }