You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

114 lines
4.4 KiB

<%@ page language="java" import ="java.io.*,java.text.*,java.lang.*,java.util.Date,java.util.*,java.sql.*" %>
<%@ include file="DBCon.jsp"%>
<link href="../css/main.css" rel="stylesheet" type="text/css">
<%
if ( session.getAttribute("COCMISUserCode") == null || ((String)session.getAttribute("COCMISUserCode")).equals("") )
{
response.sendRedirect("../login.jsp");
return;
}
Statement stm=Con.createStatement();
ResultSet rs1,rs2;
String opt=request.getParameter("opt");
String pet_dt=request.getParameter("pet_dt");
String pet_id=request.getParameter("pet_id");
if (opt==null)
{
opt=" ";
}
if (pet_dt==null)
{
pet_dt=" ";
}
if (pet_id==null)
{
pet_id=" -1";
}
%>
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Mayor Grievance Acknowledgement - Reprint</title>
</head>
<body >
<P>&nbsp; </P>
<p style="text-indent: 0; word-spacing: 0; line-height: 100%; margin: 0"><b><font face="divya" size="4">&#2986;&#3014;&#2992;&#3009;&#2984;&#2965;&#2992; &#2970;&#3014;&#2985;&#3021;&#2985;&#3016; &#2990;&#3006;&#2984;&#2965;&#2992;&#3006;&#2975;&#3021;&#2970;&#3007;</font></b></p><br>
<p style="text-indent: 0; word-spacing: 0; line-height: 100%; margin: 0"><font size="2"></font>&#2990;&#3006;&#2979;&#3021;&#2986;&#3009;&#2990;&#3007;&#2965;&#3009; &#2990;&#3015;&#2991;&#2992;&#3021; &#2949;&#2997;&#2992;&#3021;&#2965;&#2995;&#3007;&#2975;&#2990;&#3021; &#2949;&#2995;&#3007;&#2965;&#3021;&#2965;&#2986;&#3021;&#2986;&#2975;&#3021;&#2975; &#2990;&#2965;&#3021;&#2965;&#2995;&#3021; &#2965;&#3009;&#2993;&#3016; &#2980;&#3008;&#2992;&#3021;&#2965;&#3021;&#2965;&#3009;&#2990;&#3021; &#2990;&#2985;&#3009;&#2997;&#3007;&#2985;&#3021; &#2997;&#3007;&#2997;&#2992;&#2990;&#3021;</p>
<p style="text-indent: 0; word-spacing: 0; line-height: 100%; margin: 0">&nbsp;</p>
<hr size="3" color="#660033" style="background-color: #EEDAB5">
&nbsp;
<p style="text-indent: 0; word-spacing: 0; line-height: 100%; margin: 0">&nbsp;</p>
<div align="left" style="width: 867; height: 122">
<table border="1" cellpadding="10" cellspacing="0" width="634" height="59">
<tr>
<td width="61"><b><font ><font face="divya" size="3">&#2997;.&#2958;&#2979;&#3021;.</font></font></b></td>
<td width="161" height="26"><b><font ><font face="divya" size="3">&#2990;&#2985;&#3009; &#2958;&#2979;&#3021;</font></font></b></td>
<td width="344" height="26" ><b><font face="divya" size="3">&#2990;&#2985;&#3009;&#2980;&#3006;&#2992;&#2992;&#3007;&#2985;&#3021; &#2986;&#3014;&#2991;&#2992;&#3021;</font></b></td>
</tr>
<%
if (opt.equals("D"))
{
//out.println ("select pet_id,pet_nm from mayor_petition_mail where to_char(pet_dt,'dd/mm/yyyy')='"+pet_dt.replace("-","/")+"'");
rs1=stm.executeQuery( "select pet_id,pet_nm from mayor_petition_mail where to_char(pet_dt,'dd/mm/yyyy')='"+pet_dt.replace("-","/")+"'") ;
while (rs1.next())
{
%>
<tr>
<td width="61">&nbsp;</td>
<td width="161" height="21"><a href="mayor_mail_grev_ack.jsp?uc=01&pet_id=<%=rs1.getString("pet_id")%>"><b><%=rs1.getString("pet_id")%> </b></font></td>
<td width="344" height="21"><font face="VANAVIL-DB-Avvaiyar"><b><%=rs1.getString("pet_nm")%></b></font> </td>
</tr>
<%
}
}
if (opt.equals("I"))
{
rs2=stm.executeQuery(" select pet_id,pet_nm from mayor_petition where pet_id='"+pet_id+"'");
int row=0;
while (rs2.next())
{
%>
<tr>
<td width="61">&nbsp;</td>
<td width="161" height="21"><%=(++row)%> </td>
<td width="161" height="21"><a href=mayor_grev_ack.jsp?uc=01&pet_id=<%=rs2.getString("pet_id")%>>
<font face="VANAVIL-DB-Avvaiyar"><b><%=rs2.getString("pet_id")%></b></font> </a></td>
<td width="344" height="21"><font face="VANAVIL-DB-Avvaiyar"><b><%=rs2.getString("pet_nm")%></b></font> </td>
</tr>
<%
}
}
%>
</table>
<div align="left">
<table border="0" width="100" height="28">
<tr>
<td width="100" height="28"><font color="#996633" face="divya"><input type="button" value="&#2997;&#3014;&#2995;&#3007;&#2991;&#3015;" name="bck" onClick="history.back()"
style="font-family: divya; font-size: 12pt; font-style: italic; font-weight: bold"></font></td>
</tr>
</table>
</div>
</div>
</body>
</html>