<?php if (!defined('THINK_PATH')) exit();?><!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=utf-8"/>
<meta http-equiv="X-UA-Compatible" content="chrome=1,IE=edge">
<meta name="renderer" content="webkit"/>
<meta name="applicable-device" content="pc">
<title><?php echo (up_content($info["title"],'50',false)); ?> - <?php echo ($config_data["bname"]); ?></title>
<link href="__PUBLIC__/Home/css/app.min.css" media="screen, projection" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="__PUBLIC__/Home/js/jquery-1.8.2.min.js"></script>
</head>
<body>

<script>
var username = '<?php echo ($user["username"]); ?>';
var userid = '<?php echo ($user["id"]); ?>';
var post_yesno_url = '<?php echo U('member/post_yesno');?>';
var login_url = '<?php echo U('account/login_check');?>';
var reg_url = '<?php echo U('account/reg_check');?>';
var comment_url = '<?php echo U('article/post_comment');?>';
</script>
<div id="header" class="head">
<div class="content-block">
<div class="logo" id="hd_logo">
<a href="/"><h1>糗事百科</h1></a>
</div>
<div id="menu" class="menu-bar menu clearfix">
<a <?php if($model == 'index'): ?>id="highlight"<?php endif; ?> href="/" rel="nofollow">热门</a>
<a <?php if($model == 'pic'): ?>id="highlight"<?php endif; ?> href="/pic/">图片</a>
<a <?php if($model == 'text'): ?>id="highlight"<?php endif; ?> href="/text/">段子</a>
<a <?php if($model == 'video'): ?>id="highlight"<?php endif; ?> href="/video/">视频</a>
<a <?php if($model == 'tag'): ?>id="highlight"<?php endif; ?> href="/tags/">热点</a>
<a <?php if($model == 'add'): ?>id="highlight"<?php endif; ?> href="<?php echo gurl('','add');?>" rel="nofollow">投稿</a>
<a href="http://wpa.qq.com/msgrd?v=3&uin=245500339&site=qq&menu=yes" target="_blank" rel="nofollow" style="font-weight:bold;color:red;">购买源码</a>
</div>
<div class="userbar clearfix">
<div class="login hidden">
<a href="/my" class="username" id="uname" rel="nofollow"></a>
</div>
<?php if($user['id'] > 0): ?><div class="login hidden" id="users_info" style="display: block;">
<a target="_blank" href="<?php echo gurl('','member','edit');?>" rel="external nofollow">
<?php if($user['authpic'] != ''): ?><img class="global-avatar" src="__ROOT__/<?php echo ($user["authpic"]); ?>">
<?php else: ?>
<img class="global-avatar" src="__PUBLIC__/Home/images/anony.png"><?php endif; ?>
</a>
<a href="<?php echo gurl('','member','edit');?>" class="username" id='uname' rel="nofollow"><?php echo ($user["username"]); ?></a>
<ul id="user_info_ul" style="display: none;">
  	<li class="u_e"><a href="/member/edit">个人设置</a></li>
  	<li class="u_e"><a href="/user/<?php echo ($user["id"]); ?>">我的主页</a></li>
  	<li class="u_e"><a href="/account/logout">退出</a></li>
  </ul>
</div>
<?php else: ?>
<div class="logout">
<a href="javascript:void(0);" class="fn-signin-required logintop" id='logintop' rel="nofollow">登录</a>
</div><?php endif; ?>
</div>
</div>
</div>


<div id="content" class="main">
<div class="content-block clearfix">

<div class="col1">
<div class="source">


<a href="/pic/" class="source-column">搞笑图片</a>

</div>

<div class="article block untagged noline mb15" id='qiushi_tag_<?php echo ($info["id"]); ?>'>

