Vous êtes sur la page 1sur 78

WISCONSIN INTERNATIONAL UNIVERSITY COLLEGE, GHANA

DEPARTMENT OF INFORMATION TECHNOLOGY


DESIGN AND IMPLEMENTATION OF SPORTS MANAGEMENT SYSTEM (SMS)
(A CASE OF ACHIMOTA SCHOOL)
BY
OJOBOR HELEN
WIUC/01/1196
&
ADEDEJI FEYISAYO
WIUC/01/1227
A RESEARCH PROJECT SUBMITTED TO THE DEPARTMENT OF
INFORMATION TECHNOLOGY, WISCONSIN INTERNATIONAL UNIVERSITY
COLLEGE, GHANA
IN PARTIAL FULFILMENT OF THE REQUIREMENT FOR THE AWARD OF
BARCHELOR OF ARTS DEGREE IN COMPUTER SCIENCE AND
MANAGEMENT
JUNE 2014

DECLARATION
We, Ojobor Helen and Adedeji Feyisayo, do hereby declare that this project work is as a
result of our research, and to the best of our knowledge, it contains material previously
published by another person or material which has been accepted for the award of degree of
the university, except where acknowledgement has been made in the text. All references cited
for this study has been made in text. All references cited for this study have dully been
acknowledged.
OJOBOR HELEN
(WIUC/01/1196)
Signature: ------------------------------Date: -------------------------------------ADEDEJI FEYISAYO
(WIUC/01/1227)
Signature: ------------------------------Date: --------------------------------------

Signature

Date

-------------------------------------------

-------------------------------------

MRS MAUD ADJELEY ASHONG ELLIOT (Supervisor)

DEDICATION
We dedicate this work to God Almighty, for without him this work couldnt have been
accomplished.
We also dedicate this work to our parents, Mr & Mrs Ojobor, Mr & Mrs Adedeji, friends and
family for their continuous support and faith they have in us to see us till this level. We love
and appreciate your efforts.

ACKNOWLEDGEMENT
Our sincere gratitude to God almighty, who made life available to us to make it till this time,
also, for His love, mercy and grace to come this far, it couldnt have been anyone else.
We also extend our gratitude to our parents, siblings, and loved ones whom God used to bring
us to this level, we thank them so much for their financial and moral support and also for
their prayers.
To our supervisor, Mrs Maud Adjeley Ashong Elliot, We appreciate her endless effort, her
constructive criticism and correction she gave to us to make this work wat it is today.
A very big thanks you to Mr Derrick of IT Department, for his continuous and selfless
support, and for making himself available whenever we needed him, we also appreciate Mr
Nathaniel Mills for his support towards the completion of this work.
Also to the staffs of Achimota School, we appreciate your support and release of information
that aided this work.
We do not forget our colleagues (WCOM May 2014 Batch), and everyone who has
contributed one way or the other to this work. We say God richly bless you.

ABSTRACT
As the name specifies SPORTS MANAGEMENT SYSTEM is a software developed for
managing sports activities in Achimota school. For the past few years the numbers of
educational institutions are increasing rapidly. Thereby the number of sports are also
increasing for students studying in the school. And hence there is a lot of strain on the person
who is in charge of manually entering the records of the sports activities in the school and
this manual way has been a big problem in the school. This particular project deals with
problems on managing the sports activities in Achimota School and avoids the problems
which occur when carrying it out manually. Identification of drawbacks of the existing
system leads to designing a computerized system that will be compactible to the existing
system. The system which is more user-friendly and more graphical user interface oriented.
We can improve the efficiency of the system, thereby, overcoming the drawbacks of the
existing system.

Table of Contents
DECLARATION

II

DEDICATION

III

ACKNOWLEDGEMENT

IV

ABSTRACT

CHAPTER ONE
1
INTRODCUTION
1
1.1 BACKGROUND
1
1.1.1 BRIEF HISTORY OF THE CASE
1
1.2 STATEMENT OF THE PROBLEM
2
1.2.1 DUPLICATION OF RECORDS OF DATA
2
1.2.2 DELAY IN RETRIEVAL OF INFORMATION
2
1.2.3 DIFFICULTY IN TRACKING OF SPORTS MEN, WOMEN AND SPORT MANAGERS WHEN THEY
ARE OUT OF SCHOOL
3
1.2.4 LOSS OF RECORDS OF DATA
3
1.2.5 LACK OF SECURITY (SPORTSMEN AND MANAGEMENTS RECORDS)
3
1.3 CHALLENGES SPORTSMEN AND MANAGEMENT FACE DUE TO MANUAL SYSTEM
3
1.3.1 REGISTRATION OF STUDENT
3
1.3.2 SHELVING OF RECORDS:
4
1.3.3 SPORT MEN, WOMEN AND MANAGEMENT REGISTRATION
4
1.4 GENERAL OBJECTIVES OF PROPOSED SYSTEM
4
1.5 SPECIFIC OBJECTIVES OF THE PROPOSED SYSTEM
5
1.6 RESEARCH QUESTIONS
5
1.7 SIGNIFICANCE OF THE STUDY
5
1.8 SCOPE OF THE STUDY
6
1.9 LIMITATIONS OF THE STUDY
6
1.91 DEFINITION OF TERMS
7
CHAPTER TWO
LITERATURE REVIEW
2.1 DEFINITION OF SPORTS
2.2 ETYMOLOGY
2.3 NOMENCLATURE
2.4 GAME AND DEFINITIONS
2.5 COMPETITION
2.6 HISTORY OF SPORTS
2.7 FAIR PLAY
2.7. 1 SPORTSMANSHIP
2.7.2 CHEATING
2.7.3 DOPING AND DRUGS
2.7.4 VIOLENCE
2.8 SPORTS MANAGEMENT SYSTEM

8
8
8
9
9
10
11
12
13
13
13
14
14
14

CHAPTER THREE
METHODOLOGY AND DESIGN
3.1 INTRODUCTION
3.2THE SYSTEM DEVELOPMENT LIFE CYCLE (WATERFALL MODEL)
3.2.1 DEVELOPMENT STAGE
3.2.2 SOURCE OF DATA

17
17
17
17
18
20

3.2.3 PROGRAMMING LANGUAGE


3.3 SYSTEM ANALYSIS
3.3.1 THE CURRENT SYSTEM
3.3.2 THE PROPOSED SYSTEM
3.4 FEASIBILITY ANALYSIS
3.4.1 OPERATIONAL FEASIBILITY
3.4.2 ECONOMIC FEASIBILITY
3.4.3 TECHNICAL FEASIBILITY
3.4.4 SCHEDULE FEASIBILITY
3.5 DATA COLLECTION
3.6 DATA ANALYSIS
3.8 TABLE DESIGN
3.9 KEYS AND RELATIONSHIPS BETWEEN THE TABLES
3.10 PROJECT DETAILS
3.10.1 STRUCTURED QUERY LANGUAGE
3.10.2 COMPUTER HARDWARE AND SOFTWARE

21
21
21
22
24
25
25
26
27
28
28
29
29
30
30
30

