We used html,js,css,php to develop this project This is my first time to develop website, and when I use php to develop the server, I didn't develop to mush class. What is more, I think if I write connect the database in a certain file and import this file when I need is better.
I use develop environment is using phpstorm and MAMP PRO, I use phpadmin to build database. The administrator username is admin@gmail.com and password is admin. If you want to run my project, you should change the database connection to your own database.
If you have some question, please contract me. And my email is wenyangzheng314@gmail.com In data file, I store some .csv files, which is my database backup.
What is the function of my project? 1.You can register and get the verify code using email. You should change the email address in Register/VerifyCode.js and ForgetPassword/VerifyCode.js I use gmail smtp. 2.You can login library system. 3.If you forget your password, you can modify your password though getting verify code using your email. 4.You can upload your personal avatar and watch your borrowing history record. 5.You can login as an administrator. 6.As an administrator, you can add/delete/edit books, add/delete/edit the library information, recharge for borrower. In addition, you can also borrow and return book for borrower, and you can give the borrower a certain fine according to the damage of the book. 7.Finally you can backup and recover the database.
The reason I develop this project is that this is my database course's project. You can download this project to study. If you like my project, could you please give me a star? thx.
Best wishes.
我是用html,js,css,php开发了这个项目。 这是我第一次开发网站,所以很多东西都是现学,也许有很多地方开发的不够高效,由于第一次使用php,不太会讲php的类传给ajax,所以我基本没有写类,所以后台程序比较丑。此外我建议大家把链接数据库的程序单独写在一个文件里,然后在需要的php文件中进行引用。
我是用phpstorm,MAMP PRO以及phpadmin开发的该网站。MAC上是MAMP PRO,windows平台也有对应的,大家可以到网上搜自行下载。但是不同的操作系统,配置环境有所不同。 此外登录管理员的用户名是admin@gmail.com 密码是admin 如果你想在你自己的电脑下运行这个网站,你需要配置一个本地的服务器,并且建好数据库。然后修改php文件中所有的链接数据库函数为你自己的数据库。
这个项目里有一个data文件夹,这里存了几个.csv文件,这些是数据库的备份文件。数据库将数据备份在这几个文件中。
这个网站有什么功能? 1.你可以注册用户,但是你需要修改Register/VerifyCode.js,ForgetPassword/VerifyCode.js这两个js文件里的邮件地址。我是用的gmail去发邮件,你可以使用你自己的邮箱来发邮件,但是你要去你的邮箱中更改smtp的设定,这个在网上有教程。 2.然后当你注册成功后,可以登录进我的网站。 3.网站首页全部为动态加载,根据数据库信息实时加载。 4.如果你忘记密码了,可以在忘记密码的网页上修改密码,根据收到的验证码进行修改。 5.在个人信息界面,你可以上传头像,和看自己的借阅历史。 6.你以管理员身份登录之后,可以增删改图书馆信息,和图书信息。也可以作为管理员帮借阅人借书,还书。此外在还书时,你也可以根据图书损坏情况给予一定的惩罚。你也可以为用户充值。 7.最后你可以备份和恢复数据库。 如果你喜欢我的项目,希望你可以给我点star