<LINK href="leftpro_kind.css" type=text/css rel=stylesheet>
<SCRIPT src="kind_jquery-1.3.2.min.js" type=text/javascript></SCRIPT>
<!--script begin-->
<DIV class=nav id=nav_1>
    <SCRIPT type=text/javascript>
	var _category_menu_item_temp = null;
	$(function(){
		var $items = $('.h2_cat');
		var $cons = $('.h3_cat');
		$items.hover(
		function(){
			var _index = $items.index(this);
			
			if(_index < $items.size()-1) {
				$cons.eq(_index).show();
			 
				this.className='h2_cat active_cat';
				if (this!=_category_menu_item_temp&&_category_menu_item_temp!=null&& _category_menu_item_temp!=undefined){
					_category_menu_item_temp.className='h2_cat';
				}if(this!=_category_menu_item_temp && _category_menu_item_temp!=null){
					_category_menu_item_temp=this;
				}else if(_category_menu_item_temp==null){
					_category_menu_item_temp=document.getElementById('categoryId_mobile_brand_menu');
				} 
			}
			
			//lazyloadForHidePart($cons.eq(_index));
		},
		function(){
			var _index = $items.index(this);
			$cons.eq(_index).hide();
			this.className='h2_cat';
		}
	)
	
	$cons.hover(
		function(){
			var _index2 = $cons.index(this);
			$(this).show();
			$items.eq(_index2).addClass('active_cat');
		},
		function(){
			var _index2 = $cons.index(this);
			$(this).hide();
			$items.eq(_index2).removeClass('active_cat');
		}
		)
	});
	 
	  function openUrlInNewWin(url) {
		  var encodeUrl = encodeURI(url);
		  //alert(encodeUrl);
		  window.open(encodeUrl, "");
	  }
	 
	</SCRIPT>
</DIV>
<!--script end-->


<DIV class=my_left_category id=my_left_category_1>

	
    <DIV class=my_left_cat_list>


 <%
 s_picwidthh="135"  's_rs("s_picwidth") '预防在后台设得太大而走位
	s_picheightt=175




				dim prostr			
				prostr=""
				sql0="select kindnum,kindname from sh_kind where len(kindnum)=4 order by kindnum asc "
				set rs0=conn.execute(sql0)
				if rs0.bof or rs0.eof then
				else
					n=1
					do while not rs0.eof
						kindnum = rs0("kindnum")
				

				prostr=prostr & "<DIV class=h3_cat id=h3_cat_1>"&vbcrlf
					prostr=prostr & "<DIV class=shadow>"&vbcrlf
						prostr=prostr & "<DIV class=shadow_border> <!--有线 begin-->"&vbcrlf
					 				prostr=prostr & "<div class=shownew>"&vbcrlf
									prostr=prostr & "<div class=newproduct>新品上市</div>"&vbcrlf
									
									'------------列出两个最新商品begin-------------
									sql="select top 4 pkid,model,productname,smallpicpath,price1,price2,pipai,addtime from view_product where kind like '"&kindnum&"%' and updown='1' order by addtime desc,pkid desc"
									'response.write sql
									set rs=conn.execute(sql)
									if rs.bof or rs.eof then
									else
										ee=1
										do while not rs.eof
											pkid=rs("pkid")
											model=rs("model")
											productname=rs("productname")
											smallpicpath=rs("smallpicpath")
											price1=rs("price1")
											price2=rs("price2")
											pipai=rs("pipai")
											addtime=rs("addtime")
											
											if ee=1 then
											
											
											prostr=prostr & "<div align='left' style='margin-top:6px;'>"
												prostr=prostr & "<A href='show.asp?pkid="&pkid&"'> <IMG src=product/"&smallpicpath&" width='"&s_picwidthh&"' height='"&s_picheightt&"' border='0' class=img1></A>"
											prostr=prostr & "</div>"&vbcrlf
											prostr=prostr & "<DIV align='left'>"
												prostr=prostr & "<A class=font_link href='show.asp?pkid="&pkid&"' target=_blank>"&productname&"</A>"
											prostr=prostr & "</DIV>"&vbcrlf
											prostr=prostr & "<DIV align='left' style='margin-bottom:12px;'> <font class='nowprice'>￥"&price2&"</font></DIV>"&vbcrlf
											
											else
											prostr=prostr & "<DIV align='left' style='MARGIN-TOP: 2px;'>"
												prostr=prostr & "·<A class=font_link href='show.asp?pkid="&pkid&"' target=_blank>"&productname&"</A>"
											prostr=prostr & "</DIV>"&vbcrlf
											end if
											rs.movenext
											ee=ee+1
										loop
									end if
									rs.close
									'------------列出两个最新商品end---------------
									
									
									prostr=prostr & "</div>"&vbcrlf
									prostr=prostr & "<DIV class=T_box_l>"&vbcrlf
						
						sql="select kindnum,kindname from sh_kind where len(kindnum)>4 and kindnum like '"&kindnum&"%' order by kindnum asc "
						set rs=conn.execute(sql)
						if rs.bof or rs.eof then
						else
							m=1
							do while not rs.eof
								kindnum = rs("kindnum")
								kindname = rs("kindname")
							
										
										if len(kindnum)=8 then
											if m>1 then prostr=prostr & "</UL>"
											
											prostr=prostr & "<UL class=btton_lines_A><SPAN ><A href='productlist.asp?kind="&kindnum&"'>"&kindname&"</A></SPAN></UL>"&vbcrlf
											prostr=prostr & "<UL>"
										else
											prostr=prostr & "<LI><A href='productlist.asp?kind="&kindnum&"'>"&kindname&"</A></LI>"&vbcrlf
										end if
						
							rs.movenext
							m=m+1
							loop
						end if
						rs.close
						
						
										prostr=prostr & "</UL>"&vbcrlf
									prostr=prostr & "</DIV>"&vbcrlf
						prostr=prostr & "</DIV><!--有线 end-->"&vbcrlf
					prostr=prostr & "</DIV>"&vbcrlf
				prostr=prostr & "</DIV>"&vbcrlf
				
					rs0.movenext
					loop
				end if
				rs0.close
				
			
      
				'<!--菜单 begin-->
				
				sql="select kindnum,kindname from sh_kind where len(kindnum)=4 order by kindnum asc "
				set rs=conn.execute(sql)
				if rs.bof or rs.eof then
				else
					n=1
					do while not rs.eof
						kindnum = rs("kindnum")
						kindname = rs("kindname")
				
				prostr=prostr & "<DIV class=h2_cat "
				if n=1 then
				prostr=prostr & "id=categoryId_mobile_brand_menu "
				end if
				prostr=prostr & " >"&vbcrlf
					prostr=prostr & "<DIV class=icon_box><IMG src='images/t06.gif'></DIV><A style='LINE-HEIGHT: 39px' href='productlist.asp?kind="&kindnum&"'>"&kindname&"</A>"
				prostr=prostr & "</DIV>"&vbcrlf
				
					rs.movenext
					n=n+1
					loop
				end if
				rs.close
				
				
				prostr=prostr & "<DIV class=h2_cat "
				if n=1 then
				prostr=prostr & "id=categoryId_mobile_brand_menu "
				end if
				prostr=prostr & " >"&vbcrlf
					prostr=prostr & "<DIV class=icon_box><IMG src='images/t062.jpg'></DIV><A style='LINE-HEIGHT: 39px' href='productlist.asp'>全部商品</A>"
				prostr=prostr & "</DIV>"&vbcrlf
			response.write prostr
				
				'<!--菜单 end-->

