zoukankan      html  css  js  c++  java
  • 设计BBS

    功能分析:
    1 登陆功能(基于ajax,图片验证码)
    2 注册功能(基于ajax,基于forms验证)
    3 博客首页
    4 个人站点
    5 文章详情
    6 点赞,点踩
    7 评论
    --根评论
    --子评论
    8 后台管理
    --文章展示
    9 发布文章
    --富文本编辑器
    --防止xss攻击


    UserInfo(AbstractUser)
    nid
    telephone
    avator
    blog
    create_date



    Blog:站点表
    nid
    title
    theme



    Category
    nid
    title
    //user:跟user一对多
    blog:跟Blog一对多 这个分类属于哪个站点
    //article:跟article 一对多




    Tag:
    nid
    title
    //user:跟user一对多
    blog:跟Blog一对多 这个标签属于哪个站点
    //article:跟article 多对多

    Article2Tag: 中间表

    Article
    nid
    title
    desc:摘要
    content:内容
    creat_date:

    user:跟user一对多

    category:跟Category一对多

    tag:跟Tag多对多



    ArticleUpDown
    nid
    user:跟user一对多
    article:跟article一对多
    is_up


    nid user article is_up
    1 1 1 1
    2 1 2 0
    3 2 1 1


    Commnent:
    nid
    user:跟user一对多
    article:跟article一对多
    content:
    create_date

    parent_id:自管联

    1111
    3333
    4444
    2222

    nid user article content parent_id
    1 1 1 1111 null
    2 2 1 2222 null
    3 1 1 3333 1
    4 2 1 4444 3

    
    
  • 相关阅读:
    纪念又一次ak
    hdu5618
    bzoj3393
    bzoj3438
    [JSOI2007]建筑抢修
    [CQOI2014]数三角形
    [BZOJ2662][BeiJing wc2012]冻结
    [NOIP2015]运输计划
    [ZJOI2006]超级麻将
    [APIO2009]抢掠计划
  • 原文地址:https://www.cnblogs.com/luck-L/p/9677518.html
Copyright © 2011-2022 走看看