<!DOCTYPE html>
<html>
<?php
define('BOOK',true);
require "include/common.php";
$aid=$_GET['aid'];
$s="SELECT `aid` FROM `wenzhang`;";
$r=$conn->query($s);

$sql = "SELECT * FROM `wenzhang` WHERE `aid`='$aid';";
$result=$conn->query($sql);
$row=$result->fetch_array();
$q = "SELECT * FROM `web`";
$web=$conn->query($q);
$webrow=$web->fetch_array();
$l=$q = "SELECT * FROM `book`";
$book=$conn->query($l);
$bookrow=$book->fetch_array();
?>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <title><?php echo $bookrow['shuming']; ?>_<?php echo $row['title']; ?>_<?php echo $webrow['webname']; ?></title>
    <meta name="description" content="<?php echo substr($row['content'],0,50); ?>,<?php echo $webrow['descrption']; ?>">
    <meta name="keywords" content="<?php echo $webrow['keywords']; ?>">
    <meta name="robots" content="all">
    <meta name="googlebot" content="all">
    <meta name="baiduspider" content="all">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
    <meta name="renderer" content="webkit">
    <script async="" src="./images/qidian/yep.min.js"></script>
    <script src="./images/qidian/stats.js" name="MTAH5" sid="500451537"></script>
    <script src="./images/qidian/push.js"></script>
    <link rel="stylesheet" charset="utf-8" href="./images/qidian/vote_popup.3844d.css">
    <link charset="utf-8" rel="stylesheet" href="./images/qidian/Panel.css">
    <link charset="utf-8" rel="stylesheet" href="./images/qidian/LightTip.css">
    <link charset="utf-8" rel="stylesheet" href="./images/qidian/Popup.css">
    <link charset="utf-8" rel="stylesheet" href="./images/qidian/Drag.css">
    <style name="lbf-overlay">.lbf-overlay {
        position: fixed;
        top: 0;
        left: 0;
    }</style>
</head>
<body class="theme-0 " style="zoom: 1;">

<div class="read-header" id="readHeader" data-l1="40">
    <div class="wrap-center cf">
        <div class="left-nav fl">
            <div class="logo">
                <a class="logo-ico" href="javascript:"></a>
            </div>
            <ul>
                <li class="site" data-l2="1">
                    <a class="pin-logo" href="" target="_blank"
                       data-eid="qd_R01"><span></span></a>

                </li>
                <?php
                $navi="SELECT * FROM `navigate` ORDER BY `order` ASC ";
                $nvrs=$conn->query($navi);
                while ($navirow=$nvrs->fetch_array())
                {
                ?>
                <li class="app" data-l2="2">
                    <cite><a href="<?php echo $navirow['link']; ?>"><?php echo $navirow['lanmu']; ?></a> </cite>
                </li>
                <?php } ?>

            </ul>
        </div>
        <div class="read-login fr">
            <ul>
<!--                <li id="min-search" data-l2="5">-->
<!--                    <form action="" method="get" target="_blank">-->
<!--                        <input class="submit-input" type="submit" id="searchSubmit" data-eid="qd_R32">-->
<!--                        <input id="pin-input" class="pin-input hide" name="kw" type="text" placeholder="天降我才必有用">-->
<!--                        <label id="pin-search" for="searchSubmit" data-eid="qd_R32"><em class="iconfont"></em></label>-->
<!--                    </form>-->
<!--                </li>-->
                <li class="line"></li>
                <li class="sign-out" data-l2="6">
                    <a id="pin-login"><a href="login.php" target="_blank">登录</a> </a>
                    <a class="reg">注册</a>
                </li>

            </ul>
        </div>
    </div>
</div>


<div class="wrap">
    <div id="j_bodyRecWrap" class="hidden" style="display: block;">

    </div>
    <div class="crumbs-nav" data-l1="1">

        <a href="index.php" target="_blank" data-eid="qd_G01">首页</a> --

        <a class="act" href="" target="_blank" id="bookImg"><?php echo $bookrow['shuming']; ?></a>
    </div>
    <div class="main-read-container" id="j-mainReadContainer">
        <div class="read-main-wrap font-family01" style="font-size:18px" id="j_readMainWrap">
            <div id="j_chapterBox" data-l1="3">
                <div class="text-wrap" id="chapter-475633609" data-cid="475633609">
                    <div class="main-text-wrap ">
                        <div class="text-head">
                            <a class="book-mark"></a>
                            <h3 class="j_chapterName" data-type="2">
                                <span class="content-wrap"><?php echo $row['title']; ?></span>
                                <span class="review-count hidden" data-segid="-1"></span></h3>
                            <div class="text-info cf">
                                <div class="info fl">
                                    <a href="" target="_blank" ></em><?php echo $bookrow['shuming']; ?></a>
                                    <a href="" target="_blank"><em class="iconfont"></em><?php echo $bookrow['zuozhe']; ?></a>
                                    <i><em class="iconfont"></em><span class="j_chapterWordCut">
                                            <?php echo ceil( mb_strlen($row['content'],"utf8")/2);  ?></span>字</i>
                                    <i><em class="iconfont"></em><span class="j_updateTime"><?php echo $row['time']; ?></span></i>
                                </div>
                       </div>
                        </div>
                        <div class="read-content j_readContent">
                            <p data-type="2">
                                <span class="content-wrap">　　
                                <?php echo $row['content']; ?>
                                </span>
                            </p>
                            </div>




                    </div>
                </div><!-- start 顶部随机广告 -->

                <!-- end 顶部随机广告 -->

            </div>

            <div class="la-ball-pulse j_chapterLoad hidden">
                <span></span>
                <span></span>
                <span></span>
            </div>
        </div>
    </div>
</div>
<div class="float-wrap" id="j_floatWrap" data-l1="2">
    <div class="left-bar-list" id="j_leftBarList" style="top: 119px;">
        <dl>
            <dd id="j_navCatalogBtn" data-eid="qd_R42">
                <a href="index.php" target="_blank"><i><em class="iconfont"></em><span>目录</span></i></a>
                <div class="guide-box">
                    <cite></cite>
                    目录
                </div>
            </dd>
            <dd id="j_navSettingBtn">
                <a href="content.php?aid=<?php echo $aid-1;?>"><i><em class="iconfont"></em><span>上一篇</span></i></a>
                <div class="guide-box">
                    <cite></cite>
                    设置
                </div>
                <div class="new-guide" id="j-sectionCommentGuide">
                    <cite></cite>
                    <p>段评功能已上线，<br>在此处设置开关</p>
                </div>
            </dd>
            <dd id="j_phoneRead" data-eid="qd_R83">
                <a href="content.php?aid=<?php echo $aid+1;?>"><i><em class="iconfont"></em><span>下一篇</span></i></a>
                <div class="guide-box">
                    <cite></cite>
                    手机阅读
                </div>
            </dd>


        </dl>
    </div>

</div>


</body>
</html>