/*
 * Generated by the Jasper component of Apache Tomcat
 * Version: Apache Tomcat/7.0.19
 * Generated at: 2012-03-16 18:03:23 UTC
 * Note: The last modified time of this file was set to
 *       the last modified time of the source file after
 *       generation to assist with modification tracking.
 */
package org.apache.jsp.roles;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import com.goldhuman.auth.AuthFilter;
import com.goldhuman.service.interfaces.LogInfo;
import com.goldhuman.service.interfaces.GMService;
import com.goldhuman.service.GMServiceImpl;
import com.goldhuman.service.interfaces.ComplainRe;
import org.apache.commons.logging.LogFactory;
import com.goldhuman.util.Page;
import java.sql.*;
import com.goldhuman.util.LocaleUtil;
import com.goldhuman.util.*;

public final class fetchcomplains_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static final javax.servlet.jsp.JspFactory _jspxFactory =
          javax.servlet.jsp.JspFactory.getDefaultFactory();

  private static java.util.Map<java.lang.String,java.lang.Long> _jspx_dependants;

  static {
    _jspx_dependants = new java.util.HashMap<java.lang.String,java.lang.Long>(2);
    _jspx_dependants.put("/roles/../include/foot.jsp", Long.valueOf(1319037682000L));
    _jspx_dependants.put("/roles/../include/header.jsp", Long.valueOf(1319037682000L));
  }

  private javax.el.ExpressionFactory _el_expressionfactory;
  private org.apache.tomcat.InstanceManager _jsp_instancemanager;

  public java.util.Map<java.lang.String,java.lang.Long> getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
    _jsp_instancemanager = org.apache.jasper.runtime.InstanceManagerFactory.getInstanceManager(getServletConfig());
  }

  public void _jspDestroy() {
  }

  public void _jspService(final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response)
        throws java.io.IOException, javax.servlet.ServletException {

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;


    try {
      response.setContentType("text/html; charset=UTF-8");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      com.goldhuman.util.MySqlCon mysql = null;
      mysql = (com.goldhuman.util.MySqlCon) _jspx_page_context.getAttribute("mysql", javax.servlet.jsp.PageContext.PAGE_SCOPE);
      if (mysql == null){
        mysql = new com.goldhuman.util.MySqlCon();
        _jspx_page_context.setAttribute("mysql", mysql, javax.servlet.jsp.PageContext.PAGE_SCOPE);
      }
      out.write('\n');
      out.write('\n');
      out.write('\n');
try {
      out.write('\n');

				LogFactory.getLog("fetchcomplains.jsp").info(
						"operator=" + AuthFilter.getRemoteUser(session));

				
      out.write('\n');
      out.write('\n');
String flag = request.getParameter("flag");
				if (flag != null && flag.equals("true")) {
					String roleid = request.getParameter("roleid");
					String gmroleid = request.getParameter("gmroleid");
					String gmrolename = request.getParameter("gmrolename");
					String content = request.getParameter("content");
					int rd = -1;
					int gmd = -1;
					if (roleid != null && roleid.trim().length() > 0)
						rd = Integer.parseInt(roleid);
					if (gmroleid != null && gmroleid.trim().length() > 0)
						gmd = Integer.parseInt(gmroleid);

					ComplainRe reply = new ComplainRe(rd, gmd, gmrolename, content);

					LogInfo info2 = new LogInfo(-1, "", LocaleUtil.getMessage(request,"role_fetcom_fetcom"));
					GMService gs2 = new GMServiceImpl();
					gs2.replyComplain(reply, info2);

					String str = "insert into replyComplain(roleid,gmroleid,gmrolename,content,sendtime) values("
							+ rd
							+ ","
							+ gmd
							+ ",'"
							+ gmrolename
							+ "','"
							+ content + "',now())";

					mysql.updateLog(str);

				}

				
      out.write("\n");
      out.write("\n");
      out.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n");
      out.write("<html>\n");
      out.write("\t<head>\n");
      out.write("\n");
      out.write("\t\t<title>");
      out.print( LocaleUtil.getMessage(request,"role_fetcom_newcom") );
      out.write("</title>\n");
      out.write("\t\t<link href=\"../include/style.css\" rel=\"stylesheet\" type=\"text/css\">\n");
      out.write("\t</head>\n");
      out.write("\n");
      out.write("\t<body>\n");
      out.write("\t\t");
      out.write("\n");
      out.write("\n");
      out.write("<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#FFFFFF\">\n");
      out.write("\t<tr>\n");
      out.write("\t\t<td height=\"8\" colspan=\"3\" class=\"topline\"></td>\n");
      out.write("\t</tr>\n");
      out.write("\t<tr>\n");
      out.write("\t\t<td width=\"225\" height=\"54\" bgcolor=\"#9E0B0E\">\n");
      out.write("\t\t\t&nbsp;\n");
      out.write("\t\t</td>\n");
      out.write("\t\t<td width=\"40\" bgcolor=\"#9E0B0E\">\n");
      out.write("\t\t\t&nbsp;\n");
      out.write("\t\t</td>\n");
      out.write("\t\t<td width=\"500\" class=\"navColor\">\n");
      out.write("\t\t\t(abroad) \n");
      out.write("\t\t\t");
      out.print( LocaleUtil.getMessage(request,"include_header_welcome") );
      out.write("\n");
      out.write("\t\t\t");
      out.print(com.goldhuman.auth.AuthFilter.getRemoteUser(session));
      out.write("\n");
      out.write("\t\t\t<br>\n");
      out.write("\t\t\t<a href=\"/cricket\" class=\"white\">[");
      out.print( LocaleUtil.getMessage(request,"include_header_cricket") );
      out.write("]</a>&nbsp;&nbsp;&nbsp;&nbsp;\n");
      out.write("\t\t\t<a href=\"/cricket/views.html\" class=\"white\">[");
      out.print( LocaleUtil.getMessage(request,"include_header_views") );
      out.write("]</a>&nbsp;&nbsp;&nbsp;&nbsp;\n");
      out.write("\t\t\t<a href=\"/iweb/role/index.jsp\" class=\"white\">[");
      out.print( LocaleUtil.getMessage(request, "include_header_roleidx") );
      out.write("]</a>&nbsp;&nbsp;&nbsp;&nbsp;\n");
      out.write("\t\t\t<a href=\"/iweb/role/manage.jsp\" class=\"white\">[");
      out.print( LocaleUtil.getMessage(request, "include_header_rolemng") );
      out.write("]</a>&nbsp;&nbsp;&nbsp;&nbsp;\n");
      out.write("\t\t\t<a href=\"/iweb/manage/index.jsp\" class=\"white\">[");
      out.print( LocaleUtil.getMessage(request, "include_header_mng") );
      out.write("]</a>&nbsp;&nbsp;&nbsp;&nbsp;\n");
      out.write("\t\t\t<br>\n");
      out.write("\t\t\t<a href=\"/iweb/manage/advindex.jsp\" class=\"white\">[");
      out.print( LocaleUtil.getMessage(request,"include_header_advmng") );
      out.write("]</a>&nbsp;&nbsp;&nbsp;\n");
      out.write("\t\t\t<a href=\"/iweb/include/parser.jsp\" class=\"white\">[");
      out.print( LocaleUtil.getMessage(request,"include_header_xml") );
      out.write("]</a>&nbsp;&nbsp;&nbsp;&nbsp;\n");
      out.write("\t\t\t<a href=\"javascript:window.close()\" class=\"white\">[");
      out.print( LocaleUtil.getMessage(request,"include_header_logout") );
      out.write("]</a>\n");
      out.write("\t\t</td>\n");
      out.write("\t</tr>\n");
      out.write("\t<tr class=\"shadow\">\n");
      out.write("\t\t<td height=\"4\" colspan=\"3\"></td>\n");
      out.write("\t</tr>\n");
      out.write("\t<tr>\n");
      out.write("\t\t<td height=\"10\" colspan=\"3\"></td>\n");
      out.write("\t</tr>\n");
      out.write("</table>\n");
      out.write("\n");
      out.write("\t\t<table width=\"100%\" height=\"514\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#FFFFFF\">\n");
      out.write("\n");
      out.write("\t\t\t<tr>\n");
      out.write("\t\t\t\t<td>\n");
      out.write("\n");
      out.write("\t\t\t\t\t<TABLE border=\"1\" cellpadding=\"0\" cellspacing=\"1\" width=\"800px\" align=\"center\" bgcolor=\"#FFFFFF\">\n");
      out.write("\t\t\t\t\t\t<TR>\n");
      out.write("\t\t\t\t\t\t\t<TH>\n");
      out.write("\t\t\t\t\t\t\t\t");
      out.print( LocaleUtil.getMessage(request,"role_fetcom_comtype") );
      out.write("\n");
      out.write("\t\t\t\t\t\t\t</TH>\n");
      out.write("\t\t\t\t\t\t\t<TH>\n");
      out.write("\t\t\t\t\t\t\t\t");
      out.print( LocaleUtil.getMessage(request,"role_fetcom_roleid") );
      out.write("\n");
      out.write("\t\t\t\t\t\t\t</TH>\n");
      out.write("\t\t\t\t\t\t\t<TH>\n");
      out.write("\t\t\t\t\t\t\t\t");
      out.print( LocaleUtil.getMessage(request,"role_fetcom_rolename") );
      out.write("\n");
      out.write("\t\t\t\t\t\t\t</TH>\n");
      out.write("\t\t\t\t\t\t\t<TH>\n");
      out.write("\t\t\t\t\t\t\t\t");
      out.print( LocaleUtil.getMessage(request,"role_fetcom_comroleid") );
      out.write("\n");
      out.write("\t\t\t\t\t\t\t</TH>\n");
      out.write("\t\t\t\t\t\t\t<TH>\n");
      out.write("\t\t\t\t\t\t\t\t");
      out.print( LocaleUtil.getMessage(request,"role_fetcom_comrolename") );
      out.write("\n");
      out.write("\t\t\t\t\t\t\t</TH>\n");
      out.write("\t\t\t\t\t\t\t<TH>\n");
      out.write("\t\t\t\t\t\t\t\t");
      out.print( LocaleUtil.getMessage(request,"role_fetcom_serverid") );
      out.write("\n");
      out.write("\t\t\t\t\t\t\t</TH>\n");
      out.write("\t\t\t\t\t\t\t<TH>\n");
      out.write("\t\t\t\t\t\t\t\t");
      out.print( LocaleUtil.getMessage(request,"role_fetcom_maparea") );
      out.write("\n");
      out.write("\t\t\t\t\t\t\t</TH>\n");
      out.write("\t\t\t\t\t\t\t<TH>\n");
      out.write("\t\t\t\t\t\t\t\t");
      out.print( LocaleUtil.getMessage(request,"role_fetcom_comcontent") );
      out.write("\n");
      out.write("\t\t\t\t\t\t\t</TH>\n");
      out.write("\t\t\t\t\t\t\t<TH>\n");
      out.write("\t\t\t\t\t\t\t\t");
      out.print( LocaleUtil.getMessage(request,"role_fetcom_rever") );
      out.write("\n");
      out.write("\t\t\t\t\t\t\t</TH>\n");
      out.write("\t\t\t\t\t\t</TR>\n");
      out.write("\t\t\t\t\t\t");
//
				//

				Page pag = null;
				String allCount = null;
				String sql = null;
				ResultSet rs = null;
				// ��ȡ����
				String currentPage = request.getParameter("currentPage");
				// ��ѯ����
				allCount = (String) request.getAttribute("allcount");
				if (allCount == null) {
					sql = "select count(*) as count from complains";
					rs = mysql.selectLog(sql);
					if (rs.next()) {
						allCount = rs.getString("count");
						request.setAttribute("allcount", allCount);
					}
				}
				// ʵ�ַ�ҳ��ʾ
				pag = new Page();
				pag.setPage(currentPage, Integer.parseInt(allCount));

				//

				sql = "select * from complains order by roleid asc limit "
						+ (Integer.parseInt(pag.getCurrentNumStart()) - 1)
						+ ",10";

				rs = mysql.selectLog(sql);
				while (rs.next()) {

					
      out.write("\n");
      out.write("\t\t\t\t\t\t<TR>\n");
      out.write("\t\t\t\t\t\t\t<TD>\n");
      out.write("\t\t\t\t\t\t\t\t");
      out.print(rs.getString("comtype"));
      out.write("\n");
      out.write("\t\t\t\t\t\t\t\t&nbsp;\n");
      out.write("\t\t\t\t\t\t\t</TD>\n");
      out.write("\t\t\t\t\t\t\t<TD>\n");
      out.write("\t\t\t\t\t\t\t\t");
      out.print(rs.getString("roleid"));
      out.write("\n");
      out.write("\t\t\t\t\t\t\t\t&nbsp;\n");
      out.write("\t\t\t\t\t\t\t</TD>\n");
      out.write("\t\t\t\t\t\t\t<TD>\n");
      out.write("\t\t\t\t\t\t\t\t");
      out.print(rs.getString("rolename"));
      out.write("\n");
      out.write("\t\t\t\t\t\t\t\t&nbsp;\n");
      out.write("\t\t\t\t\t\t\t</TD>\n");
      out.write("\t\t\t\t\t\t\t<TD>\n");
      out.write("\t\t\t\t\t\t\t\t");
      out.print(rs.getString("comroleid"));
      out.write("\n");
      out.write("\t\t\t\t\t\t\t\t&nbsp;\n");
      out.write("\t\t\t\t\t\t\t</TD>\n");
      out.write("\t\t\t\t\t\t\t<TD>\n");
      out.write("\t\t\t\t\t\t\t\t");
      out.print(rs.getString("comrolename"));
      out.write("\n");
      out.write("\t\t\t\t\t\t\t\t&nbsp;\n");
      out.write("\t\t\t\t\t\t\t</TD>\n");
      out.write("\t\t\t\t\t\t\t<TD>\n");
      out.write("\t\t\t\t\t\t\t\t");
      out.print(rs.getString("zoneid"));
      out.write("\n");
      out.write("\t\t\t\t\t\t\t\t&nbsp;\n");
      out.write("\t\t\t\t\t\t\t</TD>\n");
      out.write("\t\t\t\t\t\t\t<TD>\n");
      out.write("\t\t\t\t\t\t\t\t");
      out.print(rs.getString("mapzone"));
      out.write("\n");
      out.write("\t\t\t\t\t\t\t\t&nbsp;\n");
      out.write("\t\t\t\t\t\t\t</TD>\n");
      out.write("\t\t\t\t\t\t\t<TD>\n");
      out.write("\t\t\t\t\t\t\t\t");
      out.print(rs.getString("content"));
      out.write("\n");
      out.write("\t\t\t\t\t\t\t\t&nbsp;\n");
      out.write("\t\t\t\t\t\t\t</TD>\n");
      out.write("\t\t\t\t\t\t\t<TD align=\"center\">\n");
      out.write("\t\t\t\t\t\t\t\t<a href=\"javascript:reply(");
      out.print(rs.getString("roleid"));
      out.write(")\"> ");
      out.print( LocaleUtil.getMessage(request,"role_fetcom_rever") );
      out.write(" </a>\n");
      out.write("\t\t\t\t\t\t\t</TD>\n");
      out.write("\t\t\t\t\t\t</TR>\n");
      out.write("\t\t\t\t\t\t");
}
				rs.close();
				mysql.close();

				
      out.write("\n");
      out.write("\t\t\t\t\t</TABLE>\n");
      out.write("\n");
      out.write("\t\t\t\t</td>\n");
      out.write("\t\t\t</tr>\n");
      out.write("\n");
      out.write("\t\t\t<tr>\n");
      out.write("\t\t\t\t<td>\n");
      out.write("\n");
      out.write("\t\t\t\t\t<table border=\"0\" align=\"right\">\n");
      out.write("\t\t\t\t\t\t<tr valign=\"bottom\">\n");
      out.write("\t\t\t\t\t\t\t<td align=\"right\">\n");
      out.write("\n");
      out.write("\t\t\t\t\t\t\t\t");
if (pag.getShow_pre_flag().equals("yes")) {
      out.write("\n");
      out.write("\t\t\t\t\t\t\t\t<a href=\"javascript:turnPage('");
      out.print(pag.getCurrentPage());
      out.write("','first')\">");
      out.print( LocaleUtil.getMessage(request,"role_fetcom_first") );
      out.write("�</a> <a href=\"javascript:turnPage('");
      out.print(pag.getCurrentPage());
      out.write("','pre')\"");
      out.print( LocaleUtil.getMessage(request,"role_fetcom_pre") );
      out.write("</a>\n");
      out.write("\t\t\t\t\t\t\t\t");
} else {
      out.write("\n");
      out.write("\t\t\t\t\t\t\t\t<span>");
      out.print( LocaleUtil.getMessage(request,"role_fetcom_firstpre") );
      out.write("</span>\n");
      out.write("\t\t\t\t\t\t\t\t");
}
      out.write("\n");
      out.write("\n");
      out.write("\t\t\t\t\t\t\t\t");
if (pag.getShow_next_flag().equals("yes")) {
      out.write("\n");
      out.write("\t\t\t\t\t\t\t\t<a href=\"javascript:turnPage('");
      out.print(pag.getCurrentPage());
      out.write("','next')\">");
      out.print( LocaleUtil.getMessage(request,"role_fetcom_next") );
      out.write("�</a> <a href=\"javascript:turnPage('");
      out.print(pag.getAllPage());
      out.write("','last')\" ");
      out.print( LocaleUtil.getMessage(request,"role_fetcom_last") );
      out.write("</a>\n");
      out.write("\t\t\t\t\t\t\t\t");
} else {
      out.write("\n");
      out.write("\t\t\t\t\t\t\t\t<span>");
      out.print( LocaleUtil.getMessage(request,"role_fetcom_nestlast") );
      out.write("</span>\n");
      out.write("\t\t\t\t\t\t\t\t");
}
      out.write("\n");
      out.write("\n");
      out.write("\t\t\t\t\t\t\t</td>\n");
      out.write("\t\t\t\t\t\t\t<td width=\"10\">\n");
      out.write("\t\t\t\t\t\t\t\t&nbsp;\n");
      out.write("\t\t\t\t\t\t\t</td>\n");
      out.write("\t\t\t\t\t\t\t<td>\n");
      out.write("\t\t\t\t\t\t\t\t");
      out.print( LocaleUtil.getMessage(request,"role_fetcom_total") );
      out.write("<font color=\"blue\">");
      out.print(pag.getAllPage());
      out.write("</font> ");
      out.print( LocaleUtil.getMessage(request,"role_fetcom_page") );
      out.write(" \n");
      out.write("\t\t\t\t\t\t\t\t<select id=\"turn\" onchange=\"javascript:gotoPage()\">\n");
      out.write("\t\t\t\t\t\t\t\t\t");
for (int k = 1; k <= Integer.parseInt(pag.getAllPage()); k++) {
      out.write("\n");
      out.write("\t\t\t\t\t\t\t\t\t<OPTION value=\"");
      out.print(k);
      out.write('"');
      out.write(' ');
if(pag.getCurrentPage().equals(k+"")){
      out.write(" selected ");
}
      out.write(">\n");
      out.write("\t\t\t\t\t\t\t\t\t\t");
      out.print(k);
      out.write("\n");
      out.write("\t\t\t\t\t\t\t\t\t</OPTION>\n");
      out.write("\t\t\t\t\t\t\t\t\t");
}
      out.write("\n");
      out.write("\t\t\t\t\t\t\t\t</select>\n");
      out.write("\t\t\t\t\t\t\t\tҳ\n");
      out.write("\t\t\t\t\t\t\t</td>\n");
      out.write("\t\t\t\t\t\t</tr>\n");
      out.write("\t\t\t\t\t</table>\n");
      out.write("\n");
      out.write("\t\t\t\t</td>\n");
      out.write("\t\t\t</tr>\n");
      out.write("\n");
      out.write("\n");
      out.write("\t\t\t<tr>\n");
      out.write("\t\t\t\t<td id=\"reply\" style=\"display:none;\">\n");
      out.write("\n");
      out.write("\t\t\t\t\t<FORM name=\"form2\" action=\"fetchcomplains.jsp\" method=\"post\">\n");
      out.write("\t\t\t\t\t\t<TABLE align=\"center\" border=\"1\" cellpadding=\"1\" cellspacing=\"1\" width=\"400px\">\n");
      out.write("\t\t\t\t\t\t\t<CAPTION>\n");
      out.write("\t\t\t\t\t\t\t\t");
      out.print( LocaleUtil.getMessage(request,"role_fetcom_revercom") );
      out.write("\n");
      out.write("\t\t\t\t\t\t\t</CAPTION>\n");
      out.write("\t\t\t\t\t\t\t<TR>\n");
      out.write("\t\t\t\t\t\t\t\t<TD>\n");
      out.write("\t\t\t\t\t\t\t\t\t");
      out.print( LocaleUtil.getMessage(request,"role_fetcom_roleid") );
      out.write("\n");
      out.write("\t\t\t\t\t\t\t\t</TD>\n");
      out.write("\t\t\t\t\t\t\t\t<TD>\n");
      out.write("\t\t\t\t\t\t\t\t\t<input type=\"text\" name=\"roleid\" value=\"\" size=\"20\" maxlength=\"20\">\n");
      out.write("\t\t\t\t\t\t\t\t</TD>\n");
      out.write("\t\t\t\t\t\t\t</TR>\n");
      out.write("\t\t\t\t\t\t\t<TR>\n");
      out.write("\t\t\t\t\t\t\t\t<TD>\n");
      out.write("\t\t\t\t\t\t\t\t\t");
      out.print( LocaleUtil.getMessage(request,"role_fetcom_gmroleid") );
      out.write("\n");
      out.write("\t\t\t\t\t\t\t\t</TD>\n");
      out.write("\t\t\t\t\t\t\t\t<TD>\n");
      out.write("\t\t\t\t\t\t\t\t\t<input type=\"text\" name=\"gmroleid\" size=\"20\" maxlength=\"20\">\n");
      out.write("\t\t\t\t\t\t\t\t</TD>\n");
      out.write("\t\t\t\t\t\t\t</TR>\n");
      out.write("\t\t\t\t\t\t\t<TR>\n");
      out.write("\t\t\t\t\t\t\t\t<TD>\n");
      out.write("\t\t\t\t\t\t\t\t\t");
      out.print( LocaleUtil.getMessage(request,"role_fetcom_gmrolename") );
      out.write("\n");
      out.write("\t\t\t\t\t\t\t\t</TD>\n");
      out.write("\t\t\t\t\t\t\t\t<TD>\n");
      out.write("\t\t\t\t\t\t\t\t\t<input type=\"text\" name=\"gmrolename\" size=\"20\" maxlength=\"20\">\n");
      out.write("\t\t\t\t\t\t\t\t</TD>\n");
      out.write("\t\t\t\t\t\t\t</TR>\n");
      out.write("\t\t\t\t\t\t\t<TR>\n");
      out.write("\t\t\t\t\t\t\t\t<TD>\n");
      out.write("\t\t\t\t\t\t\t\t\t");
      out.print( LocaleUtil.getMessage(request,"role_fetcom_content") );
      out.write("\n");
      out.write("\t\t\t\t\t\t\t\t</TD>\n");
      out.write("\t\t\t\t\t\t\t\t<TD>\n");
      out.write("\t\t\t\t\t\t\t\t\t<textarea name=\"content\" cols=\"20\" rows=\"5\"></textarea>\n");
      out.write("\t\t\t\t\t\t\t\t\t&nbsp;&nbsp;\n");
      out.write("\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"flag\" value=\"true\">\n");
      out.write("\t\t\t\t\t\t\t\t\t<input type=\"button\" value=\"");
      out.print( LocaleUtil.getMessage(request,"role_fetcom_rever"));
      out.write("\" onclick=\"checknum()\">\n");
      out.write("\t\t\t\t\t\t\t\t</TD>\n");
      out.write("\t\t\t\t\t\t\t</TR>\n");
      out.write("\t\t\t\t\t\t</TABLE>\n");
      out.write("\t\t\t\t\t</FORM>\n");
      out.write("\n");
      out.write("\t\t\t\t</td>\n");
      out.write("\t\t\t</tr>\n");
      out.write("\n");
      out.write("\n");
      out.write("\t\t</table>\n");
      out.write("\t\t");
      out.write("\n");
      out.write("<table width=\"100%\"  border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#FFFFFF\">\n");
      out.write("  <tr>\n");
      out.write("    <td height=\"10\"></td>\n");
      out.write("  </tr>\n");
      out.write("  <tr>\n");
      out.write("    <td align=\"right\" class=\"topline\"></td>\n");
      out.write("  </tr>\n");
      out.write("</table>\n");
      out.write("\n");
      out.write("\n");
      out.write("\t\t<script language=\"javascript\">\n");
      out.write("\t\t<!-- \n");
      out.write("\t\t\n");
      out.write("\t\tfunction turnPage(currentPage,dir)\n");
      out.write(" {\n");
      out.write("    if(dir==\"first\"){\n");
      out.write("        currentPage=\"1\";\n");
      out.write("    }else if(dir==\"next\"){\n");
      out.write("        currentPage=parseInt(currentPage)+1;\n");
      out.write("    }else if(dir==\"pre\"){\n");
      out.write("        currentPage=parseInt(currentPage)-1;\n");
      out.write("    }else{\n");
      out.write("        currentPage=currentPage;\n");
      out.write("    }\n");
      out.write("    location.href=\"fetchcomplains.jsp?currentPage=\"+currentPage;\n");
      out.write("}\n");
      out.write("\t\n");
      out.write("\t\n");
      out.write("\tfunction gotoPage(){\n");
      out.write("    var c=document.getElementById(\"turn\");\n");
      out.write("    location.href=\"fetchcomplains.jsp?currentPage=\"+c.value;\n");
      out.write("    \n");
      out.write("}\t\n");
      out.write("\t\t\n");
      out.write("\t\t-->\n");
      out.write("\n");
      out.write("\t\t</script>\n");
      out.write("\n");
      out.write("\t\t<script language=\"javascript\">\n");
      out.write("<!-- \n");
      out.write("\n");
      out.write("      function reply(id){    \n");
      out.write("        document.getElementById(\"reply\").style.display=\"\";\n");
      out.write("        document.all(\"roleid\").focus();\n");
      out.write("        document.all(\"roleid\").value=id;      \n");
      out.write("      }\n");
      out.write("\n");
      out.write("\n");
      out.write("       function checknum(){ \n");
      out.write("        var p=document.all(\"roleid\").value;      \n");
      out.write("        if (p == \"\") {\n");
      out.write("\t    alter( LocaleUtil.getMessage(request,\"role_fetcom_alterroleid\") );\n");
      out.write("            return false;\n");
      out.write("             \n");
      out.write("        } \n");
      out.write("        var l = p.length; \n");
      out.write("        var count=0; \n");
      out.write("        for(var i=0; i<l; i++){ \n");
      out.write("            var digit = p.charAt(i); \n");
      out.write("            if(digit < \"0\" || digit > \"9\"){\n");
      out.write("\t       alter( LocaleUtil.getMessage(request,\"role_fetcom_alterroleidtype\") );\n");
      out.write("               return false;\n");
      out.write("                \n");
      out.write("            } \n");
      out.write("        } \n");
      out.write("        \n");
      out.write("        \n");
      out.write("        var p2=document.all(\"gmroleid\").value;      \n");
      out.write("        if (p2 == \"\") {\n");
      out.write("\t    alter( LocaleUtil.getMessage(request,\"role_fetcom_altergmid\") );\n");
      out.write("            return false;\n");
      out.write("             \n");
      out.write("        } \n");
      out.write("        var l2 = p2.length; \n");
      out.write("        var count2=0; \n");
      out.write("        for(var i2=0; i2<l2; i2++){ \n");
      out.write("            var digit2 = p2.charAt(i2); \n");
      out.write("            if(digit2 < \"0\" || digit2 > \"9\"){\n");
      out.write("\t       alter( LocaleUtil.getMessage(request,\"role_fetcom_altergmidtype\") );\n");
      out.write("               return false;\n");
      out.write("               \n");
      out.write("            } \n");
      out.write("        } \n");
      out.write("             \n");
      out.write("        \n");
      out.write("       document.forms[\"form2\"].submit(); \n");
      out.write("      } \n");
      out.write("\n");
      out.write("    \n");
      out.write("-->\n");
      out.write("       </script>\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\t\t");
} catch (Exception e) {
				e.printStackTrace();
				out.println(e.getMessage());
			}
      out.write("\n");
      out.write("\t</body>\n");
      out.write("</html>\n");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try { out.clearBuffer(); } catch (java.io.IOException e) {}
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}
