<?php echo $this->fetch('header.html'); ?>
	<div class="clear" /></div>
	
	<div id="sidebar">
	     <div class="loing_admin"> 
			<?php if ($this->_var['home']['article']['arti_catstxt']): ?>
 			<h5>相关推荐</h5> 
			<p class="news" style="margin-left: 28px">
					<?php $_from = $this->_var['home']['article']['arti_catstxt']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'txt');if (count($_from)):
    foreach ($_from AS $this->_var['txt']):
?>
					 <a href="<?php echo $this->_var['txt']['article_url']; ?>"> <?php echo $this->_var['txt']['name']; ?></a><br/>
					<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> 
			</p>
			<?php endif; ?>

			<h5>文章分类</h5>  
			<p  style="margin-left: 28px">
			<?php $_from = $this->_var['home']['articat']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'articat');if (count($_from)):
    foreach ($_from AS $this->_var['articat']):
?> 
					<A HREF="<?php echo $this->_var['articat']['name_url']; ?>"><?php echo $this->_var['articat']['name']; ?></A><br/>
					<?php if ($this->_var['articat']['next_node']): ?>
					<?php $_from = $this->_var['articat']['next_node']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'next_node');if (count($_from)):
    foreach ($_from AS $this->_var['next_node']):
?> 
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $this->_var['next_node']['sub_next']; ?><br/>
					<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> 
					<?php endif; ?>
			<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> 
			</p>
		
		<?php if ($this->_var['home']['Tarticles_comms_title']): ?>  
		<h5><?php echo $this->_var['home']['Tarticles_comms_title']; ?></h5>
		<p style="margin-left: 28px">

				<?php $_from = $this->_var['home']['Tarticles_comms']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'articles');if (count($_from)):
    foreach ($_from AS $this->_var['articles']):
?>
				 <a href="<?php echo $this->_var['articles']['article_url']; ?>"> <?php echo $this->_var['articles']['name']; ?></a>[<a href="<?php echo $this->_var['articles']['arcomms_url']; ?>"><?php echo $this->_var['articles']['comms']; ?></a>]<br/>
				<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>  

		</p>
		<?php endif; ?>
       </div>
    </div>
	
	<div id="content">
	 <h5><?php echo $this->_var['home']['nowNave']; ?> </h5>
 			
		<div style="border:1px solid #330000;margin: 5px;padding: 5px">
			<div style="text-align: center;font-weight: bold;font-size: 20px;margin: 10px"><?php echo $this->_var['home']['article']['name']; ?></div>
			<div style="text-align: center;">
				<A HREF="<?php echo $this->_var['home']['article']['sourhttp']; ?>"><?php echo $this->_var['home']['article']['sour']; ?></A>   <?php echo $this->_var['home']['article']['arti_date']; ?> 
				【<a href="javascript:SetFont(18)">大</a> <a href="javascript:SetFont(16)">中</a> <a href="javascript:SetFont(12)">小</a>】 
				<A HREF="<?php echo $this->_var['home']['article']['arcomms_url']; ?>" style="color:#FF6600">我要评论(<?php echo $this->_var['home']['article']['comms']; ?>)</A> 
				<?php if ($this->_var['home']['article']['ifpic']): ?><a href="<?php echo $this->_var['home']['article']['pic_url']; ?>">[图库方式]</a><?php endif; ?>
			</div> 
			
			<?php if ($this->_var['home']['article']['keys']): ?>
			<div style="text-align:left;" > 
				 <b>关键词:</b>
				 <?php $_from = $this->_var['home']['article']['keys']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'keys');if (count($_from)):
    foreach ($_from AS $this->_var['keys']):
