<?php 
/**
 * 阅读文章页面 博闻广记 www.xunzhenji.com
 */
if(!defined('EMLOG_ROOT')) {exit('error!');} 
?>
<div id="content">
<div id="contentleft">
<!-- 显示置顶标记,日志标题 -->
<div class="biaoti" id="masked"><?php topflg($top); ?><?php echo $log_title; ?></div>
<!-- 标题下文章信息 -->
	<div class="date2">
	<span class="home"></span><a href="/" title="返回网站首页">首页</a> <b>></b>
    <?php 
     //父分类和子分类
     $ery = mysql_query("SELECT * FROM ".DB_PREFIX."sort WHERE sid ='$sortid'"); $rest = mysql_fetch_array($ery); if($rest['pid'] == "0"){
   echo '<a href="'.Url::sort($rest['sid']).'">'.$rest['sortname'].'</a>'; 
  }else{
  $ery1 = mysql_query("SELECT * FROM ".DB_PREFIX."sort WHERE sid ='".$rest['pid']."'"); $rest1 = mysql_fetch_array($ery1); echo '<a href="'.Url::sort($rest1['sid']).'">'.$rest1['sortname'].'</a>'; echo ' <b>></b> <a href="'.Url::sort($rest['sid']).'">'.$rest['sortname'].'</a>';}
    ?>
	<!--分类原代码 <?php blog_sort($logid); ?> -->&nbsp;
	<span class="pauthor"></span>作者：<?php blog_author($author); ?>&nbsp;
	<span class="ptime"></span> <?php $weekarray=array("日","一","二","三","四","五","六"); 
echo gmdate('Y年n月j日 G:i', $date);echo " 星期".$weekarray[gmdate('w', $date)];?>&nbsp;
	<span class="pview"></span>热度：<?php echo $views; ?>°&nbsp;
	<span class="zihao"></span>字号：<a href="javascript:doZoom(14)" class="hint--top  hint--success" data-hint="缩小到五号字体">小</a>
    <a href="javascript:doZoom(16)" class="hint--top  hint--info" data-hint="适合阅读的小四字体">中</a>
    <a href="javascript:doZoom(18)" class="hint--top  hint--error" data-hint="放大到四号字体">大</a>&nbsp; 
<?php if (_g('rz_pinglun') == "yes"): ?>
<span class="plun"></span>评论：<?php echo $comnum; ?> 条</li>
<?php else: ?>
<span class="plun"></span>评论：<a href="<?php echo $value['log_url']; ?>#comments"><span class="ds-thread-count" data-thread-key="<?php echo $logid; ?>"></span></a>&nbsp;
<?php endif; ?>
	<!-- editflg编辑 --><?php editflg($logid,$author); ?></div>
	
	<!--分辨率小于600px时才出现，低于320px自动消失。-->
    <div class="date4">
	时间：<?php echo gmdate('Y-n-j G:i', $date); ?>&nbsp;&nbsp;
	热度：<?php echo $views; ?>°&nbsp; 
	评论：<?php echo $comnum; ?> 条&nbsp;
	</div>
	<div class="xiantiao"><img src="<?php echo TEMPLATE_URL; ?>images/xiantiao1.png"></div>
	
	<!--  改变正文字号代码  -->
<script type="text/javascript">function doZoom(size){document.getElementById('zoom').style.fontSize=size+'px'}</script>
    <!-- 改变字号代码结束 -->
	
	<!-- 日志全文内容 --><div id="zoom"><?php echo $log_content; ?></div>
	
	<!-- 统计访客停留时间 -->
	<div id="tingliu"><span class="tingliu2 hint--top hint--bounce" data-hint="希望这篇文章能给你带来收获，去发表评论吧！？"><a href="##rz_fbpl"><img src="<?php echo TEMPLATE_URL; ?>images/tishi.gif" class="tingliu5"></a></span> &nbsp;<span class="tingliu2">您阅读这篇文章共花了：</span>&nbsp;<span class="tingliu3" id="stime"></span></div>
