/*
 * Generated by the Jasper component of Apache Tomcat
 * Version: Apache Tomcat/7.0.19
 * Generated at: 2014-03-11 08:21:13 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.manage;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import protocol.*;
import com.goldhuman.auth.*;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import com.goldhuman.util.LocaleUtil;
import com.goldhuman.util.*;

public final class index_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("/manage/../include/foot.jsp", Long.valueOf(1394524943000L));
    _jspx_dependants.put("/include/header.jsp", Long.valueOf(1394524943000L));
  }

  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");

String strMax = new String("-1");
String strFakeMax = new String("-1");
String strCur = new String("-1");
String strNewMax = new String("5000");
String strNewFakeMax = new String("5000");
{
	Integer[] curmax = new Integer[3];
	if( !DeliveryDB.GetMaxOnlineNum( curmax ) )
		LogFactory.getLog("index.jsp").info("GetMaxOnlineNum error." );
	if( null == curmax[0] )	curmax[0] = new Integer(-1);
	if( null == curmax[1] )	curmax[1] = new Integer(-1);
	if( null == curmax[2] )	curmax[2] = new Integer(-1);
	if( -1 != curmax[0].intValue() ) strNewMax=(new Integer(curmax[0].intValue())).toString();
	if( -1 != curmax[1].intValue() ) strNewFakeMax=(new Integer(curmax[1].intValue())).toString();
	strMax = curmax[0].toString();
	strFakeMax = curmax[1].toString();
	strCur = curmax[2].toString();
}

String strDoubleExp = LocaleUtil.getMessage(request,"manage_index_unknow");
{
	Double v = new com.goldhuman.service.GMServiceImpl().getw2iexperience(new com.goldhuman.service.interfaces.LogInfo());
	if (v != null) {
		strDoubleExp = v.toString();
	}
	/*
	if (strDoubleExp.equals("1") || strDoubleExp.equals("1.0")) {
		strDoubleExp =  "1==1?¡À?";
	}
	*/
	/*
	byte status = DeliveryDB.GMGetDoubleExp();
	if( (byte)1 == status )			strDoubleExp = LocaleUtil.getMessage(request,"manage_index_yes");
	else if( (byte)0 == status )	strDoubleExp = LocaleUtil.getMessage(request,"manage_index_no");
	if( (byte)1 == status )			strDoubleExp_check = "";
	*/
}

String strLambda = "-1";
{
	int lambda = DeliveryDB.GMGetLambda();
	strLambda = (new Integer(lambda)).toString();
}

String strNoTrade_check = "checked=\"checked\"";
String strNoTrade = LocaleUtil.getMessage(request,"manage_index_unknow");
{
	byte status = DeliveryDB.GMGetNoTrade();
	if( (byte)1 == status )			strNoTrade = LocaleUtil.getMessage(request,"manage_index_yes");
	else if( (byte)0 == status )	strNoTrade = LocaleUtil.getMessage(request,"manage_index_no");
	if( (byte)1 == status )			strNoTrade_check = "";
}

String strNoAuction_check = "checked=\"checked\"";
String strNoAuction = LocaleUtil.getMessage(request,"manage_index_unknow");
{
	byte status = DeliveryDB.GMGetNoAuction();
	if( (byte)1 == status )			strNoAuction = LocaleUtil.getMessage(request,"manage_index_yes");
	else if( (byte)0 == status )	strNoAuction = LocaleUtil.getMessage(request,"manage_index_no");
	if( (byte)1 == status )			strNoAuction_check = "";
}

String strNoMail_check = "checked=\"checked\"";
String strNoMail = LocaleUtil.getMessage(request,"manage_index_unknow");
{
	byte status = DeliveryDB.GMGetNoMail();
	if( (byte)1 == status )			strNoMail = LocaleUtil.getMessage(request,"manage_index_yes");
	else if( (byte)0 == status )	strNoMail = LocaleUtil.getMessage(request,"manage_index_no");
	if( (byte)1 == status )			strNoMail_check = "";
}

