<?php
$isbasket = false;
$issuetime = getDateTimeMk($article_array['issuetime']);
$content_count = getContentCount();
$content = mediaScriptParse($articleContent['content']);
$content_pages = showContentPages();
$comment_count = getCommentCount();
$picurl = SYS_FRONT_STYLE_PATH . "images/none_pic.gif";
if($article_array['fileurl']!='') $picurl = $article_array['fileurl'];
?>
<!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=<?php echo SYS_CHARSET ?>" />
<title><?php echo $article_array['title'] ?> _<?php echo $sys_title ?></title>
<meta name="keywords" content="<?php echo $article_array['title'] ?>" />
<meta name="description" content="<?php echo $article_array['title'] ?>" />
<link rel="stylesheet" type="text/css" href="<?php echo SYS_FRONT_STYLE_PATH?>style/shop.css" />
<script type="text/javascript" src="<?php echo SYS_FRONT_STYLE_PATH?>js/common.js"></script>
<script type="text/javascript" src="<?php echo SYS_FRONT_STYLE_PATH?>js/jquery.js"></script>
<script type="text/javascript" src="<?php echo SYS_FRONT_STYLE_PATH?>js/interface.js"></script>
<script type="text/javascript" src="<?php echo SYS_FRONT_STYLE_PATH?>js/jquery.form.js"></script>
<?php if($isbasket) :  ?>
<script type="text/javascript" src="<?php echo SYS_FRONT_STYLE_PATH?>js/cart.js"></script>
<?php endif; ?>

<base target="_self" />
</head>

<body>
<?php include("inc_cart_basket.tpl.html"); ?>
<?php include("inc_topbar.tpl.html"); ?>
<div id="wrap">
<!--Content, Left, Right, Middle, Outer, Advertisement--> 
<!--Header-->
<div id="header">
<?php 
include("inc_pagetitle.tpl.html"); 
include("inc_mainmenu.tpl.html"); 
include("inc_submenu.tpl.html"); 
include("inc_navigation.tpl.html"); 
?>
</div>
<!--/Header-->

<!--Content-->

<!--C1 layout-->
<div class="contentR">
	
<!--C1-R layout-->
<div class="sideR">
<!--C1-R1 layout-->
<div id="hotview" class="sideblock">
<h3><?php echo $layout_title_array['hotview'] ?></h3>
<ul class="msgtitlelist" >
<?php
$hotview_array=getLayoutn('hotview');
foreach($hotview_array as $row){
?>
<li><a href='article.php?id=<?php echo $row['id'] ?>' target='_self'><?php echo $row['title'] ?></a></li>
<?php } ?>
</ul>
</div>
<!--/C1-R1 layout-->

<!--C1-R2 layout-->
<div id="newread" class="sideblock">
<h3><?php echo $layout_title_array['newread'] ?></h3>
<ul class="msgtitlelist" >
<?php
$newread_array=getLayoutn('newread');
foreach($newread_array as $row){
?>
<li><a href='article.php?id=<?php echo $row['id'] ?>' target='_self'><?php echo $row['title'] ?></a></li>
<?php } ?>
</ul>
</div>
<!--/C1-R2 layout-->

</div>
<!--/C1-R layout-->

<!--C1-L layout-->
<div class="mainarea">
<div id="articledetail">
<h1 class="articletitle"><?php echo $article_array['title'] ?></h1>
<table width="100%">
<tr>
<td width="360">
<table width="100%">
<tr>
<td>
<img src="<?php echo $picurl ?>" width="240" border="0" align="absmiddle" /><br/>
<img src="<?php echo SYS_FRONT_STYLE_PATH?>images/icon_zoom_16x16.gif" alt="查看大图" width="16" height="16" hspace="3" vspace="5" align="absmiddle"  style="border: none" />查看大图</a>
</td>
</tr>
</table>
</td>
<td valign="top">
<!-- 产品价格信息 -->
	<span class="rightinfo_price">
		<span class="help_txt">一&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;价：</span>
		<span class="font_price">

			<strong><?php echo $article_array['price'] ?></strong>元
		</span>
	</span>
	<!-- 产品状态信息 -->
	<span class="rightinfo_button">
<?php
if($article_array['quantity']) :
if($isbasket) :
?>
		<a href="api/cart.php?action=addToCart&articleID=<?php echo $id ?>" onClick="return false;">
<?php else : ?>  
		<a href="cart.php?id=<?php echo $id ?>&act=add"> 
<?php endif; ?>   
		<img src="<?php echo SYS_FRONT_STYLE_PATH?>images/buy.gif" id="buyarticleID_$id" alt="立即购买" width="112" height="36" border="0" align="absmiddle" />
		</a>
<?php else: ?>
		<img src="<?php echo SYS_FRONT_STYLE_PATH?>images/buy0.gif" width="112" height="36" border="0">
<?php endif; ?>
	</span>		

</td>
</tr>
</table>

<div id="articlebody">
<?php echo $article_array['intro'] ?>
</div>

<?php 
include("inc_articlecontent_ad.tpl.html");
include("inc_articlectrl.tpl.html");
include("inc_favorite.tpl.html");
include("inc_comment.tpl.html");
include("inc_relation.tpl.html");
?> 
</div> <!--/articledetail-->

</div>
<!--/C1-L layout-->

</div>
<!--C1 layout-->

<!--/Content-->

<?php include("inc_footer.tpl.html"); ?>
</div>
</body>
</html>