• Stars
    star
    116
  • Rank 302,295 (Top 6 %)
  • Language
    HTML
  • Created over 7 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

大三下数据库课设 - 机票预订系统 - Django

机票预订系统

详细介绍 - 数据库课程设计 - 机票预订系统 - 简书

注册和登录界面都学习这位仁兄的 buckyroberts-Viberr

登录账号

  • 普通用户:demo/demo123
  • 管理员:admin/admin123

备注:普通用户账号,可以在登录界面,注册新账号。

如果想修改用户密码,可参考根目录 reset_user_passwords.py

启动方式

$ python manage.py runserver 8000

打开浏览器 http://localhost:8000

五、界面设计

5.1 欢迎界面

欢迎界面

拟定一趟行程(长沙→上海 2017/4/2)

输入行程

5.2 查询界面

用户 Let’s Go 之后,加载查询结果页面。

查询成功界面

默认的机票信息按照价格升序排列,用户通过点击机票信息上方的字段可以选择按照起飞时间或者到达时间升序排列,如下图,注意后两行的变化。

查询结果按照起飞时间升序排列

如果用户需要的航班数据库中不存在,就反馈错误信息。 将用户的目的地修改成中国(数据库中没有这趟航班)进行测试。

查询失败界面

5.3 订票界面

点击订票按钮进行订票

由于用户还没有登录,会直接反馈到登录界面。

登录页面

由于用户尚未注册,用户在该页面点击 Click here 进入注册账号页面,完成账号注册。

注册页面

用户注册完账号直接加载到查询页面。

登录成功之后

用户再次点击订票,如果用户尚未订过该趟航班,加载订票确认页面,如果用户已经订过了,加载订票冲突页面。

正常订票页面

在正常订票页面点击确认,完成订票。

正常订票页面完成订票

在个人中心用户可以查看自己的订票信息。

用户个人中心

如果用户选择了自己已经订过的机票,加载订票冲突页面。

订票冲突页面

5.4 退票界面

在用户的个人中心,可以进行退票。

退票页面

选择确认,完成退票,用户订票信息刷新。

退票后的用户个人中心

5.5 管理员界面

管理员 admin 登录账号

在前面的 login_user 函数中已经有过判定,如果登录用户是管理员,加载航空公司的财务页面。

login_user 函数登录用户身份判定

管理员登录成功。

管理员页面 - 公司财务信息

5.6 后台管理界面

链接尾部输入 admin 进入后台管理

进入后台

管理员登录账号

管理员登录

后台数据,包括 Flight,User 和 Django 默认生成的数据。

后台界面

航班信息管理,显示所有航班信息,可以增删改查。

航班信息管理

旅客信息管理,操作同航班信息管理,注册的用户的信息都会保存在这里。

旅客信息管理

More Repositories

1

genetic-algorithm

遗传算法 - Matlab
MATLAB
271
star
2

android-calculator

大三上Java课设 - Android 科学计算器
Java
39
star
3

DEAL

DEAL : Difficulty-awarE Active Learning for Semantic Segmentaion
Python
17
star
4

BiSeNet-CCP

extends Scene Segmentation to Instance Segmentation using 8-Connected Components Decision.
Python
13
star
5

Wali-turtlebot

Autonomous Driving Turtlebot using BiSeNet segmentation network on RGBD data
C++
10
star
6

os-semaphore-traffic-java

大三下操作系统课设 - 交通信号灯模拟 - Java 接口
Java
10
star
7

BiSeNet-wali

Compress BiSeNet with Structure Knowledge Distillation for Real-time image segmentation on wali-TX2
Python
9
star
8

javaweb-csu

大三下Web课设 - 中南大学主页 - JavaWeb
Java
8
star
9

sort

八大排序,插入,shell,选择,堆,冒泡,快速,归并,基数
C++
6
star
10

Linear-Regression

机器学习实验 - 线性回归 - 预测连续值
MATLAB
6
star
11

exam-system

JavaWeb前端企业级项目实践 - SSH框架
CSS
4
star
12

NBBs

卫星图与异域标注图的瓦片级仿射对齐
Python
4
star
13

BiSeNet-Compression

10 variants of original BiSeNet with performance comparison, the faster, the better.
Python
4
star
14

BitonicSort

双调排序 - GAPS编程测试
C++
4
star
15

mnist-pytorchjob-example

Example codes of DDP training with PytorchJob.
Python
3
star
16

pytorchjob-migration

A solution to migrate pytorchjob tasks to newly scheduled nodes and GPUs.
Python
3
star
17

ASM_core

Active Sample Mining on VOC detection dataset
Python
3
star
18

S3N_FG

use S3N without nest.
Python
2
star
19

vipaturks

base Dataturks, build AI + X 智能数据标注平台 with Active Sample Mining
JavaScript
2
star
20

Meta-Weight-Net

implement Meta-Weight-Net
Jupyter Notebook
2
star
21

Online-Video-Course-Player

Your online course can be finished in one day by automatically clicking video player button.
Python
2
star
22

os-semaphore-traffic

大三下操作系统课设 - 交通信号灯模拟 - 信号量机制
Java
2
star
23

resnet-keras

implement Pytorch resnet with keras
Python
1
star
24

Roll-a-Ball

大四上计算机游戏设计实验,Roll a Ball,雅俗共赏
ASP
1
star
25

ASM_web

ASM web inferface
JavaScript
1
star
26

CV_utils

useful code for cv-related python programs
Jupyter Notebook
1
star
27

lr_scheduler_vis

Visualize the learning rate schedulers in Pytorch with tensorboard
Python
1
star
28

LeetCode

one by one, step by step. I can do this.
Python
1
star
29

Shuai-Xie.github.io

谢小帅 - 个人小站 - 基于 onevcat - vno
CSS
1
star
30

RetailAPI

Generalized utils for New Retail Project
JavaScript
1
star