<script language="JavaScript">var ss=0,mm=0,hh=0;function TimeGo(){ss++;if(ss>=60){mm+=1;ss=0}if(mm>=60){hh+=1;mm=0}ss_str=(ss<10?"0"+ss:ss);mm_str=(mm<10?"0"+mm:mm);tMsg=""+hh+"小时"+mm_str+"分"+ss_str+"秒";document.getElementById("stime").innerHTML=tMsg;setTimeout("TimeGo()",1000)}TimeGo();</script>
    <!-- 统计访客停留时间结束 -->
	
	<!-- 结束分割线 -->
	<div class="jieshu"><img src="<?php echo TEMPLATE_URL; ?>images/jieshu.png"></div>
	<div class="jieshu2"><img src="<?php echo TEMPLATE_URL; ?>images/jieshu3.gif"></div>
	
	<!-- 上一篇及下一篇 -->
	<div id="shangxiapian_2"><?php neighbor_log2($neighborLog); ?><div id="gaodu1"></div></div>
	<div id="shangxiapian"><?php neighbor_log($neighborLog); ?><div id="gaodu1"></div></div> 
	
	<!-- 捐赠。分为文字和图片，文字只在小分辨率下显示，图片则是大分辨率。 -->
	<?php if (_g('juanzeng1-kh') == "yes"): ?>
	<div class="juanzhu"><a href="<?php echo _g('juanzheng-link');?>" title="捐赠支持作者！点击進入。" target="_blank"><img src="<?php echo TEMPLATE_URL; ?>images/juanzeng1.gif"></a></div>
	<?php else: ?><?php endif; ?>
	<?php if (_g('juanzeng2-kh') == "yes"): ?>
	<div class="juanzhu2"><b>捐赠支持：</b>如果觉得这篇文章对您有帮助，请<b><a href="<?php echo _g('juanzheng-link');?>" class="shake shake-little" title="去看看有谁捐赠了。">“扫一扫”</a></b>鼓励作者！</div>
	<?php else: ?><?php endif; ?>
	<!-- 感兴趣文章 -->
	<?php if (_g('xgrz-kh') == "yes"): ?>
   <div class="gxq"><div class="bti"><img src="<?php echo TEMPLATE_URL; ?>images/xiangguan.png">&nbsp;<span class="chaffle" data-lang="zh">相关文章</span></div>
    <?php $Log_Model = new Log_Model();
          $randlogs = $Log_Model->getLogsForHome("AND sortid = {$sortid} ORDER BY rand() DESC,date DESC", 1, 10);?>
        <ul>
        <?php foreach($randlogs as $value): ?>
            <li>
            <a href="<?php echo $value['log_url']; ?>" title="查看文章:<?php echo $value['log_title']; ?>" class="shake shake-little"><?php echo $value['log_title']; ?></a>
            </li>
        <?php endforeach; ?>
        </ul>
    <div id="gaodu1"></div></div>
     <?php else: ?><?php endif; ?>
     <!-- 感兴趣文章代码结束 -->


<?php if (_g('fenxiang1-kh') == "yes"): ?><div class="fenxiang">
<!-- JiaThis Button BEGIN -->
<div class="jiathis_style_24x24">
	<a class="jiathis_button_weixin"></a>
	<a class="jiathis_button_cqq"></a>
	<a class="jiathis_button_qzone"></a>
	<a class="jiathis_button_tsina"></a>
	<a class="jiathis_button_tqq"></a>
	<a class="jiathis_button_renren"></a>
	<a class="jiathis_button_hi"></a>
	<a class="jiathis_button_tieba"></a>
	<a class="jiathis_button_tsohu"></a>
	<a class="jiathis_button_t163"></a>
	<a class="jiathis_button_douban"></a>
	<a class="jiathis_button_tianya"></a>
	<a class="jiathis_button_xiaoyou"></a>
	<a class="jiathis_button_qq"></a>
	<a class="jiathis_button_i139"></a>
	<a class="jiathis_button_copy"></a>
	<a class="jiathis_button_email"></a>
	<a class="jiathis_button_ishare"></a>
	<a href="http://www.jiathis.com/share?uid=1792395" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
	<a class="jiathis_counter_style"></a>
</div>
<script type="text/javascript">
var jiathis_config = {data_track_clickback:'true'};
</script>
<script type="text/javascript" src="http://v3.jiathis.com/code/jia.js?uid=1367996005907460" charset="utf-8"></script><!-- JiaThis Button END --></div>
<?php endif; ?>
<div id="tag"><?php blog_tag($logid); ?></div> <!-- 日志标签 -->
<?php if (_g('banquan-kh') == "yes"): ?>
	<div id="banquan">
	<!-- 二维码地址生成 -->
	<div class="tupian hint--right hint--rounded" data-hint="这篇文章太棒了，我要分享给我的小伙伴们！
	1、用手机扫二维码。2、点右上角分享到朋友圈。">
	<img src="http://qr.liantu.com/api.php?&bg=ffffff&w=100&m=6&fg=000000&text=<?php $url_this =  "http://".$_SERVER ['HTTP_HOST'].$_SERVER['REQUEST_URI'];echo $url_this; ?>" alt="二维码加载中..."></div>
<div class="xinxi">
<span class="zuozhe">本文作者：</span><?php blog_author($author); ?> &nbsp;&nbsp;&nbsp;&nbsp;
<span class="biaoti2">文章标题：</span> <a href="<?php echo Url::log($logid); ?>"><?php echo $log_title; ?></a><br>
<span class="blog_url">本文地址：</span><a href="<?php echo Url::log($logid); ?>"><?php echo Url::log($logid); ?></a><br>
<b>版权声明：</b>若无注明，本文皆为“<span class="blog_name"><?php echo $blogname; ?></span>”原创，转载请保留文章出处。
	</div><div id="gaodu1"></div></div><?php else: ?><?php endif; ?>
	<?php doAction('log_related', $logData); ?> <!-- 相关日志的挂载点 -->
	<?php blog_comments($comments); ?> <!-- 输出该日志评论列表 -->
	<?php blog_comments_post($logid,$ckname,$ckmail,$ckurl,$verifyCode,$allow_remark); ?> <!-- 输出发表评论框 -->
	<div style="clear:both;"></div>
</div><!--end #contentleft-->
<?php
 include View::getView('side');
 include View::getView('footer');
?>