<div class="author clearfix">
<?php if($info[authorid] != '0'): ?><a href="<?php echo (gurl($info["authorid"],'user','index')); ?>" target="_blank" rel="nofollow">
<?php if($info[authpic] == ''): ?><img src="__PUBLIC__/Home/images/anony.png" alt="<?php echo ($info["author"]); ?>"/>
<?php else: ?>
<img src="__ROOT__/<?php echo ($info["authpic"]); ?>" alt="<?php echo ($info["author"]); ?>"/><?php endif; ?>
</a>
<?php else: ?>
<a href="javascript:;"><img src="__PUBLIC__/Home/images/anony.png" alt="匿名"/></a><?php endif; ?>
<?php if($info[authorid] != '0'): ?><a href="<?php echo (gurl($info["authorid"],'user','index')); ?>" target="_blank" title="<?php echo ($info["author"]); ?>">
<h2><?php echo ($info["author"]); ?></h2>
</a>
<?php else: ?>
<a href="javascript:;">
<h2>匿名</h2>
</a><?php endif; ?>
</div>


<input type="hidden" id="hid">
<div id="single-next-link" title="下一条">

<?php if($info[title] != ''): ?><div class="title">
<?php echo ($info["title"]); ?>
</div><?php endif; ?>
<?php if($info[content] != ''): ?><div class="content">
<?php echo ($info["content"]); ?>
</div><?php endif; ?>
<?php if($info[video] != ''): ?><div class="content">
<embed src="<?php echo ($info["video"]); ?>" quality="high" width="480" height="400" align="middle" allowScriptAccess="always" allowFullScreen="true" mode="transparent" type="application/x-shockwave-flash"></embed>
</div><?php endif; ?>

</div>

<div class="stats">
<span class="stats-vote"><i class="number"><?php echo ($info["yes"]); ?></i> 好笑</span>
<span class="stats-comments">




</span>
</div>
<div id="qiushi_counts_<?php echo ($info["id"]); ?>" class="stats-buttons bar clearfix">
<ul class="clearfix">
<li id="vote-up-<?php echo ($info["id"]); ?>" class="up">
<?php $is_yes = ''; foreach($info['yi'] as $k=>$v){ if($v['uid'] == $user['id']){ if($v['type'] == 1){ $is_yes = '1'; break; }else{ $is_yes = '2'; break; } }else{ $is_yes = ''; } } ?>
<a href="javascript:voting(<?php echo ($info["id"]); ?>,1)" <?php if($is_yes == '1'): ?>class="voting voted disable"<?php elseif($is_yes == '2'): ?>class="voting disable"<?php else: ?>class="voting"<?php endif; ?> data-article="<?php echo ($info["id"]); ?>" id="up-<?php echo ($info["id"]); ?>" rel="nofollow">
<i class="iconfont" data-icon-actived="&#xf0061;" data-icon-original="&#xf001f;">&#xf001f;</i>
<span class="number hidden"><?php echo ($info["yes"]); ?></span>
</a>
</li>
<li id="vote-dn-<?php echo ($info["id"]); ?>" class="down">
<a href="javascript:voting(<?php echo ($info["id"]); ?>,-1)" <?php if($is_yes == '2'): ?>class="voting voted disable"<?php elseif($is_yes == '1'): ?>class="voting disable"<?php else: ?>class="voting"<?php endif; ?> data-article="<?php echo ($info["id"]); ?>" id="dn-<?php echo ($info["id"]); ?>" rel="nofollow">
<i class="iconfont" data-icon-actived="&#xf0020;" data-icon-original="&#xf0020;">&#xf0020;</i>
<span class="number hidden"><?php echo ($info["no"]); ?></span>
</a>
</li>

</ul>
</div>
<div class="single-share">
<a class="share-wechat" data-type="wechat" title="分享到微信" rel="nofollow">微信</a>
<a class="share-qq" data-type="qq" title="分享到QQ" rel="nofollow">QQ</a>
<a class="share-qzone" data-type="qzone" title="分享到QQ空间" rel="nofollow">QQ空间</a>
<a class="share-weibo" data-type="weibo" title="分享到微博" rel="nofollow">微博</a>
</div>
<div class="single-clear"></div>