String strNoFaction_check = "checked=\"checked\"";
String strNoFaction = LocaleUtil.getMessage(request,"manage_index_unknow");
{
	byte status = DeliveryDB.GMGetNoFaction();
	if( (byte)1 == status )			strNoFaction = LocaleUtil.getMessage(request,"manage_index_yes");
	else if( (byte)0 == status )	strNoFaction = LocaleUtil.getMessage(request,"manage_index_no");
	if( (byte)1 == status )			strNoFaction_check = "";
}

String strDoubleMoney_check = "checked=\"checked\"";
String strDoubleMoney = LocaleUtil.getMessage(request,"manage_index_unknow");
{
	byte status = DeliveryDB.GMGetDoubleMoney();
	if( (byte)1 == status )			strDoubleMoney = LocaleUtil.getMessage(request,"manage_index_yes");
	else if( (byte)0 == status )	strDoubleMoney = LocaleUtil.getMessage(request,"manage_index_no");
	if( (byte)1 == status )			strDoubleMoney_check = "";
}

String strDoubleObject_check = "checked=\"checked\"";
String strDoubleObject = LocaleUtil.getMessage(request,"manage_index_unknow");
{
	byte status = DeliveryDB.GMGetDoubleObject();
	if( (byte)1 == status )			strDoubleObject = LocaleUtil.getMessage(request,"manage_index_yes");
	else if( (byte)0 == status )	strDoubleObject = LocaleUtil.getMessage(request,"manage_index_no");
	if( (byte)1 == status )			strDoubleObject_check = "";
}

String strDoubleSP_check = "checked=\"checked\"";
String strDoubleSP = LocaleUtil.getMessage(request,"manage_index_unknow");
{
	byte status = DeliveryDB.GMGetDoubleSP();
	if( (byte)1 == status )			strDoubleSP = LocaleUtil.getMessage(request,"manage_index_yes");
	else if( (byte)0 == status )	strDoubleSP = LocaleUtil.getMessage(request,"manage_index_no");
	if( (byte)1 == status )			strDoubleSP_check = "";
}

