package $proteus.oa.styles.xc;

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 home$ptl 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("<title");
writer.write(">");
writer.write("</title>");
writer.write("\r");
tagContext.doAfter();
}
}while(tagContext.doEnd());
}
writer.write("\r");
writer.write("\n");
writer.write("<body>\r");
writer.write("\n");
writer.write("测试主页\r");
tagInfo = new TagInfo();
tagInfo.setTagName("script");
tagInfo.setLine(7);
tagInfo.setHasEndTag(true);
tagInfo.setHasEndSymbol(false);
TagProcessor scriptTagProcessor$0 = new net.cyan.proteus.base.ScriptTagProcessor();
if(tagContext.doStart(scriptTagProcessor$0,tagInfo))
{
do
{
if(tagContext.doBefore())
{
writer.write("\r");
writer.write("\n");
writer.write("    // function switchMenu(menuId, menuTitle) {\r");
writer.write("\n");
writer.write("    //     alert(menuId + \":\" + menuTitle);\r");
writer.write("\n");
writer.write("    // }\r");
tagContext.doAfter();
}
}while(tagContext.doEnd());
}
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);
    }

}