CHAPTER FOUR
TESTING AND DEPLOYMENT
4.1 INTRODUCTION
4.2 FEATURES OF THE SYSTEM
4.2.1 HOME SCREEN
4.2.2 LOGIN SCREEN
4.2.3 LOGIN REGISTRATION FORM
4.2.4 TOURNAMENT DETAIL FORM
4.2.5 GAMES AND PLAYERS FORM
4.2.6 INSTALL SHIELD WIZARD FORM
4.2.7 INSTALL SHIELD WIZARD FORM
4.2.8 INSTALL SHIELD WIZARD FORM

33
33
33
33
33
34
35
36
37
38
39
40

CHAPTER FIVE
SUMMARY, RECOMMENDATION AND CONCLUSION
5.1 SUMMARY
5.2 RECOMMENDATION
5.3 CONCLUSION
REFERENCES
APPENDIX

41
41
41
42
42
43
45

CHAPTER ONE
INTRODCUTION
1.1 Background
1.1.1 Brief history of the case

Achimota School (formerly Prince of Wales School Achimota, nicknamed Motown, is a coeducational boarding school located at Achimota in Accra, Greater Accra, Ghana. The school
was founded in 1924 by Sir Frederick Gordon Guggisberg, Dr. James Emman Kwegyir
Aggrey and Rev. Alexander (Alec) Garden Fraser. It was formally opened in 1927 by Sir
Frederick, then Governor of the British Gold Coast colony. The school has educated many
African leaders, including Kwame Nkrumah, Edward Akufo-Addo, Jerry John Rawlings,
and John Evans Atta Mills all of whom are former Heads of State of Ghana. The
current President of Ghana, John Dramani Mahama, is also an alumnus of Achimota School.
Former Prime Minister of Ghana Dr. Kofi Abrefa Busia taught at Achimota. Also included in
its list of African heads of state are Zimbabwe president Robert Mugabe and Sir Dawda
Jawara, first head of state of The Gambia. An alumnus/alumna of Achimota is known as an
"Akora".(http://wikipedia.com)

The motto of the school is Ut Omnes Unum Sint meaning "That all may be one", a reference
to the founders' expressed philosophy that starting in the context of school life, black and
white, male and female, everyone should integrate and combine synergistically for the good
of all. The stylised piano-key design of the Achimota School crest was described by Aggrey
at the time: "You can play a tune of sorts on the black keys only; and you can play a tune of

sorts on the white keys only; but for perfect harmony, you must use both the black and the
white keys".
The backbone of every organization is its I.T support. Currently, Motown has a manual
system which manages sports and all the activities that involves sports. On the other hand, all
this practice is done manually. There is therefore a need to computerize this sports
management system to improve sport management in the school. (http://wikipedia.com)

1.2

Statement of the problem

Since the establishment of Achimota School in the year 1927 till date, the sports department
uses a manual system when transacting its day-to-day operations. The record keeping of data
on the sports men and women who take part in sporting activities for school, the registration
of new members, updates on sporting events and other activities are done manually. However
there are several problems associated with the existing manual system.
These problems are as follows:
1.2.1 Duplication of Records of Data

With the manual system, a sport man or woman can be registered one or two times without
noticing and causes the sports management cost. Hence, this leads to the duplication of data.
1.2.2 Delay in retrieval of information

As a result duplication of data, it is very difficult to retrieve information and this takes a great
deal of time. The registration forms must be searched through one after the other until the
needed record is found.

1.2.3 Difficulty in Tracking of sports men, women and sport managers


when they are out of school

Information concerning sports Sport Men and Women and managers are difficult to track if
the records keeping book cannot be found. Also, the book does not contain enough
information about the sports men, women and their managers such as phone number and
residential address and this makes it very difficult to track these heroes and heroine of the
school in times of need.
1.2.4 Loss of Records of Data

Information concerning the sports men, women and mangers and registration of new able
sports men is hand written on sheets and kept for referencing and future use. These sheets can
easily get lost or mixed up and this will increase the duties of record in case they need to
search for records concerning a particular sports men or managers.
1.2.5 Lack of Security (sportsmen and managements Records)

Most of the records of the workers and student are currently kept at the front desk for easy
referencing by the record staff of the sport school. This way anybody can easily have access
to the records and this makes them unsecured especially when the record is to leave the front
desk for a while.
1.3 Challenges sportsmen and management face due to Manual
System
Aside these problems, the manual system poses several challenges to student and the staff of
the School. These challenges are explained below.
1.3.1 Registration of student

Achimota School, registration of sports men and women is done manually. When new
Sport Men and Women arrive, they are registered on sheets of papers called a work

form which carries all needed information about Sport Men and Women. Information
recorded concerning each book is listed below:

Name of student

Age of student

Gender

sports

Date of Birth

1.3.2 Shelving of records:

After the recording of the details of the Sport Men and Women, they are shelved according to
the department and index number of the Sport Men and Women. Shelves are done according
to letter and number; to help identify shelve number where a particular book is found.
1.3.3 Sport Men, Women and management registration

During a new academic year, Sport Men and Women register by filling the students
registration form. Sport Men and Women register their respective disciplines.
1.4 General objectives of proposed system
The general objective and significance of the proposed system is the development of sports
management system that can be used for the record management, registration of Sport Men,
Women, management, and sporting events in the Achimota School.

1.5 Specific objectives of the proposed system


The specific objectives of this system are mentioned below:

To make information like sport events easily accessible to Sport Men


and Women.

To enhance the administrative staff (records) to easily retrieve


information concerning Sport Men and Women and manage

To try to reduce the probability of inconsistency

To improve backup and recovery service

To equip the security of the data.

1.6 Research questions


I.
II.
III.

How do we equip the se curity of the data?


How to improve back up on recovery services
What do we need to enhance the administrative staff(records) to easily retrieve
information

1.7 Significance of the study


The above research is of much relevance or use to Achimota School in Ghana as well as staff
and Sport Men and Women of the institution for effective decision making in the area of
5

records management in educational institution. It could also be an effective database for


reference both educational institution and non-educational institution.

1.8 Scope of the study


Our study is on Achimota School in Ghana as well as staff and Sport Men and Women of the
institution. The following aspect of the School administration is been computerized:

Registry

Records department

Updates of sports events

1.9 Limitations of the study.

The managements, staffs and the senior prefects were not always available for
the interview.

Poor access to the internet on campus.

1.91 Definition of terms


Table 1.1

Attribute:

A property that describes an Entity or a specification that defines a property of

an object, element, or file. It may also refer to or set the specific value for a given instance of
such.
Author :

The originator of any written work.

Address:

The physical location of a building or where a person resides

Entity Relationship Diagram (ERD): A data modelling tool


Relationship: A set of meaningful associations among entities.
Entity:

A distinct object represented in the database

Database:

An organized collection of data or integrated collection of data records, files, and

other database objects


DBMS :

A software package with computer programs that control the creation,

maintenance, and the use of a database


RDBMS

A DBMS in which data is stored in tables and the relationships among the data

are also stored in tables.


Foreign Key: A set of attributes within a relation that matches the primary key of some other
relation
O.A.A: Old Achimotan Association

Definition of terms

CHAPTER TWO

LITERATURE REVIEW
2.1 Definition of sports
Sport (or sports) is all forms of usually competitive physical activity which, through casual or
organized participation, aim to use, maintain or improve physical ability and skills while
providing entertainment to participants, and in some cases, spectators. Hundreds of sports
exist, from those requiring only two participants, through to those with hundreds of
simultaneous participants, either in teams or competing as individuals.
Sport is generally recognized as activities which are based in physical athleticism or
physical dexterity, with the largest major competitions such as the Olympic Games admitting
only sports meeting this definition, and other organizations such as the Council of
Europe using definitions precluding activities without a physical element from classification
as sports. However, a number of competitive, but non-physical, activities claim recognition
as mind sports. The International Olympic Committee (through ARISF) recognizes
both chess and bridge as bona-fide sports,

and Sport

Accord,

the

international

sports

federation association, recognizes five non-physical sports, although limits the amount of
mind games which can be admitted as sports. (Georgia: International Association of Tourists
and Travelers School)
Sports are usually governed by a set of rules or customs, which serve to ensure fair
competition, and allow consistent adjudication of the winner. Winning can be determined by
physical events such as scoring goals or crossing a line first, or by the determination of

judges who are scoring elements of the sporting performance, including objective or
subjective measures such as technical performance or artistic impression.
In organized sport, records of performance are often kept, and for popular sports, this
information may be widely announced or reported in sport news. In addition, sport is a major
source of entertainment for non-participants, with spectator sport drawing large crowds to
venues, and reaching wider audiences through broadcasting.
According to A.T. Kearney, a consultancy, the global sporting industry is worth up to $620
billion as of 2013.
2.2 Etymology
"Sport" comes from the Old French desport meaning "leisure", with the oldest definition in
English from around 1300 being "anything humans find amusing or entertaining".
Other meanings include gambling and events staged for the purpose of gambling; hunting;
and games and diversions, including ones that require exercise. Roget's defines the noun sport
as an "activity engaged in for relaxation and amusement" with synonyms including diversion
and recreation.

2.3 Nomenclature
The singular term "sport" is used in most English dialects to describe the overall concept (e.g.
"children taking part in sport"), with "sports" used to describe multiple activities (e.g.
"football and rugby are the most popular sports in England"). American English uses "sports"
for both terms

2.4 Game and definitions


The precise definition of what separates a sport from other leisure activities varies between
sources. The closest to an international agreement on a definition is provided by Sport
Accord, which is the association for all the largest international sports federations (including
association football, athletics, cycling, tennis, equestrian sports and more), and is therefore
the de facto representative of international sport.( Kenneth, C. Loudon & Jane, P.Loudon
(2010). Management Information Systems. USA: John willey & Sons Inc)
Sport Accord uses the following criteria, determining that a sport should:

have an element of competition

be in no way harmful to any living creature

not rely on equipment provided by a single supplier (excluding proprietary games


such as arena football)

not rely on any "luck" element specifically designed into the sport

They also recognize that sport can be primarily physical (such as rugby or athletics),
primarily mind (such as chess or go), predominantly motorized (such as Formula 1 or power
boating), primarily co-ordination (such as billiard sports), or primarily animal-supported
(such as equestrian).
There has been an increase in the application of the term "sport" to a wider set of nonphysical challenges such as electronic sports, especially due to the large scale of participation
and organized competition, but these are not widely recognized by mainstream sports
organizations.
10

2.5 Competition
There are opposing views on the necessity of competition as a defining element of a sport,
with almost all professional sport involving competition, and governing bodies requiring
competition as a prerequisite of recognition by the International Olympic Committee (IOC)
or Sport Accord.
Other bodies advocate widening the definition of sport to include all physical activity. For
instance, the Council of Europe includes all forms of physical exercise, including those
completed just for fun.
In order to widen participation, and reduce the impact of losing on less able participants,
there has been an introduction of non-competitive physical activity to traditionally
competitive events such as school sports days, although moves like this are often
controversial.
In competitive events, participants are graded or classified based on their "result" and often
divided into groups of comparable performance, (e.g. gender, weight and age). For each
group, the first in the list will usually be the "winner". The measurement of the result may be
objective or subjective, and corrected with "handicaps" or penalties. In a race, for example,
the time to complete the course is an objective measurement. In gymnastics or diving the
result is decided by a panel of judges, and therefore subjective. There are many shades in
between, like boxing or mixed martial arts, where victory is assigned by judges if neither
competitor has lost at the end of the match time. (http://wikipedia.com)

11

2.6 History of sports


There are artifacts and structures that suggest that the Chinese engaged in sporting activities
as early as 2000 BC. Gymnastics appears to have been a popular sport in China's ancient past.
Monuments to the Pharaohs indicate that a number of sports, including swimming and
fishing, were well-developed and regulated several thousands of years ago in ancient
Egypt. Other Egyptian sports included javelin throwing, high jump, and wrestling. Ancient
Persian sports such as the traditional Iranian martial art of Zourkhaneh had a close connection
to the warfare skills. Among the sports that originate in ancient Persia are polo and jousting.
Motorized sports have appeared since the advent of the modern age
A wide range of sports were already established by the time of Ancient Greece and the
military culture and the development of sports in Greece influenced one another considerably.
Sports became such a prominent part of their culture that the Greeks created the Olympic
Games, which in ancient times were held every four years in a small village in
the Peloponnesus called Olympia.
Sports have been increasingly organized and regulated from the time of the ancient Olympics
up to the present century. Industrialization has brought increased leisure time to the citizens
of developed and developing countries, leading to more time for citizens to attend and follow
spectator sports, greater participation in athletic activities, and increased accessibility. These
trends continued with the advent of mass media and global communication. Professionalism
became prevalent, further adding to the increase in sport's popularity, as sports fans began
following the exploits of professional athletes through radio, television, and the internet all
while enjoying the exercise and competition associated with amateur participation in sports.
(http://wikipedia.com)

12

2.7 Fair play


2.7. 1 Sportsmanship
Sportsmanship is an attitude that strives for fair play, courtesy toward teammates and
opponents, ethical behavior and integrity, and grace in victory or defeat.
Sportsmanship expresses an aspiration or ethos that the activity will be enjoyed for its own
sake. The well-known sentiment by sports journalist Grant land Rice that it's "not that you
won or lost but how you played the game", and the modern Olympic creed expressed by its
founder Pierre de Coubertin: "The most important thing is not winning but taking part" are
typical expressions of this sentiment. (http://wikipedia.com)

2.7.2 Cheating
Key principles of sport include that the result should not be predetermined, and that both
sides should have equal opportunity to win. Rules are in place to ensure that fair play to
occur, but participants can break these rules in order to gain advantage.
Participants may choose to cheat in order to satisfy their desire to win, or in order to achieve
an ulterior motive. The widespread existence of gambling on the results of sports fixtures
creates the motivation for match fixing, where a participant or participants deliberately work
to ensure a given outcome. (http://google.com)

13

2.7.3 Doping and drugs


The competitive nature of sport encourages some participants to attempt to enhance their
performance through the use of medicines, or through other means such as increasing the
volume of blood in their bodies through artificial means.
All sports recognized by the IOC or Sport Accord are required to implement a testing
programmer, looking for a list of banned drugs, with suspensions or bans being placed on
participants who test positive for banned substances. (http://wikipedia.com)
2.7.4 Violence
Violence in sports involves crossing the line between fair competition and intentional
aggressive violence. Athletes, coaches, fans, and parents sometimes unleash violent behavior
on people or property, in misguided shows of loyalty, dominance, anger, or
celebration. Rioting or hooliganism is common and ongoing problems at national and
international sporting contests. (http://wikipedia.com)

2.8 Sports management system


A sport management system is a database system used to manage sports men, women,
management and update of sports events on the sports calendar.
Database Systems are designed to store large bodies of information. Both the definition of
structure for the storage of information and the provision of a mechanism for manipulation of
information are inclusive.

14

For the purpose of the database system which is been shared by several users, the system
avoids possible anomalous results. The primary purpose of a database system is to provide
users with an abstract view of the data and that the system should hide certain details of how
the data are stored and maintained. (Silberschatz, Korthon Sunorshan, 1999).
A computer has been a very powerful tool for sports which providing management access to
information about sports and other sporting activities. (Murdock, 1995)
Countless number of databases has been developed by professionals to see to the day to day
activities which include the problems faced every day. According to Begg (2005), databases
are accessed in supermarkets when buying goods. For this reason, the check-out assistant
uses the bar code reader to scan purchased item which is linked to an application program.
This application program uses the bar code reader to find all the prices of the item from a
product database. It simultaneously reduces the number of such items in stock and display the
price on the cash register.
Beggs further talked about the use of database by travel agent to search for information or
make enquiries. All the necessary booking arrangement when a person books for holiday is
accurately done by the database system. The database system ensures that two different
people do not book the same holiday or over book the seats on the flight. In most
circumstances, the travelling agency may have another database for invoicing.
There are also library databases that are created with details of the books in a library, the
readers, reservations and other activities. These databases contain a computerized index that
allows readers to find a book based on its title or its subject area.
The database also handles reservation to allow a reader reserve a book and to be informed by
mail when the book is available and also send reminders to borrowers who have failed to
15

return books by the due date. These systems have bar code reader similar to that of the
supermarket described earlier by Begg (2005), used to monitor the to and fro movement of
books in and out of the library.
The systems mentioned above are already developed in use for various purposes. There have
been a couple of developments associated with the sports management systems. The sport
management system which is being designed and developed will involve sites for readers
with the purpose of research for information. (http://wikipedia.com)

16

CHAPTER THREE

METHODOLOGY AND DESIGN


3.1 Introduction
This section is simply to describe how we would gather our information, the programming
language and the database we would use to create the proposed system
3.2The system development life cycle (waterfall model)
System development cycle is a conceptual model that describes the stage involved in an
information system development project, from an initial feasibility study through the
maintenance of the completed application.

Fig 3.1: SDLC DIAGRAM


Source: Conrad Weisert (water fall methodology)

17

3.2.1 Development stage

The system development is divided into four major phases which describes the methodology
used in this research. They are;

System planning

System analysis

System design

System implementation

The development of the project started when one identifies the user and objectives of the
project. The in house prototype was designed based on the suggestion of customers and
workers of the fashion house. Phases of analysis, design and implementation were performed
iteratively until used and designed (the project team) agreed on a final system specification.
This point, the final stage is the implementation phase.
The advantage of this approach was that a draft system could be provided to users to interact
quickly. The user was lightly involved in every phase of the project and feedback during the
process furthered our understanding of the system requirement and objectives and helped us
avoid potential problems. Since they participated in the process of analysis, design and
implementation, the users were more likely to be satisfied with the final system.
(http://wikipedia.com)

18

3.2.1.1

System planning

The first stage was project initiation. The objective of the software was to enable Sport Men
and Women and management to view details of sports activities at a particular time and
improve its consistency. We also determined the features of the system needed for such a
database and which way we could achieve it. The key objective for this project was to
develop a database platform that effectively manage and run the sports. The project team
determines a work plan during the planning phase. (Design work, 2014)
3.2.1.2 System analysis
Under this stage investigating of processes and determining what the new system perform in
accordance with the objective achieved. This is achieved through the adoption of a fact
finding technique which are interview and observation. To build a user centered system what
the team determined in the analysis phase which the fact finding technique, interview and
observation where the target. After a comprehensive user analysis, potential users were listed
as follows:

Sport Men and Women

Students of Achimota

Teachers

Achimota schools prefects

House masters/ mistress

Senior house mistress/ master

19

Assistant house Master East compound

Assistant house Master West compound

Administrators

Managers

3.2.1.3

DATABASE DESIGN

The next step was to examine the existing School database and comparing it to model the
database which was identifies based on the iterative review of effective database design
technique.

The design of the database interface


The result of the database
User friendly requirement

The fact finding technique was adopted as follows:

It is more personal and familiar


It provides staff, management and customers the opportunity to make suggestion

3.2.2 Source of Data

Data was collected from the Achimota School. The objective of this project is to solve the
problems pertaining to the Achimota hence it is appropriate to use the School as the source of
data.

20

3.2.2.1

Methods of Interview

Sport Men and Women, Student of Achimota, teacher, Achimota Schools perfects, house
master or mistress, senior house mistress or master, assistant house master East Compound,
Assistant house master west, administrators and sports managers were interviewed to find out
the functions they would like hence the software is developed.
From personal observation, we have identified major problems and the possible needed
solutions the School needs in order to provide reliable, consistent and adequate services for
customers and software where identified.
From the information gathered, the appropriate activities to develop the management system
are:
3.2.3

Programming language

We used MySQL and visual basic to design the software.


The proposed computer software intends to go through the formal severity or rigors of
professional software development life cycle. The system life cycle defines two main steps:

3.3

System Analysis
Table Design

System analysis

There are two parts of this section: analysing the current system and analysing the new
system.

21

3.3.1

The current system

3.3.1.1 Tasks
The current system is a manual system which helps to perform the following tasks:

Registration process: Persons are made to fill membership forms manually every
semester.

Sport Men and Women records: the records of all sports are kept in books are shelved
in the library.

Updates on sporting events for the school calendar are all pasted on the notice board.

Outcomes of Sporting activities are announced at the dining hall.

3.3.1.2 Problems faced


Some of the problems being faced in the current manual system are as follows:

Report Generation: Fast report generation is not possible.

Rodent chewing documents in the storage location

Duplication of data

Data inconsistency

22

3.3.2 The proposed system


The proposed computer- based system is intended to accomplish the above mentioned tasks
with the following added features;
Features
Secure data entry; the system has one entering point to the application (the log in screen) and
two entering points to the database, which through the application or form. For a user to
access the application the user need the right authentication. The authorized user who has
access is given certain task to perform. This task tells the application which processes to
initiate at a given time. An administrator who has universal right enforces rights to every
other user. His access right includes addition and removal of application users. Other users is
been made to have partial administrative rights, which exclude the right to add or remove
users.
The ability to accept all types of data entry for records; this includes numeric, alphabets and
alphanumeric data type. Numeric data entry lays emphasis on figures only. On the other hand,
alphabetical data entry accepts letters and other symbols. The combination of letters, symbols
and figures is known as alphanumeric data entry.

Restrictions: There are restrictions which prevents users form going into the platform
of other users. For instances, a student cannot enter the member of staff platform and
neither can a member of staff have access to the platform of a teacher or a student.
This would be done by means of entering a username and password before one can
gain access to the system.

23

Time Elapse: The system would be able to check the time one user entered the system
and when he or she exit.

User Friendly: The computer-based proposed system is user friendly. The user would
be able to use the system without any difficulty.

3.3.2.2 Benefits of the proposed system


The Proposed System provides the following benefits:

It provides "better and efficient" service to users.

It reduces the workload of employees (Admin staff, sports men and teacher).

Faster retrieval of information about any sports event, sports men and women and also
sports management member.

A facility with proper management reduces paper work and provides data security.

Updates of sports Events

Updates on sports men, women and sports management

24

3.4

Feasibility analysis

A system request must pass several tests to see whether it is worthwhile to proceed further. A
feasibility study uses four main yardsticks to measure a proposal: Operational Feasibility,
technical feasibility, economic feasibility and schedule feasibility.

3.4.1 Operational feasibility


Operational Feasibility means that a proposed system is been used effectively after its
development. If users have difficulty with a new system, it does not produce the expected
benefits. Operational feasibility depends on several vital issues which are listed below:

The proposed system is supported by the headmistress and Old Achimota Association
in order to help reduce the work load on the staff and student body of Achimota
School.

The proposed system causes no harm because it only help increase the efficiency of
the School.

The system is affordable and has low operational cost because it requires no special
equipment other than a normal computer.

The new system requires training of users. For which Achimota School and the O.A.A
would be prepared to sponsor workers for the training exercise.

25

3.4.2 Economic feasibility


Economic feasibility means that the project benefits of proposed system outweigh the
estimated cost usually considered the total cost of Ownership (TCO) which includes ongoing
system support and maintenance costs as well as acquisition cost. To determine TCO, we
estimate costs in each of the following areas:

The tools and technologies used for the system are free for non-commercial
development purposes. Most of them are licensed under Microsoft Corporation.

Most of the software and hardware components were provided by the school

especially lecturers in relation to the software.


In addition we assessed tangible and intangible benefits to the institution. Tangible

benefits are benefits that can be measured in monetary terms.


Intangible benefits are advantages that are difficult to measure in monetary terms but
are important to the company. For instance, a user friendly system that improves
employee job satisfaction is an intangible benefit.

3.4.3 Technical Feasibility


Technical feasibility involves determining whether or not a system can actually be
constructed to solve the problem at hand. The following points are considered for the
projects technical feasibility:

The required technologies (rule based and case based reasoning techniques,
programming languages and architecture) exist.

26

The proposed system provides adequate response to inquiries regardless of the


number or location of users. This is because the system is internal and the application
server is considerably sufficient to support the number of users.

Ease of access is guaranteed but the technical guarantees of accuracy and reliability
depend upon the data that is been collected.

3.4.4 Schedule Feasibility


Schedule Feasibility means that a project can be implemented in an acceptable time frame.
When assessing schedule feasibility, we consider the interaction between time and cost. The
project estimated period is presented in the table below:

Table 3.1
ID

Task Name

Start

Finish

Duration

Collecting and Analysis of Data

12/02/201

19/01/201

7 days

20/02/201

30/02/201

25/02/201

01/03/201

05/03/201

27/04/201

System Analysis and Preparation

System Design

Coding

27

10days

19days

58 days

Testing

Maintenance

Efficiency Performance testing

28/04/201

05/05/201

07/05/201

17/05/201

20/05/201

06/06/201

7 days

10 days

14 days

Source: Design work (2014)


3.5 Data Collection
The research involves a series of interviews targeted at Achimota School. The interview
approach was considered to provide the interviewee an opportunity to discuss issues that has
provided unique insights into the phenomenon of an electronic database system to help to
develop the School system.
3.6 Data Analysis
Data collected from the interview then analysed to determine the major issues at hand,
outlining the problems that need to be solved, and tailoring a system that will efficiently and
effectively fix those problems to meet the needs of the users.

28

400
Sport men

350

Sports women

300

Students
Teachers

250
number of people

prefects

200

House masters
House mistressess

150

Senior H.master

100

Senior H. mistress

50

Ass.H master East

Ass.H master West


Category 1

interviewee of Achimota School

admin
sports. Manager

Fig 3.2 Chat representing the interview


(Achimota School, 17th May, 2014)
Source: Design work (2014)
3.8 Table design
My Structured Query Language was used in creating tables with their appropriate data type,
forms, queries and reports. The tables created with their entities are as follows;
3.8.1
3.8.2
3.8.3
3.8.3

Table best: sport, name, School name, age


Table tour: tour number, tournament, date, and venue
Table streg: serial number, name, School name, sport, date of birth, age, gender
Table registration: identity, username, and password

3.9 Keys and Relationships between the Tables


The picture below shows the relationship created among tables to link the various tables
together for easy query.

29

Fig 3.3: E.R diagram


Source: Design work(2014)
The best Table has the primary key sports ID and all other tables are linked with it through
the foreign key sports ID.
3.10 Project details
3.10.1 Structured Query Language
This Relational Database Management System (RDMS) was chosen in order to create an
On- The- Go Application that does not need network protocol such as TCP to establish
connections PostgreSQL.
This Structure Query Language helps you to store data safely and efficiently and allows easy
access to that data for viewing and modification.
The data with its base along with its associated data entry on the client machine therefore
issues such as network latency is avoided.

30

Since The DBMS is relational, the tables in the database have relations and indexes that
encourage quick searches and effective in section into the database. Access is very simple to
use and be used in many applications. For this, it can be used for both the front and backend
of the DBMS.
3.10.2 Computer hardware and software

Hardware

For the sports management system to function there is the need for the acquisition of the
hardware component.

Computers

Currently the School has only twenty computers that can be accessed by Sport Men and
Women, administration staff, lecturers and professors. Considering the number of student,
there is the need to acquire fifty (50) or more computers to see to the needs of the Sport Men
and Women. We have acquired more computers; the system has been installed on each of
them.

Backup Computers

There is a need for a backup to make duplicate of the contents of the hard disk just in case
there are unforeseen occurrences of accidents the backup can always be there for purpose.

A Printer

If there is the need for hard copies or print outs of information stored or typed in the system,
the printer will be to print the documents.

31

Uninterruptible Power Supply (UPS)

This is needed to supply a continuous supply of electricity or electric power when utility
power is not available to prevent data lost and also allows the computer to shut down
properly to prevent any unnecessary complications.

3.10.3 Software

Structured query language

SQL is an open source database management system that runs under windows and other
platforms. It was developed by Michael Widenius, and owned and sponsored by MySQL AB,
a Swedish based software company founded in 1995 .MySQL is now owned by Oracle
Corporation since 2010. The database server we used in this course is SQL
A database server enables users to process data stored in a database.
Without a database server, it is impossible to look at data in the database or to update or
delete obsolete data.
The database server alone knows where and how data is stored.
There are some third-party graphic user interfaces (GUIs) available as front ends to SQL, but
generally they are commercial products that must be purchased separately.
It is the responsibility of the database server to store data persistently in the database and to
maintain the integrity of the data.

32

Visual Basic. NET

Visual Basic (VB) is a widely used programming language developed by Microsoft and based
on earlier BASIC implementations such as QBasic/QuickBasic. Visual Basic like other
modern programming languages allows us to collect a data type and its associated operations
into a single entity called an object. It is thus called an object-oriented programming
language. On-OOP Languages, like C & COBOL, treat data and operations as separate parts
of the program.
Visual Basic.NET was chosen and used because of the short time frame associated with the
development of this project.
Aside this, it is easier to use and understand and does not run on the internet unlike the .NET
programming language.

CHAPTER FOUR

TESTING AND DEPLOYMENT

4.1 Introduction
This section tests the system that has been developed through the step by phase of the form
main page to exit page to the final phase depending on the phase where the user decides to
end. This system is to be used by the sports Department of the Achimota School.

33

4.2 Features of the system


4.2.1 Home screen

Fig 4.1 Home Screen


Source: Design work (2014)
This is the very first screen on the system after a user has login with password and username.
It is made of five ribbons: master, games, level, logout and exit.

34

4.2.2 Login screen

Fig 4.2: Login Screen


Source: Design work (2014)

The login screen grants the user of the system access into the system. There are two textboxes
as already seen; username and password. The user would be required to enter his username
and password into the appropriate text boxes. The login screen also has two buttons. A click
on the login button helps sign the user into the system provided he enters the required details
above, and the rest button reset the system.

35

4.2.3 Login registration form


The system has a login registration form as shown below:

Fig 4.3: Login registration Form


Source: Design work (2014)
This form allows the administrator to register, update and delete username and passwords of
users.

4.2.4 Tournament detail form


This form is used to add, delete and update details of a tournament. It includes tournament,
date and venue.
Figure 4.4 below shows the diagram:

36

Fig 4.4: Tournament Detail form


Source: Design work (2014)

4.2.5 Games and players form


This form is used to record games and players details. This is seen in the fig 4.5 below:

37

Fig 4.5: Games and players form


Source: Design work (2014)

38

4.2.6 Install shield wizard form

Fig 4.6: Install shield wizard form


Source: Design work (2014)
This is the first screen when you are installing the set up. The user can click on next to
continue or cancel the installation

39

4.2.7 Install shield wizard form

Fig 4.7: installation wizard


Source: Design work (2014)
This is the part of the installation where the end user accepts or do not accepts the terms in
the license agreement.

4.2.8 Install shield wizard form

40

Fig 4.8: Install shield wizard form


Source: Design work (2014)
This is the last part of installation. The user clicks on first then installation is done.

CHAPTER FIVE

SUMMARY, RECOMMENDATION AND CONCLUSION

5.1 SUMMARY
The Sports Management System is an electronic system designed for the sport department of
Achimota School.
41

The system is a user friendly system which aims at reducing the stress and problems the
workers of school face in carrying out their day to day activities with the manual system
being used.
The sports management system does record management, registration of Sport Men, Women,
management, and sporting events in the Achimota School. For data collection, we
interviewed Sport Men and Women, Student of Achimota, teacher, Achimota Schools
perfects, house master or mistress, senior house mistress or master, assistant house master
East Compound, Assistant house master west, administrators, sports manager and some
Akora( Old student) of Achimota School. The system was designed using Visual Studio for
the interface and MySQL for the back end.
In designing this system, we faced certain challenges. Some of which was the short time
allocated for carrying out the project and the difficulty in accessing the internet connectivity
on campus which impeded our research ability to an extent.

5.2 RECOMMENDATION
We suggest that the time frame provided for a project like the sports management system
should be extended. This would allow the student to give out their best and yield the best of
results
In addition with research methods, a special lecture or workshop should be arranged to
broaden the understanding of project work and what it entails.

42

Currently, there are twenty computers at Achimota School. There is the need therefore to
acquire more computers to see to the needs of Sport Men and Women and staff that use the
sports management system for their various research and projects.

5.3 CONCLUSION
The sport management system goes a long way to solve the problems of the manual system.
When this system was being designed or developed, the problems faced by users concerning
the existing system and all the problems as at the time were taken into consideration.
The system is designed in such a way that it can take large amount of data hence if the users
population increases, the system still functions efficiently and effectively

References
A. S. Hornby; (1989) - Oxford Advanced Learners Dictionary Fourth Edition
An old one (1748) advice to a young tradesman
Ana M Novoa, Katherine Prez, Elena Santamaria-Rubio & Carme Borrell (2011) Effect on
road traffic injuries of criminalizing road traffic offences: a timeseries study
Begg C. & Connolly T. (2005) Database Systems
Brain, K. Williams & Stacey, C. Sawyer (2001) Using Information Technology. USA:
McGraw-Hill Companies Inc,
43

Conolly & Begg (2010).Concept of Database System


Corley & Reed (1987) Law.
Dwumfour Abdullai Abdul-Aziz (2013) Database Management System
Jere W. Morehead,O. Lee Reed, Peter J. Shedd (2008) The Legal and Regulatory
Environment of Business.
Kenneth, C. Loudon & Jane, P.Loudon (2010). Management Information Systems. USA:
John willey & Sons Inc
Kevin Tatroe, Peter MacIntyre and Rasmus Lerdorp (2013) Programming with PHP
Klint Finley (2011) w3schools. http://www.w3schools.com/tags/tag_meta.asp.
Martha Nkrumah, MTTU Ghana Police Service , Madina Headquarters.
Martin Prigmore (2008) A Introduction to Databases with Web Application.
Mr. Alex Abebrese, Head of Management Information System (MIS) Driver & Vehicle
License Authority, Ghana
Mrs Cynthia Alorbi, Greater-Accra Regional Manager. Driver & Vehicle License Authority,
Ghana
Ray Villalobos (2013) Lynda Validating & Processing Forms With JavaScript And PHP
V413HAV
Reed, Shedd, Morehead and Pagnattaro (2008) Legistrative Instrument.
Retrieved (2013), from Spy Ghana www.spyghana.com/spot-fines-for-traffic-offences-underpiloting/
Retrieved from Ghana News Link www.ghananewslink.com/more/index.php
Retrieved from http://en.wikipedia.org/wiki/Schema_(psychology)
Retrieved from http://www.who.int/bulletin/volumes/89/6/10-082180/en/

44

Retrieved from Lawdonut www.lawdonut.co.uk/law/personal-law/traffic-offences/trafficoffences


Retrieved from wikipedia.org/wiki/Opportunity_cost.
Rob, Peter & Colonel, Caros (1997). Databse System Design and Implementation.
Robert N.Corley, O. Lee Reed (1987) The Legal Environment of Business 7th Edition.
Silver et al. (1995) Information system
Susan Allen Mills et al (2001)- Cambridge International Dictionary of English
Thomas Connolly & Carolyn Begg (2010) Database Systems: A Practical Approach to
Design, Implementation and Management.
Williams C (1983) Decision Support System Database Model Oriented User. New York:
Petroceli Books.

APPENDIX
MODULE

Imports System.Data
Imports System.Data.SqlClient
Module Module1
Public conn As New ADODB.Connection
Public rs As New ADODB.Recordset
45

Public rss As New ADODB.Recordset


Public sql As String
Public server1 As String
Public database1 As String
Public user1 As String
Public password1 As String
Public oid As String
Public sid As String
Public d As Date
Public dt As String
Public route As String

Public

con

As

New

SqlConnection("Server=SNH-PC;Database=Sports

Management;Trusted_Connection=True")
Public i As Integer
Public Function opendb()

If conn.State = 1 Then conn.Close()

46

conn.Open("Provider=SQLOLEDB.1;Data Source=SNH-PC;Initial Catalog=Sports


Management;Integrated Security=SSPI")
Return 0
End Function

Public Sub SetConnection(Optional ByVal Firstcomp As Boolean = False)


Dim str As String
str = "Data Source=SNH-PC;Initial Catalog=Sports Management;"
Try
If IsNothing(con) = False Then
If con.State = ConnectionState.Closed Then
con.Close()
End If
End If
con = New SqlConnection(str)
con.Open()
Catch ex As System.Exception
MsgBox(ex.Message)

47

MsgBox("Not Connecting to Database Server.Please check your network.")


End Try
End Sub
End Module

frmLogin
Public Class frmlogin1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button1.Click
If ComboBox1.Text = "" Then
MsgBox("Enter usertype")
ElseIf txtname.Text = "" Then

48

MsgBox("Enter the username")


ElseIf txtpass.Text = "" Then
MsgBox("Enter the password")
Else
sql = "select * from tbl_reg where usertype='" & ComboBox1.Text & "' and
username='" & txtname.Text & "' and password='" & txtpass.Text & "'"
If rs.State = 1 Then rs.Close()
rs.Open(sql, conn)
If rs.EOF = False Then

If ComboBox1.Text = "ADMIN" Then

Me.Hide()
frmwelcome.Show()
'ComboBox1.SelectedIndex = -1
'txtname.Text = ""
txtpass.Text = ""

49

ElseIf ComboBox1.Text = "EMPLOYEE" Then


Me.Hide()

'menuform.PAYROLLToolStripMenuItem.Visible = False
frmwelcome.MASTERToolStripMenuItem.Visible = False
' frmwelcome.REPORTSToolStripMenuItem.Visible = False
frmwelcome.Show()
'ComboBox1.SelectedIndex = -1
'txtname.Text = ""
txtpass.Text = ""
End If

Else
MsgBox("Login Failed")
End If
End If

50

End Sub

Private Sub frmlogin1_Load(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles MyBase.Load
opendb()

End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button2.Click
clear()

End Sub
Sub clear()
ComboBox1.SelectedIndex = -1
txtname.Text = ""
txtpass.Text = ""

51

End Sub
End Class

MAIN
Public Class frmwelcome

Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles Label1.Click
pnlgames.Hide()

End Sub

Private Sub GAMESToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e


As System.EventArgs) Handles GAMESToolStripMenuItem.Click
pnlgames.Show()

End Sub

52

Private Sub frmwelcome_Load(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles MyBase.Load
pnlgames.Hide()

End Sub

Private Sub PLAYERSToolStripMenuItem3_Click(ByVal sender As System.Object, ByVal


e As System.EventArgs) Handles PLAYERSToolStripMenuItem3.Click
frmbad.Show()

End Sub

Private Sub TOURNAMENTToolStripMenuItem4_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles TOURNAMENTToolStripMenuItem4.Click
frmbadtour.Show()

End Sub

53

Private Sub PLAYERSToolStripMenuItem4_Click(ByVal sender As System.Object, ByVal


e As System.EventArgs) Handles PLAYERSToolStripMenuItem4.Click
frmbasket.Show()

End Sub

Private Sub TOURNAMENTToolStripMenuItem5_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles TOURNAMENTToolStripMenuItem5.Click
frmbaskettour.Show()

End Sub

Private Sub COLLEGEToolStripMenuItem_Click(ByVal sender As System.Object, ByVal


e As System.EventArgs) Handles COLLEGEToolStripMenuItem.Click
frmcollege.Show()

End Sub

54

Private Sub PLAYERSToolStripMenuItem5_Click(ByVal sender As System.Object, ByVal


e As System.EventArgs) Handles PLAYERSToolStripMenuItem5.Click
frmcplyr.Show()

End Sub

Private Sub TOURNAMENTToolStripMenuItem6_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles TOURNAMENTToolStripMenuItem6.Click
frmcrtour.Show()

End Sub

Private Sub PLAYERSToolStripMenuItem_Click(ByVal sender As System.Object, ByVal


e As System.EventArgs) Handles PLAYERSToolStripMenuItem.Click
frmfplyr.Show()

End Sub

55

Private Sub TOURNAMENTToolStripMenuItem1_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles TOURNAMENTToolStripMenuItem1.Click
frmfttour.Show()

End Sub

Private Sub PLAYERSToolStripMenuItem1_Click(ByVal sender As System.Object, ByVal


e As System.EventArgs) Handles PLAYERSToolStripMenuItem1.Click
frmhockeyplyr.Show()

End Sub

Private Sub TOURNAMENTToolStripMenuItem2_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles TOURNAMENTToolStripMenuItem2.Click
frmhtour.Show()

End Sub

56

Private Sub LOGINREGISTRATIONToolStripMenuItem_Click(ByVal sender As


System.Object,

ByVal

As

System.EventArgs)

Handles

LOGINREGISTRATIONToolStripMenuItem.Click
frmloginreg.Show()

End Sub

Private Sub STATEToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles STATEToolStripMenuItem.Click
frmstate.Show()

End Sub

Private Sub STUDENTREGISTRATIONToolStripMenuItem_Click(ByVal sender As


System.Object,

ByVal

As

STUDENTREGISTRATIONToolStripMenuItem.Click
frmstudentreg.Show()

57

System.EventArgs)

Handles

End Sub

Private Sub TOURNAMENTToolStripMenuItem_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles TOURNAMENTToolStripMenuItem.Click
frmtour.Show()

End Sub

Private Sub PLAYERSToolStripMenuItem2_Click(ByVal sender As System.Object, ByVal


e As System.EventArgs) Handles PLAYERSToolStripMenuItem2.Click
frmvolleyplr.Show()

End Sub

Private Sub TOURNAMENTToolStripMenuItem3_Click(ByVal sender As System.Object,


ByVal e As System.EventArgs) Handles TOURNAMENTToolStripMenuItem3.Click
frmvltour.Show()

End Sub
58

Private Sub LOGOUTToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e


As System.EventArgs) Handles LOGOUTToolStripMenuItem.Click

If MsgBoxResult.No = MsgBox("DO YOU WANT TO LOGOUT?",


MsgBoxStyle.YesNo, " MMS") Then Exit Sub

Me.Close()
frmlogin1.Show()
End Sub

Private Sub EXITToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles EXITToolStripMenuItem.Click
If MsgBoxResult.No = MsgBox("DO YOU WANT TO EXIT?", MsgBoxStyle.YesNo)
Then Exit Sub
Application.Exit()
End Sub

59

Private Sub PHOTOSToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e


As System.EventArgs) Handles PHOTOSToolStripMenuItem.Click
frmfootballphotos.Show()

End Sub

Private Sub PHOTOSToolStripMenuItem5_Click(ByVal sender As System.Object, ByVal


e As System.EventArgs) Handles PHOTOSToolStripMenuItem5.Click
frmcrphotos.Show()

End Sub

Private Sub PHOTOSToolStripMenuItem2_Click(ByVal sender As System.Object, ByVal


e As System.EventArgs) Handles PHOTOSToolStripMenuItem2.Click
frmvophotos.Show()

End Sub

60

Private Sub PHOTOSToolStripMenuItem1_Click(ByVal sender As System.Object, ByVal


e As System.EventArgs) Handles PHOTOSToolStripMenuItem1.Click
frmhopho.Show()

End Sub

Private Sub PHOTOSToolStripMenuItem3_Click(ByVal sender As System.Object, ByVal


e As System.EventArgs) Handles PHOTOSToolStripMenuItem3.Click
frmbadphoto.Show()

End Sub

Private Sub PHOTOSToolStripMenuItem4_Click(ByVal sender As System.Object, ByVal


e As System.EventArgs) Handles PHOTOSToolStripMenuItem4.Click
frmbasketphotos.Show()

End Sub

61

Private Sub ConnectionToolStripMenuItem_Click(sender As Object, e As EventArgs)


Handles ConnectionToolStripMenuItem.Click
SQLServerConnectionDialog.Show()
End Sub
End Class

frmStudentRegistration
Public Class frmstudentreg

Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


Handles Label1.Click

End Sub

Private Sub frmstudentreg_Load(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles MyBase.Load
opendb()
loadgrid()
62

sno()

End Sub
Sub sno()
Dim j
j=1
txtsno.Text = j
sql = "select max(sno) from tbl_streg"
If rs.State = 1 Then rs.Close()
rs.Open(sql, conn)
If rs.EOF = False Then
j = rs(0).Value
j=j+1
txtsno.Text = j
End If
End Sub
Sub loadgrid()
63

sql = "select * from tbl_streg"


If rs.State = 1 Then rs.Close()
rs.Open(sql, conn)
DataGridView1.Rows.Clear()
Dim i
i=0
Do While Not rs.EOF
DataGridView1.Rows.Add()
DataGridView1.Item(0, i).Value = rs(0).Value
DataGridView1.Item(1, i).Value = rs(1).Value
DataGridView1.Item(2, i).Value = rs(2).Value
DataGridView1.Item(3, i).Value = rs(3).Value
DataGridView1.Item(4, i).Value = rs(4).Value
DataGridView1.Item(5, i).Value = rs(5).Value
DataGridView1.Item(6, i).Value = rs(6).Value
rs.MoveNext()
i=i+1

64

Loop
End Sub

Private Sub DataGridView1_CellClick(ByVal sender As Object, ByVal e As


System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellClick
txtsno.Text = DataGridView1.CurrentRow.Cells(0).Value
txtname.Text = DataGridView1.CurrentRow.Cells(1).Value
txtclgname.Text = DataGridView1.CurrentRow.Cells(2).Value
cmdsport.Text = DataGridView1.CurrentRow.Cells(3).Value
DateTimePicker1.Value = DataGridView1.CurrentRow.Cells(4).Value
txtage.Text = DataGridView1.CurrentRow.Cells(5).Value
cmdgender.Text = DataGridView1.CurrentRow.Cells(6).Value

End Sub

Private Sub DataGridView1_CellContentClick(ByVal sender As System.Object, ByVal e


As

System.Windows.Forms.DataGridViewCellEventArgs)

DataGridView1.CellContentClick

65

Handles

End Sub

Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles txtname.TextChanged

End Sub

Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button4.Click
clear()

End Sub
Sub clear()
txtsno.Text = ""
txtname.Text = ""
txtclgname.Text = ""
cmdsport.SelectedIndex = -1

66

DateTimePicker1.Value = Today.Date
txtage.Text = ""
cmdgender.SelectedIndex = -1

End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button1.Click
If txtsno.Text = "" Then
MsgBox("enter student no")
ElseIf txtname.Text = "" Then
MsgBox("enter student name")
ElseIf txtclgname.Text = "'" Then
MsgBox("enter college name")
ElseIf txtage.Text = "" Then
MsgBox("age is not calculated")
ElseIf cmdsport.Text = "" Then

67

MsgBox("select sport")
ElseIf cmdgender.Text = "" Then
MsgBox("select gender")

Else

sql = "insert into tbl_streg(sno,name,clgname,sport,dob,age,gender)"


sql = sql & " values('" & txtsno.Text & "','" & txtname.Text & "','" & txtclgname.Text
& "','" & cmdsport.Text & "','" & DateTimePicker1.Value & "','" & txtage.Text & "','" &
cmdgender.Text & "')"
conn.Execute(sql)
MsgBox("Record added")
clear()
sno()

68

loadgrid()
End If

End Sub

Private Sub DateTimePicker1_ValueChanged(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles DateTimePicker1.ValueChanged
Dim Age As Double = Math.Floor(DateDiff(DateInterval.Month,
DateTimePicker1.Value, System.DateTime.Now) / 12)
txtage.Text = Age

End Sub

Private Sub txtage_TextChanged(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles txtage.TextChanged

End Sub
69

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button3.Click
sql = "update tbl_streg set name='" & txtname.Text & "',clgname='" & txtclgname.Text
& "', sport='" & cmdsport.Text & "',dob='" & DateTimePicker1.Text & "',age='" &
txtage.Text & "',gender='" & cmdgender.Text & "' where sno='" & txtsno.Text & "'"
conn.Execute(sql)
MsgBox("record updated")
clear()
sno()

loadgrid()

End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As


System.EventArgs) Handles Button2.Click
sql = "delete from tbl_streg where sno='" & txtsno.Text & "'"
conn.Execute(sql)
70

MsgBox("record deleted")
clear()
sno()

loadgrid()

End Sub
End Class

71

Vous aimerez peut-être aussi