?? shoplist_jsp.java
字號:
package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.apache.jasper.runtime.*;
public class shoplist_jsp extends HttpJspBase {
private static java.util.Vector _jspx_includes;
static {
_jspx_includes = new java.util.Vector(4);
_jspx_includes.add("/top.jsp");
_jspx_includes.add("/middle.jsp");
_jspx_includes.add("/shoplistbody.jsp");
_jspx_includes.add("/bottom.jsp");
}
public java.util.List getIncludes() {
return _jspx_includes;
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
javax.servlet.jsp.PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
try {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html;charset=ISO-8859-1");
pageContext = _jspxFactory.getPageContext(this, request, response,
null, true, 8192, true);
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write("\r\n");
session.removeAttribute("navigation");
out.write("\r\n");
out.write("<html>\r\n");
out.write("<head>\r\n");
out.write("<title>2?μ¥?ˉàà");
out.write("</title>\r\n");
out.write("<STYLE type=text/css>\r\n#dhtmltooltip {\r\nBORDER-RIGHT: gray 1px solid; PADDING-RIGHT: 4px; BORDER-TOP: gray 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 9pt; Z-INDEX: 100; FILTER: progid:DXImageTransform.Microsoft.Shadow(color=gray,direction=120); VISIBILITY: hidden; PADDING-BOTTOM: 4px; BORDER-LEFT: gray 1px solid; WIDTH: 150px; PADDING-TOP: 4px; BORDER-BOTTOM: gray 1px solid; POSITION: absolute; BACKGROUND-COLOR: #cccccc\r\n}\r\n");
out.write("</STYLE>\r\n");
out.write("<LINK href='img/gdn.css' type=text/css rel=stylesheet>\r\n");
out.write("<LINK href='img/css.css' type=text/css rel=stylesheet>\r\n");
out.write("</head>\r\n");
out.write("<STYLE type=text/css>\r\nA:link {\r\n\tFONT-SIZE: 12px; COLOR: #000000; TEXT-DECORATION: none\r\n}\r\nA:visited {\r\n\tFONT-SIZE: 12px; COLOR: #000000; TEXT-DECORATION: none\r\n}\r\nA:hover {\r\n\tFONT-SIZE: 12px; COLOR: #006cd9; TEXT-DECORATION: none\r\n}\r\nBODY {\r\n\tFONT-SIZE: 12px\r\n}\r\nTD {\r\n\tFONT-SIZE: 12px; LINE-HEIGHT: 150%\r\n}\r\n");
out.write("</STYLE>\r\n");
out.write("<SCRIPT language=JavaScript>\r\n");
out.write("<!--\r\nfunction showitem(id,name)\r\n{\r\nreturn (\"");
out.write("<span>");
out.write("<a href='\"+id+\"' >\"+name+\"");
out.write("</a>");
out.write("</span>");
out.write("<br>\")\r\n}\r\nfunction switchoutlookBar(number)\r\n{\r\nvar i = outlookbar.opentitle;\r\noutlookbar.opentitle=number;\r\nvar id1,id2,id1b,id2b\r\nif (number!=i && outlooksmoothstat==0){\r\n if (number!=-1)\r\n {\r\n if (i==-1){\r\n id2=\"blankdiv\";\r\n id2b=\"blankdiv\";\r\n }\r\n else{\r\n id2=\"outlookdiv\"+i;\r\n id2b=\"outlookdivin\"+i;\r\n document.all(\"outlooktitle\"+i).style.border=\"1px none navy\";\r\n document.all(\"outlooktitle\"+i).style.background=outlookbar.maincolor;\r\n document.all(\"outlooktitle\"+i).style.color=\"#ffffff\";\r\n document.all(\"outlooktitle\"+i).style.textalign=\"center\";\r\n }\r\n id1=\"outlookdiv\"+number\r\n id1b=\"outlookdivin\"+number\r\n document.all(\"outlooktitle\"+number).style.border=\"1px none white\";\r\n document.all(\"outlooktitle\"+number).style.background=outlookbar.maincolor; //title\r\n document.all(\"outlooktitle\"+number).style.color=\"#ffffff\";\r\n document.all(\"outlooktitle\"+number).style.textalign=\"center\";\r\n smoothout(id1,id2,id1b,id2b,0);\r\n }\r\n else\r\n {\r\n document.all(\"blankdiv\").style.display=\"\";\r\n");
out.write(" document.all(\"blankdiv\").sryle.height=\"100%\";\r\n document.all(\"outlookdiv\"+i).style.display=\"none\";\r\n document.all(\"outlookdiv\"+i).style.height=\"0%\";\r\n document.all(\"outlooktitle\"+i).style.border=\"1px none navy\";\r\n document.all(\"outlooktitle\"+i).style.background=outlookbar.maincolor;\r\n document.all(\"outlooktitle\"+i).style.color=\"#ffffff\";\r\n document.all(\"outlooktitle\"+i).style.textalign=\"center\";\r\n }\r\n}\r\n}\r\nfunction smoothout(id1,id2,id1b,id2b,stat)\r\n{\r\nif(stat==0){\r\n tempinnertext1=document.all(id1b).innerHTML;\r\n tempinnertext2=document.all(id2b).innerHTML;\r\n document.all(id1b).innerHTML=\"\";\r\n document.all(id2b).innerHTML=\"\";\r\n outlooksmoothstat=1;\r\n document.all(id1b).style.overflow=\"hidden\";\r\n document.all(id2b).style.overflow=\"hidden\";\r\n document.all(id1).style.height=\"0%\";\r\n document.all(id1).style.display=\"\";\r\n setTimeout(\"smoothout('\"+id1+\"','\"+id2+\"','\"+id1b+\"','\"+id2b+\"',\"+outlookbar.inc+\")\",outlookbar.timedalay);\r\n}\r\nelse\r\n{\r\n stat+=outlookbar.inc;\r\n if (stat>100)\r\n");
out.write(" stat=100;\r\n document.all(id1).style.height=stat+\"%\";\r\n document.all(id2).style.height=(100-stat)+\"%\";\r\n if (stat");
out.write("<100)\r\n setTimeout(\"smoothout('\"+id1+\"','\"+id2+\"','\"+id1b+\"','\"+id2b+\"',\"+stat+\")\",outlookbar.timedalay);\r\n else\r\n {\r\n document.all(id1b).innerHTML=tempinnertext1;\r\n document.all(id2b).innerHTML=tempinnertext2;\r\n outlooksmoothstat=0;\r\n document.all(id1b).style.overflow=\"auto\";\r\n document.all(id2).style.display=\"none\";\r\n }\r\n}\r\n}\r\nfunction getOutLine()\r\n{\r\noutline=\"");
out.write("<table \"+outlookbar.otherclass+\">\";\r\nfor (i=0;i");
out.write("<(outlookbar.titlelist.length);i++)\r\n{\r\n outline+=\"");
out.write("<tr>");
out.write("<td name=outlooktitle\"+i+\" id=outlooktitle\"+i+\" \";\r\n if (i!=outlookbar.opentitle)\r\n outline+=\" nowrap align=center style='cursor:hand;background-color:\"+outlookbar.maincolor+\";color:#ffffff;height:20;border:1 none navy' \";\r\n else\r\n outline+=\" nowrap align=center style='cursor:hand;background-color:\"+outlookbar.maincolor+\";color:white;height:20;border:1 none white' \";\r\n outline+=outlookbar.titlelist[i].otherclass\r\n outline+=\" onclick='switchoutlookBar(\"+i+\")'>");
out.write("<span class=smallFont>\";\r\n outline+=outlookbar.titlelist[i].title+\"");
out.write("</span>");
out.write("</td>");
out.write("</tr>\";\r\n outline+=\"");
out.write("<tr>");
out.write("<td name=outlookdiv\"+i+\" valign=top align=center id=outlookdiv\"+i+\" style='width:100%\"\r\n if (i!=outlookbar.opentitle)\r\n outline+=\";display:none;height:0%;\";\r\n else\r\n outline+=\";display:;height:100%;\";\r\n outline+=\"'>");
out.write("<div name=outlookdivin\"+i+\" id=outlookdivin\"+i+\" style='overflow:auto;width:100%;height:100%'>\";\r\n for (j=0;j");
out.write("<outlookbar.itemlist[i].length;j++)\r\n outline+=showitem(outlookbar.itemlist[i][j].key,outlookbar.itemlist[i][j].title);\r\n outline+=\"");
out.write("</div>");
out.write("</td>");
out.write("</tr>\"\r\n}\r\noutline+=\"");
out.write("</table>\"\r\nreturn outline\r\n}\r\nfunction show()\r\n{\r\nvar outline;\r\noutline=\"");
out.write("<div id=outLookBarDiv name=outLookBarDiv style='width=100%;height:100%'>\"\r\noutline+=outlookbar.getOutLine();\r\noutline+=\"");
out.write("</div>\"\r\ndocument.write(outline);\r\n}\r\nfunction theitem(intitle,instate,inkey)\r\n{\r\nthis.state=instate;\r\nthis.otherclass=\" nowrap \";\r\nthis.key=inkey;\r\nthis.title=intitle;\r\n}\r\nfunction addtitle(intitle)\r\n{\r\noutlookbar.itemlist[outlookbar.titlelist.length]=new Array();\r\noutlookbar.titlelist[outlookbar.titlelist.length]=new theitem(intitle,1,0);\r\nreturn(outlookbar.titlelist.length-1);\r\n}\r\nfunction additem(intitle,parentid,inkey)\r\n{\r\nif (parentid>=0 && parentid");
out.write("<=outlookbar.titlelist.length)\r\n{\r\n outlookbar.itemlist[parentid][outlookbar.itemlist[parentid].length]=new theitem(intitle,2,inkey);\r\n outlookbar.itemlist[parentid][outlookbar.itemlist[parentid].length-1].otherclass=\" nowrap align=left style='height:5' \";\r\n return(outlookbar.itemlist[parentid].length-1);\r\n}\r\nelse\r\n additem=-1;\r\n}\r\nfunction outlook()\r\n{\r\nthis.titlelist=new Array();\r\nthis.itemlist=new Array();\r\nthis.divstyle=\"style='height:100%;width:100%;overflow:auto' align=center\";\r\nthis.otherclass=\"border=0 cellspacing='0' cellpadding='0' style='height:100%;width:100%'valign=middle align=center \";\r\nthis.addtitle=addtitle;\r\nthis.additem=additem;\r\nthis.starttitle=-1;\r\nthis.show=show;\r\nthis.getOutLine=getOutLine;\r\nthis.opentitle=this.starttitle;\r\nthis.reflesh=outreflesh;\r\nthis.timedelay=50;\r\nthis.inc=10;\r\nthis.maincolor = \"#336699\"\r\n}\r\nfunction outreflesh()\r\n{\r\ndocument.all(\"outLookBarDiv\").innerHTML=outlookbar.getOutLine();\r\n}\r\nfunction locatefold(foldname)\r\n{\r\nif (foldname==\"\")\r\n foldname = outlookbar.titlelist[0].title\r\n");
out.write("for (var i=0;i");
out.write("<outlookbar.titlelist.length;i++)\r\n{\r\n if(foldname==outlookbar.titlelist[i].title)\r\n {\r\n outlookbar.starttitle=i;\r\n outlookbar.opentitle=i;\r\n }\r\n}\r\n}\r\nvar outlookbar=new outlook();\r\nvar tempinnertext1,tempinnertext2,outlooksmoothstat\r\noutlooksmoothstat = 0;\r\n\r\n\r\nvar t;\r\n\r\n ");
java.util.ArrayList tarry=new java.util.ArrayList();
tarry=(java.util.ArrayList)getServletContext().getAttribute("arr");//
java.util.ArrayList sort1=new java.util.ArrayList();
sort1=(java.util.ArrayList)getServletContext().getAttribute("sort");//μ?μ?éì?·àà±e
if(sort1!=null&&tarry!=null){
for(int i=0;i<sort1.size();i++){
int num=0;
Shopinfo.SortBean st=(Shopinfo.SortBean)sort1.get(i);
out.write("t=outlookbar.addtitle('");
out.print(st.getSname());
out.write("')");
out.println("");
for(int j=0;j<tarry.size();j++){
Shopinfo.ShopBean gt=(Shopinfo.ShopBean)tarry.get(j);
if(gt.getSname().equals(st.getSname())){
num++;
out.write("outlookbar.additem('");
out.print(gt.getPname());
out.write("',t,'index.jsp?pid=");
out.print(gt.getPid());
out.write("')");
}
out.println("");
}
out.write("\r\n outlookbar.additem('êyá?£o");
out.print(num);
out.write("',t,'#')\r\n ");
}
}else{
out.write("\r\n t=outlookbar.addtitle('??óDàà±e')\r\n outlookbar.additem('?¢D?',t,'#')\r\n ");
}
out.write("\r\n//-->\r\n");
out.write("</SCRIPT>\r\n");
out.write("<body background='img/mainbg.jpg'leftMargin=0 topMargin=0 marginheight='0' marginwidth='0' >\r\n");
out.write("\r\n");
out.write("<!--\r\n\r\nbody {\r\n\tbackground-image: url(img/mainbg.jpg);\r\n}\r\n\r\n-->\r\n");
out.write("</style>\r\n ");
String rseach=request.getParameter("seach");//???÷·?ê?
if(rseach==null){
rseach=(String)session.getAttribute("seach");
}else{
session.setAttribute("seach",rseach);
}
if(rseach==null){
rseach="0";
}
out.write("\r\n");
out.write("<TABLE width=\"973\" border=0 align=\"center\" cellPadding=0 cellSpacing=0 bgcolor=\"#ffffff\">\r\n ");
out.write("<TBODY>\r\n ");
out.write("<TR>\r\n ");
out.write("<TD>");
out.write("<TABLE cellSpacing=0 cellPadding=0 width=\"100%\" border=0>\r\n ");
out.write("<TBODY>\r\n ");
out.write("<TR>\r\n ");
out.write("<TD align=middle width=300 height=59 rowSpan=2>");
out.write("<img src=\"img/title.jpg\" width=\"376\" height=\"52\" />");
out.write("</TD>\r\n ");
out.write("<TD width=\"476\" height=29 align=right> ");
out.write("</TD>\r\n ");
out.write("</TR>\r\n ");
out.write("<TR>\r\n ");
out.write("<TD vAlign=bottom align=middle height=30>");
out.write("<TABLE cellSpacing=0 cellPadding=0 width=\"80%\" border=0>\r\n ");
out.write("<TBODY>\r\n ");
out.write("<TR>\r\n ");
out.write("<TD class=title width=\"14%\">");
out.write("<STRONG>|");
out.write("<A\r\n href=\"index.jsp\">ê×ò3");
out.write("</A>");
out.write("</STRONG>");
out.write("</TD>\r\n ");
out.write("<TD class=title width=\"14%\">");
out.write("<STRONG>|");
out.write("<a href=\"#\" title=\"?ò??μ?D??¢\">1?óú?ò??");
out.write("</a>");
out.write("</STRONG>");
out.write("</TD>\r\n ");
out.write("<TD class=title width=\"14%\">");
out.write("<STRONG>|");
out.write("<a href=\"reworkclient.jsp\" title=\"\">?òμ?D??¢");
out.write("</a>");
out.write("</STRONG>");
out.write("</TD>\r\n ");
out.write("<TD class=title width=\"14%\">");
out.write("<STRONG>|");
out.write("<a href=\"lookupoder.jsp\" title=\"2é?ˉ?¨μ¥D??¢\">?¨μ¥2é?ˉ");
out.write("</a>");
out.write("</STRONG>");
out.write("</TD>\r\n ");
out.write("<TD class=title width=\"14%\">");
out.write("<STRONG>|");
out.write("<a href=\"sendof.jsp\">???í?μ?÷");
out.write("</a>");
out.write("</STRONG>");
out.write("</TD>\r\n ");
out.write("<TD class=title width=\"14%\">");
out.write("<STRONG>|");
out.write("<a href=\"help.jsp\">°??ú?DD?");
out.write("</a>");
out.write("</STRONG>");
out.write("</TD>\r\n ");
out.write("<TD class=title\r\n width=\"14%\">");
out.write("<STRONG>|");
out.write("<a href=\"leaveword.jsp\">???òá???");
out.write("</a>");
out.write("</STRONG>");
out.write("</TD>\r\n ");
out.write("</TR>\r\n ");
out.write("</TBODY>\r\n ");
out.write("</TABLE>");
out.write("</TD>\r\n ");
out.write("</TR>\r\n ");
out.write("</TBODY>\r\n ");
out.write("</TABLE>");
out.write("</TD>\r\n ");
out.write("</TR>\r\n ");
out.write("<TR>\r\n ");
out.write("<TD class=link1 align=\"center\" background=img/titlebg3.gif colSpan=2\r\n height=30>");
out.write("<TABLE height=29 cellSpacing=0 cellPadding=0 width=\"100%\" align=center\r\n border=0>\r\n ");
out.write("<TBODY>\r\n ");
out.write("<TR>\r\n ");
out.write("<TD align=\"center\" >");
java.util.ArrayList sort=new java.util.ArrayList();
sort=(java.util.ArrayList)getServletContext().getAttribute("sort");//μ?μ?éì?·àà±e
if(sort!=null){
for(int i=0;i<sort.size();i++){
Shopinfo.SortBean st=(Shopinfo.SortBean)sort.get(i);
out.println("<a href='lookupshoping?selectsort="+st.getSid()+"'>"+st.getSname()+"</a> ");
}
}else{
out.println("??óDàà±e");
}
out.write("\r\n ");
out.write("</TD>\r\n ");
out.write("</TR>\r\n ");
out.write("</TBODY>\r\n ");
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -