香雨站

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 106|回复: 0

记录在线小说网站建设 (二)

[复制链接]

4

主题

7

帖子

17

积分

新手上路

Rank: 1

积分
17
发表于 2022-12-22 19:50:32 | 显示全部楼层 |阅读模式
xiaoshuo小说表:包含主键id、小说类别编号typeid、小说状态state、小说标题title、小说文档docu、小说推荐率recommend、点击次数click、小说描述content、更新时间creTime、小说封面photo等。
xiaoshuotype小说分类表:包含主键id、类别名称name。
bookrack书架表:包含主键id、用户userid、小说xiaoshuoid。

votereco小说推荐投票表:包含主键id、用户userid、小说xiaoshuoid
小说主页面html代码
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!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="X-UA-Compatible" content="IE=edge, chrome=1" />
<meta name="renderer" content="webkit" />
<meta name="Keywords" content="个人主页、说说、相册、好友、日志、音乐、新闻、新鲜事" />
<meta name="Description"
        content="超酷的校园网、校园交友平台,创新的校园资源获取与分、专注打造最好的校园真实社交网络!" />
<title>校园小说页面_校园网</title>
</head>
<body>
        <div id="wrapper">
                <jsp:include page="../public/head.jsp" />
                <div id="page_main" class="clearfix">
                        <div class="page-right">
                                <div class="site-nav">
                                        <span>当前位置 : </span><a href="/schoolnet/login.do?flag=goIndexUI">首页</a>
                                        >> <a href="/schoolnet/login.do?flag=goHomeUI" title="">个人主页</a>>>小说
                                </div>
                                <div class="page-news">
                                        <div class="content">
                                                <div class="mes_response" id="mes_response">
                                                        <table>
                                                                <tr>
                                                                        <th class="news-time">小说</th>
                                                                </tr>
                                                                <tr>
                                                                        <td><p>按类型:</p>
                                                                                <div id="clearClass" class="pages" style="margin-top:-10px">
                                                                                        <a class="current" href="javascript:void(0)"
                                                                                                onclick="setXiaoshuotype(this)" name="all" title="1">全部
                                                                                        </a>
                                                                                        <c:forEach var="xiaoshuotype" items="${xiaoshuotypes }">
                                                                                                <a href="javascript:void(0)" onclick="setXiaoshuotype(this)"
                                                                                                        name="${xiaoshuotype.id }" title="1">${xiaoshuotype.name
                                                                                                        }</a>
                                                                                        </c:forEach>
                                                                                </div>
                                                                                <tr>
                                                                                        <td><br />
                                                                                                <p>按更新:</p>
                                                                                                <div id="clearClass2" class="pages">
                                                                                                        <a href="javascript:void(0)"
                                                                                                                onclick="setXiaoshuotype3(this)" name="all" title="1"
                                                                                                                class="current">全部</a> <a href="javascript:void(0)"
                                                                                                                onclick="setXiaoshuotype3(this)" name="lianzai" title="1">
                                                                                                                连载中</a> <a href="javascript:void(0)"
                                                                                                                onclick="setXiaoshuotype3(this)" name="wanjie" title="1">
                                                                                                                已完结</a>
                                                                                                </div></td>
                                                                                </tr>
                                                                                <tr>
                                                                                        <td>
                                                                                                <div id="showxiaoshuos">
                                                                                                        <div id="ajaxpage" class="pages" style="width:100%">
                                                                                                                <a href="javascript:void(0)"
                                                                                                                        onclick="setXiaoshuotype2(this)" name="all" title="1"
                                                                                                                        class="current"> 首页 </a> <a href="javascript:void(0)"
                                                                                                                        onclick="setXiaoshuotype2(this)" name="all"
                                                                                                                        title="${pageNow-1 }" class="current"> 上一页 </a> <a
                                                                                                                        href="javascript:void(0)"
                                                                                                                        onclick="setXiaoshuotype2(this)" name="all"
                                                                                                                        title="${pageNow+1 }" class="current"> 下一页 </a> <a
                                                                                                                        href="javascript:void(0)"
                                                                                                                        onclick="setXiaoshuotype2(this)" name="all"
                                                                                                                        title="${PageCount }" class="current"> 尾页 </a> <a
                                                                                                                        class="current2">第${pageNow }页</a><a class="current2">共${PageCount
                                                                                                                        }页</a><a class="current2">${allrows }部小说</a>
                                                                                                        </div>
                                                                                                        </br>
                                                                                                        <c:forEach var="xiaoshuo" items="${xiaoshuos }">
                                                                                                                <div class="xiaoshuos">
                                                                                                                        <a
                                                                                                                                href="/schoolnet/xiaoshuo.do?flag=goxiaoshuodescript&pageNow=1&id=${xiaoshuo.id }"
                                                                                                                                title="${xiaoshuo.title }"> <img
                                                                                                                                src="/schoolnet/Media/txt/photo/${xiaoshuo.photo }"
                                                                                                                                width="104px" height="150px">
                                                                                                                        </a>
                                                                                                                        <p class="ellipsis">
                                                                                                                                <a
                                                                                                                                        href="/schoolnet/xiaoshuo.do?flag=goxiaoshuodescript&pageNow=1&id=${xiaoshuo.id }"
                                                                                                                                        title="${xiaoshuo.title }">${xiaoshuo.title }</a>
                                                                                                                        </p>
                                                                                                                </div>
                                                                                                        </c:forEach>
                                                                                                </div></td>
                                                                                </tr>
                                                        </table>
                                                </div>
                                        </div>
                                </div>
                        </div>
                </div>
                <jsp:include page="../public/foot.jsp" />
        </div>
</body>
</html>可以支持定制小说网站,小说网站开发,小说网站系统,小说网站源码,小说网站开发建设,小说网站程序,微信小说网站源码,一套小说网站管理系统,完整版小说,付费看小说,小说下载等栏目版块,可以支持定制电脑版+手机版+微信版+小程序版+APP版,需要的朋友可以联系我(q:3328752804)。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|香雨站

GMT+8, 2025-3-15 11:16 , Processed in 0.583973 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.. 技术支持 by 巅峰设计

快速回复 返回顶部 返回列表