<!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 name="Generator" content="ECSHOP v2.7.3" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="<?php echo $this->_var['keywords']; ?>" />
<meta name="Description" content="<?php echo $this->_var['description']; ?>" />

<title><?php echo $this->_var['page_title']; ?></title>



<link rel="shortcut icon" href="favicon.ico" />
<link rel="icon" href="animated_favicon.gif" type="image/gif" />
<link href="<?php echo $this->_var['ecs_css_path']; ?>" rel="stylesheet" type="text/css" />
<link href="themes/yijun/ei.css" rel="stylesheet" type="text/css">
<link href="themes/yijun/ewine.css" rel="stylesheet" type="text/css">
<link href="themes/yijun/ehead.css" rel="stylesheet" type="text/css">
<link href="themes/yijun/egeneral.css" rel="stylesheet" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="RSS|<?php echo $this->_var['page_title']; ?>" href="<?php echo $this->_var['feed_url']; ?>" />

<?php echo $this->smarty_insert_scripts(array('files'=>'common.js,index.js')); ?>	
<script src="themes/<?php echo $GLOBALS['_CFG']['template'];?>/js/slide.js" type="text/javascript"></script>
<script type="text/javascript" src="themes/<?php echo $GLOBALS['_CFG']['template'];?>/js/DD_belatedPNG.js"></script>
<script type="text/javascript">
  DD_belatedPNG.fix('.index_hotbg');
</script>
</head>
<body>
<?php echo $this->fetch('library/page_header.lbi'); ?>
<div class="center" style="margin-top:6px;">
		<div class="i_topleft">
			<h1>热门分类</h1>
			<div class="i_box">
				<img src="themes/yijun/images/icon_wine.gif" align="absmiddle" />
				<strong>钱币藏品</strong>
				<div class="achild">
                 <ul>
                 <?php $this->assign('catchild', get_child_tree(1));?> 
                 <?php $_from = $this->_var['catchild']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'cat');$this->_foreach['cat'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['cat']['total'] > 0):
    foreach ($_from AS $this->_var['cat']):
        $this->_foreach['cat']['iteration']++;
?>
                 <?php if ($this->_foreach['cat']['iteration'] <= 6): ?>
                  <li><a href="<?php echo $this->_var['cat']['url']; ?>" target="_blank"><?php echo htmlspecialchars($this->_var['cat']['name']); ?></a></li>
                 <?php endif; ?>
                <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
                </ul>
                </div>  
			</div>

			<div class="i_box">
				<img src="themes/yijun/images/icon_money.gif" align="absmiddle" />
				<strong>邮票藏品</strong>
				<div class="achild">
                 <ul>
                 <?php $this->assign('catchild', get_child_tree(19));?> 
                 <?php $_from = $this->_var['catchild']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'cat');$this->_foreach['cat'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['cat']['total'] > 0):
    foreach ($_from AS $this->_var['cat']):
        $this->_foreach['cat']['iteration']++;
?>
                 <?php if ($this->_foreach['cat']['iteration'] <= 6): ?>
                  <li><a href="<?php echo $this->_var['cat']['url']; ?>" target="_blank"><?php echo htmlspecialchars($this->_var['cat']['name']); ?></a></li>
                 <?php endif; ?>
                <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
                </ul>
                </div>  
			</div>

			<div class="i_box">
				<img src="themes/yijun/images/icon_map.gif" align="absmiddle" />
				<strong>金银藏品</strong>
				<br />
				<span><a href="#">金银币</a>　<a href="#">金银章</a>　<a href="#">金银条</a><br> 
				      <a href="#">其它金银</a><br>

				 </span>
			</div>
			<table width="100%" border="1" align="left" cellpadding="0"
				cellspacing="0" bordercolor="#FFFFFF">
				<tr>
					<td height="30" align="center" valign="middle" class="redtd">
						<a href="category.php?id=64" >玉器</a>
					</td>
					<td height="30" align="center" valign="middle">
						<a href="category.php?id=12" >瓷器</a>
					</td>
					<td height="30" align="center" valign="middle">
						<a href="category.php?id=26" >书画</a>
					</td>
				</tr>
				<tr>
					<td height="31" align="center" valign="middle">
						<a href="category.php?id=70" >腕表</a>
					</td>
					<td height="31" align="center" valign="middle">
						<a href="category.php?id=41" ></a>
					</td>
					<td height="31" align="center" valign="middle">

						<a href="category.php?id=73" ></a>
					</td>
				</tr>
			</table>
			
		</div>
		<div class="i_topcenter">
			
			<div class="dhooo_tab">
			
				<div class="main" id="main2">
					<ul id="content">
						<li><?php echo get_adv('flash',1);?></li>
						<li><?php echo get_adv('flash',2);?></li>
						<li><?php echo get_adv('flash',3);?></li>
						<li><?php echo get_adv('flash',4);?></li>
						<li><?php echo get_adv('flash',5);?></li>
					</ul>
				</div>
				<ul class="tab_btn_num" id="myTab_btns2">
					<li class="hot"><?php echo get_advname('flash',1);?></li>
					<li><?php echo get_advname('flash',2);?></li>	
					<li><?php echo get_advname('flash',3);?></li>
					<li><?php echo get_advname('flash',4);?></li>
					<li><?php echo get_advname('flash',5);?></li>
				</ul>

			
			</div>
	  <ul class="indexad">
				
				<li>
				