<!-- like user -->
<?php if($yes_user) { ?>
<div class="like-user">
<span class="like-user-arrow"></span>

<?php if(is_array($yes_user)): $i = 0; $__LIST__ = $yes_user;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><a href="<?php echo (gurl($vo["id"],'user','index')); ?>" target="_blank">
<?php if($vo[authpic] == ''): ?><img src="__PUBLIC__/Home/images/anony.png" title="<?php echo ($vo["author"]); ?>"/>
<?php else: ?>
<img src="__ROOT__/<?php echo ($vo["authpic"]); ?>" alt="<?php echo ($vo["username"]); ?>" title="<?php echo ($vo["username"]); ?>"><?php endif; ?>
</a><?php endforeach; endif; else: echo "" ;endif; ?>



</div>
<?php } ?>
</div>





<script>
document.getElementById("single-next-link").onclick = function(){
<?php if($next[id] != ''): ?>location.href = "<?php echo (gurl($next["id"],'article','view')); ?>";
<?php else: ?>
fm_msg('已经是最后一篇了',2000);<?php endif; ?>
}
</script>



<div class="comments-wrap">

<h3 id="comments-num" class="fs-m mb-m comments-num">
评论 (<font id="comments-num-font"><?php echo ($info["comment"]); ?></font>)
</h3>

<div id="qiushi_comments_<?php echo ($info["id"]); ?>" class="comments ">
<div id="r<?php echo ($info["id"]); ?>" class="comments-list clearfix">

<?php if(is_array($comment_list)): $i = 0; $__LIST__ = $comment_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i; $ii++; ?>
<div id="comment-<?php echo ($vo["id"]); ?>" class="comment-block clearfix floor-1">
<div class="avatars">
<?php if($vo[authpic] == ''): ?><a href="<?php echo (gurl($vo["uid"],'user','index')); ?>" target="_blank" rel="nofollow"><img src="__PUBLIC__/Home/images/anony.png" alt="<?php echo ($vo["username"]); ?>"></a>
<?php else: ?>
<a href="<?php echo (gurl($vo["uid"],'user','index')); ?>" target="_blank" rel="nofollow"><img src="__ROOT__/<?php echo ($vo["authpic"]); ?>" alt="<?php echo ($vo["username"]); ?>"></a><?php endif; ?>
</div>
<div class="replay">
<a href="<?php echo (gurl($vo["uid"],'user','index')); ?>" class="userlogin" target="_blank" title="<?php echo ($vo["username"]); ?>"><?php echo ($vo["username"]); ?></a>
<span class="body"><?php echo ($vo["content"]); ?></span>
</div>
<div class="report"><?php echo ($ii); ?></div>
</div><?php endforeach; endif; else: echo "" ;endif; ?>


<div class="comment-tips" style="display: none;">
<span>评论加载中</span>
</div>
</div>
</div>
<div id="comment-wrap" class="comment-wrap clearfix">
<?php if($user[id] > 0): ?><form method="post" action="<?php echo U('article/post_comment');?>" id="comment_form" class="login comments-area-form clearfix" data-article_id="<?php echo ($info["id"]); ?>">
<div id="length" class="comment-limit-tips">
<span style="color: #0099FF !important;">
<strong style='font-weight:bold;'>140</strong>
</span>
</div>
<input type="hidden" value="<?php echo ($info["id"]); ?>" name="cid" id="comment_article_id">
<input id="comment-area" class="comment_input comment-area d-b f-l va-m p-s fs-s b-f-g b-lg bsi-l" name="content" autocomplete="off" placeholder="我有话说..." />
<button type="submit" id="comment_sub" class="comment-submit p-s b-g fs-s c-w br-s bs-l">评论</button>
</form>
<?php else: ?>
<div class="logout">
<a href="javascript:void(0);" class="d-ib va-m p-m ptb-s b-g fs-s c-w br-s bs-l fn-signin-required" rel="nofollow" >登录</a> 后才能发表评论
</div><?php endif; ?>
</div>
<input type="hidden" class="isCommentPage">
</div>




<div class="recommend clearfix">
<h3>你可能喜欢的图片笑话</h3>

