package $proteus.oa;

import net.cyan.proteus.*;
import net.cyan.arachne.*;
import javax.servlet.*;
import javax.servlet.http.*;
import net.cyan.proteus.base.*;
import net.cyan.commons.util.*;

public class index implements TemplateProcessor
{

    public void process(TemplateContext context)throws Exception
    {
        TemplateWriter writer = context;
RequestContext requestContext=RequestContext.getContext();
ServletConfig config=requestContext.getServletConfig();
ServletContext application=requestContext.getServletContext();
HttpServletRequest request=requestContext.getRequest();
HttpServletResponse response=requestContext.getResponse();
HttpSession session=request.getSession(false);
java.io.PrintWriter out=context.get("out$");
TagContext tagContext = TagContext.getTagContext(context);
TagInfo tagInfo;
tagInfo = new TagInfo();
tagInfo.setTagName("html");
tagInfo.setLine(1);
tagInfo.setHasEndTag(true);
tagInfo.setHasEndSymbol(false);
TagProcessor proteusForwardProcessor$HtmlTagProcessor$0 = new net.cyan.arachne.result.ProteusForwardProcessor.HtmlTagProcessor();
if(tagContext.doStart(proteusForwardProcessor$HtmlTagProcessor$0,tagInfo))
{
do
{
if(tagContext.doBefore())
{
writer.write("\r");
tagInfo = new TagInfo();
tagInfo.setTagName("head");
tagInfo.setLine(2);
tagInfo.setHasEndTag(true);
tagInfo.setHasEndSymbol(false);
tagInfo.setTagBefore(true);
TagProcessor proteusForwardProcessor$HeadTagProcessor$0 = new net.cyan.arachne.result.ProteusForwardProcessor.HeadTagProcessor();
if(tagContext.doStart(proteusForwardProcessor$HeadTagProcessor$0,tagInfo))
{
do
{
if(tagContext.doBefore())
{
writer.write("\r");
writer.write("\n");
writer.write("    <meta name=\"renderer\" content=\"webkit\">\r");
writer.write("\n");
writer.write("    ");
writer.write("<title");
writer.write(">");
writer.write(DataConvert.toString(ElElement.getValue("language.getWord(\'系统标题\')",context,4)));
writer.write("</title>");
writer.write("\r");
writer.write("<link");
writer.write(" type");
writer.write("=\"");
writer.write("text/css");
writer.write("\"");
writer.write(" rel");
writer.write("=\"");
writer.write("stylesheet");
writer.write("\"");
writer.write(" href");
writer.write("=\"");
writer.write(HtmlUtils.escapeAttribute(context.calculateExpression("net.cyan.arachne.RequestContext.getContext().transformUrl(\'/oa/index/index.css\')",5)));
writer.write("\"");
writer.write(">");
writer.write("\r");
tagInfo = new TagInfo();
tagInfo.setTagName("script");
tagInfo.setLine(6);
tagInfo.setHasEndTag(true);
tagInfo.setHasEndSymbol(false);
tagInfo.addAttribute(new TagAttribute("type",null,new AttributeValue(new AttributeItem("text/javascript",false))));
tagInfo.addAttribute(new TagAttribute("src",null,new AttributeValue(new AttributeItem("net.cyan.arachne.RequestContext.getContext().transformUrl(\'/platform/login/login.js\')",true))));
TagProcessor scriptTagProcessor$0 = new net.cyan.proteus.base.ScriptTagProcessor();
if(tagContext.doStart(scriptTagProcessor$0,tagInfo))
{
do
{
if(tagContext.doBefore())
{
tagContext.doAfter();
}
}while(tagContext.doEnd());
}
writer.write("\r");
tagInfo = new TagInfo();
tagInfo.setTagName("script");
tagInfo.setLine(7);
tagInfo.setHasEndTag(true);
tagInfo.setHasEndSymbol(false);
tagInfo.setTagBefore(true);
tagInfo.addAttribute(new TagAttribute("type",null,new AttributeValue(new AttributeItem("text/javascript",false))));
tagInfo.addAttribute(new TagAttribute("src",null,new AttributeValue(new AttributeItem("net.cyan.arachne.RequestContext.getContext().transformUrl(\'/weixin/login/login.js\')",true))));
TagProcessor scriptTagProcessor$1 = new net.cyan.proteus.base.ScriptTagProcessor();
if(tagContext.doStart(scriptTagProcessor$1,tagInfo))
{
do
{
if(tagContext.doBefore())
{
tagContext.doAfter();
}
}while(tagContext.doEnd());
}
writer.write("\r");
tagInfo = new TagInfo();
tagInfo.setTagName("script");
tagInfo.setLine(8);
tagInfo.setHasEndTag(true);
tagInfo.setHasEndSymbol(false);
tagInfo.setTagBefore(true);
tagInfo.addAttribute(new TagAttribute("type",null,new AttributeValue(new AttributeItem("text/javascript",false))));
tagInfo.addAttribute(new TagAttribute("src",null,new AttributeValue(new AttributeItem("net.cyan.arachne.RequestContext.getContext().transformUrl(\'/platform/login/qrcode.js\')",true))));
TagProcessor scriptTagProcessor$2 = new net.cyan.proteus.base.ScriptTagProcessor();
if(tagContext.doStart(scriptTagProcessor$2,tagInfo))
{
do
{
if(tagContext.doBefore())
{
tagContext.doAfter();
}
}while(tagContext.doEnd());
}
writer.write("\r");
tagInfo = new TagInfo();
tagInfo.setTagName("script");
tagInfo.setLine(9);
tagInfo.setHasEndTag(true);
tagInfo.setHasEndSymbol(false);
tagInfo.setTagBefore(true);
tagInfo.addAttribute(new TagAttribute("type",null,new AttributeValue(new AttributeItem("text/javascript",false))));
tagInfo.addAttribute(new TagAttribute("src",null,new AttributeValue(new AttributeItem("net.cyan.arachne.RequestContext.getContext().transformUrl(\'/cyan/client/validate.js\')",true))));
TagProcessor scriptTagProcessor$3 = new net.cyan.proteus.base.ScriptTagProcessor();
if(tagContext.doStart(scriptTagProcessor$3,tagInfo))
{
do
{
if(tagContext.doBefore())
{
tagContext.doAfter();
}
}while(tagContext.doEnd());
}
writer.write("\r");
tagContext.doAfter();
}
}while(tagContext.doEnd());
}
writer.write("\r");
writer.write("\n");
writer.write("<body>\r");
writer.write("<div");
writer.write(" id");
writer.write("=\"");
writer.write("main");
writer.write("\"");
writer.write(">");
writer.write("\r");
writer.write("<div");
writer.write(" id");
writer.write("=\"");
writer.write("center");
writer.write("\"");
writer.write(">");
writer.write("\r");
writer.write("<div");
writer.write(" id");
writer.write("=\"");
writer.write("components");
writer.write("\"");
writer.write(">");
writer.write("\r");
writer.write("\n");
writer.write("            <form id=\"form\" action=\"\" method=\"post\">\r");
writer.write("\n");
writer.write("                ");
writer.write("<div");
writer.write(" class");
writer.write("=\"");
writer.write("item");
writer.write("\"");
writer.write(">");
writer.write("\r");
writer.write("<div");
writer.write(" class");
writer.write("=\"");
writer.write("label");
writer.write("\"");
writer.write(">");
writer.write("\r");
writer.write("\n");
writer.write("                        登录名：\r");
writer.write("\n");
writer.write("                    ");
writer.write("</div>");
writer.write("\r");
writer.write("<div");
writer.write(" class");
writer.write("=\"");
writer.write("input");
writer.write("\"");
writer.write(">");
writer.write("\r");
tagInfo = new TagInfo();
tagInfo.setTagName("input");
tagInfo.setLine(21);
tagInfo.setHasEndTag(false);
tagInfo.setHasEndSymbol(false);
tagInfo.addAttribute(new TagAttribute("name",null,new AttributeValue(new AttributeItem("loginName",false))));
TagProcessor autoFieldTagProcessor$0 = new net.cyan.proteus.base.AutoFieldTagProcessor();
if(tagContext.doStart(autoFieldTagProcessor$0,tagInfo))
{
do
{
if(tagContext.doBefore())
{
tagContext.doAfter();
}
}while(tagContext.doEnd());
}
writer.write("\r");
writer.write("</div>");
writer.write("\r");
writer.write("</div>");
writer.write("\r");
writer.write("<div");
writer.write(" class");
writer.write("=\"");
writer.write("item");
writer.write("\"");
writer.write(">");
writer.write("\r");
writer.write("<div");
writer.write(" class");
writer.write("=\"");
writer.write("label");
writer.write("\"");
writer.write(">");
writer.write("\r");
writer.write("\n");
writer.write("                        密&ensp;&ensp;码：\r");
writer.write("\n");
writer.write("                    ");
writer.write("</div>");
writer.write("\r");
writer.write("<div");
writer.write(" class");
writer.write("=\"");
writer.write("input");
writer.write("\"");
writer.write(">");
writer.write("\r");
tagInfo = new TagInfo();
tagInfo.setTagName("input");
tagInfo.setLine(29);
tagInfo.setHasEndTag(false);
tagInfo.setHasEndSymbol(false);
tagInfo.addAttribute(new TagAttribute("name",null,new AttributeValue(new AttributeItem("password",false))));
tagInfo.addAttribute(new TagAttribute("type",null,new AttributeValue(new AttributeItem("password",false))));
TagProcessor autoFieldTagProcessor$1 = new net.cyan.proteus.base.AutoFieldTagProcessor();
if(tagContext.doStart(autoFieldTagProcessor$1,tagInfo))
{
do
{
if(tagContext.doBefore())
{
tagContext.doAfter();
}
}while(tagContext.doEnd());
}
writer.write("\r");
writer.write("</div>");
writer.write("\r");
writer.write("</div>");
writer.write("\r");
writer.write("<div");
writer.write(" class");
writer.write("=\"");
writer.write("item");
writer.write("\"");
writer.write(">");
writer.write("\r");
writer.write("<div");
writer.write(" class");
writer.write("=\"");
writer.write("label");
writer.write("\"");
writer.write(">");
writer.write("\r");
writer.write("\n");
writer.write("                        验证码：\r");
writer.write("\n");
writer.write("                    ");
writer.write("</div>");
writer.write("\r");
writer.write("<div");
writer.write(" class");
writer.write("=\"");
writer.write("input");
writer.write("\"");
writer.write(">");
writer.write("\r");
tagInfo = new TagInfo();
tagInfo.setTagName("input");
tagInfo.setLine(37);
tagInfo.setHasEndTag(false);
tagInfo.setHasEndSymbol(false);
tagInfo.addAttribute(new TagAttribute("name",null,new AttributeValue(new AttributeItem("captcha$",false))));
tagInfo.addAttribute(new TagAttribute("showErrorTo",null,new AttributeValue(new AttributeItem("captcha$img",false))));
TagProcessor autoFieldTagProcessor$2 = new net.cyan.proteus.base.AutoFieldTagProcessor();
if(tagContext.doStart(autoFieldTagProcessor$2,tagInfo))
{
do
{
if(tagContext.doBefore())
{
tagContext.doAfter();
}
}while(tagContext.doEnd());
}
writer.write("\r");
writer.write("</div>");
writer.write("\r");
writer.write("<div");
writer.write(" class");
writer.write("=\"");
writer.write("image");
writer.write("\"");
writer.write(">");
writer.write("\r");
tagInfo = new TagInfo();
tagInfo.setTagName("img");
tagInfo.setLine(40);
tagInfo.setHasEndTag(false);
tagInfo.setHasEndSymbol(false);
tagInfo.addAttribute(new TagAttribute("src",null,new AttributeValue(new AttributeItem("",false))));
tagInfo.addAttribute(new TagAttribute("alt",null,new AttributeValue(new AttributeItem("看不清楚？换一张",false))));
tagInfo.addAttribute(new TagAttribute("id",null,new AttributeValue(new AttributeItem("captcha$img",false))));
TagProcessor arachneCaptchaSupport$0 = new net.cyan.captcha.ArachneCaptchaSupport();
if(tagContext.doStart(arachneCaptchaSupport$0,tagInfo))
{
do
{
if(tagContext.doBefore())
{
tagContext.doAfter();
}
}while(tagContext.doEnd());
}
writer.write("\r");
writer.write("</div>");
writer.write("\r");
writer.write("</div>");
writer.write("\r");
writer.write("<div");
writer.write(" id");
writer.write("=\"");
writer.write("buttons");
writer.write("\"");
writer.write(">");
writer.write("\r");
writer.write("<button");
writer.write(" id");
writer.write("=\"");
writer.write("login_button");
writer.write("\"");
writer.write(" type");
writer.write("=\"");
writer.write("button");
writer.write("\"");
writer.write(" onclick");
writer.write("=\"");
writer.write("login(\'/oa/main.ptl\');");
writer.write("\"");
writer.write(">");
writer.write("</button>");
writer.write("\r");
writer.write("<button");
writer.write(" id");
writer.write("=\"");
writer.write("reset_button");
writer.write("\"");
writer.write(" type");
writer.write("=\"");
writer.write("button");
writer.write("\"");
writer.write(" onclick");
writer.write("=\"");
writer.write("document.getElementById(\'components\').print()");
writer.write("\"");
writer.write(">");
writer.write("</button>");
writer.write("\r");
writer.write("</div>");
writer.write("\r");
writer.write("\n");
writer.write("            </form>\r");
writer.write("\n");
writer.write("            <img id=\"qr_img\">\r");
writer.write("\n");
writer.write("        ");
writer.write("</div>");
writer.write("\r");
writer.write("</div>");
writer.write("\r");
writer.write("</div>");
writer.write("\r");
writer.write("\n");
writer.write("</body>\r");
tagContext.doAfter();
}
}while(tagContext.doEnd());
}

    }
    public void process(TemplateContext context,String name)throws Exception
    {
         context.callAnonymousMethod(this,name);
    }

}