This commit is contained in:
2025-04-15 18:38:03 +08:00
commit 23537c3ae9
12 changed files with 799 additions and 0 deletions

27
render_ui.h Normal file
View File

@@ -0,0 +1,27 @@
#ifndef COURSE_DESIGN_RENDER_UI_H_
#define COURSE_DESIGN_RENDER_UI_H_
#include "data.h"
#include "tools.h"
#include "userAuth.h"
#include <algorithm>
#include <ios>
#include <iostream>
#include <limits>
#include <string>
int show_main_menu();
void display_user_records(const std::vector<UserStruct> &records);
void handle_show_user_records(sqlite3 *db);
void display_pa_records(const std::vector<PAStruct> &records);
void handle_show_pa_records(sqlite3 *db);
void handle_show_pa_leftcar_records(sqlite3 *db);
void handle_add_pa_record(sqlite3 *db);
void handle_add_user_record(sqlite3 *db);
void handle_leave_car(sqlite3 *db);
void handle_update_userpassword_record(sqlite3 *db);
void handle_delete_user_record(sqlite3 *db);
#endif