<?php $this->assign('ads_id','13'); ?><?php $this->assign('ads_num','1'); ?><?php echo $this->fetch('library/ad_position.lbi'); ?>

				</li>
				<li class="topcenter_margin">
				
<?php $this->assign('ads_id','14'); ?><?php $this->assign('ads_num','1'); ?><?php echo $this->fetch('library/ad_position.lbi'); ?>

				</li>
				<li>
				
<?php $this->assign('ads_id','15'); ?><?php $this->assign('ads_num','1'); ?><?php echo $this->fetch('library/ad_position.lbi'); ?>

                </li>
				
			</ul>
			

		</div>
		<div class="i_topright">
			
			<div class="topnews">
			
				<div class="n_toptitle">
					<div id="n_title01" class="n_menu1a">促销&活动</div>
					<div id="n_title02" class="n_menu1b">网站动态</div>
					<div id="n_title03" class="n_menu1b">新手指南</div>
				</div>
				<?php echo $this->fetch('library/news1.lbi'); ?>
				<?php echo $this->fetch('library/news2.lbi'); ?>
				<?php echo $this->fetch('library/news3.lbi'); ?>
					
<?php $this->assign('ads_id','38'); ?><?php $this->assign('ads_num','1'); ?><?php echo $this->fetch('library/ad_position.lbi'); ?>

				</div>
				<div class="msg">
					<div class="msg_box1"><span class="snf6">30天</span><br/>退换货保证</div>
					<div class="msg_box1"><span class="snf6">100%</span><br/>正品保真</div>
					<div class="msg_box2"><span class="snf6">820个城市</span><br/>货到付款</div>
				</div>
			
			</div>
			<div class="dhooo_tab1">
			

				<ul class="tab_btn" id="myTab_btns1">
					<li class="hot">1</li>
					<li>2</li>
					<li>3</li>
					<li>4</li>
					<li>5</li>
				</ul>
				<div class="main_1" id="main1">
					<div class="shell">
						<ul id="content1">
							
<?php $this->assign('ads_id','16'); ?><?php $this->assign('ads_num','5'); ?><?php echo $this->fetch('library/ad_position.lbi'); ?>

						</ul>
					</div>
				</div>
			
			</div>
		  <script src="themes/<?php echo $GLOBALS['_CFG']['template'];?>/js/lunbo.js" type="text/javascript"></script>
		
		</div>

		<div class="i_boxcontent">
		<?php echo $this->fetch('library/recommend_hot.lbi'); ?>
				<div class="i_boxright" style="border:0px;">
				<div class="i_boxright">						
                   <?php $_from = $this->_var['top_goods']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods');$this->_foreach['top_goods'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['top_goods']['total'] > 0):
    foreach ($_from AS $this->_var['goods']):
        $this->_foreach['top_goods']['iteration']++;
?>  
                   <?php if ($this->_foreach['top_goods']['iteration'] < 5): ?>
					<div class="i_box1" onMouseOver="addtopwine<?php echo $this->_foreach['top_goods']['iteration']; ?>();">
						<a onMouseOver="addtopwine<?php echo $this->_foreach['top_goods']['iteration']; ?>();" class="boxright_title"><?php echo $this->_var['goods']['short_name']; ?>　<span class="snf3">售出<?php $this->assign('salesum',get_buyi_sum($GLOBALS['smarty']->_var['goods']['goods_id'])); ?><?php if ($this->_var['salesum']): ?><?php echo $this->_var['salesum']; ?><?php else: ?>0<?php endif; ?> 套</span></a>
						<div id="i_boxdiv<?php echo $this->_foreach['top_goods']['iteration']; ?>" onMouseOver="addtopwine<?php echo $this->_foreach['top_goods']['iteration']; ?>();">
                           <?php if ($this->_foreach['top_goods']['iteration'] == 1): ?><?php echo get_adv('top4',1); ?><?php endif; ?>
                           <?php if ($this->_foreach['top_goods']['iteration'] == 2): ?><?php echo get_adv('top4',2); ?><?php endif; ?>
                           <?php if ($this->_foreach['top_goods']['iteration'] == 3): ?><?php echo get_adv('top4',3); ?><?php endif; ?>
                           <?php if ($this->_foreach['top_goods']['iteration'] == 4): ?><?php echo get_adv('top4',4); ?><?php endif; ?>        
						</div>
					 </div>
                     <?php endif; ?> 
                    <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> 
                    
					 <script language="javascript">
						function addtopwine1(){
							document.getElementById("i_boxdiv1").style.display='block';
							document.getElementById("i_boxdiv2").style.display='none';
							document.getElementById("i_boxdiv3").style.display='none';
							document.getElementById("i_boxdiv4").style.display='none';
						}
						function addtopwine2(){
							document.getElementById("i_boxdiv1").style.display='none';
							document.getElementById("i_boxdiv2").style.display='block';
							document.getElementById("i_boxdiv3").style.display='none';
							document.getElementById("i_boxdiv4").style.display='none';
						}
						function addtopwine3(){
							document.getElementById("i_boxdiv1").style.display='none';
							document.getElementById("i_boxdiv2").style.display='none';
							document.getElementById("i_boxdiv3").style.display='block';
							document.getElementById("i_boxdiv4").style.display='none';
						}
						function addtopwine4(){
							document.getElementById("i_boxdiv1").style.display='none';
							document.getElementById("i_boxdiv2").style.display='none';
							document.getElementById("i_boxdiv3").style.display='none';
							document.getElementById("i_boxdiv4").style.display='block';
						}
					</script>
				</div>
				<div class="boxr_img">
					