String strNoSellPoint_check = "checked=\"checked\"";
String strNoSellPoint = LocaleUtil.getMessage(request,"manage_index_unknow");
{
	byte status = DeliveryDB.GMGetNoSellPoint();
	if( (byte)1 == status )			strNoSellPoint = LocaleUtil.getMessage(request,"manage_index_yes");
	else if( (byte)0 == status )	strNoSellPoint = LocaleUtil.getMessage(request,"manage_index_no");
	if( (byte)1 == status )			strNoSellPoint_check = "";
}

      out.write("\n");
      out.write("<html>\n");
      out.write("<head>\n");
      out.write("<link href=\"../include/style.css\" rel=\"stylesheet\" type=\"text/css\">\n");
      out.write("<title>Управление сервером</title>\n");
      out.write("<script language=javascript>\n");
      out.write("function f_doubleexp_submit()\n");
      out.write("{                                                                                             \n");
      out.write("\t        document.form_doubleexp.doubleexp.value = document.form_doubleexp.expselect.options[document.form_doubleexp.expselect.selectedIndex].value;\n");
      out.write("\t\tif (document.form_doubleexp.doubleexp.value == \"\") { \n");
      out.write("\t\t\talert(\"Please select experience rate!\");\n");
      out.write("\t\t\treturn false;\n");
      out.write("\t\t}       \n");
      out.write("\t\tdocument.form_doubleexp.submit();\n");
      out.write("}       \n");
      out.write("function onsetmaxonlinenum()\n");
      out.write("{\n");
      out.write("\tif( document.formsetmaxonlinenum.fakemaxnum > document.formsetmaxonlinenum.maxnum.value )\n");
      out.write("\t{\n");
      out.write("\t\talert(LocaleUtil.getMessage(request,\"manage_index_alert1\"));\n");
      out.write("\t}\n");
      out.write("\treturn true;\n");
      out.write("}\n");
      out.write("</script>\n");
      out.write("</head>\n");
      out.write("<body style=\"background-color:#ffffff;\">\n");
      out.write("\n");
      out.write("\n");
      out.write("<title>IWEB 1.4.5</title>\n");
      out.write("<LINK href=\"/iweb/css/style.css\" rel=stylesheet type=text/css>\n");
      out.write("<meta http-equiv=\"Pragma\" content=\"no-cache\">\n");
      out.write("<meta http-equiv=\"cache-control\" content=\"no-cache\">\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 width=\"30\" height=\"70\" bgcolor=\"#007fff\">\n");
      out.write("\t\t</td>\n");
      out.write("\t\t</td>\n");
      out.write("\t\t<td width=\"600\" class=\"navColor align=\"center\" >\n");
      out.write("\t\t<a href=\"/iweb/index.jsp\" class=\"white\">[Аккаунты]</a> | \n");
      out.write("\t\t<a href=\"/iweb/role/index.jsp\" class=\"white\">[Редактирование XML]</a>| \n");
      out.write("\t\t<a href=\"/iweb/role/manage.jsp\" class=\"white\">[Персонажи]</a> | \n");
      out.write("\t\t<a href=\"/iweb/manage/index.jsp\" class=\"white\">[Сервер]</a>\t| \n");
      out.write("\t\t<a href=\"/iweb/manage/instance.jsp\" class=\"white\">[Локации и службы]</a> | \n");
      out.write("\t\t<a href=\"/iweb/manage/advindex.jsp\" class=\"white\">[Перезагрузка]</a>\n");
      out.write("\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>");
      out.write("\n");
      out.write("<div align=\"center\"><font size=\"6\">Управление сервером</font>\n");
      out.write("<table width=\"100%\" height=\"350\"  border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#FFFFFF\"><tr><td>\n");
      out.write("\n");
      out.write("&nbsp;<br>\n");
      out.write("<table border cellpadding=2 align=\"center\" width=600>\n");
      out.write("<tr><th align=left width=40%>Операция</th><th align=left>Описание</th></tr>\n");
      out.write("\n");
      out.write("<tr><td>\n");
      out.write("<form name=\"formsetmaxonlinenum\" action=\"setmaxonlinenum.jsp\" method=\"post\">\n");
      out.write("&nbsp;Установить предел онлайна&nbsp;&nbsp;<input type=\"text\" name=\"maxnum\" value=\"");
      out.print(strNewMax);
      out.write("\" size=\"7\" maxlength=\"6\">&nbsp;<br>&nbsp;Установить виртуальный предел&nbsp;&nbsp;<input type=\"text\" name=\"fakemaxnum\" value=\"");
      out.print(strNewFakeMax);
      out.write("\" size=\"7\" maxlength=\"6\"><input type=\"submit\" value=\"ПОДТВЕРЖДАЮ\"></form>\n");
      out.write("</td><td>Установить максимальное количество аккаунтов, которые могут одновременно играть на сервере<br>Тек. онлайн: <font style=\"color:green;\">&nbsp;");
      out.print(strCur);
      out.write("</font><br> Возможный онлайн:&nbsp;<font style=\"color:red;\">");
      out.print(strMax);
      out.write('/');
      out.print(strFakeMax);
      out.write("</font>&nbsp;</td></tr>\n");
      out.write("\n");
      out.write("\n");
      out.write("<tr><td>\n");
      out.write("<form action=\"setdoubleexp.jsp\" name=\"form_doubleexp\" method=\"post\">\n");
      out.write("<input type=\"hidden\" name=\"doubleexp\" value=\"\"/>\n");
      out.write("<label>Установить множитель опыта:\n");
      out.write("\t<select name=\"expselect\">\n");
      out.write("\t\t<option value=\"1\">1</option>\n");
      out.write("\t\t<option value=\"1.5\">1.5</option>\n");
      out.write("\t\t<option value=\"2\">2</option>\n");
      out.write("\t\t<option value=\"2.5\">2.5</option>\n");
      out.write("\t\t<option value=\"3\">3</option>\n");
      out.write("\t\t<option value=\"3\">3.5</option>\n");
      out.write("\t\t<option value=\"4\">4</option>\n");
      out.write("\t\t<option value=\"4.5\">4.5</option>\n");
      out.write("\t\t<option value=\"5\">5</option>\n");
      out.write("\t\t<option value=\"5.5\">5.5</option>\n");
      out.write("\t\t<option value=\"6\">6</option>\n");
      out.write("\t\t<option value=\"6.5\">6.5</option>\n");
      out.write("\t\t<option value=\"7\">7</option>\n");
      out.write("\t\t<option value=\"7.5\">7.5</option>\n");
      out.write("\t\t<option value=\"8\">8</option>\n");
      out.write("\t\t<option value=\"8.5\">8.5</option>\n");
      out.write("\t\t<option value=\"9\">9</option>\n");
      out.write("\t\t<option value=\"9.5\">9.5</option>\n");
      out.write("\t\t<option value=\"10\">10</option>\n");
      out.write("\t</select>\n");
      out.write("</label>\n");
      out.write("<input type=\"button\" name=\"doubleexp_button\" value=\"ПОДТВЕРЖДАЮ\" onclick=\"javascript:f_doubleexp_submit()\">\n");
      out.write("</form>\n");
      out.write("</td><td>Устанавливает праздничный множитель опыта на указанное значение до следующей перезагрузки сервера<br>Текущее значение:&nbsp;<font style=\"color:green;\">");
      out.print(strDoubleExp);
      out.write("</font></td></tr>\n");
      out.write("\n");
      out.write("<tr><td>\n");
      out.write("<form action=\"setnotrade.jsp\" method=\"post\">\n");
      out.write("<input type=\"checkbox\" name=\"notrade\" value=\"true\" ");
      out.print(strNoTrade_check);
      out.write(" >&nbsp;Запрет на торговлю между игроками&nbsp;&nbsp;<input type=\"submit\" value=\"Сменить\"></form>\n");
      out.write("</td><td>&nbsp;Текущий статус:&nbsp;<font style=\"color:green;\">");
      out.print(strNoTrade);
      out.write("</font>&nbsp;</td></tr>\n");
      out.write("\n");
      out.write("<tr><td>\n");
      out.write("<form action=\"setnoauction.jsp\" method=\"post\">\n");
      out.write("<input type=\"checkbox\" name=\"noauction\" value=\"true\" ");
      out.print(strNoAuction_check);
      out.write(" >&nbsp;Запрет на все операции аукциона&nbsp;&nbsp;<input type=\"submit\" value=\"Сменить\"></form>\n");
      out.write("</td><td>&nbsp;Текущий статус:&nbsp;<font style=\"color:green;\">");
      out.print(strNoAuction);
      out.write("</font>&nbsp;</td></tr>\n");
      out.write("\n");
      out.write("<tr><td>\n");
      out.write("<form action=\"setnomail.jsp\" method=\"post\">\n");
      out.write("<input type=\"checkbox\" name=\"nomail\" value=\"true\" ");
      out.print(strNoMail_check);
      out.write(" >&nbsp;Запрет на все почтовые операции&nbsp;&nbsp;<input type=\"submit\" value=\"Сменить\"></form>\n");
      out.write("</td><td>&nbsp;Текущий статус:&nbsp;<font style=\"color:green;\">");
      out.print(strNoMail);
      out.write("</font>&nbsp;</td></tr>\n");
      out.write("\n");
      out.write("<tr><td>\n");
      out.write("<form action=\"setnofaction.jsp\" method=\"post\">\n");
      out.write("<input type=\"checkbox\" name=\"nofaction\" value=\"true\" ");
      out.print(strNoFaction_check);
      out.write(" >&nbsp;Запрет на все операции с кланами&nbsp;&nbsp;<input type=\"submit\" value=\"Сменить\"></form>\n");
      out.write("</td><td>&nbsp;Текущий статус:&nbsp;<font style=\"color:green;\">");
      out.print(strNoFaction);
      out.write("</font>&nbsp;</td></tr>\n");
      out.write("\n");
      out.write("<tr><td>\n");
      out.write("<form action=\"setdoublemoney.jsp\" method=\"post\">\n");
      out.write("<input type=\"checkbox\" name=\"doublemoney\" value=\"true\" ");
      out.print(strDoubleMoney_check);
      out.write(" >&nbsp;Удвоенный дроп монет&nbsp;&nbsp;<input type=\"submit\" value=\"Сменить\"></form>\n");
      out.write("</td><td>&nbsp;Текущий статус:&nbsp;<font style=\"color:green;\">");
      out.print(strDoubleMoney);
      out.write("</font>&nbsp;</td></tr>\n");
      out.write("\n");
      out.write("<tr><td>\n");
      out.write("<form action=\"setdoubleobject.jsp\" method=\"post\">\n");
      out.write("<input type=\"checkbox\" name=\"doubleobject\" value=\"true\" ");
      out.print(strDoubleObject_check);
      out.write(" >&nbsp;Удвоенный дроп предметов&nbsp;&nbsp;<input type=\"submit\" value=\"Сменить\"></form>\n");
      out.write("</td><td>&nbsp;Текущий статус:&nbsp;<font style=\"color:green;\">");
      out.print(strDoubleObject);
      out.write("</font>&nbsp;</td></tr>\n");
      out.write("\n");
      out.write("<tr><td>\n");
      out.write("<form action=\"setdoublesp.jsp\" method=\"post\">\n");
      out.write("<input type=\"checkbox\" name=\"doublesp\" value=\"true\" ");
      out.print(strDoubleSP_check);
      out.write(" >&nbsp;Удвоенный дух&nbsp;&nbsp;<input type=\"submit\" value=\"Сменить\"></form>\n");
      out.write("</td><td>&nbsp;Текущий статус:&nbsp;<font style=\"color:green;\">");
      out.print(strDoubleSP);
      out.write("</font>&nbsp;</td></tr>\n");
      out.write("\n");
      out.write("<tr><td>\n");
      out.write("<form action=\"shutdowngamefriendly.jsp\" method=\"post\">\n");
      out.write("<font style=\"color:red;\">&nbsp;Выключение сервера.</font><br>&nbsp;Отсчет до выключения:&nbsp;<input type=\"text\" name=\"waitsecs\" value=\"300\" size=\"7\" maxlength=\"4\"><input type=\"submit\" value=\"ПОДТВЕРЖДАЮ\"></form>\n");
      out.write("</td><td>Выключить сервер с сохранением всех данных и предупреждением игроков.&nbsp;</td></tr>\n");
      out.write("\n");
      out.write("<tr><td>\n");
      out.write("<form action=\"restartgamefriendly.jsp\" method=\"post\">\n");
      out.write("<font style=\"color:orange;\">&nbsp;Перезагрузка сервера.</font><br>&nbsp;Отсчет до перезагрузки:&nbsp;<input type=\"text\" name=\"waitsecs\" value=\"300\" size=\"7\" maxlength=\"4\"><input type=\"submit\" value=\"ПОДТВЕРЖДАЮ\"></form>\n");
      out.write("</td><td>Перезагрузить сервер с сохранением всех данных и предупреждением игроков. Операция не будет выполнена, если сервер уже выключен.&nbsp;</td></tr>\n");
      out.write("\n");
      out.write("<tr><td>\n");
      out.write("<form action=\"broadcast.jsp\" method=\"post\">\n");
      out.write("<font style=\"color:red;\">&nbsp;Отправка системного сообщения:</font><br><input type=\"text\" name=\"msg\" value=\"\" size=\"45\" maxlength=\"200\"><br><input type=\"submit\" value=\"Отправить\"></form>\n");
      out.write("</td><td>Отправляет системное сообщение в игровой чат.&nbsp;</td></tr>\n");
      out.write("\n");
      out.write("<tr><td>\n");
      out.write("<form action=\"worldtag.jsp\" method=\"post\">\n");
      out.write("ID локации:&nbsp;<input type=\"text\" name=\"worldtag\" value=\"\" size=\"7\" maxlength=\"10\"><br>\n");
      out.write("Строка команды:&nbsp;<br><input type=\"text\" name=\"command\" value=\"\" size=\"45\" maxlength=\"200\"><br><input type=\"submit\" value=\"Отправить\"></form>\n");
      out.write("</td><td>Выполняет команду в определенной локации&nbsp;</td></tr>\n");
      out.write("\n");
      out.write("\n");
      out.write("</table>\n");
      out.write("&nbsp;<br>\n");
      out.write("&nbsp;<br>\n");
      out.write("\n");
      out.write("</td></tr></table>\n");
      out.write("</div>\n");
      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("</body>\n");
      out.write("</html>\n");
      out.write("\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);
    }
  }
}