?>
					 <?php echo $this->_var['keys']['keys']; ?> 
				 <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> 	
			</div>
			<?php endif; ?>

			<?php if ($this->_var['home']['article']['edit_comm']): ?>
			<div style="float:left" >
				<span style="color:#D02700;">编辑点评：</span><?php echo $this->_var['home']['article']['edit_comm']; ?> 
			</div>
			<?php endif; ?>

			<div  style="margin:5px;" id="content_zhengwen">
				<?php echo $this->_var['home']['article']['descs']; ?>
			</div>

			<div style="float:right;margin-right: 20px"> [责任编辑：<?php echo $this->_var['home']['article']['user_id']; ?>]</div>  

			<?php if ($this->_var['home']['article']['articel_page']): ?>
			<div class="fenye"><?php echo $this->_var['home']['article']['articel_page']; ?></div> 
			<?php endif; ?>  

			<div style="margin-top:10px 0 0 0;overflow:hidden">
					<ul style="list-style: none;margin:0">	
						<li style="float:right; margin:0 50px 0 0; cursor:pointer;"><a href="javascript:copyLink();" target="_parent"><img src="<?php echo $this->_var['template_path']; ?>images/btn_tuijian.jpg"  title="推荐给好友" border="0"></a></li>
						<li style="float:right; margin:0 5px; cursor:pointer;"><a href="javascript:copyURL();" target="_parent"><img src="<?php echo $this->_var['template_path']; ?>images/btn_fuzhi.jpg"  border="0" title="复制链接"></a></li> 
						<li style="float:right; margin:0 5px;"><img src="<?php echo $this->_var['template_path']; ?>images/btn_cai.jpg" onclick="article_vote('CnumIn',<?php echo $this->_var['home']['article']['arid']; ?>)" style="cursor:pointer;"><br /><span style="font-size:13px; color:#F60">（<label  id="CnumIn"><?php echo $this->_var['home']['article']['against']; ?></label>）票</span></li>
						<li style="float:right; margin:0 5px;"><img src="<?php echo $this->_var['template_path']; ?>images/btn_ding.jpg" onclick="article_vote('DnumIn',<?php echo $this->_var['home']['article']['arid']; ?>)" style="cursor:pointer;"><br /><span style="font-size:13px; color:#F60">（<label  id="DnumIn"><?php echo $this->_var['home']['article']['support']; ?></label>）票</span></li> 
				   </ul>
				<div class="clear"></div>
				<?php if ($this->_var['home']['article']['cltion']): ?>  
					<blockquote style="margin: 3px"> 
					<b>相关新闻</b>
						<ul style="margin-top: 0px">
							 <?php $_from = $this->_var['home']['article']['cltion']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'cltion');if (count($_from)):
    foreach ($_from AS $this->_var['cltion']):
?>
								<li style="list-style-type:disc;"><?php echo $this->_var['cltion']; ?></li>
							 <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
						</ul>  
					</blockquote>
				<?php endif; ?>
			</div> 
		     
			<?php if ($this->_var['home']['article']['thumbs']): ?> 
			  <div style="overflow:hidden;margin:3px;width:96%">
			     <b>同分类热图</b>
					<ul style="overflow:hidden;list-style: none;margin:3px">
						 <?php $_from = $this->_var['home']['article']['thumbs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'thumbs');if (count($_from)):
    foreach ($_from AS $this->_var['thumbs']):
?>
							<li style="float:left;width:130;height:122px;margin: 2px">
							<A HREF="<?php echo $this->_var['thumbs']['article_url']; ?>"><IMG SRC="<?php echo $this->_var['thumbs']['thumb_url']; ?>" BORDER="0" title="<?php echo $this->_var['thumbs']['name']; ?>" width="120" height="90"></A>
							<p style="overflow:hidden;margin:0"><A HREF="<?php echo $this->_var['thumbs']['article_url']; ?>" title="<?php echo $this->_var['thumbs']['name']; ?>"><?php echo $this->_var['thumbs']['subname']; ?></a></p>
							</li>
						 <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
					</ul>  
			   </div>
			<?php endif; ?> 
			  
			<div style="clear:left;width:100%;margin: 3px;">
			现在有 <span class="font_orange"><strong><?php echo $this->_var['home']['article']['comms']; ?></strong></span> 人对本文发表评论 <a href="<?php echo $this->_var['home']['article']['arcomms_url']; ?>" class="font_blue">[查看所有评论]</a>
			<?php if ($this->_var['home']['article']['arti_comms']): ?>
				<ul> 
					<?php $_from = $this->_var['home']['article']['arti_comms']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'arti_comms');if (count($_from)):
    foreach ($_from AS $this->_var['arti_comms']):
