45
6.5
Pseudo code
DISPLAY
L
OGIN
P
AGE
input "ID" and "Password" text boxes
if "LOGIN" button clicked then
{
Search user in database for User's member if is not found then
{
displays error in page of login "User not found" start Procedure LOGIN again
}
Else
{
if username or password correct
{
if user = Student then
{
display Application Page
} if user=Administrator then
{
System displays payment page
} else
{
display allocation Page
}
}
S
TUDENT APPLICATION
If student is not accepted in university
{
display “You cannot login. You are not
acceptable to continue your
application
.”
then "Go Back" link clicked }
else
{
display application Page which has all student details and where s/he can choose room
if "submit" button clicked {
if there is not the place{
display error page with "no place of room in this residence try again"
} else
{ Display the reference number
46
} } }
Print the reference number and send to email
/*
After event of “save” button the system display and send directly the reference number
in email of student.*/
“save” button clicked
if there is room
{ select email from student and then put reference number
}
After display the reference number
“print” button clicked{
Reference number is printed}
Edit and canceling the application
/*When the student want to modify or to canceling the application*/
"Search" button clicked{
search user database for student (by reference number ){
If it‟s wrong reference number then {
display “incorrect reference number ”
then "Go Back" link clicked { go back to Student details page }
}
Else if "Edit" link clicked { Display Student details page } then
update information about room only}
else {"Delete" link clicked { canceling the application }
}
Dostları ilə paylaş: