-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMS.cpp
More file actions
349 lines (328 loc) · 14 KB
/
CMS.cpp
File metadata and controls
349 lines (328 loc) · 14 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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
#include <iostream>
#include <conio.h>
using namespace std;
int tsalary[20];
string tean[20];
string qualification[20];
string names[20];
string fnames[20];
string Class[20];
void teachers();
void head();
void mainm();
void studentrecord();
void principalp();
void principall();
void students();
void studentp();
void studentl();
string n, n11, n22;
int usp = 0, prp = 0, pi, op, rolln, op2;
string upr, ust, st, pr;
int main()
{
op = 0;
while (op < 3)
{
system("cls");
head();
mainm();
cout << " Your option is------- " << endl;
cin >> op;
if (op == 1)
{
system("cls");
head();
principall();
// u==pr p==12345
if (upr == "pr" && prp == 12345)
{
system("cls");
head();
principalp();
cout << " Your option is ---- " << endl;
cin >> pi;
if (pi == 1)
{
system("cls");
students();
cout << " press any key to go back to main menu " << endl;
getch();
}
}
system("cls");
if (pi == 2)
{
head();
studentrecord();
}
if (pi == 3)
{
head();
teachers();
cout << " Press any key to go back to main menu " << endl;
getch();
}
if (pi == 4)
{
head();
cout << " No marksheet still uploaded " << endl;
cout << " Press any key to go back to main menu " << endl;
getch();
}
if (pi == 5)
{
head();
cout << " No schedule still planned " << endl;
cout << " Press any key to go back to main menu " << endl;
getch;
}
if (pi == 6)
{
head();
cout << " All students record is clears " << endl;
cout << " Press any key to go back to main menu " << endl;
getch();
}
if (pi == 7)
{
system("cls");
head();
cout << " No teaches till added " << endl;
cout << " Press any key to go back to main menu " << endl;
getch();
}
if (pi == 8)
{
head();
cout << " No salary till designs " << endl;
cout << " Press any key to go back to main menu " << endl;
getch();
}
if (pi == 9)
{
head();
cout << " No pay till " << endl;
cout << " Press any key to go back to main menu " << endl;
getch();
}
if (pi == 10)
{
head();
cout << " No unpay till " << endl;
cout << " Press any key to go back to main menu " << endl;
getch();
}
if (pi == 11)
{
exit(0);
}
}
// FOR STUDENT
if (op == 2)
{
system("cls");
head();
studentl();
if (ust == "st" && usp == 102030)
{
while (op2 != 9)
{
system("cls");
head();
studentp();
cout << " Your option----------- " << endl;
cin >> op2;
system("cls");
if (op2 == 1)
{
head();
cout << " No attendence till " << endl;
cout << " Press 1 to go back to main menu " << endl;
getch();
}
if (op2 == 2)
{
head();
cout << " No marks till added " << endl;
cout << " Press 1 to go back to main menu " << endl;
getch();
}
if (op2 == 3)
{
head();
cout << " No grades till added " << endl;
cout << " Press 1 to go back to main menu " << endl;
getch();
}
if (op2 == 4)
{
head();
cout << " No fee structure till upload " << endl;
cout << " Press 1 to go back to main menu " << endl;
getch();
}
if (op2 == 5)
{
head();
cout << " No exam schedule designed " << endl;
cout << " Press 1 to go back to main menu " << endl;
getch();
}
if (op2 == 6)
{
head();
cout << " No news till update " << endl;
cout << " Press 1 to go back to main menu " << endl;
getch();
}
if (op2 == 7)
{
head();
cout << " No activities added " << endl;
cout << " Press 1 to go back to main menu " << endl;
getch();
}
if (op2 == 8)
{
head();
cout << " No activities added " << endl;
cout << " Press 1 to go back to main menu " << endl;
getch();
}
}
}
}
if (op == 3)
{
cout << " Exiting..........................";
// exit();
}
}
}
void head()
{
cout << " " << endl;
cout << " ********************************************** " << endl
<< endl;
cout << " ****** COLLEGE ADMINISTRATIVE ****** " << endl
<< endl;
cout << " ********************************************** " << endl
<< endl;
cout << " " << endl;
}
void mainm()
{
cout << " Main Menu " << endl;
cout << " ------------------------------------------------------------- " << endl;
cout << " " << endl;
cout << " 1.Principal------------------ " << endl;
cout << " 2.Student ------------------ " << endl;
cout << " 3.Exit ------------------ " << endl
<< endl
<< endl;
}
void principalp()
{
cout << " Main Menu > Principal Page " << endl;
cout << " ------------------------------------ " << endl;
cout << " 1. Add students " << endl;
cout << " 2. Total No of students " << endl;
cout << " 3. Total teachers " << endl;
cout << " 4. Students marksheets " << endl;
cout << " 5. Teacher's schedule " << endl;
cout << " 6. Delete old students records " << endl;
cout << " 7. New teachers " << endl;
cout << " 8. Teachers salary " << endl;
cout << " 9. Pay " << endl;
cout << " 10. Unpay " << endl;
cout << " 11. Exit " << endl
<< endl;
}
void principall()
{
cout << " Main Menu > Principal Log in page " << endl;
cout << " ----------------------------------------------- " << endl
<< endl;
cout << " 1.Username ------------ " << endl;
cin >> usp;
cout << " 2.Password ------------- " << endl;
cin >> prp;
}
void studentl()
{
cout << " Main Menu > Student Log in page " << endl;
cout << " ----------------------------------------------- " << endl
<< endl;
cout << " 1.Username ------------ " << endl;
cin >> ust;
cout << " 2.Password ------------- " << endl;
cin >> usp;
}
void studentp()
{
cout << " Main menu > Student Page " << endl
<< endl;
cout << " ----------------------------------------------------- " << endl;
cout << " 1. Attendence " << endl;
cout << " 2. Marks " << endl;
cout << " 3. Grades " << endl;
cout << " 4. Fee struture " << endl;
cout << " 5. Exam schedule " << endl;
cout << " 6. Latest news about exams " << endl;
cout << " 7. Extra curriculam activities " << endl;
cout << " 8. Co-curriculam activities " << endl;
cout << " 9. Exit " << endl
<< endl;
}
void students()
{
int num2;
cout << " how many students you want to enter " << endl;
cin >> num2;
for (int i = 0; i < num2; i++)
{
cout << " Enter The Name Of Student " << endl;
cin >> names[i];
cout << " Enter The Father Name Of Student " << endl;
cin >> fnames[i];
cout << " Enter The Class Of Student " << endl;
cin >> Class[i];
}
}
void teachers()
{
int num;
cout << " How Many Teachers You Want To Enter " << endl;
cin >> num;
system("cls");
for (int i = 0; i < num; i++)
{
cout << " Enter The Name Of Teachers " << endl;
cin >> tean[i];
cout << " Enter The Qualification Of Teachers " << endl;
cin >> qualification[i];
cout << " Enter The Teachers Salary (Maximum 250000 & Minimum 75000) " << endl;
cin >> tsalary[i];
}
cout << " Press Any Key To Go To Main Menu " << endl;
getch();
}
void studentrecord()
{
cout << " The Record Of All Students Are :- " << endl;
cout << " names without spaces " << endl;
cout << "NAME "
<< " "
<< "Father Name "
<< " "
<< "CLASS "
<< " " << endl;
for (int i = 0; i < 20; i++)
{
cout << names[i] << " " << fnames[i] << " " << Class[i] << " " << endl;
}
cout << " " << endl;
cout << " press any key to go back to main menu " << endl;
getch();
}