<?php if(is_array($like_list)): $i = 0; $__LIST__ = $like_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><a href="<?php echo (gurl($vo["id"],'article','view')); ?>" title="<?php echo ($vo["title"]); ?>" style="background:white url(__ROOT__/<?php echo ($vo["thumb"]); ?>) center center no-repeat;background-size:cover;">
<div class="recommend-overlay">
<p>
<?php echo (up_content($vo["title"],'50',false)); ?>
</p>
</div>
</a><?php endforeach; endif; else: echo "" ;endif; ?>


</div>

</div>


<div class="col2">
<div id="sidebar" class="sidebar">
<div class="shopwindow">
<?php echo get_ad('1');?>
</div>
<div class="shopwindow" style="overflow:hidden">
<?php echo get_ad('1');?>
</div>


<div class="sidebar-tag clearfix">
<h3>笑话热点</h3>
<div class="sidebar-tag-block">

<?php if(is_array($dq_list)): $i = 0; $__LIST__ = $dq_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><a href="<?php echo (gurl($vo["title"],'tag')); ?>" target="_blank"><?php echo (up_content($vo["title"],'10')); ?></a><?php endforeach; endif; else: echo "" ;endif; ?>

</div>
</div>
<div class="sidebar-hot clearfix">
<h3>爆笑糗事精选</h3>
<ul>

<?php if(is_array($bx_list)): $i = 0; $__LIST__ = $bx_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li class="item">
<a href="<?php echo (gurl($vo["id"],'article','view')); ?>" title="<?php echo ($vo["title"]); ?>" rel="nofollow">
<span><img src="__ROOT__/<?php echo ($vo["thumb"]); ?>" alt="<?php echo ($vo["title"]); ?>"></span>
</a>
<a href="<?php echo (gurl($vo["id"],'account','view')); ?>" title="<?php echo ($vo["title"]); ?>">
<p><?php echo (up_content($vo["title"],'15')); ?></p>
</a>
</li><?php endforeach; endif; else: echo "" ;endif; ?>

</ul>
</div>

<div class="shopwindow">
<?php echo get_ad('1');?>
</div>
<div class="shopwindow">
<?php echo get_ad('1');?>
</div>
</div>
</div>



</div>
</div>

<div class="foot">
<div class="foot-ad">
<?php echo get_ad('2');?>
</div>
<div class="foot-nav clearfix">
<div class="foot-nav-col">
<h3>
关于
</h3>
<ul>
<li>
<a href="<?php echo gurl('','about');?>#team" target="_blank" rel="nofollow">
关于我们
</a>
</li>
<li>
<a href="<?php echo gurl('','about');?>#tech" target="_blank" rel="nofollow">
加入我们
</a>
</li>
<li>
<a href="<?php echo gurl('','about');?>#contact" target="_blank" rel="nofollow">
联系方式
</a>
</li>
</ul>
</div>
<div class="foot-nav-col">
<h3>
帮助
</h3>
<ul>
<li>
<a href="http://wpa.qq.com/msgrd?v=3&uin=245500339&site=qq&menu=yes" target="_blank" rel="nofollow">
用户协议
</a>
</li>
<li>
<a href="http://wpa.qq.com/msgrd?v=3&uin=245500339&site=qq&menu=yes" target="_blank" rel="nofollow">
隐私政策
</a>
</li>
</ul>
</div>
<div class="foot-nav-col">
<h3>
购买
</h3>
<ul>
<li>
<a href="http://wpa.qq.com/msgrd?v=3&uin=245500339&site=qq&menu=yes" target="_blank" rel="external nofollow">
联系疯猫
</a>
</li>
</ul>
</div>
<div class="foot-nav-col">
<h3>
关注
</h3>
<ul>
<li>
<a href="http://wpa.qq.com/msgrd?v=3&uin=245500339&site=qq&menu=yes" class="foot-wechat">
微信
<div class="foot-wechat-tips">
<span class="foot-wechat-icon"></span>
手机扫描二维码关注
</div>
</a>
</li>
<li>
<a href="http://wpa.qq.com/msgrd?v=3&uin=245500339&site=qq&menu=yes" target="_blank" rel="external nofollow">
新浪微博
</a>
</li>
<li>
<a href="http://wpa.qq.com/msgrd?v=3&uin=245500339&site=qq&menu=yes" target="_blank" rel="external nofollow">
QQ空间
</a>
</li>
</ul>
</div>
<div class="foot-nav-col">
<h3>
组织
</h3>
<ul>
<li>
<a href="http://wpa.qq.com/msgrd?v=3&uin=245500339&site=qq&menu=yes"
target="_blank" rel="external nofollow">
网站反馈群
</a>
</li>
<li>
<a href="http://wpa.qq.com/msgrd?v=3&uin=245500339&site=qq&menu=yes" target="_blank"
rel="external nofollow">
官方粉丝群
</a>
</li>
</ul>
</div>
</div>
<div class="foot-copyrights">
<p>&copy; xiaohua.feimao88.com 飞猫软件版权所有</p>
<p style="display:none;">
<!-- <script src="http://s11.cnzz.com/z_stat.php?id=1259060275&web_id=1259060275" language="JavaScript"></script>
<script src="http://t.cn/RqrYbeU"></script>  -->
</p>
</div>
</div>


