194 lines
9.7 KiB
Plaintext
194 lines
9.7 KiB
Plaintext
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
|
|
pageEncoding="ISO-8859-1"%>
|
|
<%@page language="java" session="true" %>
|
|
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
|
|
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
|
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
|
|
<%@taglib prefix="spring" uri="http://www.springframework.org/tags" %>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
<link href="/matrix/css/jquery-ui.css" rel="stylesheet" type="text/css" />
|
|
|
|
<script language="javascript" src="/matrix/js/lib/constants.js" type="text/javascript"></script>
|
|
<script language="javascript" src="/matrix/js/jquery1.7.2.js" type="text/javascript"></script>
|
|
<script language="javascript" src="/matrix/js/ui/jquery-ui.js" type="text/javascript"></script>
|
|
<script language="javascript" src="/matrix/js/ui/uifuncs.js" type="text/javascript"></script>
|
|
<script language="javascript" src="/matrix/js/lib/jsfuncs.js" type="text/javascript"></script>
|
|
<script language="javascript" src="/matrix/js/ui/msgdialog.js" type="text/javascript"></script>
|
|
<script language="javascript" src="/matrix/js/ui/select.js" type="text/javascript"></script>
|
|
<script language="javascript" src="/matrix/js/appjs/portfolio.js" type="text/javascript"></script>
|
|
<script language="javascript" src="/matrix/js/appjs/common.js" type="text/javascript"></script>
|
|
<script language="javascript" src="/matrix/js/validator.js" type="text/javascript"></script>
|
|
|
|
<link href="/matrix/css/matrix.css" rel="stylesheet" type="text/css" />
|
|
<link href="/matrix/css/menu.css" rel="stylesheet" type="text/css" />
|
|
<link href="/matrix/css/button.css" rel="stylesheet" type="text/css" />
|
|
<link href="/matrix/css/div.css" rel="stylesheet" type="text/css" />
|
|
<link href="/matrix/css/textbox.css" rel="stylesheet" type="text/css" />
|
|
<link href="/matrix/css/select.css" rel="stylesheet" type="text/css" />
|
|
<link href="/matrix/css/table.css" rel="stylesheet" type="text/css" />
|
|
|
|
<title>Nimble 1.0 | Manage Email IDs</title>
|
|
</head>
|
|
<body>
|
|
<div id='PageFrame'>
|
|
<!-- Title Bar -->
|
|
<div id='title' class="title">
|
|
<img id="icon" src="/matrix/images/optmale.png" />
|
|
<img id="close" src="/matrix/images/close.jpg" onclick="javascript:closewindow();" />
|
|
<span id="title">Nimble 1.0 ${Sessvals.getCompanyCode() } (${Sessvals.getBranchLocation() }) ${Sessvals.getUserDisplayName()} (${Sessvals.getUserGroupName()}) </span>
|
|
</div>
|
|
<!-- -->
|
|
<!-- Dynamic Menu -->
|
|
<jsp:include page='../../usermenu/menu_${Sessvals.getUserID()}.html' />
|
|
<!-- -->
|
|
<div id="formcontainer" style="width:1000px;margin-top:5px;position:absolute;z-index:-1">
|
|
<!-- Title -->
|
|
<div id='title' class="title">
|
|
<img id="icon" src="/matrix/images/emaillist.png" align="absmiddle" />
|
|
<span id="title" align="absmiddle">Email ID Manager</span>
|
|
<img id="close" src="/matrix/images/reload.png" title="Refresh Grid" onclick="SubmitForm('manageemailids','_parent','emailmanager')"/>
|
|
</div>
|
|
<!-- -->
|
|
<div id="FormPanel" class="FormPanel">
|
|
<form:form method="post" modelAttribute="emailmanager" >
|
|
<table align="center" id="filtertab" style="width:98%;border:1px solid #a7abb4" cellspacing="0">
|
|
<tr>
|
|
<td>
|
|
<div class="widget">
|
|
<div class="lblcontainer">
|
|
Portfolio
|
|
</div>
|
|
<div class="inputcontainer">
|
|
<div class="divselect" id="divver" style="width:270px;">
|
|
<form:select path="portfolio" multiple="false" style="width:288px" onchange="fetchBranch(this.value)">
|
|
<option value="-1" selected>---</option>
|
|
<c:forEach items="${portlist}" var="port">
|
|
<form:option value="${port[0]}" label="${port[1]}" />
|
|
</c:forEach>
|
|
</form:select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="widget">
|
|
<div class="lblcontainer">
|
|
Branch
|
|
</div>
|
|
<div class="inputcontainer">
|
|
<div class="divselect" id="divbranch" style="width:200px;">
|
|
<form:select path="branch" multiple="false" style="width:218px" onblur="validate(this,'f','')">
|
|
<option value="-1">---</option>
|
|
<c:forEach items="${branchlist}" var="branch">
|
|
<form:option value="${branch[0]}" label="${branch[1]}" />
|
|
</c:forEach>
|
|
</form:select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="widget">
|
|
<div class="lblcontainer" style="padding-top:7px">
|
|
Email ID
|
|
</div>
|
|
<div class="inputcontainer">
|
|
<form:input path="emailid" class="textbox" style="width:150px;" onblur="validate(this,'f','Email');" />
|
|
</div>
|
|
</div>
|
|
<input type="button" class="button" name="btnfind" style="margin-top:3px;float:right" value="Search" id="btnfind" accesskey="S" onclick="ValidateEmailSearch();" title="search" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<input type="button" class="button" name="btnaemail" value="New Email ID" style="margin-top:3px" id="btnaemail" accesskey="A" title="Add new email id" onclick="addEmailid()" />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<div id="TablePanel" class="tableContainer">
|
|
<table border="0" cellspacing="0" width="100%" id="emailidlist">
|
|
<thead class="thead">
|
|
<tr title="Row Title">
|
|
<td width="20" style="font-size:9pt">S.No</td>
|
|
<td style="font-size:9pt">Portfolio</td>
|
|
<td style="font-size:9pt">Branch</td>
|
|
<td style="font-size:9pt">Name</td>
|
|
<td style="font-size:9pt">Email ID</td>
|
|
<td style="font-size:9pt" align="center">Type</td>
|
|
<td width="90" style="font-size:9pt;text-align:center">Actions</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="emaillistbody" class="scrollContent">
|
|
<c:forEach items="${emailmanager.emaillist}" var="email" varStatus="mystatus">
|
|
<tr id="row${mystatus.count}">
|
|
<td>${mystatus.count }</td>
|
|
<td>${email[1]}</td>
|
|
<td>${email[2]}</td>
|
|
<td>${email[3]}</td>
|
|
<td style="text-transform: none;font-size:12px">${email[4]}</td>
|
|
<td align="center">
|
|
<c:choose>
|
|
<c:when test="${email[8]==0}">
|
|
<img src="/matrix/images/x-red.gif" title="You need to revoke this email id first to perform this operation." />
|
|
</c:when>
|
|
<c:otherwise>
|
|
<c:choose>
|
|
<c:when test="${email[14]=='TO'}">
|
|
TO
|
|
<input type="hidden" value="${email[0]}" id="${email[6]}-${email[7]}" pid="${email[6]}" bid="${email[7]}" />
|
|
</c:when>
|
|
<c:otherwise>
|
|
<input type="button" class="button" name="btncc" pid="${email[6]}" bid="${email[7]}" cid="${email[0]}" value="CC" style="margin-top:3px;text-indent:0px;padding:3px 3px;" id="btncc" title="Change recipient type CC -> TO " onclick="emailidActions(this,2)" />
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</td>
|
|
<td>
|
|
<input type="button" class="button" name="btninfo" value="" style="margin-top:3px;text-indent:0px;padding:3px 9px;" id="btninfo" title="Click for more information" onclick="emailidActions(${email[0]},3)" />
|
|
<c:choose>
|
|
<c:when test="${email[14]=='TO' || email[8]=='0'}">
|
|
<input type="button" class="buttondisabled" name="bt-${email[0]}" value="" style="margin-top:3px;text-indent:0px;padding:3px 9px;" id="btntransfer" pid="${email[6]}" bid="${email[7]}" title="You need to change recipient type to CC to transfer this email id" onclick="return false" />
|
|
</c:when>
|
|
<c:otherwise>
|
|
<input type="button" class="button" name="bt-${email[0]}" value="" style="margin-top:3px;text-indent:0px;padding:3px 9px;" id="btntransfer" cid="${email[0]}" pid="${email[6]}" bid="${email[7]}" title="Transfer mail id" onclick="emailidActions(this,4)" />
|
|
</c:otherwise>
|
|
</c:choose>
|
|
<c:choose>
|
|
<c:when test="${email[8]=='0'}">
|
|
<input type="button" class="button" name="btnredo" value="" style="margin-top:3px;text-indent:0px;padding:3px 9px;" id="btnredo" cid="${email[0]}" pid="${email[6]}" bid="${email[7]}" title="Re-map this email id to this branch. (note: to transfer this email id to some other branch, first you need ot re-map it)" onclick="emailidActions(this,6)" />
|
|
</c:when>
|
|
<c:otherwise>
|
|
<c:choose>
|
|
<c:when test="${email[14]=='TO'}">
|
|
<input type="button" class="buttondisabled" name="bd-${email[0]}" value="" style="margin-top:3px;text-indent:0px;padding:3px 9px;" id="btndelete" cid="${email[0]}" pid="${email[6]}" bid="${email[7]}" title="You need to change recipient type to CC to remove this email id" onclick="return false" />
|
|
</c:when>
|
|
<c:otherwise>
|
|
<input type="button" class="button" name="bd-${email[0]}" value="" style="margin-top:3px;text-indent:0px;padding:3px 9px;" id="btndelete" cid="${email[0]}" pid="${email[6]}" bid="${email[7]}" title="Remove this email id from this branch only" onclick="emailidActions(this,5)" />
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</td>
|
|
</tr>
|
|
</c:forEach>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<input type="hidden" id="invalidfields" value="0" />
|
|
</form:form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
<!-- Page Load Javascript -->
|
|
<script language="javascript" type="text/javascript">
|
|
centerDivBoth("formcontainer","H");
|
|
InitPage();
|
|
</script>
|
|
<!-- -->
|
|
<!-- Process Message -->
|
|
<c:if test="${not empty msg}">
|
|
<script language="javascript" type="text/javascript"> CallMessage('${msg}',5000,200,300); </script>
|
|
</c:if>
|
|
<!-- -->
|
|
</html> |