-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadminDashboard.py
More file actions
68 lines (59 loc) · 2.44 KB
/
Copy pathadminDashboard.py
File metadata and controls
68 lines (59 loc) · 2.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
from citizen import addCitizen as addCitizen, viewCitizen as viewCitizen
from citizen import updateCitizen as updateCitizen, deleteCitizen as deleteCitizen
from candidate import addCandidate as addCandidate, viewCandidate as viewCandidate
from candidate import updateCandidate as updateCandidate, deleteCandidate as deleteCandidate
from totalVote import viewTotalVotes as viewTotalVotes
from reports import barChart as barChart
def adminDashboard():
# dashboard view
print("")
print(" #-----------------------------------#")
print(" # Welcome to Election Voting System #")
print(" #-----------------------------------#")
print(" 📈 Admin Dashboard 📈 ")
print("----------------------------------------------------------------------")
print("")
print("1 : Add Citizen Details 2 : View Citizen Details ")
print("3 : Update Citizen Details 4 : Delete Citizen Details")
print("")
print("5 : Add Candidates 6 : View Candidates")
print("7 : Update Candidates 8 : Delete Candidates")
print("")
print("9 : View Voting Result 10 : Generate Report")
print("")
print(" 11 : System Exit")
print("----------------------------------------------------------------------")
print("")
# choice selector
choice = input("Enter Your Selection : ")
if choice == "1":
addCitizen.addCitizen()
elif choice == "2":
viewCitizen.viewCitizen()
elif choice == "3":
updateCitizen.updateCitizen()
elif choice == "4":
deleteCitizen.deleteCitizen()
elif choice == "5":
addCandidate.addCandidate()
elif choice == "6":
viewCandidate.viewCandidate()
elif choice == "7":
updateCandidate.updateCandidate()
elif choice == "8":
deleteCandidate.deleteCandidate()
elif choice == "9":
viewTotalVotes.viewTotalVotes()
elif choice == "10":
barChart.barChart()
elif choice == "11":
print("")
print("Good Bye")
exit()
else:
print("")
print(" -- Warning --")
print(" please enter valid input")
print(" -- Warning --")
print("")
adminDashboard()