%>





    </DIV>
	
</DIV>


<%
nowpath = Request.ServerVariables("SCRIPT_NAME")
if  instr(LCase(nowpath),"index.asp")>0 or nowpath="/" or nowpath=""  then
else
%>
<TABLE width="202" border=0 cellPadding=2 cellSpacing=0 class="weitab" style="margin-top:10px;">
<tr>
  <td height="32" colspan=2 background="images/index_png24_a1.png"><font color="#999999"><strong>最近浏览过的商品</strong></font></td>
</tr>
<%
haveshow = request.cookies("haveshow")
'response.write haveshow
if haveshow<>"" then
	arr=split(haveshow,",")
	
	for j=0 to Ubound(arr)
	if isnumeric(arr(j)) then
	
		sql="select pkid,productname,smallpicpath,hit,price1,price"&session("customkind")&" from e_product where pkid=" & arr(j)
		set rs=server.CreateObject("adodb.recordset")
		rs.open sql,conn,1,1
		if rs.bof or rs.eof then
		else
				set pkid=rs("pkid")
				set productname=rs("productname")
				set smallpicpath=rs("smallpicpath")
				set hit=rs("hit")
				set price1=rs("price1")
				set price2=rs("price"&session("customkind"))
%>
		  <TR> 
			<TD align=center vAlign=top width='25%'><A href="show.asp?pkid=<%=pkid%>"><IMG thissrc="product/<%=smallpicpath%>" width='45' border="0" style="margin:2px;"></A></TD>
			<TD width='75%'>
				<A href="show.asp?pkid=<%=pkid%>" target=_blank><%=productname%></A>
				<DIV align="left" style="padding-bottom:3px;"><b>￥<%=mydot(price2)%></b>&nbsp;&nbsp;<del>￥<%=mydot(price1)%></del></DIV>
			</TD>
		  </TR>
		  <TR> 
			<TD align=middle height=5></TD>
		  </TR>
<%
		end if
		rs.close
		set rs=nothing
		if j=8 then
			exit for
		end if
	end if	
	next
	
else
	response.write "<tr><td height='25'>还没有浏览过的商品。</td></tr>"
end if
%>
</TABLE>
<%end if%>

