Index.jsp
上传用户:sxychgz
上传日期:2019-04-21
资源大小:4772k
文件大小:47k
源码类别:

电子政务应用

开发平台:

Java

  1. <%@ page language="java" import="java.util.*" pageEncoding="GB18030"%>
  2. <%@ page import="com.bjsxt.shopping.category.*"%>
  3. <%!
  4. private List<Category> getTopCategories(List<Category> categories) {
  5. List<Category> topCategories = new ArrayList<Category>();
  6. for(int i=0; i<categories.size(); i++) {
  7. Category c = categories.get(i);
  8. if(c.getGrade() == 1) {
  9. topCategories.add(c);
  10. }
  11. }
  12. return topCategories;
  13. }
  14. private List<Category> getChilds(Category parent, List<Category> categories) {
  15. List<Category> childs = new ArrayList<Category>();
  16. for(int i=0; i<categories.size(); i++) {
  17. Category c = categories.get(i);
  18. if(c.getPid() == parent.getId()) {
  19. childs.add(c);
  20. }
  21. }
  22. return childs;
  23. }
  24. private String getChildsStr(List<Category> childs) {
  25. StringBuffer buf = new StringBuffer();
  26. for(int i=0; i<childs.size(); i++) {
  27. Category c = childs.get(i);
  28. buf.append("<a href='ShowProducts.jsp?categoryId=" + c.getId() + "'>")
  29.    .append(c.getName()).append("</a>")
  30.    .append("-");
  31. }
  32. return buf.toString();
  33. }
  34.  %>
  35. <%
  36. List<Category> categories = CategoryService.getInstance().getCategories();
  37. List<Category> topCategories = getTopCategories(categories);
  38.  %>
  39. <html>
  40. <head>
  41. <me content="zh-cn"></me>
  42. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  43. <title>商城 - 网上精品会员店</title>
  44. <link href="images/new.css" rel="stylesheet" type="text/css">
  45. <script language="javascript1.2">
  46. function js_callpage(htmlurl)
  47. {
  48. var newwin=window.open(htmlurl,'','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,top=2,width=360,height=470');
  49. return false;
  50. }
  51. function js_callpage1(htmlurl)
  52. {
  53. var newwin=window.open(htmlurl,'','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,top=2,width=100,height=100');
  54. return false;
  55. }
  56. </script>
  57. <script language="JavaScript">
  58. function MM_swapImgRestore() { //v3.0
  59. var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
  60. }
  61. function MM_preloadImages() { //v3.0
  62. var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
  63. var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
  64. if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
  65. }
  66. function MM_findObj(n, d) { //v4.01
  67. var p,i,x;if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
  68. d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  69. if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  70. for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  71. if(!x && d.getElementById) x=d.getElementById(n); return x;
  72. }
  73. function MM_swapImage() { //v3.0
  74. var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
  75.  if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
  76. }
  77. function on_trview(trname,enforce)
  78. {
  79. <%
  80. for(int i=0; i<topCategories.size(); i++) {
  81. Category c = topCategories.get(i);
  82. %>
  83. document.all.pma_<%=c.getId()%>.style.display="none";
  84. <%
  85. }
  86. %>
  87. if (enforce=="in")
  88. {
  89. eval("document.all.pma_"+trname+".style.display=''");
  90. //eval("alert()");
  91. //ruby on rails
  92. }
  93. /*
  94. else
  95. {
  96. var pma_code,pma_serial;
  97. pma_code="";
  98. if (pma_code!="") /////////////二级分类默认打开层
  99. {
  100. if (pma_code=="21"){pma_serial=0;}
  101. if (pma_code=="5"){pma_serial=1;}
  102. if (pma_code=="4"){pma_serial=2;}
  103. if (pma_code=="2"){pma_serial=3;}
  104. if (pma_code=="20"){pma_serial=4;}
  105. if (pma_code=="22"){pma_serial=5;}
  106. if (pma_code=="12"){pma_serial=6;}
  107. if (pma_code=="3"){pma_serial=7}
  108. if (pma_code=="8"){pma_serial=8;}
  109. if (pma_code=="24"){pma_serial=9;}
  110. if (pma_code=="23"){pma_serial=10;}
  111. if (pma_code=="1"){pma_serial=11;}
  112. if (pma_code=="26"){pma_serial=12;}
  113. if (pma_serial!="")
  114. {
  115. eval("document.all.pma_"+pma_serial+".style.display=''");
  116. eval("MM_swapImage('images"+pma_serial+"','','images/0"+pma_serial+"-2.gif',1)");
  117. }
  118. }
  119. }
  120. */
  121. }
  122. function MM_reloadPage(init) {//reloads the window if Nav4 resized
  123. if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
  124. document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  125. else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
  126. }
  127. MM_reloadPage(true);
  128. function MM_showHideLayers() { //v6.0
  129. var i,p,v,obj,args=MM_showHideLayers.arguments;
  130. for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
  131. if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
  132. obj.visibility=v; }
  133. }
  134. </script>
  135. <script language="JavaScript">
  136. var imgUrl=new Array();
  137. var imgLink=new Array();
  138. var imgTitle=new Array();
  139. var imgPrice1=new Array();
  140. var imgPrice2=new Array();
  141. var adNum=0;imgUrl[1]='http://www.thinkshop.cn/pimages/br0465.gif';
  142. imgLink[1]='index_pi.php?productcode=BR0465';
  143. imgTitle[1]='贝尔金家用笔记本电脑便携袋(银色,膝上型)';
  144. imgPrice1[1]='价格:¥339.00';
  145. imgPrice2[1]='会员价格:¥319.00';imgUrl[2]='http://www.thinkshop.cn/pimages/br0461.gif';
  146. imgLink[2]='index_pi.php?productcode=BR0461';
  147. imgTitle[2]='贝尔金家用笔记本电便携袋(橙色,手提型)';
  148. imgPrice1[2]='价格:¥339.00';
  149. imgPrice2[2]='会员价格:¥319.00';imgUrl[3]='http://www.thinkshop.cn/pimages/gt1176.gif';
  150. imgLink[3]='index_pi.php?productcode=GT1176';
  151. imgTitle[3]='贝尔金家用笔记本便携内袋(银)';
  152. imgPrice1[3]='价格:¥369.00';
  153. imgPrice2[3]='会员价格:¥359.00';imgUrl[4]='http://www.thinkshop.cn/pimages/gt0873.gif';
  154. imgLink[4]='index_pi.php?productcode=GT0873';
  155. imgTitle[4]='3M 14.1 电脑防窥片';
  156. imgPrice1[4]='价格:¥459.00';
  157. imgPrice2[4]='会员价格:¥449.00';var imgPre=new Array();
  158. var j=0;
  159. for (i=1;i<imgUrl.length;i++) {
  160. if( (imgUrl[i]!="") && (imgLink[i]!="") ) {
  161. j++;
  162. } else {
  163. break;
  164. }
  165. }
  166. function playTran(){
  167. if (document.all)
  168. imgInit.filters.revealTrans.play();
  169. }
  170. var key=0;
  171. function nextAd(){
  172. if(adNum<j)adNum++ ;
  173. else adNum=1;
  174. if( key==0 ){
  175. key=1;
  176. } else if (document.all){
  177. imgInit.filters.revealTrans.Transition=10;
  178. imgInit.filters.revealTrans.apply();
  179.   playTran();
  180. }
  181. document.images.imgInit.src=imgUrl[adNum];
  182. document.images.imgInit.title=imgTitle[adNum];
  183. img_title.innerHTML='<font color=#FFFFff>'+imgTitle[adNum]+'</font>';
  184. img_price1.innerHTML=imgPrice1[adNum];
  185. img_price2.innerHTML=imgPrice2[adNum];
  186. theTimer=setTimeout("nextAd()", 6000);
  187. }
  188. function goUrl(){
  189. jumpUrl=imgLink[adNum];
  190. jumpTarget='_blank';
  191. if (jumpUrl != ''){
  192. if (jumpTarget != '')
  193. window.open(jumpUrl,jumpTarget);
  194. else
  195. location.href=jumpUrl;
  196. }
  197. }
  198. </script>
  199. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  200. <link href="images/new.css" rel="stylesheet" type="text/css">
  201. </head>
  202. <body onLoad="MM_preloadImages('images/00-2.gif','images/01-2.gif','images/02-2.gif','images/03-2.gif','images/04-2.gif','images/05-2.gif','images/06-2.gif','images/07-2.gif','images/08-2.gif','images/09-2.gif')">
  203. <script src="images/piaochuang.js"></script>
  204. <table align="left" border="0" cellpadding="0" cellspacing="0" width="980">
  205.   <tbody>
  206.     <tr>
  207.       <td><!--显示头部信息程序-->
  208.         <table style="border-collapse: collapse;" border="0" cellpadding="0" cellspacing="0" width="100%">
  209.           <tbody>
  210.             <tr>
  211.               <td width="10"></td>
  212.               <td width="135"><a href="thinkshop.cn.htm"></a></td>
  213.               <td width="50"></td>
  214.               <td width="120"><a target="_blank" href="index_bat.php.htm"><img src="images/dazong.gif" border="0" height="47" width="90"></a></td>
  215.               <td width="120"><a target="_blank" href="happybirthday.php.htm"><img src="images/shenri.gif" border="0" height="47" width="95"></a></td>
  216.               <td width="120"><a target="_blank" href="brandshop.php.htm"><img src="images/pingpai.gif" border="0" height="47" width="96"></a></td>
  217.               <td width="120"><a target="_blank" href="powered by Discuz!.htm"><img src="images/luntan.gif" border="0" height="47" width="95"></a></td>
  218.               <td width="120"><a target="_blank" href="gc.htm"><img src="images/thinkcard.gif" border="0" height="47" width="90"></a></td>
  219.               <td align="right" valign="bottom"><map name="FPMap_inctop">
  220.                   <area href="point_exg.php.htm" shape="rect" coords="13,2,81,16" target="_blank">
  221.                   <area href="my_thinkshop.php.htm" shape="rect" coords="92, 1, 158, 15" target="_blank">
  222.                   <area href="extend.php.htm" shape="rect" coords="170, 0, 233, 16" target="_blank">
  223.                 </map>
  224.                 <img src="images/top_right.gif" usemap="#FPMap_inctop" border="0" height="22" width="238"></td>
  225.             </tr>
  226.           </tbody>
  227.         </table></td>
  228.     </tr>
  229.     <tr>
  230.       <td height="61"><table border="0" cellpadding="0" cellspacing="0" width="100%">
  231.           <tbody>
  232.             <tr>
  233.               <td width="6"><img src="images/left.gif" height="35" width="6"></td>
  234.               <td align="left" background="images/topbg.gif" valign="middle" width="897"><table align="left" border="0" cellpadding="0" cellspacing="0" width="713">
  235.                   <tbody>
  236.                     <tr class="style1" align="center">
  237.                       <td align="left">
  238.                       <%
  239.                        for(int i=0; i<topCategories.size(); i++) {
  240.                        Category c = topCategories.get(i);
  241.                        %>
  242.    <a href="" onMouseOver="on_trview(<%=c.getId()%>,'in')">
  243. <!--<img src="images/00.gif" name="Image0" border="0">-->
  244. <span style="color:#FFFFFF"><%=c.getName()%></span>
  245. </a>
  246. <%
  247. }
  248.  %>
  249.   </td>
  250.   
  251.                     </tr>
  252.                   </tbody>
  253.                 </table></td>
  254.               <td rowspan="2" align="right" width="77"><a href="shoppingpricebuy.php.htm" target="_blank"><img src="images/gouwu_new.gif" border="0" height="61" width="77"></a></td>
  255.             </tr>
  256.             <tr>
  257.               <td colspan="2"><table border="0" cellpadding="0" cellspacing="0" width="100%">
  258.                   <tbody>
  259.                     <tr>
  260.                       <td rowspan="2" bgcolor="#ededed" width="1"><img src="images/line.gif" height="1" width="1"></td>
  261.                       <td bgcolor="#ffffff" height="1" width="850"><img src="images/line.gif" height="1" width="1"></td>
  262.                     </tr>
  263.                     <tr>
  264.                       <td background="images/topbg2.gif" height="25"><table style="border-collapse: collapse;" class="twoji" border="0" cellpadding="0" cellspacing="0" width="100%">
  265.                           <tbody>
  266.                           <%
  267.                           for(int i=0; i<topCategories.size(); i++) {
  268.                            Category parent = topCategories.get(i);
  269.                            List<Category> childs = getChilds(parent, categories);
  270.                           
  271.                            %>
  272.                             <tr id="pma_<%=parent.getId()%>" style="display: none;">
  273.                               <td style="position: relative; left: 0pt;" height="25" width="100%">
  274.                                &nbsp; 
  275.                                <%=getChildsStr(childs)%>
  276.   </td>                               
  277.                             </tr>
  278.                           <%
  279.                           }
  280.                            %> 
  281.                           </tbody>
  282.                         </table></td>
  283.                     </tr>
  284.                   </tbody>
  285.                 </table></td>
  286.             </tr>
  287.           </tbody>
  288.         </table></td>
  289.     </tr>
  290.     <tr>
  291.       <td bgcolor="#dadce8" height="1"><img src="images/line.gif" height="1" width="1"></td>
  292.     </tr>
  293.     <tr>
  294.       <td><table border="0" cellpadding="0" cellspacing="0" width="980">
  295.           <tbody>
  296.             <tr>
  297.               <td bgcolor="#ededed" width="1"><img src="images/line.gif" height="1" width="1"></td>
  298.               <td background="images/topbg3.gif" height="31" width="123"> </td>
  299.               <td align="center" background="images/topbg3.gif" width="28"><img src="images/zoom.gif" height="31" width="20"></td>
  300.               <script>
  301. function Validator_s(theForm)
  302. {
  303. if (theForm.searchproducttype1.value=="all" && (theForm.searchname.value=="" || theForm.searchname.value=="请输入您所要查找的商品名称") && (theForm.searchcode.value=="" || theForm.searchcode.value=="商品编号"))
  304. {
  305. alert(" 请输入查询关键字。");
  306. theForm.searchname.focus();
  307. return (false);
  308. }
  309. }
  310. </script>
  311.               <form method="post" action="product_search.php" onSubmit="return Validator_s(this)">
  312.               </form>
  313.               <td background="images/topbg3.gif" valign="middle" width="521"><input name="Bsearch" value="Y" type="hidden">
  314.                 <table border="0" cellpadding="0" cellspacing="0" width="100%">
  315.                   <tbody>
  316.                     <tr>
  317.                       <td align="left" valign="middle" width="83%"><select name="searchproducttype1" style="font-size: 9pt; color: rgb(85, 85, 85);">
  318.                           <option selected="selected" value="all">--所有商品--</option>
  319.                           <option value="21">ThinkPad配件</option>
  320.                           <option value="5">笔记本配件</option>
  321.                           <option value="4">笔记本包</option>
  322.                           <option value="2">电脑配套</option>
  323.                           <option value="20">网络设备</option>
  324.                           <option value="22">数码专区</option>
  325.                           <option value="12">车载用品</option>
  326.                           <option value="23">AV线缆</option>
  327.                           <option value="3">办公文仪</option>
  328.                           <option value="8">商务礼品</option>
  329.                           <option value="24">清洁洗涤</option>
  330.                           <option value="26">防眩防窥</option>
  331.                           <option value="1">保修服务</option>
  332.                         </select>
  333.                         <input name="searchname" style="font-size: 9pt; color: rgb(85, 85, 85);" onFocus="if(this.value=='请输入您所要查找的商品名称'){this.value='';}" onBlur="if(this.value==''){this.value='请输入您所要查找的商品名称';}" value="请输入您所要查找的商品名称" size="25" maxlength="30" type="text">
  334.                         <input name="searchcode" style="font-size: 9pt; color: rgb(85, 85, 85);" onFocus="if(this.value=='商品编号'){this.value='';}" onBlur="if(this.value==''){this.value='商品编号';}" value="商品编号" size="8" maxlength="6" type="text">
  335.                         <input src="images/go.gif" style="position: relative; top: 2px;" border="0" height="17" type="image" width="20">
  336.                         &nbsp;<a href="index_search.php.htm"><img src="images/gaoji.gif" style="position: relative; top: 3px;" border="0" height="19" width="66"></a> </td>
  337.                       <td align="left" valign="middle" width="17%"></td>
  338.                     </tr>
  339.                   </tbody>
  340.                 </table></td>
  341.               <td align="right" background="images/topbg3.gif" width="306">
  342.                <!--
  343.                <iframe name="buysta" src="images/buysta.htm" frameborder="0" height="14" scrolling="no" width="100%"></iframe>
  344.                -->
  345.                </td>
  346.               <td bgcolor="#ededed" width="1"></td>
  347.             </tr>
  348.           </tbody>
  349.         </table></td>
  350.     </tr>
  351.     <tr>
  352.       <td><table border="0" cellpadding="0" cellspacing="0" width="100%">
  353.           <tbody>
  354.             <tr>
  355.               <td valign="top" width="190"><table border="0" cellpadding="0" cellspacing="0" width="100%">
  356.                   <tbody>
  357.                     <tr>
  358.                       <td><table border="0" cellpadding="0" cellspacing="0" width="100%">
  359.                           <tbody>
  360.                             <tr>
  361.                               <td onMouseOver="on_trview('0','')" align="center" height="40"><img src="images/login.gif" height="39" width="190"></td>
  362.                             </tr>
  363.                           </tbody>
  364.                         </table></td>
  365.                     </tr>
  366.                     <tr>
  367.                       <td><table border="0" cellpadding="0" cellspacing="0" width="100%">
  368.                           <tbody>
  369.                             <tr>
  370.                               <td rowspan="3" bgcolor="#aab3d5" width="1"><img src="images/line.gif" height="1" width="1"></td>
  371.                               <td width="176"><img src="images/loginbg1.gif" height="19" width="188"></td>
  372.                               <td rowspan="3" bgcolor="#aab3d5" width="1"><img src="images/line.gif" height="1" width="1"></td>
  373.                             </tr>
  374.                             <tr>
  375.                               <td align="center" bgcolor="#e2e4f0"><table border="0" cellpadding="0" cellspacing="0" width="95%">
  376.                                   <form method="post" action="Login.jsp">
  377.                                   
  378.                                   <tbody>
  379.                                     <tr>
  380.                                       <td align="left" height="25" width="73%">会员号:
  381.                                         <input name="username" size="10" style="font-size: 12px;" type="text"></td>
  382.                                       <td rowspan="2" width="27%">
  383.                                        <input src="images/down.gif" name="B1" border="0" height="45" type="image" width="45"></td>
  384.                                     </tr>
  385.                                     <tr>
  386.                                       <td align="left">密 码:
  387.                                         <input name="password" size="10" style="font-size: 11px;" type="password"></td>
  388.                                     </tr>
  389.                                     <tr>
  390.                                       <td colspan="2" height="30"><p align="center">[<a href="Register.jsp">新用户注册</a>] &nbsp;[<a href="passwdview.php.htm" onClick="js_callpage(href);return false">忘记密码</a>]</p></td>
  391.                                     </tr>
  392.                                   </tbody>
  393.                                   </form>
  394.                                 </table></td>
  395.                             </tr>
  396.                             <tr>
  397.                               <td bgcolor="#aab3d5" height="1"><img src="images/line.gif" height="1" width="1"></td>
  398.                             </tr>
  399.                           </tbody>
  400.                         </table></td>
  401.                     </tr>
  402.                     <tr>
  403.                       <td><img src="images/tel.gif" height="87" width="190"></td>
  404.                     </tr>
  405.                     <tr>
  406.                       <td><table border="0" cellpadding="0" cellspacing="0" width="100%">
  407.                           <tbody>
  408.                             <tr>
  409.                               <td colspan="3"><img src="images/news.gif" height="32" width="190"></td>
  410.                             </tr>
  411.                             <tr>
  412.                               <td rowspan="3" bgcolor="#aab3d5" width="1"><img src="images/line.gif" height="1" width="1"></td>
  413.                               <td align="center" bgcolor="#e2e4f0"><table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="90%">
  414.                                   <tbody>
  415.                                     <tr>
  416.                                       <td align="left"> ·<a class="twoji" target="_blank" href="http://www.thinkshop.cn/sales_info.php?slid=86"><font color="#cc0000">与舒适办公为伴,让轻松便<br>
  417.                                         &nbsp;携相随(04.20-04.26)</font></a>&nbsp;<img src="images/hot_gif.gif"><br>
  418.                                         ·<a class="twoji" target="_blank" href="http://www.thinkshop.cn/sales_info.php?slid=85">精品分呈,彰显不凡品质!</a><br>
  419.                                         ·<a class="twoji" target="_blank" href="http://www.thinkshop.cn/sales_info.php?slid=84">神奇与实用并存,星座礼物..</a><br>
  420.                                         ·<a class="twoji" target="_blank" href="http://www.thinkshop.cn/sales_info.php?slid=83">无限关爱3m优视灯关爱灯下..</a><br>
  421.                                       </td>
  422.                                     </tr>
  423.                                     <tr>
  424.                                       <td align="center" height="10" valign="top"><a href="http://www.thinkshop.cn/sales_info.php?ef=list"><img src="images/more.gif" border="0" height="5" width="158"></a></td>
  425.                                     </tr>
  426.                                   </tbody>
  427.                                 </table></td>
  428.                               <td rowspan="3" bgcolor="#aab3d5" width="1"><img src="images/line.gif" height="1" width="1"></td>
  429.                             </tr>
  430.                             <tr>
  431.                               <td bgcolor="#e2e4f0" height="8"><img src="images/line.gif" height="1" width="1"></td>
  432.                             </tr>
  433.                             <tr>
  434.                               <td bgcolor="#aab3d5" height="1"><img src="images/line.gif" height="1" width="1"></td>
  435.                             </tr>
  436.                           </tbody>
  437.                         </table></td>
  438.                     </tr>
  439.                     <tr>
  440.                       <td><table border="0" cellpadding="0" cellspacing="0" width="100%">
  441.                           <tbody>
  442.                             <tr>
  443.                               <td colspan="3"><img src="images/jingcai.gif" height="32" width="190"></td>
  444.                             </tr>
  445.                             <tr>
  446.                               <td rowspan="3" bgcolor="#aab3d5" width="1"><img src="images/line.gif" height="1" width="1"></td>
  447.                               <td align="center" bgcolor="#e2e4f0"><table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="90%">
  448.                                   <tbody>
  449.                                     <tr>
  450.                                       <td class="twoji" align="left">·<a class="twoji" href="http://www.thinkshop.cn/extend.php?type=file&amp;fileid=85" target="_blank">贝尔金成为2006网球大师杯..</a><br>
  451.                                         ·<a class="twoji" href="http://www.thinkshop.cn/extend.php?type=file&amp;fileid=84" target="_blank">3M手机防窥膜,特别的爱给特..</a><br>
  452.                                         ·<a class="twoji" href="http://www.thinkshop.cn/extend.php?type=file&amp;fileid=83" target="_blank">梁彦春出任贝尔金中国区总..</a><br>
  453.                                         ·<a class="twoji" href="http://www.thinkshop.cn/extend.php?type=file&amp;fileid=82" target="_blank">狂飚300M 802.11n无线路由</a><br>
  454.                                         ·<a class="twoji" href="http://www.thinkshop.cn/extend.php?type=file&amp;fileid=81" target="_blank">Pre-N 2代宽带无线路由器</a><br>
  455.                                         ·<a class="twoji" href="http://www.thinkshop.cn/extend.php?type=file&amp;fileid=79" target="_blank">金山毒霸杀毒U盘重装上阵</a><br>
  456.                                         ·<a class="twoji" href="http://www.thinkshop.cn/extend.php?type=file&amp;fileid=78" target="_blank">数码音频转播器真假说明</a><br>
  457.                                         ·<a class="twoji" href="http://www.thinkshop.cn/extend.php?type=file&amp;fileid=77" target="_blank">贝克曼清洁博士系列介绍</a><br></td>
  458.                                     </tr>
  459.                                     <tr>
  460.                                       <td align="center" height="10" valign="top"><a href="http://www.thinkshop.cn/extend.php?type=file"><img src="images/more.gif" border="0" height="5" width="158"></a></td>
  461.                                     </tr>
  462.                                   </tbody>
  463.                                 </table></td>
  464.                               <td rowspan="3" bgcolor="#aab3d5" width="1"><img src="images/line.gif" height="1" width="1"></td>
  465.                             </tr>
  466.                             <tr>
  467.                               <td bgcolor="#e2e4f0" height="8"><img src="images/line.gif" height="1" width="1"></td>
  468.                             </tr>
  469.                             <tr>
  470.                               <td bgcolor="#aab3d5" height="1"><img src="images/line.gif" height="1" width="1"></td>
  471.                             </tr>
  472.                           </tbody>
  473.                         </table></td>
  474.                     </tr>
  475.                     <tr>
  476.                       <td bgcolor="#6874bf" valign="top"><input name="qid" value="7" type="hidden">
  477.                         <input value="Y" name="Bsubmit" type="hidden">
  478.                         <table style="border-collapse: collapse;" bordercolorlight="#FF0000" bordercolordark="#FF0000" border="0" bordercolor="#111111" cellpadding="0" cellspacing="0">
  479.                           <script>function windowOpener0(){controlWindow=window.open('','thinkshop','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=100,height=100');}</script>
  480.                           <form action="question.php" method="post" onSubmit="windowOpener0()" target="thinkshop">
  481.                           </form>
  482.                           <tbody>
  483.                             <tr>
  484.                               <td colspan="5"><img src="images/wen_top.gif" height="17" width="190"></td>
  485.                             </tr>
  486.                             <tr>
  487.                               <td rowspan="2" bgcolor="#aab3d5" width="1"><img src="images/line.gif" height="1" width="1"></td>
  488.                               <td rowspan="2" class="wenjuan" width="10">&nbsp;</td>
  489.                               <td class="twoji" bgcolor="#ffffff" height="24" width="168">当您在公共场所使用手机收发短信时,有人正在偷看您的手机屏幕,您有何感觉?</td>
  490.                               <td rowspan="2" class="wenjuan" width="10">&nbsp;</td>
  491.                               <td rowspan="2" bgcolor="#aab3d5" width="1"><img src="images/line.gif" height="1" width="1"></td>
  492.                             </tr>
  493.                             <tr>
  494.                               <td bgcolor="#ffffff" height="80"><input value="22" name="qd_serial" type="radio">
  495.                                 非常厌恶这种行为<br>
  496.                                 <input value="23" name="qd_serial" type="radio">
  497.                                 无所谓,不予理睬<br>
  498.                                 <input value="24" name="qd_serial" type="radio">
  499.                                 乐意共享我的信息<br>
  500.                                 &nbsp;&nbsp;&nbsp;
  501.                                 <input src="images/tijiao.gif" border="0" height="20" type="images" width="60">
  502.                                 <a href="http://www.thinkshop.cn/question.php?qid=7&amp;Bsubmit=Y" onClick="js_callpage(href);return false"><img src="images/chongxie.gif" border="0" height="20" width="60"></a></td>
  503.                             </tr>
  504.                             <tr>
  505.                               <td colspan="5"><img src="images/wen_up.gif" height="30" width="190"></td>
  506.                             </tr>
  507.                           </tbody>
  508.                         </table></td>
  509.                     </tr>
  510.                   </tbody>
  511.                 </table></td>
  512.               <td onMouseOver="on_trview('0','')" width="10"></td>
  513.               <td valign="top" width="780"><map name="FPMap_brand">
  514.                   <area coords="5, 6, 65, 29" shape="rect" href="http://www.thinkshop.cn/index_pma.php?pma_code=21">
  515.                   <area coords="75, 6, 147, 28" shape="rect" href="http://www.thinkshop.cn/brand_belkin.php">
  516.                   <area coords="157, 7, 187, 29" shape="rect" href="http://www.thinkshop.cn/brand_3m.php">
  517.                   <area coords="194, 6, 277, 30" shape="rect" href="http://www.thinkshop.cn/brand_logitech.php">
  518.                   <area coords="353, 6, 417, 28" shape="rect" href="http://www.thinkshop.cn/brandshop.php?brand=%C5%B7%C4%B7%C1%FA">
  519.                   <area coords="423, 5, 499, 29" shape="rect" href="http://www.thinkshop.cn/brandshop.php?brand=%CF%A3%B8%F1%CB%AE%C6%BF">
  520.                   <area coords="507, 5, 597, 28" shape="rect" href="http://www.thinkshop.cn/brandshop.php?brand=%C8%F0%CA%BF%BE%FC%B5%B6">
  521.                   <area coords="607, 6, 690, 28" shape="rect" href="http://www.thinkshop.cn/brandshop.php?brand=%B1%B4%BF%CB%C2%FC%B2%A9%CA%BF">
  522.                   <area coords="696, 4, 774, 29" shape="rect" href="http://www.thinkshop.cn/index_catalog.php?pma_code=8&amp;cat_code=228">
  523.                   <area coords="283, 6, 349, 28" shape="rect" href="http://www.thinkshop.cn/brandshop.php?brand=%C8%F1%BD%DD%CD%F8%C2%E7">
  524.                 </map>
  525.                 <table border="0" cellpadding="0" cellspacing="0" width="100%">
  526.                   <tbody>
  527.                     <tr>
  528.                       <td onMouseOver="on_trview('0','')" height="8"></td>
  529.                     </tr>
  530.                     <tr>
  531.                       <td><table border="0" cellpadding="0" cellspacing="0" width="100%">
  532.                           <tbody>
  533.                             <tr>
  534.                               <td bgcolor="#4352af" width="519"><table style="border-collapse: collapse;" border="0" bordercolor="#111111" cellpadding="0" cellspacing="0" height="266" width="519">
  535.                                   <tbody>
  536.                                     <tr>
  537.                                       <td width="100%"><a style="left: 518px ! important; top: 0px ! important;" class="abp-objtab visible ontop" href="images/index_banner.swf"></a>
  538.                                         </td>
  539.                                     </tr>
  540.                                   </tbody>
  541.                                 </table></td>
  542.                               <td valign="top" width="260"><table bgcolor="#4352af" border="0" cellpadding="0" cellspacing="0" height="100%" width="100%">
  543.                                   <tbody>
  544.                                     <tr>
  545.                                       <td align="right"><img src="images/newp_top.gif" height="38" width="257"></td>
  546.                                     </tr>
  547.                                     <tr>
  548.                                       <td align="center" bgcolor="#4352af" height="98" valign="top"><table border="0" cellpadding="0" cellspacing="0" width="242">
  549.                                           <tbody>
  550.                                             <tr>
  551.                                               <td align="left" height="118" valign="middle"><span class="white">·<a href="http://www.thinkshop.cn/index_pi.php?productcode=GT1325" class="white">瑞士军刀 瑞士卡0.7100红</a><br>
  552.                                                 ·<a href="http://www.thinkshop.cn/index_pi.php?productcode=GT1323" class="white">3M 指示标签透明随身盒组合装(黄/蓝)</a><br>
  553.                                                 ·<a href="http://www.thinkshop.cn/index_pi.php?productcode=GT1319" class="white">德国贝克曼博士助洗去污剂100克*2装</a><br>
  554.                                                 ·<a href="http://www.thinkshop.cn/index_pi.php?productcode=BR0472" class="white">贝尔金无线迷你小鹰+贝尔金护腕式鼠标..</a><br>
  555.                                                 ·<a href="http://www.thinkshop.cn/index_pi.php?productcode=GT1318" class="white">欧姆龙905计步器</a><br>
  556.                                                 ·<a href="http://www.thinkshop.cn/index_pi.php?productcode=BR0470" class="white">贝尔金伸缩式AV视听线(黑色)</a><br>
  557.                                                 </span></td>
  558.                                             </tr>
  559.                                           </tbody>
  560.                                         </table></td>
  561.                                     </tr>
  562.                                     <tr>
  563.                                       <td align="center" bgcolor="#4352af"><table background="images/242-98.gif" border="0" cellpadding="0" cellspacing="0" width="242">
  564.                                           <tbody>
  565.                                             <tr>
  566.                                               <td align="center" height="98" width="138"><table style="border-collapse: collapse;" border="0" bordercolor="#111111" cellpadding="0" cellspacing="0" width="90%">
  567.                                                   <tbody>
  568.                                                     <tr>
  569.                                                       <td align="left" height="40"><strong><a href="" onClick="return false"><span id="img_title" onClick="javascript:goUrl()"></span></a></strong></td>
  570.                                                     </tr>
  571.                                                     <tr>
  572.                                                       <td align="left"><p class="white"><span id="img_price1"></span><br>
  573.                                                           <span id="img_price2"></span></p></td>
  574.                                                     </tr>
  575.                                                   </tbody>
  576.                                                 </table></td>
  577.                                               <td align="center" height="98" valign="middle" width="104"><span onClick="javascript:goUrl()" style=""> <img src="images/br0465.gif" id="imgInit" style="border-color: black; color: rgb(0, 0, 0);" name="imgInit" border="0" height="90" width="75"></span></td>
  578.                                             </tr>
  579.                                             
  580.                                           </tbody>
  581.                                         </table></td>
  582.                                     </tr>
  583.                                     <tr>
  584.                                       <td align="right"><img src="images/newp_up.gif" height="12" width="260"></td>
  585.                                     </tr>
  586.                                   </tbody>
  587.                                 </table></td>
  588.                             </tr>
  589.                           </tbody>
  590.                         </table></td>
  591.                     </tr>
  592.                     <tr>
  593.                       <td><table border="0" cellpadding="0" cellspacing="0" width="100%">
  594.                           <tbody>
  595.                             <tr>
  596.                               <td width="584" valign="top"><table border="0" cellpadding="0" cellspacing="0" width="100%">
  597.                                   <tbody>
  598.                                     <tr>
  599.                                       <td width="10"></td>
  600.                                       <td width="553" valign="top">
  601.   
  602.   
  603.   
  604.   <table border="0" cellpadding="0" cellspacing="0" width="553">
  605.                                           <tbody>
  606.                                           
  607.                                           <%
  608.                                           for (int i=0; i<topCategories.size(); i += 2) {
  609.                                            Category first = topCategories.get(i);
  610.                                            Category second = null;
  611.                                            if((i+1) < topCategories.size()) {
  612.                                            second = topCategories.get(i+1);
  613.                                            }
  614.                                            %>
  615.                                             <tr>
  616.                                               <td width="47%">
  617.                                                <a href="">
  618.                                                <%=first.getName() %>
  619.                                                </a>
  620.                                               </td>
  621.                                               <td width="7%"></td>
  622.                                               <td width="46%">
  623.                                                <a href="">
  624.                                                <%=second == null ? "" : second.getName() %>
  625.                                                </a>
  626.                                               </td>
  627.                                             </tr>
  628.                                             <tr>
  629.                                               <td class="twoji">
  630.                                                <%=getChildsStr(getChilds(first, categories))%>
  631.                                               </td>
  632.                                               <td> </td>
  633.                                               <td class="twoji">
  634.                                                <%=second == null ? "" :  getChildsStr(getChilds(second, categories))%>
  635.                                               </td>
  636.                                             </tr>
  637.                                            <%
  638.                                            }
  639.                                             %>
  640.                                           </tbody>
  641.                                         </table>
  642.                                       </td>
  643.                                       <td width="20"></td>
  644.                                     </tr>
  645.                                   </tbody>
  646.                               </table></td>
  647.                               <td align="right" valign="top" width="196"><table border="0" cellpadding="0" cellspacing="0" width="196">
  648.                                   <tbody>
  649.                                     <tr>
  650.                                       <td><img src="images/paihang_top.gif" height="88" width="196"></td>
  651.                                     </tr>
  652.                                     <tr>
  653.                                       <td align="center" background="images/paihang_bg.gif"><table style="border-collapse: collapse;" border="0" cellpadding="0" cellspacing="0" width="170">
  654.                                           <tbody>
  655.                                             <tr>
  656.                                               <td height="25"><img src="images/tou_02.gif"><a href="http://www.thinkshop.cn/index_pi.php?productcode=GT1025" class="twoji" title="贝尔金护腕式鼠标垫">贝尔金护腕式鼠标垫</a></td>
  657.                                             </tr>
  658.                                             <tr>
  659.                                               <td height="2"><img src="images/xian.gif" height="1" width="170"></td>
  660.                                             </tr>
  661.                                             <tr>
  662.                                               <td height="25"><img src="images/tou_03.gif"><a href="http://www.thinkshop.cn/index_pi.php?productcode=GT0855" class="twoji" title="3M 屏幕及键盘清洁套装">3M 屏幕及键盘清洁套装</a></td>
  663.                                             </tr>
  664.                                             <tr>
  665.                                               <td height="2"><img src="images/xian.gif" height="1" width="170"></td>
  666.                                             </tr>
  667.                                             <tr>
  668.                                               <td height="25"><img src="images/tou_02.gif"><a href="http://www.thinkshop.cn/index_pi.php?productcode=GT0856" class="twoji" title="3M 可调节笔记本底座-立式">3M 可调节笔记本底座-立式</a></td>
  669.                                             </tr>
  670.                                             <tr>
  671.                                               <td height="2"><img src="images/xian.gif" height="1" width="170"></td>
  672.                                             </tr>
  673.                                             <tr>
  674.                                               <td height="25"><img src="images/tou_02.gif"><a href="http://www.thinkshop.cn/index_pi.php?productcode=BR0235" class="twoji" title="贝尔金车载电源(车载交流供电器 300W)">贝尔金车载电源(车载交流..</a></td>
  675.                                             </tr>
  676.                                             <tr>
  677.                                               <td height="2"><img src="images/xian.gif" height="1" width="170"></td>
  678.                                             </tr>
  679.                                             <tr>
  680.                                               <td height="25"><img src="images/tou_02.gif"><a href="http://www.thinkshop.cn/index_pi.php?productcode=GT0794" class="twoji" title="3M 思高拭亮(擦拭屏幕)IT包装">3M 思高拭亮(擦拭屏幕)IT..</a></td>
  681.                                             </tr>
  682.                                             <tr>
  683.                                               <td height="2"><img src="images/xian.gif" height="1" width="170"></td>
  684.                                             </tr>
  685.                                             <tr>
  686.                                               <td height="25"><img src="images/tou_02.gif"><a href="http://www.thinkshop.cn/index_pi.php?productcode=BR0010" class="twoji" title="贝尔金全球通插座适配器">贝尔金全球通插座适配器</a></td>
  687.                                             </tr>
  688.                                             <tr>
  689.                                               <td height="2"><img src="images/xian.gif" height="1" width="170"></td>
  690.                                             </tr>
  691.                                             <tr>
  692.                                               <td height="25"><img src="images/tou_02.gif"><a href="http://www.thinkshop.cn/index_pi.php?productcode=BR0236" class="twoji" title="贝尔金车载电源(车载交流供电器 150W新款)">贝尔金车载电源(车载交流..</a></td>
  693.                                             </tr>
  694.                                             <tr>
  695.                                               <td height="2"><img src="images/xian.gif" height="1" width="170"></td>
  696.                                             </tr>
  697.                                             <tr>
  698.                                               <td height="25"><img src="images/tou_02.gif"><a href="http://www.thinkshop.cn/index_pi.php?productcode=BR0402" class="twoji" title="3M爽洁清洁泡+3M思高拭亮(大块)">3M爽洁清洁泡+3M思高拭亮..</a></td>
  699.                                             </tr>
  700.                                             <tr>
  701.                                               <td height="2"><img src="images/xian.gif" height="1" width="170"></td>
  702.                                             </tr>
  703.                                             <tr>
  704.                                               <td height="25"><img src="images/tou_02.gif"><a href="http://www.thinkshop.cn/index_pi.php?productcode=BR0013" class="twoji" title="贝尔金笔记本USB2.0 2口PCMCIA 适配卡">贝尔金笔记本USB2.0 2口P..</a></td>
  705.                                             </tr>
  706.                                             <tr>
  707.                                               <td height="2"><img src="images/xian.gif" height="1" width="170"></td>
  708.                                             </tr>
  709.                                             <tr>
  710.                                               <td height="25"><img src="images/tou_02.gif"><a href="http://www.thinkshop.cn/index_pi.php?productcode=BR0357" class="twoji" title="贝尔金笔记本电脑保护内胆包(14寸)">贝尔金笔记本电脑保护内胆..</a></td>
  711.                                             </tr>
  712.                                           </tbody>
  713.                                         </table></td>
  714.                                     </tr>
  715.                                     <tr>
  716.                                       <td><img src="images/paihang_up.gif" height="17" width="196"></td>
  717.                                     </tr>
  718.                                     <tr>
  719.                                       <td height="5"></td>
  720.                                     </tr>
  721.                                     <tr>
  722.                                       <td><a title="商城招募校园代理火爆进行中!激起创业的激情!" target="_blank" href="http://www.thinkshop.cn/sales/campus"><img src="images/fcthink2.gif" border="0" height="66" width="194"></a></td>
  723.                                     </tr>
  724.                                   </tbody>
  725.                                 </table></td>
  726.                             </tr>
  727.                           </tbody>
  728.                         </table></td>
  729.                     </tr>
  730.                     <tr>
  731.                       <td height="35" valign="center"><img src="images/pingpai_new.gif" usemap="#FPMap_brand" border="0" height="31" width="780"></td>
  732.                     </tr>
  733.                   </tbody>
  734.                 </table></td>
  735.             </tr>
  736.           </tbody>
  737.         </table></td>
  738.     </tr>
  739.     <tr>
  740.       <td width="100%"><!--底部INC-->
  741.         <table border="0" cellpadding="0" cellspacing="0" width="100%">
  742.           <tbody>
  743.             <tr>
  744.               <td class="white" target="_blank" align="center" bgcolor="#383eb6" height="25"><a href="http://www.thinkshop.cn/extend.php#%C9%CC%B3%C7%B6%A8%CE%BB" class="white" target="_blank">商城定位</a> | <a href="http://www.thinkshop.cn/extend.php#%BB%E1%D4%B1%D3%C5%BB%DD" class="white" target="_blank"><font color="#ffffff">会员优惠</font></a> | <a href="http://www.thinkshop.cn/extend.php#%B6%A9%B5%A5%B4%A6%C0%ED%B9%FD%B3%CC" class="white" target="_blank">订单处理</a> | <a href="http://www.thinkshop.cn/extend.php#%D3%D0%B9%D8%BB%FD%B7%D6%B6%D2%BB%BB" class="white" target="_blank">积分兑换</a> | <a href="http://www.thinkshop.cn/extend.php#%B3%A3%BC%FB%CE%CA%CC%E2" class="white" target="_blank">常见问题</a> | <a href="http://www.thinkshop.cn/extend.php#%D0%D1%BF%CD%C0%F1%C8%AF" class="white" target="_blank">礼券</a> | <a href="http://www.thinkshop.cn/extend.php#%B9%BA%C2%F2%B7%BD%CA%BD" class="white" target="_blank">购买方式</a> | <a href="http://www.thinkshop.cn/extend.php#%BC%DB%B8%F1%CB%B5%C3%F7" class="white" target="_blank">价格说明</a> | <a href="http://www.thinkshop.cn/extend.php#%B8%B6%BF%EE%B7%BD%CA%BD" class="white" target="_blank">付款方式</a> | <a href="http://www.thinkshop.cn/extend.php#%C5%E4%CB%CD%B7%BD%CA%BD%D3%EB%B7%D1%D3%C3" class="white" target="_blank">配送费用</a> | <a href="http://www.thinkshop.cn/extend.php#%B1%A3%D0%DE%D3%EB%CD%CB%BB%BB" class="white" target="_blank">保修退换</a> | <a href="http://www.allsmart.com.cn/ThinkPad/bbs/upload/forumdisplay.php?fid=40" class="white" target="_blank">客服专区</a> | <a href="http://www.thinkshop.cn/searchlist.htm" class="white" target="_blank">快速浏览</a> | <a href="http://www.allsmart.com/about_me/about_9.htm" class="white" target="_blank">招贤纳士</a> <span class="white">| <a href="http://www.allsmart.com/about_me/about_10.htm" class="white" target="_blank">友情链接</a></span></td>
  745.             </tr>
  746.             <tr>
  747.               <td align="center" height="5"><img src="images/line.gif" height="1" width="1"></td>
  748.             </tr>
  749.             <tr>
  750.               <td align="center"><table style="border-collapse: collapse; font-size: 9pt;" border="0" bordercolor="#111111" cellpadding="0" cellspacing="0">
  751.                   <tbody>
  752.                     <tr>
  753.                       <td width="50" height="38" align="left"><a href="http://www.ebworld.com.cn/html/2006-12-11/2006121183850.asp" target="_blank"><img src="images/2006-TOP100.gif" alt="第二届消费者最喜爱的网站TOP100" border="0" height="43" width="44"></a></td>
  754.                       <td><p align="left"><a href="http://www.hd315.gov.cn/beian/view.asp?bianhao=010202006053100022" target="_blank"><img src="images/biaoshi.gif" border="0" height="35" width="28"></a></p></td>
  755.                     </tr>
  756.                   </tbody>
  757.                 </table></td>
  758.             </tr>
  759.           </tbody>
  760.         </table></td>
  761.     </tr>
  762.   </tbody>
  763. </table>
  764. <script src="images/addnum.htm"></script>
  765. </body>
  766. </html>