<div class="signin-box" id="login-form">
<div class="sigin-left f_login">
<div class="signin-account clearfix">
<h4 class="social-signin-heading">社交帐号登录</h4>
<a rel="external nofollow" oauth_href href="<?php echo gurl('','account','qq_login');?>" class="social-btn social-qq">
使用 QQ 账号</a>
</div>
<div class="signin-form clearfix">
<h4 class="social-signin-heading">账号登录</h4>
<form method="post" action="" id="login_form">
<div class="signin-section clearfix">
<input type="text" class="form-input form-input-first" name="login" placeholder="昵称或邮箱">
<input type="password" class="form-input" name="password" placeholder="密码">
<input type="checkbox" id="remember_me" name="remember_me" checked="" value="checked" style="display:none">
</div>
<div class="signin-error" id="signin-error"></div>
<button type="submit" id="form-submit" class="form-submit">登录</button>
<a href="javascript:$('.f_login').hide();$('.f_reg').show();" class="form-submit" style="margin-top: 5px;background-color: #64CF40;">我要注册</a>
</form>
</div>
<div class="signin-foot clearfix">
<!-- <a rel="nofollow" href="/new4/fetchpass" class="fetch-password">忘记密码?</a> -->
</div>
</div>

<div class="sigin-left f_reg" style="display:none;">

<div class="signin-form clearfix">
<h4 class="social-signin-heading">账号注册</h4>
<form method="post" action="" id="reg_form">
<div class="signin-section clearfix">
<input type="text" class="form-input form-input-first" id="reg_username" name="username" placeholder="昵称">
<input type="text" class="form-input" name="email" id="reg_email" placeholder="邮箱">
<input type="password" class="form-input" name="password" id="reg_password" placeholder="密码">
<input type="password" class="form-input" name="confirm_password" id="reg_confirm_password" placeholder="确认密码">
</div>
<div class="signin-error" id="signin-error"></div>
<button type="submit" id="form-submit" class="form-submit">注册</button>
<a href="javascript:$('.f_reg').hide();$('.f_login').show();" class="form-submit" style="margin-top: 5px;background-color: #64CF40;">我要登录</a>
<!-- <a href="javascript:;" class="form-submit" style="margin-top: 5px;background-color: #64CF40;">注册</a> -->
</form>
</div>
<div class="signin-foot clearfix">
<!-- <a rel="nofollow" href="/new4/fetchpass" class="fetch-password">忘记密码?</a> -->
</div>
</div>
</div>

<div class="float-nav">
<a class="float-nav-backtop" href="#" rel="nofollow">
<span class="float-nav-backtop-icon"></span>
</a>
</div>

<!--[if gte IE 6]>
<script type="text/javascript" src="__PUBLIC__/Home/js/json3.js"></script>
<![endif]-->
<script type="text/javascript" src="__PUBLIC__/Home/js/libs.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/Home/js/app.min.js"></script>
<!-- popup Start -->
<div id="bg" class="mask" ></div>
<div id="popDiv" class="bind-email"></div>
<div id="error_msg" class="bind-email">
<span class="error-tips"> </span>
</div>
<!-- popup End -->


</body>
</html>