?>
					<li>
						<div style="font-weight: bold"><?php echo $this->_var['arti_comms']['ip']; ?> <?php echo $this->_var['arti_comms']['nick']; ?> 发表于 <?php echo $this->_var['arti_comms']['dateadd']; ?>  </div>
						<div >  <?php echo $this->_var['arti_comms']['descs']; ?></div>
						<div >
							 <span style="font-weight: bold;color:#FF6600;cursor:pointer"  onclick="article_vote('DnumIn_comm',<?php echo $this->_var['arti_comms']['arcid']; ?>)" >支持</span> (<label  id="DnumIn_comm_<?php echo $this->_var['arti_comms']['arcid']; ?>"><?php echo $this->_var['arti_comms']['support']; ?></label>) 
							 <span style="font-weight: bold;color:#CC0066;cursor:pointer" onclick="article_vote('CnumIn_comm',<?php echo $this->_var['arti_comms']['arcid']; ?>)">反对</span> (<label  id="CnumIn_comm_<?php echo $this->_var['arti_comms']['arcid']; ?>"><?php echo $this->_var['arti_comms']['against']; ?></label>)
						</div>
					</li>
					<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
				
				</ul>
				现在有 <span class="font_orange"><strong><?php echo $this->_var['home']['article']['comms']; ?></strong></span> 人对本文发表评论 <a href="<?php echo $this->_var['home']['article']['arcomms_url']; ?>" class="font_blue">[查看所有评论]</a>
			<?php endif; ?> 

			<FORM METHOD=POST ACTION="article.php" style="margin: 0px">  
				昵称：<input style="padding:4px;width:100px;" name="name" type="text"  />
				<br /> 
				<textarea name="descs" cols="50" rows="5" class="inputL" style="width:500px;"></textarea>
				<br /> 
				<input name="提交评论" type="submit" value="提交" />
				<INPUT TYPE="hidden" name="id" value="<?php echo $this->_var['home']['article']['arid']; ?>">	
				<INPUT TYPE="hidden" name="pnid" value="<?php echo $this->_var['home']['article']['pnid']; ?>">
				<INPUT TYPE="hidden" NAME="act" value="install">	
				<br />  
			</FORM>
			</div>   
			 
			
			<?php if ($this->_var['home']['article']['vote']): ?>
			<div style="clear:left;width:100%;margin: 3px;">
				<b>关联调查</b> 
				<b><?php echo $this->_var['home']['article']['vote']['vote_title']['vt_name']; ?></b> 
				<p style="margin:2px"><?php echo $this->_var['home']['article']['vote']['vote_title']['vt_desc']; ?> </p> 
				<form method=post style="margin: 0px" ACTION="vote.php" target="_blank"> 
					<?php $_from = $this->_var['home']['article']['vote']['for_vote_group']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'item');if (count($_from)):
    foreach ($_from AS $this->_var['item']):
?>  
						<?php if ($this->_var['item']['is_show']): ?>
							<b><?php echo $this->_var['item']['vg_name']; ?></b> 
							<br/><?php echo $this->_var['item']['vg_desc']; ?> 
						<?php endif; ?>
						<div style="margin:5px 0 0 30px">
							<?php $_from = $this->_var['item']['vote_item']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'vote_item');if (count($_from)):
    foreach ($_from AS $this->_var['vote_item']):
?>
								<?php if ($this->_var['vote_item']['thumb_url']): ?><IMG SRC="<?php echo $this->_var['vote_item']['thumb_url']; ?>"  BORDER="0" ALT="<?php echo $this->_var['vote_item']['vi_name']; ?>"><?php endif; ?>
								<?php echo $this->_var['vote_item']['vi_name']; ?><?php echo $this->_var['vote_item']['input']; ?><br/> 
							<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
						</div>
					<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> 
					<INPUT TYPE="hidden" NAME="vtid" value="<?php echo $this->_var['home']['article']['vote']['vote_title']['vtid']; ?>"> 
					<INPUT TYPE="hidden" NAME="op" value="poll"> 
					<INPUT TYPE="submit" value="提交调查"> 
					<a href="vote.php?id=<?php echo $this->_var['home']['article']['vote']['vote_title']['vtid']; ?>&op=show" target="_blank" style="background-color: #eeeeee;margin:4px 0 2px 4px;padding:1px;width:120px;height:22px;border:1px solid #CCCCCC;font-size:11px">查看结果</a>  
				</form> 				
			 </div>
			<?php endif; ?>
			</div>
			
	
	</div>

<script type="text/javascript" src="js/ajax.js"></script>
<script language="JavaScript">
<!--
function article_vote(a,b) {
	obj = a;
	if(obj == 'DnumIn_comm' || obj == 'CnumIn_comm') {
		obj = a+"_"+b;
		var strTemp = "ajax_article_comms_vote.php?arcid=" + b + "&types=" + a;
	} else {
		var strTemp = "ajax_article_vote.php?arid=" + b + "&types=" + a;
	}
	send_request(strTemp); 
}

function validate() {
	var frm          = document.forms['theForm'];
	var descs = document.getElementById("my_descs").value; 
	var msg = '';

	if (descs.length == 0) {
		msg += '请输入正文' + '\n';
	}

	if (msg.length > 0) {
		alert(msg);
		return false;
	}else
	{
		return true;
	}
}

function copyLink() {
	var links = document.title  +location.href;
	window.clipboardData.setData("Text",links);
	alert("该网页地址已复制，您可以在QQ,MSN中粘贴(快截键CTRL+V)推荐给好友");
}
function copyURL() {
	var url = location.href;
	window.clipboardData.setData("Text",url);
	alert("该网页链接地址已复制，您可以粘贴(快截键CTRL+V)在需要的地方");
}

function SetFont(size){
	var divBody = document.getElementById("content_zhengwen");
	if(!divBody) {
	  return;
	}
	divBody.style.fontSize = size + "px";
	var divChildBody = divBody.childNodes;
	for(var i = 0; i < divChildBody.length; i++) {
	  if (divChildBody[i].nodeType==1) {
		  divChildBody[i].style.fontSize = size + "px";
	  }
	}
}
-->
</script>
<?php echo $this->fetch('footer.html'); ?>