<!--<?php
require($this->getSegmentFile('info.nav'));
print <<<EOT
-->
		<div class="S_boxA mb10 bgB">
<!--<?php
EOT;
if(strpos(',' . $_viewer->dianpuinfo->checkway . ',', ',vip,') !== false){
print <<<EOT
-->
			<div class="vipfloat"><div class="S_ico S_vipIcon">VIP</div></div>
<!--
EOT;
}
print <<<EOT
-->
			<div class="S_infoB">
				<h1 class="S_h12">{$_viewer->product[title]}</h1>
				<dl class="cc p10">
					<dt>
						<div class="B_flash pr" style="height:250px;width:250px;border:1px solid #ccc;">
							<ul id="PP1_A">
<!-- 
EOT;
if($_viewer->photos){
$count = count($_viewer->photos);
foreach($_viewer->photos as $p){
print <<<EOT
-->							
								<li style="display:block" class="switchItem"><a href="{$p[path]}" target="_blank"><img src="{$p[path]}" width="250" height="250" alt="{$p[filename]}" /></a></li>
<!-- 
EOT;
}}
print <<<EOT
-->
							</ul>
							<ul class="switchNav au" id="PP1_B">
<!-- 
EOT;
for($i=1;$i<=$count;$i++){
$index = $i - 1;
$current = ($i==1) ? 'current' : '';
print <<<EOT
-->							
								<li class="switchNavItem $current" index="{$index}">$i</li>
<!-- 
EOT;
}
print <<<EOT
-->
							</ul>
						</div>
						<script language="javascript" src="mode/dianpu/js/ddsliderplayer.js"></script>
						<script>ddSliderPlayers('PP1_A','PP1_B',3,'current');</script>	
					</dt>
					<dd>
						<ul class="S_infoUl">
							<li><em>市场价：</em><del>{$_viewer->product[market_price]}</del> 元</li>
							<li><em>会员价：</em><span class="b s2 f24">{$_viewer->product[member_price]}</span> <span class="s2 b f14">元</span></li>
							<li><em>认证：</em>
<!--
EOT;
if(!$_viewer->dianpuinfo->checkwayhtml){
print <<<EOT
-->
					该商品所在的店铺还未通过任何认证
<!--
EOT;
} else {
print <<<EOT
-->
				{$_viewer->dianpuinfo->checkwayhtml}
<!--
EOT;
}print <<<EOT
-->						
							</li>
							<li><em>地址：</em>{$_viewer->dianpuinfo->address}</li>
							<li><em>电话：</em><img style="vertical-align:middle;" src="{$_viewer->baseName}&c=info&id={$_viewer->dianpuinfo->dianpuid}&a=getphone&pn={$_viewer->dianpuinfo->areanumber}-{$_viewer->dianpuinfo->phone}"></li>
							<li><em>公交：</em>{$_viewer->dianpuinfo->businfo}</li>
						</ul>
						<div class="cc mb10">
						    <a onclick="sendmsg('operate.php?action=toweibo&ajax=1&type=dianpu&id={$_viewer->dianpuinfo->dianpuid}_{$_viewer->productid}','',this.id);" href="javascript:;" title="发送到新鲜事" class="S_ico S_forward mr20">新鲜事</a>
						    <a onClick="javascript:bookmark()" title="收藏本店铺" href="javascript:;" class="S_ico S_collect">收藏</a>
					    </div>
						<div>
