Git Product home page Git Product logo

library-manager's Introduction

图书管理系统

这个图书管理系统是我学完PHP时写的一个练手项目,功能参考了自己学校的图书管理系统。为了锻炼自己的动手能力以及加深对代码的理解,前端和后端均由自己完成,前端使用了一些基本的框架(毕竟我主攻后端开发方向),后端大部分要用到的功能都是自己从底层实现并封装,基本没有用到第三方框架。总体来说还是比较简陋的,在某些地方可能存在缺陷或者漏洞。

基本功能

  • 用户
    • 查询图书状态(能够进行搜索)
    • 管理自己的账户,如:修改密码、挂失等
    • 对已借的图书进行续借操作
  • 管理员
    • 管理图书,增删改查
    • 管理用户,如修改密码、挂失、删除等
    • 借阅管理

特点

  • 数据库中的数据来自豆瓣图书Top250
  • 前端页面使用jQuery+BootStrap实现,勉强能看(前端能力实在有限)
  • 后端采用MVC的**,参考ThinkPHP框架的结构和思路,自己实现并封装了一个简单的MVC框架(View层使用了Smarty模板引擎)
  • 后端使用的数据库工具类、验证码类、分页类均由自己实现并封装
  • 可通过配置文件(Base/Conf.php)对项目进行配置(数据库设置和默认路由设置)
  • 前端大部分数据通过Ajax与后端进行交互,页面跳转较少

部署注意事项

  1. index.php为整个项目的入口文件
  2. 确保你的PHP开启了gd2mysqli扩展
  3. 将项目中的book.sql中的数据导入到数据库,并在Base/Conf.php修改数据库连接信息(点击登录没反应可能就是没有设置正确的连接信息)
  4. 默认管理员账号为10086,密码为admin
  5. 默认一般用户的密码为123456,初始的账号有10000100011000210010,其中10010默认被挂失

部分截图

登陆界面

图书管理

用户管理

借阅管理

library-manager's People

Contributors

horvey avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.