<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<tpl> $NCharset </tpl>" />
<link href="<tpl> $template_dir </tpl>/store/css/layout.css" rel="stylesheet" type="text/css" />
<link href="<tpl> $site_url </tpl>/templates/storestyle/<tpl>$frame_shop_info.shop_style</tpl>/style.css" rel="stylesheet" type="text/css" />
<tpl>include file ='../store.config.html'</tpl>
</head>
<script>
function a_category_sign(id){
	$('#span_category_'+id).toggle();
	$('#a_category_'+id).removeClass();
	if($('#span_category_'+id).css('display') == 'none'){
		$('#a_category_'+id).addClass('splay');
	}else{
		$('#a_category_'+id).addClass('close');
	}
}
</script>
<body>
<div id="container760">
 <tpl>include file ='../store_header.html'</tpl><!-- 调用头文件 -->
  <div id="container1024">
<div id="ShopFP">
<div id="ShopFP_top">

<h1><tpl>$frame_shop_info.shop_name</tpl></h1>
<span>
</span>
    <ul id="NavBar" class="NavBar"><!-- 店铺导航栏 -->
      <li class="select"><div class="bg_lasuo1"><tpl> $frame_shop_info.shop_name </tpl></div><div class="bg_lasuo"> </div></li><!-- 商店名称 -->
      <li  class="jieshao"><a href="intro.php?userid=<tpl>$frame_user_id</tpl>" target="_blank"><tpl> $langStoreShopIntro </tpl></a></li>
      <tpl> if $frame_shop_info.audit_state eq '2' </tpl>
      <li class="jieshao"><a href="shop_map.php?userid=<tpl>$frame_user_id</tpl>" target="_blank"><tpl> $langStoreShopMap </tpl></a></li>
      <tpl> /if </tpl>
    </ul>
	</div>
	<!-- banner pic -->

	<tpl> if $frame_shop_info.shop_banner_pic neq '' </tpl>
		<img src="<tpl> $site_url </tpl>/<tpl> $frame_shop_info.shop_banner_pic </tpl>" name="banner_pic" width="950" height="124"  id="banner_pic" />
	<tpl> /if </tpl>

	<!-- banner pic end -->
    <div id="ShopInfo"><!-- 店铺掌柜及公告信息 -->
      <div id="PicAndFav"><!-- 店铺信息 -->
        <div id="ShopPic"><!-- 店铺logo -->
			<img src="<tpl> $site_url </tpl>/<tpl> $frame_shop_info.shop_pic|default:'templates/green/home/images/images_new/storepic_default.gif' </tpl>" >
		</div>
	<div class="store_img"><!-- 收藏及查看店铺 -->
	<span><a id="addtofav" href="javascript:;" onclick="product_collection('<tpl>$frame_user_id</tpl>');">
	<tpl> $langStoreCollectionShop </tpl></a><tpl> if $frame_shop_info.audit_state eq '2' </tpl>
	</span>
	<span><a href="shop_map.php?userid=<tpl>$frame_user_id</tpl>" target="_blank">
	<tpl> $langStoreShopPlace </tpl></a>
		<tpl> /if </tpl>
		</span>
	</div>
      </div>
      <div id="ShopInfoList"><!-- 店铺与掌柜信息 -->
        <ul>
          <li><span class="ListHint"><tpl> $langStoreShopkeeper </tpl>:</span><tpl> $frame_shop_info.login_name </tpl> 
		  <tpl> if $frame_shop_info.audit_state == '2' </tpl> 
		  
            <img src="<tpl> $template_dir </tpl>/store/images/renzheng_g.gif" border="0" title="<tpl> $langStoreAlreadyEntityShop </tpl>"/>

          <tpl> /if </tpl>
		 
		  </li>
          <li><span class="ListHint"><tpl> $langStoreSaleCredit </tpl>:</span>
		  	<a href="user_rate.php?userid=<tpl>$frame_user_id</tpl>"><tpl> $member_array.sale_score|default:'0' </tpl></a>
		  	<a href="user_rate.php?userid=<tpl>$frame_user_id</tpl>">
			<tpl> foreach from=$sale_score.median item=one </tpl>
				<tpl> if $sale_score.level eq '0' </tpl>
					<img title="<tpl> $sale_score.interval.one </tpl>－<tpl> $sale_score.interval.two </tpl><tpl> $langStoreIntegralLook </tpl>" src="<tpl> $template_dir </tpl>/<tpl>$templatepath</tpl>/images/b_red_1.gif" alt="<tpl> $sale_score.interval.one </tpl>－<tpl> $sale_score.interval.two </tpl><tpl> $langStoreIntegralLook </tpl>">
				<tpl> /if </tpl>
				<tpl> if $sale_score.level eq '1' </tpl>
					<img title="<tpl> $sale_score.interval.one </tpl>－<tpl> $sale_score.interval.two </tpl><tpl> $langStoreIntegralLook </tpl>" src="<tpl> $template_dir </tpl>/<tpl>$templatepath</tpl>/images/b_red_2.gif" alt="<tpl> $sale_score.interval.one </tpl>－<tpl> $sale_score.interval.two </tpl><tpl> $langStoreIntegralLook </tpl>">
				<tpl> /if </tpl>
				<tpl> if $sale_score.level eq '2' </tpl>
					<img title="<tpl> $sale_score.interval.one </tpl>－<tpl> $sale_score.interval.two </tpl><tpl> $langStoreIntegralLook </tpl>" src="<tpl> $template_dir </tpl>/<tpl>$templatepath</tpl>/images/b_red_3.gif" alt="<tpl> $sale_score.interval.one </tpl>－<tpl> $sale_score.interval.two </tpl><tpl> $langStoreIntegralLook </tpl>">
				<tpl> /if </tpl>
			<tpl> /foreach </tpl>
			</a>
		  </li>
          <li><span class="ListHint"><tpl> $langStoreBuyCredit </tpl>:</span>
		  	<a href="user_rate.php?userid=<tpl>$frame_user_id</tpl>"><tpl> $member_array.buy_score|default:'0' </tpl></a>
		  	<a href="user_rate.php?userid=<tpl>$frame_user_id</tpl>">
			<tpl> foreach from=$buy_score.median item=one </tpl>
				<tpl> if $buy_score.level eq '0' </tpl>
					<img title="<tpl> $buy_score.interval.one </tpl>－<tpl> $buy_score.interval.two </tpl><tpl> $langStoreIntegralLook </tpl>" src="<tpl> $template_dir </tpl>/<tpl>$templatepath</tpl>/images/b_red_1.gif" alt="<tpl> $buy_score.interval.one </tpl>－<tpl> $buy_score.interval.two </tpl><tpl> $langStoreIntegralLook </tpl>">
				<tpl> /if </tpl>
				<tpl> if $buy_score.level eq '1' </tpl>
					<img title="<tpl> $buy_score.interval.one </tpl>－<tpl> $buy_score.interval.two </tpl><tpl> $langStoreIntegralLook </tpl>" src="<tpl> $template_dir </tpl>/<tpl>$templatepath</tpl>/images/b_red_2.gif" alt="<tpl> $buy_score.interval.one </tpl>－<tpl> $buy_score.interval.two </tpl><tpl> $langStoreIntegralLook </tpl>">
				<tpl> /if </tpl>
				<tpl> if $buy_score.level eq '2' </tpl>
					<img title="<tpl> $buy_score.interval.one </tpl>－<tpl> $buy_score.interval.two </tpl><tpl> $langStoreIntegralLook </tpl>" src="<tpl> $template_dir </tpl>/<tpl>$templatepath</tpl>/images/b_red_3.gif" alt="<tpl> $buy_score.interval.one </tpl>－<tpl> $buy_score.interval.two </tpl><tpl> $langStoreIntegralLook </tpl>">
				<tpl> /if </tpl>
			<tpl> /foreach </tpl>
			</a>
		  </li>
          <li><span class="ListHint"><tpl> $langStoreBabyNum </tpl>:</span><tpl> $product_count|default:'0' </tpl> </li>
          <li><span class="ListHint"><tpl> $langStoreCreateTime </tpl>:</span><tpl> $frame_shop_info.practice_time </tpl></li>
          <li><span class="ListHint"><tpl> $langStoreAddress </tpl>:</span><tpl> $sel_area[0].area_name </tpl></li>
          <li><span class="ListHint"><tpl> $langStoreAffiliation </tpl>:</span> 
		  	<a href="<tpl> $site_url </tpl>/member/own_message.php?action=add&username=<tpl>$frame_shop_info.sms_username</tpl>" target="_blank"><img src="<tpl>$site_url</tpl>/templates/green/store/images/zhannei.gif" alt="<tpl> $langStoreSendEpistle </tpl>"/></a>
			<tpl> if $member_array.TAOBAO neq '' </tpl>	
				  <a target="_blank" href="http://amos1.taobao.com/msg.ww?v=2&uid=<tpl> $member_array.TAOBAO </tpl>&site=cntaobao&s=2" ><img border="0" src="http://amos1.taobao.com/online.ww?v=2&uid=<tpl> $member_array.TAOBAO </tpl>&site=cntaobao&s=2" alt="<tpl> $langStoreOnClickMyInfo </tpl>" /></a>
			<tpl> /if </tpl> 
			<tpl> if $member_array.QQ neq '' </tpl>	  
					
				  <a target=blank href=tencent://message/?uin=<tpl> $member_array.QQ </tpl>&Site=www.shopnc.com&Menu=yes><img border="0" SRC=http://wpa.qq.com/pa?p=1:<tpl> $member_array.QQ </tpl>:4 alt="<tpl> $langStoreOnClickMyInfo </tpl>"></a>
			<tpl> /if </tpl> 
			<tpl> if $member_array.SKYPE neq '' </tpl>
				<script type="text/javascript" src="http://download.skype.com/share/skypebuttons/js/skypeCheck.js"></script>
				<a href="skype:<tpl> $member_array.SKYPE </tpl>?call"><img src="http://download.skype.com/share/skypebuttons/buttons/call_blue_transparent_34x34.png" style="border: none;" width="19" height="19" alt="Skype Me?!" /></a>
			<tpl> /if </tpl>
			<tpl> if $member_array.MSN neq '' </tpl>
				<A href="msnim:chat?contact=<tpl> $member_array.MSN </tpl>"><IMG src="http://img8.cn.msn.com/images/msfp_008.gif" width="19" height="19" border="0"></A>
			<tpl> /if </tpl>
			</li>
        </ul>
      </div>
      <div id="ShopAnnounceContainer"><!-- 店铺公告信息 -->
        <h1><tpl> $langStoreShopAffiche </tpl></h1>
        <div id="ShopAnnounceContent">
          <marquee style="position: relative;" onmouseover="this.stop()" onmouseout="this.start()" scrollamount="1" scrolldelay="85" direction="up" behavior="scroll" height="100%">
          <tpl>$frame_shop_info.proclamation</tpl>
          <!-- 商店公告 -->
          </marquee>
        </div>
        <div id="VipCardTitle" style="display: none;"></div>
      </div>
    </div>
    <div id="RecommendedItems">
      <table>
        <tbody>
          <tr> <tpl> section name=k loop=$shop_recommended_product_array </tpl>
            <td valign="top"><div class="ReItem">
                <div class="ReItemPic"> 
				<tpl> if $ifhtml eq '1' && $shop_recommended_product_array[k].html_url neq '' </tpl>
					<a href="<tpl> $shop_recommended_product_array[k].html_url </tpl>" target="_blank"> 
				<tpl> else </tpl>
					<a href="<tpl> $site_url </tpl>/home/product.php?action=view&pid=<tpl> $shop_recommended_product_array[k].p_code </tpl>" target="_blank"> 
				<tpl> /if </tpl>
				<img src="<tpl> $site_url </tpl>/<tpl> $shop_recommended_product_array[k].small_pic|default:'templates/green/images/noimgs.gif' </tpl>" width="<tpl> $shop_recommended_product_array[k].width|default:'100' </tpl>" height="<tpl> $shop_recommended_product_array[k].height|default:'100' </tpl>"> </a> 				
				</div>
                <div class="ItemName"> 
				<tpl> if $ifhtml eq '1' && $shop_recommended_product_array[k].html_url neq '' </tpl>
				<a href="<tpl> $site_url </tpl>/home/product.php?action=view&pid=<tpl> $shop_recommended_product_array[k].p_code </tpl>" target="_blank"> 
				<tpl> else </tpl>
				<a href="<tpl> $site_url </tpl>/home/product.php?action=view&pid=<tpl> $shop_recommended_product_array[k].p_code </tpl>" target="_blank"> 
				<tpl> /if </tpl>
				<tpl> $shop_recommended_product_array[k].p_name </tpl> </a> </div>
                <div> 
				<tpl> if $shop_recommended_product_array[k].p_sell_type eq '0' </tpl>
					<tpl> $langStoreProductSellAuction </tpl>
				<tpl> /if </tpl>
				<tpl> if $shop_recommended_product_array[k].p_sell_type eq '1' </tpl>
					<tpl> $langCfixprice </tpl>
				<tpl> /if </tpl>
				<tpl> if $shop_recommended_product_array[k].p_sell_type eq '2' </tpl>
					<tpl> $langStoreProductSellGroup </tpl>
				<tpl> /if </tpl>
				<span class="ItemPrice">
					<tpl> if $shop_recommended_product_array[k].p_sell_type eq '2' </tpl><!-- 团购 -->
						<tpl> $shop_recommended_product_array[k].p_group_price </tpl>
					<tpl> else </tpl>
						<tpl> $shop_recommended_product_array[k].p_price </tpl>
					<tpl> /if </tpl>
				 <tpl> $langCYuan </tpl></span> </div>
              </div></td>
				<tpl> if $smarty.section.k.rownum%6 eq 0 </tpl>
			  	</tr>
				<tr>
				<tpl> /if </tpl>
            <tpl> /section </tpl> </tr>
        </tbody>
      </table>


    <div id="ShopMain"><!-- 左边店铺类目以及友情衔接 -->
      <div id="shopmain1">
	  <div class="box_border">
	  <div class="box_inside">
	  <div class="ItemCategoriesTitle"><tpl> $langCSearchBaby </tpl></div>
	     <div class="ItemContent"> <div id="InShopSearch"> <!-- 搜索宝贝框 -->
              <form name="form1" action="index.php?userid=<tpl> $userid </tpl>" method="post">
                <input name="keyword" size="20" value="" style="height: 14px;" class="searchinput" type="text">
                <input name="Submit" value="<tpl> $langCSearchBaby </tpl>" type="submit"><input name="searchtype" size="20" value="1" style="height: 14px;" type="hidden">
              </form>
            </div></div>
			</div>
			</div>
			
			  <div class="box_border">
	  <div class="box_inside">
			
        <div class="ItemCategoriesTitle"><tpl> $langStoreShopClass </tpl></div>
          <div class="ItemContent"> <a href="index.php?userid=<tpl> $frame_user_id </tpl>"><b><tpl> $langStoreAllBaby </tpl></b></a>
            <ul>
              <tpl> section name=i loop=$category_array </tpl>
              <!-- 商店宝贝分类 -->
			  <li>
				  <tpl> if $category_array[i].child[0].class_id neq '' </tpl>
						<tpl> if $category_array[i].class_if_open eq '0' </tpl>
							<a class="close" id="a_category_<tpl> $category_array[i].class_id </tpl>" href="javascript:;" onclick="a_category_sign(<tpl> $category_array[i].class_id </tpl>);"></a>
						<tpl> /if </tpl>
						<tpl> if $category_array[i].class_if_open eq '1' </tpl>
							<a class="splay" id="a_category_<tpl> $category_array[i].class_id </tpl>" href="javascript:;" onclick="a_category_sign(<tpl> $category_array[i].class_id </tpl>);"></a>
						<tpl> /if </tpl>
				  <tpl> else </tpl>
						<span class="splay"></span>
				  <tpl> /if </tpl>
			  <tpl> if $category_array[i].class_pic neq '' </tpl>
				<a class="left-interval" href="index.php?userid=<tpl> $frame_user_id </tpl>&classid=<tpl> $category_array[i].class_id </tpl>"><img  class="img_width" src="<tpl> $category_array[i].class_pic </tpl>" title="<tpl> $category_array[i].class_name </tpl>" /></a>
			  <tpl> else </tpl>
				<a class="left-interval" href="index.php?userid=<tpl> $frame_user_id </tpl>&classid=<tpl> $category_array[i].class_id </tpl>"><tpl> $category_array[i].class_name </tpl></a>
			  <tpl> /if </tpl>
			  </li>
			  <span class="subroutine" id="span_category_<tpl> $category_array[i].class_id </tpl>" <tpl> if $category_array[i].class_if_open eq '1' </tpl>style="display:none"<tpl> /if </tpl>>
				  <tpl> foreach from=$category_array[i].child item=one </tpl>
					  <li>
						  <tpl> if $one.class_pic neq '' </tpl>
							<a class="bg_style" href="index.php?userid=<tpl> $frame_user_id </tpl>&classid=<tpl> $one.class_id </tpl>"><img class="img_width" src="<tpl> $one.class_pic </tpl>" title="<tpl> $one.class_name </tpl>" /></a>
						  <tpl> else </tpl>
							<a class="bg_style" href="index.php?userid=<tpl> $frame_user_id </tpl>&classid=<tpl> $one.class_id </tpl>"><tpl> $one.class_name </tpl></a>
						  <tpl> /if </tpl>
					  </li>
				  <tpl> /foreach </tpl>
			  </span>
			  <p></p>
              <tpl> /section </tpl>
            </ul>
          </div>
        </div></div>
		  <div class="box_border">
	  <div class="box_inside">
          <div class="ItemCategoriesTitle"><tpl> $langStoreFirendLink </tpl></div>
          <div class="ItemContent"> <!-- 商店友情链接列表 -->
            <ul>
              <tpl> section name=i loop=$link_array </tpl>
              <!-- 商店友情链接 -->
              <li><a href="index.php?userid=<tpl> $link_array[i].link_shop_id </tpl>"><tpl> $link_array[i].shop_name </tpl></a></li>
              <tpl> /section </tpl>
            </ul>
          </div>
		  </div></div>
        </div>
      </div>
      <div id="ItemCol"><!-- 右边所有宝贝显示 -->
        
        <div id="GuestBook"><!-- 给店家留言及店家回复 -->
		<div id="GuestBookTitle">
            <div id="GBNewMessage"><tpl> $langStoreNewLeaveWord </tpl></div>
            <div class="GBallMessage"><a href="message.php?action=new&userid=<tpl>$frame_user_id</tpl>"><tpl> $langStoreMyLeaveWord </tpl></a></div>
            <div class="GBallMessage"><a href="message.php?userid=<tpl>$frame_user_id</tpl>"><tpl> $langStoreAllLeaveWord </tpl></a></div>
			<div style="clear:both"></div>
          </div>
		  <div id="GuestBookContent"><tpl> section name=i loop=$shop_message_array </tpl>
		  				<div class="GBMessage">
						<div class="IdAndTime"><tpl> $langStoreBuyer </tpl>：<a href="index.php?userid=<tpl>$shop_message_array[i].member_id</tpl>" 
target="_blank"><tpl>$shop_message_array[i].member_name</tpl></a> 
<tpl> $langStoreMsgSetTime </tpl>&nbsp; <tpl>$shop_message_array[i].message_time </tpl></div>
<div class="MessageContent"><tpl>$shop_message_array[i].message_content</tpl></div>
				  <div class="MessageContent_re"> 
					<span class="MessageFromSellerHint"><tpl> $langSMessageShopkeeperRestore </tpl>：</span> <span class="MessageFromSeller"><tpl>$shop_message_array[i].message_recontent</tpl></span> </div></div>
						<tpl> /section </tpl>
						</div>
<div class="store_messagelist">
<input name="" type="button" value="<tpl> $langSMessageSendLeaveWord </tpl>" onclick="location.href='message.php?action=new&userid=<tpl>$frame_user_id</tpl>'" class="store_messagelist1"/>
<div style="float:right; padding-right:10px">
<tpl>$shop_message_pagelist</tpl> 　
</div>
  </div>
		  </div>
		
          <div style="clear:both"></div>
        </div>
      </div>

    </div>    </div>
  </div>
  <tpl> include file ='../../../html/footer.html' </tpl> </div>
</body>
</html>
