<!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>
<title>{echo: $header['title'];/}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta name="keywords" content="{echo: $header['keywords'];/}" />
<meta name="description" content="{echo: $header['description'];/}" />
<base href="{echo: $baseUrl;/}" />
<link href="skin/{echo: $SYSINFO['templates'];/}/css/import.css" type="text/css" rel="stylesheet" />
<link href="skin/{echo: $SYSINFO['templates'];/}/css/shop.css" rel="stylesheet" type="text/css" />
<link href="skin/{echo: $SYSINFO['templates'];/}/css/shop_{echo: $SHOP['shop_template'];/}.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="skin/{echo: $SYSINFO['templates'];/}/js/changeStyle.js"></script>
<script type="text/javascript" src="skin/{echo: $SYSINFO['templates'];/}/js/magnifier.js"></script>
<script type="text/javascript" src="skin/{echo: $SYSINFO['templates'];/}/js/izoom.js"></script>
<style>
.detail .pro_detail .pro_text ul li.operate a.inquiry { width:89px; background:url(skin/<?php echo $SYSINFO['templates'];?>/images/inquiry.gif) 0 0 no-repeat;margin-left:10px; }
dl.guboo { text-align:left; padding:10px; border-bottom:1px solid #eeeeee; }
.ftcolor { color:#E78210; }
dt span { color:#CECFCE; }
.messagebox { text-align:left; padding:10px; }
</style>
<script type="text/javascript">
window.onload=function() { 
	new imageZoom("img1",{
	    bigImg:"{echo: isset($gallery[0]['img_original']) ? $gallery[0]['img_original'] : 'skin/default/images/nopic_big.gif';/}"
	}); 
	gettransport_price(0,'{echo:lp{s_country};/}');
}
function changeImage(obj){
	var ia=obj.parentNode;
	var rev=ia.rev;//中图
	var ref=ia.rel;//大图
	document.getElementById("img1").src=rev;
	new imageZoom("img1",{ 
	    bigImg:ref
	}); 
}
</script>
</head>
<body>
<div id="wrapper"> {inc: require("shop/index_header.php");/}
  <div id="contents" class="clearfix">
  <div id="pkz">

    	{echo:lp{i_location};/}：<a href="index.php">{echo:lp{i_index};/}</a> &gt; <a href="{echo: shop_url($shop_id,'index');/}">{echo: $SHOP['shop_name'];/}</a> &gt; {echo: $groupbuyinfo['group_name'];/}

    </div>


    <div id="itemContents" class="clearfix">
      <div id="intro" >
        <h3>{echo: $groupbuyinfo['group_name'];/} ({echo:lp{s_groupbuy};/})</h3>
        <div class="box">
           	<div class="pro_pic" align="center">
             <img id="img1" alt="" src="{echo: isset($gallery[0]['img_url']) ? $gallery[0]['img_url'] : "skin/default/images/nopic_big.gif";/}" onerror="this.src='skin/default/images/nopic.gif'">
            </div>
            
            
            <div class="pic_box clear">
                <a class="left_button" href="javascript:void(0);" onclick="img_pre('list1_1');"></a>
                    <div id="thumbbox">
                        <div class="long_box" id="list1_1">
                        {sta:foreach($gallery as $val)[loop]}
							<a href="javascript:;" rev="{echo:$val['img_url'];/}" rel="{echo:$val['img_original'];/}" onclick="javascript:return false;">
							<img src="{echo:$val['thumb_url'];/}" onclick="changeImage(this)" onerror="this.src='skin/default/images/nopic.gif'"></a>
                		{end:foreach/}
                        </div>
                    </div>
                <a class="right_button" href="javascript:void(0);" onclick="img_next('list1_1');"></a>
            </div>
        </div>
        <div class="itemProperty">
          <ul>
            {sta: if($isset_logo)[exc]}<!-- 未登录 -->
            {sta: if($groupbuyinfo['recommended'])[exc]}
		            <li><span>{echo:lp{s_groupbuy_time};/}:</span>
		              <label>{echo: time_left(strtotime($groupbuyinfo['end_time']));/}</label>
		            </li>
		            <li><span>{echo:lp{s_groupbuy_regiment_number};/}:</span>
		              <em>{echo: $groupbuyinfo['min_quantity'];/}</em>
		            </li>
		            <li><span>{echo:lp{s_groupbuy_restult_num};/}:</span>
		              <label id='purchase'>{echo: $groupbuyinfo['purchase_num'];/}</label>
		            </li>
		            
		                {echo: lp{s_yuan};/}</li>
		            <li><span>{echo: lp{i_one_num};/}:</span>
		              <label id="one_num">{echo: $groupbuyinfo['one_num'];/}</label></li>
		             <li><span>{echo:lp{i_all_num};/}:</span><label id="all_num">{echo: $groupbuyinfo['all_num'];/}</label></li>  
		             
		            <li><span>{echo:lp{s_groupbuy_old_price};/}:</span>{echo:lp{s_money_sign};/}
		              <label>{echo: $groupbuyinfo['goods_price'];/}</label>
		              {echo: lp{s_yuan};/}</li>
		            <li><span>{echo:lp{s_groupbuy_price};/}:</span>{echo:lp{s_money_sign};/}
		               <em class="price">{echo: $groupbuyinfo['spec_price'];/}</em>
		          
		              
		              
		            <li><span>{echo:lp{s_group_buy_state};/}:</span>
		              <label>{echo:lp{s_completed};/}</label>
		            </li>
		            <li><span><a href="login.php" style=" color:#F00">{echo:lp{s_isset_login};/}</a>
		              </label>
		            </li>
            {sta: } else[exc]}
		            <li><span>{echo:lp{s_groupbuy_time};/}:</span>
		              <label>{echo: time_left(strtotime($groupbuyinfo['end_time']));/}</label>
		            </li>
		            <li><span>{echo:lp{s_groupbuy_regiment_number};/}:</span>
		              <label>{echo: $groupbuyinfo['min_quantity'];/}</label>
		            </li>
		            <li><span>{echo:lp{s_groupbuy_restult_num};/}:</span>
		              <label  id='purchase'>{echo: $groupbuyinfo['purchase_num'];/}</label>
		            </li>
		          <li><span>{echo: lp{i_one_num};/}:</span>
		              <label id="one_num">{echo: $groupbuyinfo['one_num'];/}</label></li>
		             <li><span>{echo: lp{i_all_num};/}:</span><label id="all_num">{echo: $groupbuyinfo['all_num'];/}</label></li>  
		            <li><span>{echo:lp{s_groupbuy_old_price};/}:</span>{echo:lp{s_money_sign};/}
		              <em>{echo: $groupbuyinfo['goods_price'];/}</em>
		              {echo: lp{s_yuan};/}</li>
		            <li><span>{echo:lp{s_groupbuy_price};/}:</span>{echo:lp{s_money_sign};/}
		               <em class="price">{echo: $groupbuyinfo['spec_price'];/}</em>
		              {echo: lp{s_yuan};/}</li>
	
		             
		            {sta: if($start_time < $now_time and $now_time < $end_time)[exc]}
		            <li><span>{echo:lp{s_group_buy_state};/}:</span>
		              <label>{echo:lp{s_ongoing};/}</label>
		            </li>
		            {sta: } else if($start_time > $now_time)[exc]}
		            <li><span>{echo:lp{s_group_buy_state};/}:</span>
		              <label>{echo:lp{s_not_published};/}</label>
		            </li>
		            {sta: } else if($end_time > $now_time)[exc]}
		            <li><span>{echo:lp{s_group_buy_state};/}:</span>
		              <label>{echo:lp{s_completed};/}</label>
		            </li>
		            {end:if/}
		            <li><span><a href="login.php" style=" color:#F00">{echo:lp{s_isset_login};/}</a>
		              </label>
		            </li>
		            {end:if/}
            {sta: } else[exc]}<!-- 已登录 -->
            {sta: if($user_id != $shop_id)[exc]}
            {sta: if($groupbuyinfo['recommended'])[exc]}
		            <li><span>{echo:lp{s_groupbuy_time};/}:</span>
		              <label>{echo: time_left(strtotime($groupbuyinfo['end_time']));/}</label>
		            </li>
		            <li><span>{echo:lp{s_groupbuy_regiment_number};/}:</span>
		              <em>{echo: $groupbuyinfo['min_quantity'];/}</em>
		            </li>
		            <li><span>{echo:lp{s_groupbuy_restult_num};/}:</span>
		              <label  id='purchase'>{echo: $groupbuyinfo['purchase_num'];/}</label>
		            </li>
		            <li><span>{echo: lp{i_one_num};/}:</span>
		              <label id="one_num">{echo: $groupbuyinfo['one_num'];/}</label></li>
		             <li><span>{echo: lp{i_all_num};/}:</span><label id="all_num">{echo: $groupbuyinfo['all_num'];/}</label></li>  
		            <li><span>{echo:lp{s_groupbuy_old_price};/}:</span>{echo:lp{s_money_sign};/}
		              <em>{echo: $groupbuyinfo['goods_price'];/}</em>
		              {echo: lp{s_yuan};/}</li>
		            <li><span>{echo:lp{s_groupbuy_price};/}:</span>{echo:lp{s_money_sign};/}
		              <em class="price">{echo: $groupbuyinfo['spec_price'];/}</em>
		              {echo: lp{s_yuan};/}</li>
		             
		             
		            <li><span>{echo:lp{s_group_buy_state};/}:</span>
		              <label>{echo:lp{s_completed};/}</label>
		            </li>
		            {sta: if($isset_groupbuy)[exc]}
		            <li><a href="javascript:gotoOrder({echo: $groupbuyinfo['group_id'];/});"
											title="{echo:lp{s_detriment};/}">{echo:lp{s_detriment};/}</a> </li>
		            {end:if/}
            {sta: } else[exc]}
		            <li><span>{echo:lp{s_groupbuy_time};/}:</span>
		              <label>{echo: time_left(strtotime($groupbuyinfo['end_time']));/}</label>
		            </li>
		            <li><span>{echo:lp{s_groupbuy_regiment_number};/}:</span>
		              <em>{echo: $groupbuyinfo['min_quantity'];/}</em>
		            </li>
		            <li><span>{echo:lp{s_groupbuy_restult_num};/}:</span>
		              <em  id='purchase'>{echo: $groupbuyinfo['purchase_num'];/}</em>
		            </li>
		             <li><span>{echo: lp{i_one_num};/}:</span>
		              <label id="one_num">{echo: $groupbuyinfo['one_num'];/}</label></li>
		             <li><span>{echo: lp{i_all_num};/}:</span><label id="all_num">{echo: $groupbuyinfo['all_num'];/}</label></li>  
		             
		            <li><span>{echo:lp{s_groupbuy_old_price};/}:</span>{echo:lp{s_money_sign};/}
		              <em>{echo: $groupbuyinfo['goods_price'];/}</em>
		              {echo: lp{s_yuan};/}</li>
		            
		             
		            <li><span>{echo:lp{s_groupbuy_price};/}:</span>{echo:lp{s_money_sign};/}
		               <em class="price">{echo: $groupbuyinfo['spec_price'];/}</em>
		              {echo: lp{s_yuan};/}</li>
		            {sta: if($start_time < $now_time and $now_time < $end_time)[exc]}
		            <li><span>{echo:lp{s_group_buy_state};/}:</span>
		              <label>{echo:lp{s_ongoing};/}</label>
		            </li>
		            {sta: if($isset_groupbuy)[exc]}
		            <li><span>{echo:lp{s_groupbuy_buy_num};/}:</span>
		              <label>{echo: $groupbuyinfo['quantity'];/}</label>
		            </li>
		            <li><span>{echo:lp{s_groupbuy_real_name};/}:</span>
		              <label>{echo: $groupbuyinfo['linkman'];/}</label>
		            </li>
		            <li><span>{echo:lp{s_groupbuy_tel};/}:</span>
		              <label>{echo: $groupbuyinfo['tel'];/}</label>
		            </li>
		            {sta: if($groupbuyinfo['recommended'])[exc]}
		            <li><a href="javascript:gotoOrder({echo: $groupbuyinfo['group_id'];/});"
												style=" background: url(skin/default/images/pj_bg.gif); width=180px; height=133px;">{echo: lp{s_detriment};/}</a> </li>
		            {sta: } else[exc]}
		            <li><a href="javascript:exitGroupbuy({echo: $groupbuyinfo['group_id'];/});"
												title="{echo:lp{s_groupbuy_del};/}" style=" background: url(skin/default/images/shop/btn_groundbuy.gif);display:block; width:80px; height:18px;text-align:center;padding-top:5px;">{echo:lp{s_groupbuy_del};/}</a> </li>
		            {end:if/}
		            {sta: } else[exc]}
		            <li><span>{echo:lp{s_groupbuy_buy_num};/}:</span>
		              <input size="8" value="1" id='num' />
		              ({echo:lp{s_required};/})</li>
		            <li><span>{echo:lp{s_groupbuy_real_name};/}:</span>
		              <input size="8" value="" id='groupbuyname' />
		              ({echo:lp{s_required};/})</li>
		            <li><span>{echo:lp{s_groupbuy_tel};/}:</span>
		              <input size="8" value="" id='groupbuytel' />
		              ({echo:lp{s_required};/})</li>
		            <li><a href="javascript:gotoGroupbuy({echo: $groupbuyinfo['group_id'];/});"
												title="{echo:lp{s_groupbuy_add};/}" style=" background: url(skin/default/images/shop/btn_groundbuy.gif);display:block; width:80px; height:18px;text-align:center;padding-top:5px;">{echo:lp{s_groupbuy_add};/}</a> </li>
		            {end:if/}
		            {sta: } else if($start_time > $now_time)[exc]}
		            <li><span>{echo:lp{s_group_buy_state};/}:</span>
		              <label>{echo:lp{s_not_published};/}</label>
		            </li>
		            {sta: } else if($end_time > $now_time)[exc]}
		            <li><span>{echo:lp{s_group_buy_state};/}:</span>
		              <label>{echo:lp{s_completed};/}</label>
		            </li>
		            {sta: if($isset_groupbuy)[exc]}
		            <li><a href="javascript:gotoOrder({echo: $groupbuyinfo['group_id'];/});"
													 style=" background: url(skin/default/images/pj_bg.gif); width=180px; height=133px;">{echo: lp{s_detriment};/}</a> </li>
		            {end:if/}
		            {sta: } else if($end_time < $now_time)[exc]}
		            <li><span>{echo:lp{s_group_buy_state};/}:</span>
		              <label>{echo:lp{s_completed};/}</label>
		            </li>
		            {end:if/}
		            {end:if/}
            {sta: } else[exc]}
		            {sta: if($groupbuyinfo['recommended'])[exc]}
		            <li><span>{echo:lp{s_groupbuy_time};/}:</span>
		              <label>{echo: time_left(strtotime($groupbuyinfo['end_time']));/}</label>
		            </li>
		            <li><span>{echo:lp{s_groupbuy_regiment_number};/}:</span>
		              <label>{echo: $groupbuyinfo['min_quantity'];/}</label>
		            </li>
		            <li><span>{echo:lp{s_groupbuy_restult_num};/}:</span>
		              <label  id='purchase'>{echo: $groupbuyinfo['purchase_num'];/}</label>
		            </li>
		           <li><span>{echo: lp{i_one_num};/}:</span>
		              <label id="one_num">{echo: $groupbuyinfo['one_num'];/}</label></li>
		             <li><span>{echo: lp{i_all_num};/}:</span><label id="all_num">{echo: $groupbuyinfo['all_num'];/}</label></li>  
		            <li><span>{echo:lp{s_groupbuy_old_price};/}:</span>{echo:lp{s_money_sign};/}
		              <em>{echo: $groupbuyinfo['goods_price'];/}</em>
		              {echo: lp{s_yuan};/}</li>
		            <li><span>{echo:lp{s_groupbuy_price};/}:</span>{echo:lp{s_money_sign};/}
		               <em class="price">{echo: $groupbuyinfo['spec_price'];/}</em>
		              {echo: lp{s_yuan};/}</li>
		              
		            <li><span>{echo:lp{s_group_buy_state};/}:</span>
		              <label>{echo:lp{s_completed};/}</label>
		            </li>
		            {sta: } else[exc]}
		            <li><span>{echo:lp{s_groupbuy_time};/}:</span>
		              <label>{echo: time_left(strtotime($groupbuyinfo['end_time']));/}</label>
		            </li>
		            <li><span>{echo:lp{s_groupbuy_regiment_number};/}:</span>
		              <label>{echo: $groupbuyinfo['min_quantity'];/}</label>
		            </li>
		            <li><span>{echo:lp{s_groupbuy_restult_num};/}:</span>
		              <label  id='purchase'>{echo: $groupbuyinfo['purchase_num'];/}</label>
		            </li>
		           <li><span>{echo: lp{i_one_num};/}:</span>
		              <label id="one_num">{echo: $groupbuyinfo['one_num'];/}</label></li>
		             <li><span>{echo: lp{i_all_num};/}:</span><label id="all_num">{echo: $groupbuyinfo['all_num'];/}</label></li>  
		            <li><span>{echo:lp{s_groupbuy_old_price};/}:</span>{echo:lp{s_money_sign};/}
		              <em>{echo: $groupbuyinfo['goods_price'];/}</em>
		              {echo: lp{s_yuan};/}</li>
		              
		            <li><span>{echo:lp{s_groupbuy_price};/}:</span>{echo:lp{s_money_sign};/}
		               <em class="price">{echo: $groupbuyinfo['spec_price'];/}</em>
		              {echo: lp{s_yuan};/}</li>
		            {sta: if($start_time < $now_time and $now_time < $end_time)[exc]}
		            <li><span>{echo:lp{s_group_buy_state};/}:</span>
		              <label>{echo:lp{s_ongoing};/}</label>
		            </li>
		            {sta: } else if($start_time > $now_time)[exc]}
		            <li><span>{echo:lp{s_group_buy_state};/}:</span>
		              <label>{echo:lp{s_not_published};/}</label>
		            </li>
		            {sta: } else if($end_time > $now_time)[exc]}
		            <li><span>{echo:lp{s_group_buy_state};/}:</span>
		              <label>{echo:lp{s_completed};/}</label>
		            </li>
		            {end:if/}
		            {end:if/}
            {end:if/}
            {end:if/}
          </ul>
        </div>
      </div>
      <div class="shopInfo mg12b">
        <h2><a href="{echo: shop_url($shop_id,'index');/}" title=""><img src="{echo: $SHOP['shop_logo'] ? $SHOP['shop_logo'] : 'skin/default/images/shop_nologo.gif';/}" width="198" height="98" alt="" /></a></h2>
        <h2 class="sName"><a href="{echo: shop_url($shop_id,'index');/}">{echo: $SHOP['shop_name'];/}</a></h2>
        <p>{echo:lp{s_nickname};/}： {echo: $ranks['user_name'];/}</p>
        <p>{echo: lp{s_contact_seller};/}：
            <script src="imshow.php?u={echo: $SHOP['user_id'];/}"></script>
        </p>
        <p>{echo:lp{s_goods_num};/}：{echo: $SHOP['goods_num'];/}</p>
        <p>{echo: lp{s_seller_c};/}：
        	<a href="{echo: shop_url($shop_id,'credit');/}" hideFocus=true>
        		{sta: if($credit['SUM(seller_credit)'])[exc]}
        			<img style="margin-left:5px; vertical-align:text-bottom" src="skin/default/images/shop/rank_{echo:$integral;/}.gif"title="{echo:$credit['SUM(seller_credit)'];/}" width="80" height="13" />
        		{sta: } else[exc]}
					0
        		{end:if/}
        	</a>
         </p>

         <p>{echo:lp{s_new_login};/}：{echo: $ranks['last_login_time'];/}</p>
         <p>{echo:lp{s_creat_time};/}：{echo: $SHOP['shop_creat_time'];/}</p>
         <p><span class="left">{echo:lp{s_certification};/}：</span> <a href="javascript:;" title="{echo:$rank_name['rank_name'];/}"  class="shop_cert left">{echo:$rank_name['rank_name'];/}</a> </</p>
         <p><a class="go2shop" href="{echo: shop_url($shop_id,'index');/}" title=""><img src="skin/{echo: $SYSINFO['templates'];/}/images/gotoshop.gif" width="183" height="36" alt="{echo:lp{s_seller_shop};/}" /></a></p>
         <p>
         	<input type="hidden" value="{echo:$USER['user_id'];/}" id="shop_user" />
			<a class="favShop" href="javascript:;" onclick="add_shopFavorite({echo: $shop_id;/})">{echo:lp{s_store_shop};/}</a>
			<a class="setLatter" href="goods.php?id={echo: $groupbuyinfo['group_id'];/}&app=groupbuyinfo#message">{echo:lp{s_send_mail};/}</a>
		 </p>
        </div>
    </div>
    <div id="itemDetail" >

       <ul class="list_tab clearfix" >
        <li id="tab_content1" class="now" onclick="show_tabs('1');"><a href="javascript:;" >{echo:lp{s_details};/}</a></li>
        <li id="tab_content2" onclick="show_tabs('2');"><a href="javascript:;" >{echo:lp{s_group_buy_introduction};/}</a></li>
      </ul>
      <div id="tab1_content1" class="pannel">
      {echo: $groupbuyinfo['goods_intro'];/}
      </div>
      <div id="tab1_content2" class="pannel" style="display:none">
      {echo: $groupbuyinfo['group_desc'];/}
      </div>
      <div id="message" class="guestbook  bg_gradual mg12b">
      <h3 class="ttl_guestbook">{echo:lp{s_buyer_comm};/}</h3>
      <ul>
      {sta:foreach($guestbook_list as $key =>$value)[loop]}
          {sta:if($value['group_id'])[loop]}
          <li {sta:if($key%2==0)[loop]} class='double' {end:if/}>
              <div class="guester">
                <p><a href="">{echo: $value['name'];/}：</a></p>
                <p>{echo: $value['content'];/}<span>{echo: $value['add_time'];/}</span></p>
              </div>
           {sta:if($value['reply']) [loop]}
            <div class="shoper">
                <p><a href="">{echo:lp{s_seller_reply};/}：</a></p>
                <p>{echo: $value['reply'];/} </p>
             </div>
            {end:if/}
          </li>
          {end:if/}
          {end:foreach/}
          </ul>
          <div class="guestInput">
           <form action="do.php?act=shop_guestbook" name="guestForm" method="post" id="guestForm" onSubmit="return checkForm();">
                  <input maxlength="20" name="name" type="hidden" value="{echo:$USER['user_name'];/}" />
                  <input maxlength="50" name="email" type="hidden" value="{echo:$USER['user_email'];/}" />
                  <input maxlength="50" name="group_id" type="hidden" value="{echo: $groupbuyinfo['group_id'];/}" />
                  <input maxlength="50" name="group_name" type="hidden" value="{echo: $groupbuyinfo['group_name'];/}" />
                  <input maxlength="50" name="goods_id" type="hidden" value="{echo: $groupbuyinfo['goods_id'];/}" />
                  <input maxlength="50" name="contact" type="hidden" />
                  <input type="hidden" name="shop_id" value="{echo: $shop_id;/}" />
                  <input type="hidden" name="shop_name" value="{echo: $SHOP['shop_name'];/}" />
                  <textarea class="border_c" cols="40" rows="4" name="content" id="textareac"></textarea><br/ >
				   {sta:if($verifycode['3']==1)[exc]}
                  <input type="text" class="txt_tag" name="veriCode" id="veriCode" style="width:100px" maxlength="4" /> 
          		<img border="0" src="servtools/veriCodes.php" align="absmiddle" id="verCodePic"><a href="javascript:;" onclick="return getVerCode();">{echo:lp{i_change_img};/}</a>
					{end:if/}
                  <input class="btnSetmess" type="submit" value="{echo:lp{s_post_comm};/}" />
                </form>
      </div>
      </div>
     <!-- 卖家推荐 -->
     <div class="bg_gary" id="sellrecom">
      <h3 class="ttlm_sellrecom">{echo:lp{s_seller_commend};/}</h3>
      <ul class="list_125 clearfix">
            {sta:if($best_goods) {
            foreach($best_goods as $value)[loop]}
            <li>
              <p class="photo"><a target="_blank" href="{echo: goods_url($value['goods_id']);/}"><img src="{echo: $value['is_set_image'] ? str_replace('thumb_','',$value['goods_thumb']) : 'skin/default/images/nopic.gif';/}" alt=""  height="112" width="112" onerror="this.src='skin/default/images/nopic.gif'"/></a></p>
              <h4 class="summary"><a href="{echo: goods_url($value['goods_id']);/}">{echo: sub_str($value['goods_name'],20,false);/}</a></h4>
              <p class="price">{echo:lp{i_money_sign};/}{echo: $value['goods_price'];/}{echo:lp{s_yuan};/}</p>
            </li>
            {end:foreach/}
            {end:if/}
                      </ul>
    </div>
    <!-- 卖家推荐 -->

    </div>
      </div>
    </div>
    <script language="JavaScript" src="servtools/ajax_client/ajax.js"></script>
    <script language="JavaScript">
	<!--
	function checkForm(){
		var textareac = document.getElementById('textareac').value;
		var code = document.getElementById('veriCode').value;
		if(!textareac){
			alert('{echo:lp{s_type_comm_pls};/}');
			return false;
			}
			 {sta:if($verifycode['3']==1)[exc]}
		if(!code){
			alert('{echo:lp{s_code_no};/}');
			return false;
			}
			{end:if/}
		}
	function gotoGroupbuy(id) {
			var num = document.getElementById('num').value;
			var groupbuyname = document.getElementById('groupbuyname').value;
			var groupbuytel = document.getElementById('groupbuytel').value;
			var onenum=document.getElementById('one_num').innerHTML;
			var allnum=document.getElementById('all_num').innerHTML;
			var purchase=document.getElementById('purchase').innerHTML;
			var checkfiles=new RegExp("^[0-9]\\d*$");
			if(!checkfiles.test(groupbuytel)) {
					alert("{echo:lp{s_groupbuy_isset_tel_num};/}");
					return;
			}
			if(onenum!=0&&num>onenum){
				alert('{echo:lp{s_groupbuy_not_greater};/}');
                return;
			}
			if(onenum!=0&&num>onenum){
				alert('{echo:lp{s_groupbuy_not_greater};/}');
                return;
			}
			if(allnum!=0&&(allnum-purchase)<onenum){
				alert('{echo:lp{s_groupbuy_not_number};/}');
				return;
				}
			ajax("do.php?act=goods_add_groupbuy","POST","id="+id+"&num="+num+"&groupbuyname="+groupbuyname+"&groupbuytel="+groupbuytel,function(data){
				if (data == -1){
					alert('{echo:lp{s_groupbuy_isset_num};/}');
				}else if (data == -2){
					alert('{echo:lp{s_groupbuy_isset_name};/}');
				}else if (data == -3){
					alert('{echo:lp{s_groupbuy_isset_tel};/}');
				}else if (data == -4){
					alert('{echo:lp{s_groupbuy_isset_one};/}');
				}else if (data == 1){
					alert('{echo:lp{s_groupbuy_isset_true};/}');
					location.href = "{echo: $baseUrl;/}goods.php?id="+id+"&app=groupbuyinfo";
				}else if(data==2){
					alert('{echo:lp{s_groupbuy_not_greater_all};/}');
				}else if(data==3){
					alert('{echo:lp{s_groupbuy_not_number};/}');
				}else if(data==4){
					alert('{echo:lp{s_groupbuy_not_greater_all};/}');
				}else if(data==5){
					alert('{echo:lp{s_groupbuy_lock_error};/}');
				}else if(data==6){
					alert('{echo:lp{m_user_locked};/}');
					location.href = "{echo: $baseUrl;/}login.php";
					}
			});
		}
		function exitGroupbuy(id) {
			ajax("do.php?act=goods_exit_groupbuy","POST","id="+id,function(data){
				if (data == 1){
					alert('{echo:lp{s_groupbuy_isset_false};/}');
					location.href = "{echo: $baseUrl;/}goods.php?id="+id+"&app=groupbuyinfo";
				}else if(data==6){
					alert('{echo:lp{m_user_locked};/}');
					location.href = "{echo: $baseUrl;/}login.php";
					}
			});
		}
		function gotoOrder(id) {
			location.href = "{echo: $baseUrl;/}modules.php?app=user_group_order_address&gid="+id;
		}
			function show_tabs(flg){
		if (flg =='1'){
			document.getElementById("tab_content1").className ="now";
			document.getElementById("tab_content2").className ="";
			document.getElementById("tab1_content1").style.display ="block";
			document.getElementById("tab1_content2").style.display ="none";
		}
		if (flg == '2'){
			document.getElementById("tab_content1").className ="";
			document.getElementById("tab_content2").className ="now";
			document.getElementById("tab1_content1").style.display ="none";
			document.getElementById("tab1_content2").style.display ="block";
		}
	}

	function add_shopFavorite(id) {
		var user_id = document.getElementById('shop_user').value;
		if (id == user_id){
			alert('{echo:lp{s_myshop_error};/}');
		}else {
			ajax("do.php?act=shop_add_favorite","POST","id="+id,function(data){
				if(data == 1) {
					alert("{echo: lp{s_g_addedfavorite};/}");
				} else if(data == -1) {
					alert("{echo:lp{s_store_info};/}");
				} else if(data == -2){
					alert("{echo:lp{s_shop_error1};/}");
				}else {
					alert("{echo: lp{s_g_addfailed};/}");
				}
			});
		}
	}
	function getVerCode() {
		document.getElementById("verCodePic").src="servtools/veriCodes.php?vc="+Math.random();
		return false;
	}
	
	//-->
	</script>
  </div>
  {inc:  require("shop/index_footer.php");/} </div>
</body>
</html>