<?php $this->assign('ads_id','17'); ?><?php $this->assign('ads_num','1'); ?><?php echo $this->fetch('library/ad_position.lbi'); ?>

				</div>
			</div>
			
		</div><?php echo $this->fetch('library/recommend_best.lbi'); ?>
		<div class="i_boxcontent">
			
            <?php echo $this->fetch('library/recommend_new.lbi'); ?>
			<div class="i_boxrighta">
				
				<div class="i_title3">
					<img src="themes/yijun/images/winetitle2.jpg" class="left">
					<a href="message.php" class="right" target="_blank">更多评价</a>
				</div>
				<div class="i_rightcon1">
					<div id="demo" style="overflow:hidden; height: 266px;margin-top:8px;">
                      <div id="demo1">
                       <?php $this->assign('get_index_comment',index_comments(15));?>
					   <?php $_from = $this->_var['get_index_comment']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'comments');$this->_foreach['comm_num'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['comm_num']['total'] > 0):
    foreach ($_from AS $this->_var['comments']):
        $this->_foreach['comm_num']['iteration']++;
?>
						<dl>
							<dt>
								<a href="goods.php?id=<?php echo $this->_var['comments']['id_value']; ?>"><img src="<?php echo $this->_var['comments']['goods_thumb']; ?>" alt="<?php echo $this->_var['comments']['goods_name']; ?>" widht="60" height="98"></a>
							</dt>
							<dd class="snf5">
								<a href="goods.php?id=<?php echo $this->_var['comments']['id_value']; ?>"><?php echo $this->_var['comments']['goods_name']; ?></a>
							</dd>
							<dd><?php echo sub_str($this->_var['comments']['content'],90); ?></dd>
							<dd class="snf8"><?php echo $this->_var['comments']['add_time']; ?></dd>
						</dl>
					   <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
			          </div>
                    <div id="demo2"></div>
                    </div>
					<script>
                    var speed=40;
                    var demo2=document.getElementById("demo2");
                    var demo1=document.getElementById("demo1");
                    var demo=document.getElementById("demo");
                    demo2.innerHTML=demo1.innerHTML
                    function Marquee(){
                    if(demo2.offsetTop-demo.scrollTop<=0)
                    demo.scrollTop-=demo1.offsetHeight;
                    else{
                    demo.scrollTop++;
                    }
                    }
                    var MyMar=setInterval(Marquee,speed);
                    demo.onmouseover=function() {clearInterval(MyMar)}
                    demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
                    </script>
					
				</div>
				
			</div>
			
		</div>
		
	
<div class="clear"><img src="themes/yijun/images/dot.gif" height="11px"> </div>

<?php echo $this->fetch('library/help.lbi'); ?>
<?php echo $this->fetch('library/bnavlist.lbi'); ?>
<div class="center">
  <?php if ($this->_var['img_links'] || $this->_var['txt_links']): ?>
  <div class="bottom_link">
    <div> <a href="#">友情链接：</a> 
    <?php $_from = $this->_var['img_links']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'link');if (count($_from)):
    foreach ($_from AS $this->_var['link']):
?>
    <a href="<?php echo $this->_var['link']['url']; ?>" target="_blank" title="<?php echo $this->_var['link']['name']; ?>"><img src="<?php echo $this->_var['link']['logo']; ?>" alt="<?php echo $this->_var['link']['name']; ?>" border="0" /></a>
    <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
    <?php if ($this->_var['txt_links']): ?>
    <?php $_from = $this->_var['txt_links']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'link');if (count($_from)):
    foreach ($_from AS $this->_var['link']):
?>
    <a href="<?php echo $this->_var['link']['url']; ?>" target="_blank" title="<?php echo $this->_var['link']['name']; ?>"><?php echo $this->_var['link']['name']; ?></a>
    <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
    <?php endif; ?>
    </div>
   </div>
<?php endif; ?>
</div>
<?php echo $this->fetch('library/page_footer.lbi'); ?>
</body>