<!--
EOT;
if($_viewer->dianpuinfo->qq && $_viewer->groupinfo['configinfo']['qq']){
print <<<EOT
-->
				<span class="mr20"><a href="javascript:;" onclick="checkQQInstall('{$_viewer->dianpuinfo->qq}');"><img border="0" src="http://wpa.qq.com/pa?p=1:{$_viewer->dianpuinfo->qq}:16" alt="点击这里给我发消息" align="middle" title="点击这里给我发消息"></a></span>
<!--
EOT;
} if($_viewer->dianpuinfo->wangwang  && $_viewer->groupinfo['configinfo']['wangwang']){print <<<EOT
-->
				<span class="mr20"><a href="http://amos.im.alisoft.com/msg.aw?uid={$_viewer->dianpuinfo->wangwang}&site=cntaobao" target="_blank"><img align="middle" alt="点击这里给我发消息" src="http://amos.im.alisoft.com/online.aw?v=2&uid={$_viewer->dianpuinfo->wangwang}&site=cntaobao&s=1&charset=utf-8" /></a></span>
<!--
EOT;
}print <<<EOT
-->
						</div>	
					</dd>
				</dl>
			</div>
			<div class="mb10"></div>
			<div class="S_tplcontent"><h2 class="S_h2">
<!--
EOT;
if($_viewer->right['comment'] == 1 && $_viewer->groupinfo['configinfo']['comments']){print <<<EOT
--><a href="javascript:;" class="fr S_ico S_consult" onclick="comment.focusReply(0,0,'')">我要评论</a>
<!--
EOT;
}print <<<EOT
-->				
				<div class="S_ico S_goods">商品简介</div></h2>
				<div class="p20">
					<table width="100%" style="table-layout:fixed">
						<tr>
							<td class="f14 vt" style="line-height:1.8;height:200px;">
<!-- 
EOT;
if($_viewer->product[description]){
print <<<EOT
-->							
							{$_viewer->product[description]}
<!-- 
EOT;
}else{
print <<<EOT
-->	
							这个家伙很懒，什么也没写哦！
<!-- 
EOT;
}
print <<<EOT
-->								
							</td>
						</tr>
					</table>
				</div>
			</div>
		</div>
<!--
EOT;
if($_viewer->groupinfo['configinfo']['comments']){
require($this->getSegmentFile('info.comment'));
}print <<<EOT
-->		
	</div>
	<div id="sideBarA" class="fr">
		<div class="S_boxC mb10 S_notice">
			<h2 class="S_ico S_h4">店铺公告</h2>
			<div class="p10">{$_viewer->dianpuinfo->bulletin}</div>
		</div>
		<div class="S_boxC mb10">
			<h2 class="S_ico S_h4">怎么去</h2>
			<div class="p5">
				<iframe height="300px" scrolling="no" width="100%" style="border: 0pt none ; display: '';" src="{$_viewer->baseUrl}&a=showmap&id={$_viewer->dianpuinfo->dianpuid}" frameborder="0" ></iframe>
			</div>
		</div>
		<div class="S_boxC mb10">
			<h2 class="S_ico S_h4">浏览记录</h2>
			<div class="B_dlC">
<!--
EOT;
if(!$_viewer->browse){
print <<<EOT
-->
			暂无任何浏览历史
<!--
EOT;
} else {
foreach($_viewer->browse as $v){
print <<<EOT
-->
				<dl class="cc mb10">
					<dt class="fl mr10"><a href="{$_viewer->baseUrl}&a=detail&id={$v[objectid]}&productid={$v[productid]}"><img src="{$v[photopath]}" class="B_img fl" width="44" height="44" /></a></dt>
					<dd><div class="mb5"><a href="{$_viewer->baseUrl}&a=detail&id={$v[objectid]}&productid={$v[productid]}">{$v[title]}</a></div><p class="gray">会员价：{$v[member_price]} 元</p></dd>
				</dl>
<!--
EOT;
}}print <<<EOT
-->				
			</div>
		</div>
<!--
EOT;
list($htmlAdvert,$arrayAdvert) = pwAdvert('Mode.Dianpu.Proinfo.Right1'); 
if($htmlAdvert){print <<<EOT
-->
			<div class="mb10 cc S_bannerA">{$htmlAdvert}</div>
<!--
EOT;
}print <<<EOT
-->
	</div>
</div>
<!--
EOT;
?>