-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmenu.cpp
More file actions
194 lines (141 loc) · 6.38 KB
/
Copy pathmenu.cpp
File metadata and controls
194 lines (141 loc) · 6.38 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
#include <iostream>
#include <windows.h>
using namespace std ;
extern int main_menu () ;
extern int student_menu () ;
extern int fee_menu () ;
extern int admin_menu () ;
extern void gotoxy ( int , int ) ;
extern void header () ;
extern int menu_control ( int , int , int , int esc = 0 ) ;
extern bool newsPause ;
extern int main_menu ()
{
int i=0;
header();
newsPause = true ;
gotoxy(0,0);cout<<endl;
gotoxy(79 , 13) ;
cout<<"MAIN MENU"<<endl;
gotoxy(78,14);
cout<<char(205)<<char(205)<<char(205)<<char(205)<<char(205)<<char(205)<<char(205)<<char(205)<<char(205)<<char(205)<<char(205)<<endl; //11
gotoxy(58,16);
for(i=0;i<51;++i)cout<<(char)220;
cout<<endl;
gotoxy(58,17); cout<<(char)219<<" "<<(char)219<<endl;
gotoxy(58,18); cout<<(char)186<<" 1. STUDENT DATABASE CENTRAL "<<(char)186<<endl;
gotoxy(58,19); cout<<(char)186<<" "<<(char)186<<endl;
gotoxy(58,20); cout<<(char)186<<" 2. FEE COLLECTION CENTRAL "<<(char)186<<endl;
gotoxy(58,21); cout<<(char)186<<" "<<(char)186<<endl;
gotoxy(58,22); cout<<(char)186<<" 3. ADMIN TOOLS "<<(char)186<<endl;
gotoxy(58,23); cout<<(char)186<<" "<<(char)186<<endl;
gotoxy(58,24); cout<<(char)186<<" 4. LOG OFF "<<(char)186<<endl;
gotoxy(58,25); cout<<(char)186<<" "<<(char)186<<endl;
gotoxy(58,26); cout<<(char)186<<" 5. EXIT "<<(char)186<<endl;
gotoxy(58,27); cout<<(char)219<<" "<<(char)219<<endl;
gotoxy(58,28);
for(i=0;i<51;++i)
cout<<(char)223;
cout<<endl;
newsPause = false ;
int pos = menu_control ( 60 , 18 , 26 ) ;
pos = (pos+2)/2 ;
return pos ;
}
extern int student_menu ()
{
int i=0;
header();
newsPause = true ;
gotoxy(72 , 13) ;
cout<<"STUDENT DATABASE CENTRAL"<<endl;
gotoxy(71,14);
for ( i = 1 ; i <= strlen ("STUDENT DATABASE CENTRAL")+2 ; ++i )
cout<<char(205); //11
cout << endl ;
gotoxy(58,16);
for(i=0;i<51;++i)cout<<(char)220;
cout<<endl;
gotoxy(58,17); cout<<(char)219<<" "<<(char)219<<endl;
gotoxy(58,18); cout<<(char)186<<" 1. NEW STUDENT ENTRY "<<(char)186<<endl;
gotoxy(58,19); cout<<(char)186<<" "<<(char)186<<endl;
gotoxy(58,20); cout<<(char)186<<" 2. EDIT STUDENT ENTRY "<<(char)186<<endl;
gotoxy(58,21); cout<<(char)186<<" "<<(char)186<<endl;
gotoxy(58,22); cout<<(char)186<<" 3. SEARCH STUDENT ENTRY "<<(char)186<<endl;
gotoxy(58,23); cout<<(char)186<<" "<<(char)186<<endl;
gotoxy(58,24); cout<<(char)186<<" 4. ALL STUDENT LIST "<<(char)186<<endl;
gotoxy(58,25); cout<<(char)186<<" "<<(char)186<<endl;
gotoxy(58,26); cout<<(char)186<<" 5. MAIN MENU "<<(char)186<<endl;
gotoxy(58,27); cout<<(char)219<<" "<<(char)219<<endl;
gotoxy(58,28);
for(i=0;i<51;++i)
cout<<(char)223;
cout<<endl;
newsPause = false ;
int pos = menu_control ( 60 , 18 , 26 ) ;
pos = ( pos + 2 ) / 2 ;
return pos ;
}
extern int fee_menu ()
{
int i=0;
header();
newsPause = true ;
gotoxy(73 , 13) ;
cout<<"FEE COLLECTION CENTRAL"<<endl;
gotoxy(72,14);
for ( i = 1 ; i <= strlen ("FEE COLLECTION CENTRAL")+2 ; ++i )
cout<<char(205); //11
cout << endl ;
gotoxy(58,16);
for(i=0;i<51;++i)cout<<(char)220;
cout<<endl;
gotoxy(58,17); cout<<(char)219<<" "<<(char)219<<endl;
gotoxy(58,18); cout<<(char)186<<" 1. FEE PAYMENT "<<(char)186<<endl;
gotoxy(58,19); cout<<(char)186<<" "<<(char)186<<endl;
gotoxy(58,20); cout<<(char)186<<" 2. FEE DEFAULTERS "<<(char)186<<endl;
gotoxy(58,21); cout<<(char)186<<" "<<(char)186<<endl;
gotoxy(58,22); cout<<(char)186<<" 3. FEE COLLECTION STATISTICS "<<(char)186<<endl;
gotoxy(58,23); cout<<(char)186<<" "<<(char)186<<endl;
gotoxy(58,24); cout<<(char)186<<" 4. MAIN MENU "<<(char)186<<endl;
gotoxy(58,25); cout<<(char)219<<" "<<(char)219<<endl;
gotoxy(58,26);
for(i=0;i<51;++i)
cout<<(char)223;
cout<<endl;
newsPause = false ;
int pos = menu_control ( 60 , 18 , 24 ) ;
pos = ( pos + 2 ) / 2 ;
return pos ;
}
extern int admin_menu ()
{
int i=0;
header();
newsPause = true ;
gotoxy(0,0);cout<<endl;
gotoxy(79 , 13) ;
cout<<"ADMIN MENU"<<endl;
gotoxy(78,14);
cout<<char(205)<<char(205)<<char(205)<<char(205)<<char(205)<<char(205)<<char(205)<<char(205)<<char(205)<<char(205)<<char(205)<<char(205)<<endl; //11
gotoxy(58,16);
for(i=0;i<51;++i)cout<<(char)220;
cout<<endl;
gotoxy(58,17); cout<<(char)219<<" "<<(char)219<<endl;
gotoxy(58,18); cout<<(char)186<<" 1. CHANGE LOGIN CREDENTIALS "<<(char)186<<endl;
gotoxy(58,19); cout<<(char)186<<" "<<(char)186<<endl;
gotoxy(58,20); cout<<(char)186<<" 2. CHANGE FEE STRUCTURE "<<(char)186<<endl;
gotoxy(58,21); cout<<(char)186<<" "<<(char)186<<endl;
gotoxy(58,22); cout<<(char)186<<" 3. CREATE BACKUP "<<(char)186<<endl;
gotoxy(58,23); cout<<(char)186<<" "<<(char)186<<endl;
gotoxy(58,24); cout<<(char)186<<" 4. MAIN MENU "<<(char)186<<endl;
gotoxy(58,25); cout<<(char)186<<" "<<(char)186<<endl;
gotoxy(58,26);
for(i=0;i<51;++i)
cout<<(char)223;
cout<<endl;
newsPause = false ;
int pos = menu_control ( 60 , 18 , 24 ) ;
pos = (pos+2)/2 ;
return pos ;
}