You are on page 1of 106

ONLINE GYM INFORMATION SYSTEM

Senarath B.S Registration No: SEU/IS/08/MIT/012 Index No: MIT070

A Software project submitted to the Management Information System Unit of the Faculty of Management & Commerce, South Eastern University of Sri Lanka, in Partial Fulfillment of Requirements of the Degree of Bachelor of Science in Management and Information Technology.

MANAGEMENT INFORMATION SYSTEM UNIT FACULTY OF MANAGEMENT AND COMMERCE SOUTH EASTERN UNIVERSITY OF SRI LANKA OLUVIL 2013

CERTIFICATION This is to certify that the project entitled Online Gym Information System submi tted by Senarath.B.S (SEU/IS/08/MIT/012) to the Faculty of Management and Commerce, South Eastern University of Sri Lanka, in Partial Fulfillment of the Requirement s of the Bachelor of Science in Management and Information Technology Degree (BSc-MIT) is her original work based on the study carried out independently by h er during the period of study under my guidance, supervision and is approved for submission.

Signature of the Supervisor

Mr. M.H.Thowfeek Senior Lecturer in MIS Faculty of Management and Commerce South Eastern University Of Sri Lanka Oluvil

Date:

..

DECLARATION I do hereby declare that the work has been originally carried out by me under th e guidance and supervision of Mr.M.H.Thowfeek, Management Information System Unit, Faculty of Management and Commerce of South Eastern University of Sri Lanka and this work has not been submitted elsewhere for any other Degree. I certify that this Project, to the best of my knowledge, does not contains any materials previously published or written by another author except where due acknowledgement and reference is made in text.

........................................... Signature of Candidate

Senarath B.S SEU/IS/08/MIT/012

Date:

..

ACKNOWLEDGEMENT I would like to thank the following people for all their help and support throug hout this project. Without their constant guidance and support, the project would not have run as smoothly as it did. First I would like to thank my supervisor, Mr.M.H.Thowfeek Senior Lecturer in Management and Information System Unit for his guidance throughout this project. I wish to avail myself of this opportunity, to express a sense of gratitude and love to my friends and my beloved parents for their support, strength, help and for everything.

ABSTRACT Today, websites are efficient tool of communication within society. For example, when people need information about a company or an organization, most of them wi ll almost instantaneously think of its website. To provide electronic access to information about its services, Super Body Gym was in need of a new website serv ing as a better communication tool for Gym members and its Instructors. This report presents the methodology for designing such a website that reflects its mission and provides the necessary tools and resources for its members and Instructors.

Table of Contents CHAPTER ONE .................................................................... ........................................................ 1INTRODUCTION ......... ................................................................................ ................................. 11.1.Introduction ............................ ................................................................................ ... 11.2.Background of Company ................................................. ........................................... 11.2.1.Current System of Super Body Gym .................................................................. 21.2.2.Pr oposed System .................................................................. ............................. 31.3.Objectives .................................. ................................................................................ 41.4.Scope of the Project ..................................................... .............................................. 51.5.Conclusion ................. ................................................................................ ................. 6CHAPTER TWO ................................................. .......................................................................... 7LITE RATURE REVIEW .................................................................. ................................................ 72.1.Introduction ............. ................................................................................ .................. 72.2.History of Gymnasium ................................... ............................................................ 72.3.Reasons to Joi n a Gym ........................................................................ ....................... 92.4.Advantages of Joining a Gym ....................... ............................................................ 102.5.How Gyms Can Help To Lead a Healthier Life .................................................. ........ 112.5.1.Physical Activity Boosts Mental Wellness. ..................... .................................. 122.5.2.Physical Activity Improves Physical W ellness. ................................................. 122.5.3.Physical Acti vity Extends Optimal Health. ................................................... .... 122.6.Exercise Equipments ................................................. ............................................... 142.7.Current System of Super Bo dy Gym ........................................................................ 152.7.1.Drawbacks of the Current System of Super Body Gym ...................... ............. 162.8.Importance of the Proposed System .......................... ............................................. 172.9.Conclusion ................. ................................................................................ ............... 19CHAPTER THREE ................................................ ....................................................................... 20METHOD OLOGY .......................................................................... ............................................. 203.1.Introduction ............... ................................................................................ .............. 203.2.Software Development Process .............................. ................................................. 203.2.1.Different Types of Sys tems Development Cycles ............................................ 203.3.Chose n Methodology .................................................................. ............................. 233.3.1.Waterfall Model .......................... ..................................................................... 233.4.Proj ect Management ................................................................. .............................. 27

3.5.Hardware and Software Specification ........................................ ............................. 283.6.Technology Use ............................. ........................................................................... 283. 6.1.HTML ....................................................................... ......................................... 283.6.2.CSS .......................... ................................................................................ .......... 293.6.3.PHP ......................................................... .......................................................... 293.6.4.MYSQL ....... ................................................................................ ....................... 293.6.5.WAMPP .......................................... .................................................................. 293.6.6.Macro media Dreamweaver .............................................................. ............... 303.6.7.Browsers ............................................... ........................................................... 303.7.Conclusion ... ................................................................................ ............................. 30Chapter 4 ...................................... ................................................................................ ........... 31Design ........................................................... ........................................................................... 314. 1.Introduction ................................................................. ............................................ 314.2.System Design ............... ................................................................................ ........... 314.2.1.Use Case Diagram ........................................... ................................................. 314.2.2.ER Diagram ........... ................................................................................ ............ 334.2.3.Data Flow Diagram/ Context Diagram ........................ ..................................... 344.3.Database Design .................... ................................................................................ ... 354.4.Interface Design ..................................................... .................................................. 364.4.1.Web Storyboards ..... ................................................................................ ........ 364.5.Web Navigation Chart ............................................ .................................................. 404.5.1.Web Navigation Chart ................................................................................ ...... 404.5.2.Members Page Navigation Chart ................................... .................................. 404.5.3.Instructors Page Navigation Chart ... ................................................................ 404.5.4.Adminis trators Page Navigation Chart .................................................. ........... 414.6.Website Interface ............................................ ......................................................... 414.6.1.Home Page .... ................................................................................ ................... 414.6.2.Facilities Page .................................... ............................................................... 424.6.3.Instruct ors Page ....................................................................... ........................ 424.6.4.Membership Packages Page ...................... ...................................................... 434.6.5.Free Pass Page .. ................................................................................ ................ 434.6.6.Classes Page .......................................... ........................................................... 444.6.7.Yoga Class . ................................................................................ ........................ 444.6.8.Body Balance .................................. .................................................................. 45

4.6.9.Body Combat .............................................................. ...................................... 454.6.10.Body Pump ...................... ................................................................................ . 464.6.11.RPM ................................................................. ................................................. 464.6.12.Contact Us .......... ................................................................................ .............. 474.6.13.Member Login ........................................... ....................................................... 474.6.14.Member Profile (My Profile) ................................................................... ......... 484.6.15.My Fitness .................................................. ...................................................... 484.6.16.Book Machines .. ................................................................................ ............... 494.6.17.Fitness shopping ...................................... ........................................................ 494.6.18.Staff Login .. ................................................................................ ...................... 504.6.19.Instructors Profile ............................ ................................................................ 504.6.20.Instru ctors Schedule ................................................................. ....................... 514.6.21.Administrator Control Panel ................... ......................................................... 514.6.22.Administrator Add Functions ................................................................. .......... 524.6.23.Add a New Class ............................................ ................................................... 534.6.24.Add a New Product . ................................................................................ ......... 534.6.25.Add a New Employee .......................................... ............................................. 544.6.26.Add a New Equipment ..... ................................................................................ 554.6.27.Administrator View Function .......................................... ................................. 554.6.28.Administrator Product View Page ..... ............................................................... 564.6.29.View Pa ckages ......................................................................... ......................... 564.6.30.Administrator Delete Function ............... ......................................................... 574.6.31.Delete Equipm ent ............................................................................ ................ 574.7.Conclusion .............................................. .................................................................. 57CHAPTER FIV E .............................................................................. ............................................ 58CODING .......................... ................................................................................ ......................... 585.1.INTRODUCTION ................................... ..................................................................... 585.2.Samp le Coding ...................................................................... ................................... 585.2.1.Login .............................. ................................................................................ ... 585.2.2.Access Restriction to the pages .................................... ................................... 605.2.3.Changing the login information ..... .................................................................. 625.3.Conclus ion ............................................................................ .................................... 62CHAPTER SIX ............................. ................................................................................ ................ 63TESTING AND IMPLEMENTATION .................................. .......................................................... 63

6.1.Introduction ............................................................... .............................................. 636.2.Unit Testing .............. ................................................................................ ................ 636.3.Integration Testing ..................................... .............................................................. 646.4.System Test ing ............................................................................ ............................. 646.5.Implementation ............................. .......................................................................... 666.6 .Conclusion .................................................................... ............................................ 66CHAPTER 07 ...................... ................................................................................ ....................... 67CONCLUSION AND RECOMENDATION ......................... ............................................................ 677.1.Introduction ................................................................................ ............................. 677.2.Review of Objectives ....................... ......................................................................... 677.3. Advantages of the System ....................................................... ................................ 677.4.Limitation of the System ................ .......................................................................... 687.5 .Future Enhancement ............................................................ ................................... 687.6.Conclusion of Chapter ................ .............................................................................. 6 8REFERENCES .................................................................... ......................................................... 69APPENDIXES ......... ................................................................................ .................................... 70USER MANUAL ............................. ................................................................................ ............ 75

List of Figures Figure 3.1: Linear System Development Cycle .................................... ....................... 21Figure 3.2: Iterative Life Cycle ..................... ............................................................... 22Figure 3.3: Ev olutionary Life Cycle .......................................................... .................. 22Figure 3.4: Waterfall Model ............................... ......................................................... 24Figure 3.5: Gantt Ch art ............................................................................ .................... 27Figure 4.1: Use Case Diagram ............................ ......................................................... 32Figure 4.2: ER Diagr am ............................................................................. .................. 33Figure 4.3: Context Diagram Level 0 ....................... ................................................... 34Figure 4.4: Context Diagra m Level 1 ...................................................................... .... 35Figure 4.5: Database Design ............................................. ........................................... 35Figure 4.6: Home Page ............ ................................................................................ .... 36Figure 4.7: Static Page ................................................. ................................................ 37Figure 4.8: Members Home Page ............................................................................... . 38Figure 4.9: Instructors Home Page .......................................... .................................... 38Figure 4.10: Administrator Interface .... ....................................................................... 39Figure 4.11: Web Navigation Chart .................................................... ......................... 40Figure 4.12: Members Page Navigation Chart ......... ................................................... 40Figure 4.13: Instructors P age Navigation Chart .......................................................... 40Figure 4.14: Administrators Page Navigation Chart ............................ ........................ 41Figure 4.15: Home Page .............................. ................................................................ 41

Figure 4.16: Facilities Page ................................................... ....................................... 42Figure 4.17: Instructors Page ........ ............................................................................... 42Figure 4.18: Membership Packages Page ........................................ ............................ 43Figure 4.19: Free Pass Page ..................... .................................................................... 43Figure 4. 20: Classes Page ............................................................... ............................. 44Figure 4.21: Yoga Class ........................ ....................................................................... 44Figure 4.22: Body Balance ............................................................ .............................. 45Figure 4.23: Body Combat ...................... ..................................................................... 45Figure 4 .24: Body Pump ................................................................. ............................. 46Figure 4.25: Rpm ............................... .......................................................................... 46Fig ure 4.26: Contact Us ........................................................... .................................... 47Figure 4.27: Member Login ............... .......................................................................... 47Fig ure 4.28: Member Profile (My Profile) .......................................... ........................ 48Figure 4.29: My Fitness ............................. .................................................................. 48Figure 4.30 : Book Machines ................................................................ ........................ 49Figure 4.31: Fitness shopping ....................... ............................................................... 49Figure 4.32: S taff Login ..................................................................... .......................... 50Figure 4.33: Instructors Profile .................. .................................................................. 50Figure 4.34 : Instructors Schedule ......................................................... ....................... 51Figure 4.35: Administrator Control Panel ............. ...................................................... 51Figure 4.36: Administra tor Add Functions .............................................................. .... 52

Figure 4.37: Add a New Class ................................................... .................................. 53Figure 4.38: Add a New Product ............ ..................................................................... 53Figure 4 .39: Add a New Employee ........................................................ ...................... 54Figure 4.40: Add a New Equipment ...................... ...................................................... 55Figure 4.41: View Class Type .......................................................................... ........... 55Figure 4.42: Administrator Product View .......................... ......................................... 56Figure 4.43: View packages ......... ................................................................................ 56Figure 4.44: Delete Class Type .............................................. ...................................... 57Figure 4.45: Delete Equipment ......... ........................................................................... 57Fi gure 6.1: Mozilla Firefox ...................................................... .................................... 65Figure 6.2: Google Chrome ............... .......................................................................... 65Fig ure 6.3: Internet Explorer ..................................................... ................................... 66

LIST OF ABBREVIATION

. Web pages documents on the World Wide Web. They are written in HTML and are translated by Web browser.

. Website

a collection of Web pages.

. HTML Hyper Text Markup language. It is the standard protocol for formatting and displaying documents on the World Wide Web.

. World Wide Web the complete set of documents residing on all Internet servers that use the HTTP protocol, accessible to users via a simple point-and click system.

. MySQL is an open source relational database management system. It is based on the structure query language (SQL), which is used for adding, removing, and

. Modifying information in the database.

. PHP stands for Hypertext Preprocessor . PHP is an HTML-embedded Web scripting language. This means PHP code can be inserted into the HTML of a Web page.

CHAPTER ONE INTRODUCTION

1.1. Introduction Virtually all businesses, corporations, and organizations today utilize the inte rnet and websites as means to communicate, broadcast and interact with their broad spectr um of users. As computer and internet resources grow larger and larger, the opportu nities and possibilities a website brings can prove invaluable. The Super Body Gym in G alle recognizes these values and wants to design a website that not only acknowledges and accommodates its users, but also effectively communicates with all of them. Online gym information system is a web site that developed for online access of gym information, schedule classes, book gym equipments, getting advices and orders a ny supplementary products online. Instructors of the gym can also log on to the web site and view their personal schedules, check their salary status, interact with memb ers and do cancellation. Administration staff can generate different types of report s according to their preferences.

1.2. Background of Company With the objective of providing good guidance for physical fitness, Super Body G ym at Galle started in year 2003 and now it becomes one of the leading gyms in the area. They provide services for 50 regular customers and no of employees are working i n the gym. Over the years, the company s owner has expanded the gym and currently employs ten physical instructors as well as administration staff. Owner of the g ym would like to keep expanding his business but believes that changes need to make so that further expansion is possible. Super body gym conducts different types of c lasses such as personal training classes, studio classes, cardio, weight training, free style and athletic fitness. Except for personal training course all other classes has at l east two in charge physical instructors. In personal training session, every registered memb er for

the session gets a personal instructor. Members can come to the gym and workout at any time they need but studio classes held only at the schedule time.

1.2.1. Current System of Super Body Gym Gym currently has a paper-based system in which they keep records on which physical instructors train which member, and on the days of their workouts. This has caused many problems for the administration staff as in the past they have lost information about members and the dates of their sessions, therefore causing problems with instructors missing sessions and practicing schedules are being corrupted. For a member to book a practice session they currently have to call the office a nd request a session the admin staff will then allocate them a physical instructor and both agree on a suitable time. If the member knows which instructor they would like t o be trained by, they must make a request over the phone. Then they will tell which t imes are available with that particular physical instructor and take a suitable slot. If a member is unable to make the session they must call the office and notify the st aff who will then rearrange another time. There have been a lot of problems doing th ings in this particular way as office staff in the past have forgotten to change time slots and problems with members not giving the office acceptable notice of a cancelled ses sion. Instructors keep records of member attendance for their sessions and administrat ion staff keeps records on instructor s sessions. Personal training instructors paid according to the number of sessions they taught and other physical instructors p aid according to number of hours they work. Currently administration of gym keeps manual records for payroll of instructors and it leads to some problems. There are some limited numbers of machines for some exercises and if a member wants to use one of those machines, he must book the relevant machine by giving a call. Some supplementary products are also need to order early. According to the current system after the personal training session, there is no way to get advic es from instructors.

1.2.2. Proposed System The proposed system is a website that will use by potential members who can view the Gym website and book a training session, machines or supplementary products if they wish after they login to the website. Once registered, the member can then choose which physical instructor they would like to have a session with, then se lect a date and time that is available. This will be an advantage to both the member an d the instructor as sessions can be booked in a way advance and no double bookings wil l be able to make. This also means that the administration staff will have more free time to complete other duties this will also make it less human errors when sessions are being booked. As well as allowing members to book sessions, the website will allow the member to cancel a sessions and even request a change of physical instructor if they wish to change. This makes it a lot easier than calling the office to cancel a session a nd giving the staff enough time to inform the physical instructor. This is because, once a session has been booked or cancelled with a physical instructor, the instructor will rec eive an e-mail which will inform them of a booking or a cancellation. This again, saves the office staff time and less likely to be any changes that go unnoticed. Another function of the system is that it could also allow instructors to update any information they wish to help promote themselves to potential members as each instructor that is employed by the gym will have their own particular page. `The website will also have an area where members will be able to receive feedba ck from the instructor about their previous sessions and what will be involved in t heir next physical session, a session plan may also be included for their future sess ions. This is an excellent feature as it allows the member to receive feedback and obs erve the progress they are making as each session is completed. A major function of the website is that it will allow the instructors to view th e physical sessions that they have booked for that day once they are logged in, an d also any future sessions that are booked. This means the instructor can print out his own schedule for that day from home.

The website will also have a page that will allow members to book any machines w ith time slots as well as members can order any supplementary products. Members can view their own statistic by log in to their page.

1.3. Objectives The aim of a project is divided into many different steps called objectives. In order to eventually get to the aim of the project, the following objectives should be com pleted.

. A literature review must be conducted about other gyms web sites in order to gain an idea of what the application should offer. A literature review is also very useful when it comes to adding some extra functionality that can be found useful and have not been requested by the client.

. Interviewing the gym members, instructors and administration staff in order to see what their expectations are.

. Identifying the different types of users, that online gym information system should have.

. Formally defining the requirements in order to create some scenarios. The use case specifications and the scenarios are found to be very useful later on in the design, implementation and testing phase. Furthermore, the use cases forma mean for determining that the user requirements have been met.

. Conducting a literature review about the possible technologies that can be used to make Super Body gym web site in order to find the most suited one for such an application.

. Choosing a software engineering methodology that is considered to be the best choice for this type of application .

. Making a thorough analysis of the system in order to understand exactly what the system should do and in order to create a good quality design of the system.

. Designing a possible solution to the problem.

. Implementing all the appropriate classes using the previously chosen technology and connecting them so that they can communicate with each other.

. After the code has been implemented a proper amount of testing must be done in order to make the application fully functional and free of any possible errors.

1.4. Scope of the Project . User Management

. Staff Management

. Login Management

. Report Generation

. Database Management

. High Security of Data Access

. Online information access through 24 hours (only for registered Members and staff of the gym)

. Members to make online bookings for instructors, classes and equipments.

. Order supplementary products online.

. Send e-mails to members and staff regarding updates and cancellation about classes

. Generate various Reports according to the administrative perspective

1.5. Conclusion This chapter contains the introduction and background study of the Online Gym Information System. This chapter also explains the objectives of this dissertati on in details. Besides an overview of the dissertation and the objectives, it also inc ludes the scope of the study and the expected outcome.

CHAPTER TWO LITERATURE REVIEW

2.1. Introduction This chapter will provide necessary background knowledge of history of gymnasium , importance and advantages of physical fitness, introduction about exercise equipments, how gyms leads to a healthier life, current system of Super Body gym and disadvantages of the system and advantages of proposed system.

2.2. History of Gymnasium A gymnasium ght training to to stay in top place to exercise gymnasium is a place for many physical fitness activities and sports. From wei cardiovascular exercise, gyms provide space and equipment for people condition. From their roots in ancient Greece, gyms have provided a both the body and the mind. The word gym is a contraction of derived from the ancient Greek word gymnasium.

The ancient Greeks were the first to build a gym. These buildings originally wer e places where groups gathered to exercise [ Thackeray, T (2011) ]. In ancient Gre ece, gymnasiums were centers for both athletic events and higher learning. Only men enjoyed the use of the facility, and events staged in the nude to show off their perfect physiques and honor of the gods. Archeologists believe that a structure at Delph i represents the oldest Greek gymnasium , dating to approximately 400 B.C. Greek athletes competed in track and field events like sprints and discus, as well as contact sports like wrestling and boxing. As time passed, the community education aspect of the Greek gymnasium grew in importance while athletic events declined [ Rahn, J(2011) ]. The concept of the gymnasium spread along with other elements of Greek culture throughout the Mediterranean and Asia Minor. These structures not preserved as t heir Greek counterparts. Ancient gymnasiums typically contained rooms for athletes to

apply oil and sand to their bodies. Several adjoining rooms and open-air spaces hosted competitions. Bathhouses allowed tired athletes to wash and relax after their ev ents. Libraries, classrooms and lecture auditoriums were also integral to the classic, Greek inspired gymnasium [ Rahn, J(2011) ]. In the 1800s, Germans began to frequent athletic halls both to improve physical fitness and as a symbol of patriotism. In their thinking, a healthy body signifi ed a healthy spirit. Most of the equipment seen in modern gymnastics competitions originated from the German gymnasiums. In 1847, Hippolyte Triat opened the first gymnasium that charged a membership fe e. Men, women and children were welcome in Triat's Paris gyms. At the same time, th e Young Men's Christian Association (YMCA) was gaining momentum in England. Early YMCA founders believed that physical exercise was important on a spiritual level, as the body seen as the container of the soul. This spiritual belief know n as "Muscular Christianity," and was exported to the United States in the middle of the 19th century[ Rahn, J(2011) ]. The YMCA began in America in 1851. These faciliti es differed from early gyms in that they were community-based. They also embraced a philosophy of empowering the local community, which was a large break from strictly looking at a gym from a physical fitness perspective. YMCAs also differ in their mission being grounded in Christian principles. Their emphasis is the fami ly, healthy living and a strong community [Rogers C.D( 2011)]. In 1853, the first YM CA gymnasium built in Boston and shortly after, many universities added gyms to the ir campuses [ Thackeray, T (2011) ]. In the 19th century, gymnasiums began to pop up around America. In 1848, Germans developed the Turner Movement, which encouraged health and fitness and promoted gymnastics in America. This movement encouraged the production of gyms; the firs t was built in Cincinnati, Ohio. The first health club in America was built in the 1940s in California. This created a boom, and many capitalized on the idea. However, m ost health clubs closed during World War II. Once the war was over, gyms began to re open. The first gyms specialized on special sports, including weightlifting, swi mming and bowling [ Thackeray, T (2011) ].

The modern gym, typically referred to as a health club or fitness club, little r esembles the facilities of Greek antiquity. The end of World War II spurred the growth of members only gyms that continues to the present day. Service members returning from the war wanted places they could maintain their healthy habits. A booming economy made these gyms possible. The typical modern gym includes not only weights and cardio machines but also fitness classes, aerobics sessions and pers onal trainers. Swimming pools, hot tubs, and tennis and basketball courts are also av ailable at the most well-equipped gyms [ Rahn, J(2011) ].

2.3. Reasons to Join a Gym

. Everything under one roof. Many gyms have many different activities under one roof. There is often somethin g for everyone in the family. Swimming pools for children and adults, courts for s ports like tennis, squash and badminton, pitches for team sports as well as the gym it self and regular classes. Many gyms provide an assortment of classes from the harder workouts like step and aerobics through yoga.

. Personal gym programs Gym membership provides the opportunity to have a personal program that tailored to suit the specific needs of each person. This is regularly update and may even incorporate nutritional and remedial advice, if required. There is someone on ha nd to ensure that the equipments being used safely and properly.

. Stress management. Stress is an everyday occurrence for most people. Taking regular time to exercis e is an important commitment both to us and to our health. Some people find that goin g to the gym for a while after work, before they go home draws an important line underneath the day s concerns and worries. They are able to exercise and then go home, looking forward to the evening ahead.

. An advance payment to a gym motivates regular participation. Many people paying for something means that they are more likely to use it. That alone can provide the motivation to exercise regularly and make a commitment to go to the gym. Having paid in advance or having a regular monthly payment means tha t the money aspect sorted automatically without really having to think about it.

. Improve time management and social interactivity Set times means that a person has to be organized to ensure that they arrive in time for each class. It becomes a part of their regular routine and so, less easily forgo tten. Going regularly to a class enables friendships to be made as people recognize ea ch other and start to chat. The social element often becomes an important part of t he membership.

2.4. Advantages of Joining a Gym Exercise and physical activity are great ways to have fun, be with friends and f amily, and enjoy the outdoors. Regular exercise and physical activity can also have a d irect impact on everyday life. The benefits they provide can help to stay strong and f it enough to perform daily activities, get around, and maintain independence. Going to the gym every day is one way to get these benefits. Regular exercise carries man y physical and mental health benefits. Gym is important because of following reaso ns.

. Weight Control Going to the gym every day can help to control weight. Expending 500 calories pe r day, or 3,500 calories per week, can allow you to lose 1 lb. per week. If you ar e overweight or obese, losing even a moderate amount of weight, such as 10 percent of your body weight, can reduce risk of developing serious conditions [Kulas, M(201 1)].

. Heart Health Exercising daily strengthens heart and allows it to pump more efficiently with l ess strain. Exercise also can lower blood pressure, which measures the force on your

artery walls each time heart beats. It may lower cholesterol and triglyceride le vels, allowing blood to flow more smoothly through arteries. Going to the gym for 30 minutes a day five days per week can lower your of developing heart disease or having a stroke [Kulas, M(2011)].

. Other Health Benefits Regular exercise can lower risk of developing diabetes, metabolic syndrome and s ome types of cancer, such as colon cancer and breast cancer. Combining aerobic exerc ise with strength training at the gym helps muscles, ligaments, joints and tendons r emain in good shape, which make stronger and more flexible.

. Mental Health Benefits Going to the gym every day puts contact with people on a regular basis. This can boost social life as well as the way that feel about you. You can sleep better i f you exercise each day, which can give more energy and put you in a better mood. As y ou lose weight and get in shape, you will look better. Exercise relieves stress and allows the mind to think and respond more sharply [Mooney, L (2011)].

2.5. How Gyms Can Help To Lead a Healthier Life Now a day individuals and family are facing many health issues including obesity in adults and children. It is very important to stay healthy. A healthy lifestyle i s essentially a combination of good, well-balanced meals and regular exercise. Man y gyms provide great programs that help to lead a healthy life. The perfect fitness center provides with all the important elements need to real ize above goals. If you are trying to reduce some pounds, the attending a weight los s center gives the opportunity to concentrate on diet and exercise at the same tim e it also has professional dietitians and trainers on hand to advise. Many people feel quite uncomfortable of doing exercises. They were fear of unwanted attention or may restrict by cultural practices and expectations. In su ch

cases, fitness centers provide a safe, private space for exercise freely. The eq uipments are comfort and easier to operate. Living a healthy lifestyle involves a mixture of quality food and regular exerci se. Stay away from fad diets and concentrate on foods that with the essential nutrients a re helps to live a healthier life. Here are some ways that gyms improve both mental and physical health.

2.5.1. Physical Activity Boosts Mental Wellness. Regular physical activity eases tension, anxiety, depression and anger. Immediat ely after exercises, you feel good sensation. Doing exercises regularly improves the general well-being. Exercise increases the flow of oxygen, which directly affect s the brain. Mental acuity and memory improved with physical activity.

2.5.2. Physical Activity Improves Physical Wellness.

. Stronger immunity It enhances immune system and decreases the risk of developing diseases such as cancer and heart disease.

. Reduced risk factors Becoming more active can lower blood pressure. Physical activity can also boost levels of good cholesterol.

2.5.3. Physical Activity Extends Optimal Health. Without regular physical activity, the body slowly loses its strength, stamina a nd ability to function well. And for each hour of regular exercise gain about two h ours of

additional life expectancy. By doing exercises regularly following health benefi ts can be achieved

. Improves blood circulation, which reduces the risk of heart disease

. Keeps weight under control

. Helps in the battle to quit smoking

. Improves blood cholesterol levels

. Prevents and manages high blood pressure

. Prevents bone loss

. Boosts energy level

. Helps manage stress

. Releases tension

. Promotes enthusiasm and optimism

. Counters anxiety and depression

. Improves self-image

. Increases muscle strength, increasing the ability to do other physical activities

. Provides a way to share an activity with family and friends

. Reduces coronary heart disease in women

. Reduces risk of stroke moderately active people

. Establishes good heart-healthy habits in children and counters the conditions (obesity, high blood pressure, poor cholesterol levels, poor lifestyle habits, etc.) that lead to heart attack and stroke later in life.

. Helps delay or prevent chronic illnesses and diseases associated with aging and maintains quality of life and independence longer for seniors. Physical activities are essential for improving health and well being. When a co untries population is healthy, it will help for the development of that country. Healthy people mean an active workforce of the country. Healthy person will reduce the health c are cost and improve productivity of the work place, Physical activities improves th e selfconcept, self-esteem and self-confidence. It copes with stress and reduce anxiet y improve brain functions etc. Gym is the best place to work out in physical activ ities therefore gym is indirectly plays a part of a development of a country.

2.6. Exercise Equipments The history of exercise equipment dates back to the time of early civilization. The need for survival kept people in pretty good shape regardless of whether they we re hunters, gatherers, or farmers. When they started living in large groups and specializing, their day-to-day workload changed and for many, the need for exerc ise was born. Physical training was introduced by way of two kinds of competition th at arose between groups of people games and war. Military conflict and athletic competition between cities created the need for gymnasium, strength training and exercise equipments [Alexander ,J(2010)]. Early exercise equipment consisted of weights and tools for gymnastic training. Stones, sandbags, water jars and bars made up the components of early weight training equipment. Early gymnastic tools were precursors of modern equipment

consisting of swings with bars, ropes and rings. Extra power and speed was devel oped by running up and down hills and mountains. Serious exercise equipment started appearing . The first stationary bicycle was produced in the e that worked both the arms and the legs. The first 19th century, and looked like the midsection of a in the late 18th and 19th centuries 18th century and was a large machin rowing machine appeared in the mid boat.

Later in the early 20th century came machines to improve physical fitness. Many of the machines were adapted from earlier applications. The treadmill was initially invented with industrial applications. Later other weight and pulley systems wer e adapted for use in gymnasiums as exercise equipment and as features to improve safety for strength training. By 1933 the treadmill was in widespread use and in 1952 was being used in medical applications. Finally, the history of exercise equipment comes to the development of modern ho me gym equipment including universal machines like the Solo-flex and Bowflex, along with devices like the mini-stairstepper. The mini-stairstepper is a device that provides all the advantages of the step treadmill in a small portable device that can be easily moved and stored.

2.7. Current System of Super Body Gym To become a successful business good management is a key factor that must considered. Managing business customers, employees and assets of the organizatio n in a proper and manner will lead a business to be successful. To manage those, organizations has to adapt to rapidly changing environment with the help of new technologies. Then business can compete with their competitors. Currently Super Body gym does not have a website and because of that, there is a limited chance to expand the business as well as to compete within the industry. Super Body Gym us e a manual approach to record information about their customers, staff members, suppliers, equipments, payroll and payments. It is a very time consuming system because everything done manually.

2.7.1. Drawbacks of the Current System of Super Body Gym

. Security features not provided. Thus, any person who knows the data can do any type of manipulation.

. No further modifications are possible that the information may require at later stages.

. It does not prompt the user about wrong information going in process.

. Searching was very complex as there could be number of entry.

. Any wrong data entered mistakenly can bring serious results.

. This manually managed system of the gym was lead to data loss due to certain cause s misplacement of registers, destruction of registers, unauthorized access to registers etc that can bring adverse consequences.

. Data redundancy is also a great issue in such kind of system.

. The cost of maintenance of data and records of occurrence of transactions is very high.

. Cancellations of classes not informed to the office in proper way and it will lead to time schedule clashes. To overcome from the above drawbacks gym can use a computerized gym management system. There are number of gym management software available in the world. Modern-day integrated modules are capable to deal with various aspects of running a successful gym business, including accounting and billing, marketing, sales,

and relationships with current and prospective customers. Using a gym management software gym can save administration time, it is easy to use a click lets access what want, highly reliable, reduces overheads, communication with gym members gets enhanced and no hassles faced related to finances and fee collection.

Although software s available in the market Super body gym does not use management software because the initial cost is high and many software s provide access control checking facility with access card and bar codes.

2.8. Importance of the Proposed System Today, websites are efficient tool of communication within society. When people need information about a company or an organization, most of them will almost instantaneously think of its website. Companies from around the world can be fou nd on the internet this gives anyone the advantage of being easily found and giving more visibility. To provide members electronic access to information about its servic es, Super Body Gym was in need of a more updated, user-friendly and informative website. This new website serves as a better communication tool for Gym members, staff and all related parties to the Gym. Online gym information provide followi ng benefits to the gym.

. Market Expansion The Internet has allowed businesses to break through the geographical barriers a nd become accessible, virtually, from any country in the world by a potential custo mer that has internet access.

. Diversify Revenue Streams A website is not just a medium for representation of a company it is a form of m edia from which everybody can acquire information. Gym can use this media to sell advertising space to other businesses.

. 24 x 7 x 360 No more turning customers away when it s time to close gym, putting up a note saying closed for public holiday, or leaving an irritating message on members answering service specifying gym opening hours tell them to visit the website fo r information they are looking for.

. Far Cheaper and Much More Flexible Than Print Advertising The Internet is extremely different from print advertising in that space is chea p, advertisement is accessible for a longer period of time, the content can be chan ged without having to ask someone to do it (by using a content management system) an d gym can potentially reach a wider audience.

. Offers It is far more convenient for a person to research a product on the Internet tha n it is to get in a car, drive somewhere and look for or ask someone for information on a product. In addition, a potential customer will not have to judge a call centre agent to determine whether he/she has their best interests in mind, or just wants to make a sale. The potential customer can visit gym website whenever they like in their own pri vacy and comfort, without the stresses and distractions that exist in the real world.

. Standardize Sales Performance By looking at which approached / pitches have worked in the past and those which have not, gym can produce the ultimate pitch and use it with gym website, so tha t it can use on every member. No more training of sales people and waiting for them t o get a feel for line of trade.

. Add Value and Satisfaction By offering convenience, a point of reference and that touch of individualized customer service, ultimately add value to gym offering and gym members experienc e a higher level of satisfaction. Online Gym Information System website can add va lue in other ways too, by featuring tips, advice and general interest content and can entertain members. This will also help them remember better.

. Improve credibility

A website gives the opportunity to tell potential customers what gym is about an d why they deserve their trust and confidence. In fact, many people use the intern et for pre-purchase research so that they can determine for themselves whether a partic ular

supplier or brand is worthy. The Internet also allows for Viral Marketing where the website visitors spread positive word-of-mouth about business - your customers d o your marketing.

. Promote Brick and Mortar Presence Getting lost trying to find a place can be frustrating for a potential customer. Gym can publish a dummy map on the website, which shows directions and landmarks graphically, and the potential customer can print it out when looking for Brick Mortar premises.

. Growth Opportunity A website serves is a great place to refer potential investors to, show them wha t the company is about, what it achieved and what it can achieve in future.

. Cheap Market Research Gym can use features on its website such as visitor polls, online surveys and we bsite statistics to find out what its customers like more and how they feel about cert ain aspects of the gym and to determine how it can improve services.

. Two-Way Communicative Marketing Customers can quickly and easily feedback about gym.

2.9. Conclusion This chapter contains the history of gymnasiums in the world and importance and advantages of physical fitness and how a gym leads to a healthier life. It also include of the background study of current system of Super Body Gym and drawbacks of the system and advantages of proposed system.

CHAPTER THREE METHODOLOGY

3.1. Introduction This section explains the system development methods and techniques, chosen methodology and techniques use to gather requirements, technologies used to deve lop the system and the project management.

3.2. Software Development Process Software development process is a set of stages, which imposed to the developmen t of a software product. There are many different software development processes and all of them can apply on any type of software. The best suited process for a softwar e depends on many issues such as the size and complexity of the software, whether the software might be imposed to some changes, whether the functional requirements a re clear etc. Each software development process includes different steps that form the software s lifecycle.

3.2.1. Different Types of Systems Development Cycles As there are many different types of systems that can be developed, there are di fferent methods in ways in which they can be done. Each method has advantages and disadvantages depending on the system. There are three types of systems development life cycle, these are:

. Linear (phased) . Iterative . Evolutionary

b1.jpg 1. Linear (phased) The linear type of systems development cycle is where the system is developed in a different amount of stages [Figure 3.1]. Within this system each stage must be completed before the next one begins. This type of system is also known as phase d development, e.g. the waterfall model. The advantages of this are that as each s ection is completed the developer knows that it has been completed. A disadvantage abou t this type of life cycle is that it does allow for parts of the stages to be revi sited if felt necessary [Minton.D(2010)]

Figure 3.1: Linear System Development Cycle

2. Iterative The above diagram [Figure3.1] is showing that once one stage has been completed, move onto the next but it does not show any reviewing in any of the stages. The iterative development life cycle allows each stage to be revisited and amended i f it is felt necessary [Figure3.2]. This also allows for changes if the user requirement s change then they can be amended. The advantages of using the iterative life cycl e is that each stage can be completed and then later revisited if needed. This means that if any changes are made to the user requirements they can be amended as required.

D:\my project\chapters\graphics1.jpg Figure 3.2: Iterative Life Cycle

3. Evolutionary The evolutionary life cycle goes through more or an evolution than one stage at a time. It usually consists of draft systems being built then the system evolves f rom one draft system to another until a completed system is created. This is usually use d for rapid application development (RAD) when a system needs to be completed in a sho rt space of time. The advantages of this life cycle is that the system can be creat ed in a short space of time, the disadvantage is that it is not planned properly so part s of the user requirements could be missed within the development.[Figure3.3] Figure 3.3: Evolutionary Life Cycle

3.3. Chosen Methodology

3.3.1. Waterfall Model The software development process that used to create online gym information web site is the Waterfall model. The Waterfall model is a linear and sequential soft ware development process, meaning that the different phases are done one after the ot her in a sequential manner [Figure 3.4]. The Waterfall model is divided in different ph ases: Analysis (Requirements Elicitation), Design, Implementation, Testing (Validation ) and Maintenance. There are many advantages of using the Waterfall model. First, each phase of the software development lifecycle has its own start and end time. This will lead to customer satisfaction because the work done can be presented to the client at any point. Furthermore, the requirement specification is described in detail at the early stage of the software development process, which means that the implementation and testing phase made easier if the requirements will not go thr ough some changes. The main disadvantage of the Waterfall model is that the requirements are frozen ,

meaning that they cannot be easily changed. If something has to change in the implementation phase, the analysis and design have to reviewed and changed. This leads to great complexity and confusion. Furthermore, the Waterfall model is use -case driven, which means that use-cases are used in order to capture the functional requirements. The use-cases are also used to create test scenarios, which are ve ry useful for testing. The reason why the Waterfall model was chosen for building g ym web site is to simplify the development process of the application. Because the functional requirements were very clear, the Waterfall model was found to be the most suitable choice for building the gym web site. There was no possibility of changes in the functionalities in the system.

Feasibility

System

System Design

Programming

Implementatio

Maintenance

Figure 3.4: Waterfall Model

1. Feasibility Study A feasibility study carried out before any recommendation or computerized system is implemented. Fundamentally, it is a short assessment of the system that is curre ntly in place and deciding on ways in which computerized systems can be used.

2. System Analysis A systems analysis is carried out to show the operations of the current system a nd more importantly the requirements of the new system. It is also not uncommon for models of the current system to be produced. The result of a systems analysis wi ll produce a requirement specification for the new proposed system, which will be u sed during the implementation stages to ensure it meets the requirements. In order t o

gather requirements for the new system interviews were undertaken. First interview is with management of the gym. Their basic expectation was to enhance their market through the web site. They needed to present information ab out their gym to the whole world. They targeted foreigners who are visiting Galle as well as management wanted to provide quality service for their existing customers.

Another interview conducted with staff members and identified what they required from the system. They wanted to maintain friendly environment with their gym members as well as need to know their salary details and daily schedules. Few more interviews conducted with gym members and each of them had different expectations. All of them had different requirements but when taken commonly majority needed to book their classes and gym equipments online as well as they want to order supplements online and needed to inform cancellation of classes priory.

Functional Requirements

. Website allows the user to login

. Website allows the member to book a session, machines and products.

. Website allows the member change the instructors through a request.

. Website allows the members to see their statistics.

. Instructor can see what lessons are booked for that particular day

. Instructor can cancel a lesson that has been booked

. Members can receive feedback on their statistics

. Members can receive information on new offers

. Security features must be provided to the system

Non Functional Requirements

. Database is effective and reliable

. Website is easy to navigate through

. Website is well presented and attractive

. Website is accessible to the widest variety of people possible

. User friendly website

. Website must be easy to maintain

. Reliability of the website

3. System Design At the system design stage an appropriate solution for the problem is produced a long with a more detailed specification of the required system. The specification tha t is created is more detailed than the previous one produced in the systems analysis stage. Also produced at this stage are models of the proposed system, these models are usually diagrams for example, use case diagrams, ER-diagrams and data flow diagrams.

4. Programming The programming stage of the systems development life cycle consists of the crea tion of the system that has been designed. The creation includes the coding, the test ing and the documentation that needs to be produced for the system. Any problems with th e system will be sorted once the testing has been completed.

5. Implementation The implementation stage is the actual installation of the software or hardware that has been proposed. This stage also includes the training that will be needed for

the staff and also the system changeover.

6. Maintenance (review) The maintenance stage is the part that rectifies any problems that might occur w hilst the system is in operation, it should offer the support and maintenance service for as

long as both parties agree. As the system may become out of date for the compani es requirements a new system may be considered, therefore all stages may start from the beginning again.

3.4. Project Management Good project management is the key to success of any important software project. Well-managed projects rarely fail. Unmanaged or badly managed projects, even wit h competent people and technologies, have never met the schedule and budget constraints. Project management does not assume that all will go well. Problems of various natures nearly always arise during the life time of the project. After the user requirements were captured and after the software development pro cess that was followed was selected, a detailed plan of how the work should progress had to be created. All the different steps that were necessary to be taken in each s tage of the Waterfall model were identified. Taking into consideration that the deadline for the submission, enough time was allocated to each phase of the software developm ent process. The project plan is presented using a Gantt chart. The chart presents t he amount of days that were allocated to every objective.

Figure 3.5: Gantt Chart

3.5. Hardware and Software Specification Hardware Requirement:-

. Intel Pentium IV processor or higher

. 512MB DDR-Ram (1GB is recommended)

. 10GB Hard-disk space or higher

. 52x CD-ROM

. 17

Monitor (1024 X 768 Resolutions)

. Keyboard and Mouse

. Printer

Software Requirements:. Operating system : Windows 7

. Front End : Internet Explorer or Mozilla Firefox

. Back End : MySQL, Xampp or Vamp server

3.6. Technology Use

3.6.1. HTML Hyper Text Markup Language (HTML) was used to create the interface of the gym website. Html is a markup language used to create web pages. It provides ways to

transfer the text based information from a document to a web site offering diffe rent view using the html tags. 3.6.2. CSS Cascading Style Sheets (CSS) was used in order to apply the styles of the interf ace. CSS is a style sheet language which is used in order to apply the style of a doc ument created in a markup language, meaning that it is used to describe how an html document will be presented. CSS separates the content of a document, and include s styles such as fonts, colors and layouts.

3.6.3. PHP PHP (PHP) is a most widely used server side scripting language. It is freely ava ilable and platform independent (PHP developer community provides two separate versions for Windows and Linux platforms). PHP is more efficient than many other scriptin g languages such as JSP an ASP. It has a very large developer base. Many industria l applications as well as academic web portals built using PHP.

3.6.4. MYSQL This is a database driven web application. MySQL is the most popular open source database in the world. Use MySQL with PHP and Apache web server can implement highly interactive webs application with user customization, searchable database s. MySQL is free.

3.6.5. WAMPP The acronym WAMP refers to a set of free (open source) applications, combined wi th Microsoft Windows, which are commonly used in Web server environments. The WAMP stack provides developers with the four key elements of a Web server: an operating system, database, Web server and Web scripting software. The combined usage of these programs is called a server stack. In this stack, Microsoft Windo ws is the operating system (OS), Apache is the Web server, MySQL handles the database

components, while PHP, Python, or PERL represents the dynamic scripting languages. 3.6.6. Macromedia Dreamweaver Dreamweaver is one of the best What You See Is What You Get(WYSIWYG) editors on the market. It is easy to use and creates great Web pages. Macromedia Dreamweaver will used to develop the web application. It is easy to use, and has powerful abilities integrated with PHP.

3.6.7. Browsers Internet Explorer and Mozilla Fire Fox will used for web client. Internet Explor er is a commonly used browser.

3.7. Conclusion This chapter mainly identifies the system development methods and techniques, ch osen methodology and techniques use to gather requirements, and how to implement thos e technologies to overcome the drawbacks of the current system.

Chapter 4 Design

4.1. Introduction This chapter exhibits the data diagrams that used to develop the system. Chapter also includes the information about database and interface design.

4.2. System Design In this phase, the software s overall structures are defined. Analysis and design are very crucial in the whole development cycle. Any glitch in the design phase coul d be very expensive to solve in the later stage of the software development. Much car e is taken during this phase. Design is a formation of a plan of activities to accomp lish a recognized need. The need may be well defined or ill defined. The design process is a process of creative invention and definition it involves synthesis and analysis and thus is difficult to summarize in a simple design formula.

4.2.1. Use Case Diagram A use case diagram at its simplest is a representation of a user's interaction w ith the system and depicting the specifications of a use case. A use case diagram can po rtray the different types of users of a system and the various ways that they interact with the system. This type of diagram is typically used in conjunction with the textual use case and will often be accompanied by other types of diagrams as well. The use case diagr am for online gym information system is exhibit in [Figure 4.1].

GuestView Home PageView About UsView ClassesView Contact UsView PackagesRegister for OfferView My ProfileView My FitnessView Shopping FitnessView schedulesBook a training sessionView Book MachinesChange RequestCancel SessionAdministratorCan cel Machine BookingReserve MachinesUpdate My ProfileMemberLog InReserve Fitness ItemsInstructorAddUpdateViewDeleteRecordsMemb ersInstructorsClassesPackagesProducts<<extend>> <<extend>> <<extend>> <<extend>> <<extend>> <<extend>> ONLINE GYM INFORMATION SYSTEM Figure 4.1: Use Case Diagram

4.2.2. ER Diagram A graphical model of the data needed by a system, including things about which information is stored and relationships among them. Data storage requirements include the data entities, their attributes and the relationships among the data entities. The model used to define the data storage requirements is called the entity relationship diagram (ERD). On the Entity Relationship Diagram, rectangles repre sent data entities, and the lines connecting rectangles show the relationship among t he data entities.ER diagram for online gym information system is present in [Figure 4.2]

membersInstructorsPackagesStatisticsmember_IdFNameLnameAgeAddressMNameDOJDOBEmai lPhoneWeightMobileUsernamePasswordStatusPackage_IdInstructor_IdHeightEmployeeEmp _IdFNameLnameAgeAddressMNameDOJDOBEmailPhoneNo of hoursMobileGenderStatusHourly RateBasic aSalaryHeightGenderinstructor_IdEmp_IdPackage_IdNameDurationFeeFeesPac kage_IdMember_IdPay DateFee Due has has has hasPulsecountFeedbackFatcountHibsWaistShoulderChestHeightDateWeightmember_IdClas s_TypesNameDescriptionclass_Idclass_Timeinstructor_Idclass_IdDayend_Timestart_Ti mescheduleinstructor_Idmember_Idstart_Timestart_Timeequip_IdEquipmentCostDOPType DateNameequip_IdManufactured has has include work payProductsQuantitySelling rateimageUnitPriceLast orderSupplierBrandDescriptionC ategoryproduct_IdOrdersDatemember_Idproduct_IdQuantity make has has belongUserusernamepasswordEmp_Id Figure 4.2: ER Diagram

4.2.3. Data Flow Diagram/ Context Diagram In the Data Flow Oriented Design approach, often called as Structured Design, information flow characteristic is used to derive program structure. In the data flow oriented approach, emphasis is on the processes or operations performed on the d ata. Context diagrams depict the environment in which a software system exists. The context diagram shows the name of the system or product of interest in a circle with the circumference of the circle representing the system boundary. Rectangles out side the circle represent external entities which could be user classes, actors, orga nizations, other software systems or hardware devices that interface to the system. The interfaces between the system and the external entities are shown with label ed arrows. The context diagram depicts the project scope at a high level of abstrac tion but reveals nothing about the system functionality, architecture, or look-and-fe el. Online Gym Information SystemGuestMemberAdministratorInstructorMember detailsInstructor detailsEquipmen t detailsMachines detailsPackages detailsClass detailsBooking sessionsReserve ma chinesOrder productsMember recordsGym informationCheck sessionsPersonal detailsR eportsSession details Figure 4.3: Context Diagram Level 0

Membership ManagementSchedule ManagementStaff ManagementEquipment managementBookingsReports MembersAdministratorInstructorsorder managementmember detailsmember detailsinstructor detailEquipment detailsmembersb ook machinesEquipmentsEquipmentInstructorsinstructors detailsavailability of equ ipmentschedulesinstructorsschedulesproductsproducts products detailsschedulesEquipmentsproductsmembersinstructorsinstructors details Equipment detailsmember detailsclass detailsschedule details Figure 4.4: Context Diagram Level 1

4.3. Database Design

Figure 4.5: Database Design

4.4. Interface Design

4.4.1. Web Storyboards The web storyboards that have been created are a rough design on how the pages should look. Some pages may change during the implantation stages for one reason or another. Any changes that are made will be documented and a justification will a lso be included. The pages will also include a brief description of what each page function is and also how the user interacts with the page.

1. Home Page This is the page that anybody who first visits the website will first see, which you do not need to be logged in to see. It will have a brief introduction to the gym.

Figure 4.6: Home Page

2. Static Pages These pages will provide all the information about the gym to visitors of the we bsite. These pages are used to attract visitors to the gym. Therefore all of these page s include new offers for the customers.

Figure 4.7: Static Page

3. Members Home Page If an authenticated member would like to book a session, equipments or need to k now their statistics or want to order products they must log into the site firstly w ith their username and password provided by gym staff .After log in to the website member can change his login information. When a member log in the following page will appear with menu bar and member can search all information regarding his profile , statistics, shop for fitness items, and etc by navigation over it.

Figure 4.8: Members Home Page

4. Instructors Home Page If an instructor needs to find any details regarding his schedules he/she can lo g into the site by using their username and password. When they login following they ca n find their searching through the navigation panel.

Figure 4.9: Instructors Home Page

5. Administrator Interface Administrator has a separate login and by login to the site he/she can do main functions such as adding, viewing, deleting and view reports.

Figure 4.10: Administrator Interface

HOME PAGEHOMEABOUT USFACILITIESINSTRUCTORSMEMBERSHIPCLASSESCONTACT USLOG INPACKA GESFREE PASSCLASS1CLASS2CLASS3CLASS4CLASS5MEMBERSTAFFMembersHOMEMY PROFILEMY FIT NESSMY ACCOUNTFITNESS SHOPPINGBOOKINGSLOG OUTINSTRUCTORSHOMEMY PROFILEEDIT PROFILEMY SCHEDULEREQUESTLO G OUT 4.5. Web Navigation Chart

4.5.1. Web Navigation Chart

Figure 4.11: Web Navigation Chart

4.5.2. Members Page Navigation Chart

Figure 4.12: Members Page Navigation Chart

4.5.3. Instructors Page Navigation Chart

Figure 4.13: Instructors Page Navigation Chart

ADMINISTRATORMEMBERSSTAFFCLASSESSCHEDULESPRODUCTSEQUIPMENTSPACKAGESLOG OUT 4.5.4. Administrators Page Navigation Chart

Figure 4.14: Administrators Page Navigation Chart

4.6. Website Interface 4.6.1. Home Page

Figure 4.15: Home Page

4.6.2. Facilities Page

Figure 4.16: Facilities Page 4.6.3. Instructors Page

Figure 4.17: Instructors Page

4.6.4. Membership Packages Page

Figure 4.18: Membership Packages Page 4.6.5. Free Pass Page

Figure 4.19: Free Pass Page

4.6.6. Classes Page

Figure 4.20: Classes Page 4.6.7. Yoga Class

Figure 4.21: Yoga Class

4.6.8. Body Balance

Figure 4.22: Body Balance 4.6.9. Body Combat

Figure 4.23: Body Combat

4.6.10. Body Pump

Figure 4.24: Body Pump 4.6.11. RPM

Figure 4.25: Rpm

C:\Users\Bhagya\AppData\Local\Temp\SNAGHTMLa6e5de.PNG 4.6.12. Contact Us

Figure 4.26: Contact Us 4.6.13. Member Login

Figure 4.27: Member Login

4.6.14. Member Profile (My Profile)

Figure 4.28: Member Profile (My Profile) 4.6.15. My Fitness

Figure 4.29: My Fitness

4.6.16. Book Machines

Figure 4.30: Book Machines 4.6.17. Fitness shopping

Figure 4.31: Fitness shopping

4.6.18. Staff Login

Figure 4.32: Staff Login 4.6.19. Instructors Profile

Figure 4.33: Instructors Profile

4.6.20. Instructors Schedule

Figure 4.34: Instructors Schedule 4.6.21. Administrator Control Panel

Figure 4.35: Administrator Control Panel

4.6.22. Administrator Add Functions

Figure 4.36: Administrator Add Functions

4.6.23. Add a New Class

Figure 4.37: Add a New Class 4.6.24. Add a New Product

Figure 4.38: Add a New Product

4.6.25. Add a New Employee

Figure 4.39: Add a New Employee

4.6.26. Add a New Equipment

Figure 4.40: Add a New Equipment 4.6.27. Administrator View Function

Figure 4.41: View Class Type

4.6.28. Administrator Product View Page

Figure 4.42: Administrator Product View 4.6.29. View Packages

Figure 4.43: View packages

4.6.30. Administrator Delete Function

Figure 4.44: Delete Class Type 4.6.31. Delete Equipment

Figure 4.45: Delete Equipment

4.7. Conclusion This chapter mainly identifies the system design, interface design, database des ign and web sites interfaces.

CHAPTER FIVE CODING 5.1. INTRODUCTION The coding phase discusses the programming language and coding used in Online Gym Information System and translate the system the design phase into a working environment. The objective of coding phase is to correct the deliverables of the design phase into complete system. Most activities in the coding phase addresses the computer programs that make up the system, but this phase also puts in place hardware, software for the system and other important elements of the overall system.

5.2. Sample Coding This phase include only selected codes that used to develop this system.

5.2.1. Login Three types of users are log in to the system and therefore we have to validate whether the login information provided by the users are valid. If user enters a valid username or password he can log in to the system else the web page access is den ied and redirects the user to the login form to enter a valid username or password. <?php if (!isset($_SESSION)) { session_start(); } $loginFormAction = $_SERVER['PHP_SELF']; if (isset($_GET['accesscheck'])) {

$_SESSION['PrevUrl'] = $_GET['accesscheck']; } if (isset($_POST['username'])) { $loginUsername=$_POST['username']; $password=$_POST['password']; $MM_fldUserAuthorization = ""; $MM_redirectLoginSuccess = "members/userControl.php"; $MM_redirectLoginFailed = "login_failed(member).php"; $MM_redirecttoReferrer = false; mysql_select_db($database_conndb, $conndb); $LoginRS__query=sprintf("SELECT member_UserName, member_Password FROM members WHERE member_UserName=%s AND member_Password=%s", GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text")); $LoginRS = mysql_query($LoginRS__query, $conndb) or die(mysql_error()); $loginFoundUser = mysql_num_rows($LoginRS); if ($loginFoundUser) { $loginStrGroup = ""; if (PHP_VERSION >= 5.1) {session_regenerate_id(true);} else {session_regenerate_id();} $_SESSION['MM_Username'] = $loginUsername; $_SESSION['MM_UserGroup'] = $loginStrGroup; if (isset($_SESSION['PrevUrl']) && false) { $MM_redirectLoginSuccess = $_SESSION['PrevUrl'];

} header("Location: " . $MM_redirectLoginSuccess ); } else { header("Location: ". $MM_redirectLoginFailed ); }} ?> 5.2.2. Access Restriction to the pages Mainly three types of users are using this system and they have different access privileges. By restricting the page it can ensure the security of data. <?php if (!isset($_SESSION)) { session_start(); } $MM_authorizedUsers = ""; $MM_donotCheckaccess = "true"; function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) { $isValid = False; if (!empty($UserName)) { $arrUsers = Explode(",", $strUsers); $arrGroups = Explode(",", $strGroups); if (in_array($UserName, $arrUsers)) { $isValid = true;

} . if (in_array($UserGroup, $arrGroups)) { $isValid = true; } if (($strUsers == "") && true) { $isValid = true; } } return $isValid; } $MM_restrictGoTo = "..|/gym/_images/2_schedule_icon.png"; if (!((isset($_SESSION['MM_Username'])) && (isAuthorized("",$MM_authorizedUsers, $_SESSION['MM_Username'], $_SESSION['MM_UserGroup'])))) { $MM_qsChar = "?"; $MM_referrer = $_SERVER['PHP_SELF']; if (strpos($MM_restrictGoTo, "?")) $MM_qsChar = "&"; if (isset($_SERVER['QUERY_STRING']) && strlen($_SERVER['QUERY_STRING']) > 0) $MM_referrer .= "?" . $_SERVER['QUERY_STRING']; $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer); header("Location: ". $MM_restrictGoTo); exit; } ?>

5.2.3. Changing the login information Users of the system have the ability to change their username and password. By u sing this code it ensure that the authorized user is changing the password. <script type="text/javascript"> function validatePassword() { alert("Password Check"); if(document.frmLoginInfo.member_NewPassword.value==document.frmLoginInfo. member_NewPassword2.value) { return true; } else { alert("Passwords did not match"); return false; } } </script>

5.3. Conclusion Codes are very important for the conversion of design phase in to a reality. In this chapter codes that used to develop are mentioned and sample of codes are indicat ed in this chapter,

CHAPTER SIX TESTING AND IMPLEMENTATION 6.1. Introduction This chapter is concerned with the testing phase of the software. The techniques used to test the application are presented and described. Both White Box and Black bo x testing techniques have been used.

6.2. Unit Testing Unit testing is a method of testing that verifies whether the individual units o f source code are correct. A unit is a small part of an application that is able to be te sted independently of the entire application. The main purpose of unit testing is to validate that the individual parts of a program are working as they are supposed to. Unit testing is very useful because it simplifies the integration testing technique, which was also applied for the gym web site. After each functionality that the system was supposed to offer was implemented separately, it was separately tested. The unit testing was done using a White Bo x method. White Box testing is a technique where the tester is familiarized with t he code and the internal logic of a program. In order to test all the individual pa rts, all possible paths that a unit can go thorough have to identify. The possible paths can be identified only by reviewing the implemented code. After all possible paths have been identified, the inputs that are supposed to go through each path were determined together with the appropriate outputs in some cases. Those inputs were then used in order to test the separate units of the application and where then compared to s ee if the outputs received are equal to the expected outputs. The results of the Unit testing were highly satisfactory. By testing each possib le path of each individual unit, it was assured that the functionalities are working pro perly. Some bugs were identified and immediately taken care off.

6.3. Integration Testing Integration testing is a method of testing in which some units are being related and tested as a group. Integration testing is done after Unit testing and before Sys tem testing. The integration testing technique is done using a Black Box testing met hod. Black Box testing is a technique where the tester is not familiarized with the c ode and is not familiarized with the internal logic of the application that is tested. I n order to do Black Box testing, the use cases are used in order to predetermine some input s together with the corresponding outputs. After the inputs have been identified together with the desired outputs, the Int egration testing was started. The predetermined inputs were passed to the system and the outputs which were received were compared to the outputs that were previously determined. Some bugs were identified and have been taken care of at once using the integration testing technique.

6.4. System Testing System testing is performed on a complete system to assess the system's complian ce with its specified requirements such as attribute, capability, characteristic, o r quality of the system. It is done after every single unit has been integrated. System te sting is required in order to assess the system s compliance with the previously specified functional requirements. System testing is done using a Black Box method. Even though the units have been grouped and tested using Integration testing method, it is still necessary to ensure that everything will function properly after the whole system has been integrated. The system testing was done on the same way as the unit and integration testing. Inputs were being passed to the final version of the system and the outputs have been compared to the desired outputs. All the bugs were identified and fixed.

To ensure that the website is compatible with different browsers, it must be tes ted to ensure that all of the content load correctly. The browsers that are going to be tested are Google Chrome, Internet Explorer and Mozilla; this is because these are the most

common browsers. , the website is going to be tested in different web browsers t o warrant compatibility. To show that they are compatible in other browsers, scree n prints have been taken and inserted below.

1. Mozilla Firefox

Figure 6.1: Mozilla Firefox

2. Google Chrome

Figure 6.2: Google Chrome

3. Internet Explorer

Figure 6.3: Internet Explorer

6.5. Implementation This stage involves the selection of a web service provider and choosing a domai n name. The installation of webpage started with choosing the domain name. Another step was to choose the right hosting provider. The main factors that were affect ing the choice were cost-efficiency, reliability, fast connections and support of PHP an d MySQL. User manual is provided to the user for their convenience.

6.6. Conclusion This chapter is concerned with the testing phase of the software. The techniques used to test the application are presented and described. Both White Box and Black bo x testing techniques have been used.

CHAPTER 07 CONCLUSION AND RECOMENDATION 7.1. Introduction This chapter summarized and concludes the dissertation. It discusses the limitat ions encounter, advantages and disadvantages gained by carrying out this project. In addition it suggests some potential areas for further improvements to address th e limitation in this work.

7.2. Review of Objectives Main objectives of this project are member management, staff management, login management, database management, online information access, bookings and report generation, sending mails regarding updates are achieve through this system. Although these objectives are achieved further improvements and modifications ar e needed, the system is built in user friendly manner and therefore it is easy to use for an inexperienced person. All the relevant pages have user access restriction and therefore high security of data is achieved.

7.3. Advantages of the System 1. Control of the Data Redundancy The traditional file based system waste space because it stores same information in more than one files. The database approaches attempts to eliminate redundancy by integrating the files so that several copies of the same data are not stored.

2. Data Consistency By eliminating or controlling redundancy, it reducing the risk of inconsistencie s occurs. If a data item stored only once in the database, any update to its value s has to be performed only once and the new value is immediately available to all users. 3. Access information anytime and make bookings Members of the gym can reserve machines and supplementary products any time they want.

7.4. Limitation of the System

. Online registration option is not provided because the owner of gym wants to provide online access facility only for their visiting members of the gym.

. Online reservation of products can be done through the system but online payment option is not provided for the members.

. Members cannot interact with instructors over the website.

7.5. Future Enhancement This system can be enhanced by providing online payment option further more providing chat facilities to interact with instructors to gym members will add v alue to the system. Providing SMS functions will enhance the project to another level.

7.6. Conclusion of Chapter This chapter summarizes and concludes the dissertation. Also Features of the new system and achieved result of this project. In addition it suggests some potenti al area for further improvement to address the limitation in this system.

REFERENCES

1. Rahn.J(2011).The History of Gymnasium. LIVESTRONG foundation. Retrived 20http://www.livestrong.com/article/531794the-history-of gymnasiums/ th ,March,2013,from

2. Thackeray.T(2011).When were Gyms Created?. LIVESTRONG foundation. Retrived 20http://www.livestrong.com/article/387430when-were-gyms-created/ th ,March,2013, from:

3. Rogers.C.D(2011). Historical Perspective on Gyms. LIVESTRONG foundation. Retrived20th, March,2013, from http:// www.livestrong.com/article/425705-historical-perspective-on-gyms/ 4. Kulas.M(2011).The Advantages of Going to the Gym Every Day. LIVESTRONG foundation. Retrieved 23http://www.livestrong.com/article/514902-theadvantages-of-going-to-thegym-every-day/ rd March 2013, from

5. Mooney.L(2011). Why is Gym important? LIVESTRONG foundation. Retrived 24th , March, 2013, from http://www.livestrong.com/article/443955why-is-gym-class-important/

6. Alexander(J). History of Excersise Equipment(2010) LIVESTRONG foundation. Retrived 27th , March, 2013, from http://www.livestrong.com/article/274001-the-history-of-exercise-equipment/

7. Lowery.J.W(2010). Adobe Dreamweaver CS5 Bible

8. Beighley.L ,and Morrision.M.Head First PHP and MYSQL. OREILLY

APPENDIXES

1. Insert/Add a record.

<?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < 6) { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; }

$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "long": case "int": $theValue = ($theValue != "") ? intval($theValue) : "NULL"; break; case "double": $theValue = ($theValue != "") ? doubleval($theValue) : "NULL"; break; case "date": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break;

case "defined": $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue; break; } return $theValue; } } $editFormAction = $_SERVER['PHP_SELF']; if (isset($_SERVER['QUERY_STRING'])) { $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']); } if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "offers form")) { $insertSQL = sprintf("INSERT INTO offers (offers_Fname, offers_Lname, offers_Email, offers_Contact, offers_Address) VALUES (%s, %s, %s, %s, %s)", GetSQLValueString($_POST['offer_Name'], "text"), GetSQLValueString($_POST['offer_Lname'], "text"), GetSQLValueString($_POST['offer_Email'], "text"), GetSQLValueString($_POST['offer_Contact'], "int"), GetSQLValueString($_POST['offer_Address'], "text")); mysql_select_db($database_conndb, $conndb); $Result1 = mysql_query($insertSQL, $conndb) or die(mysql_error()); $insertGoTo = "offer.php"; if (isset($_SERVER['QUERY_STRING'])) { $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?"; $insertGoTo .= $_SERVER['QUERY_STRING']; } header(sprintf("Location: %s", $insertGoTo)); } ?>

2. View a record.

<?php if(isset($_POST['submitProduct'])){ $removeId=$_POST['productId']; mysql_query("DELETE FROM products WHERE product_Id = '$removeId' ", $conndb) or die(mysql_error()); } $sqlProduct="SELECT * FROM class_types"; $resultsProduct=mysql_query($sqlProduct, $conndb) or die(mysql_error()); while($rowProduct=mysql_fetch_array($resultsProduct)){

echo "<tr valign='middle'> <td height='70' align='center' ' valign='top'><table width='400' border='1' cellspacing='0' cellpadding='0'> <tr> <td width='400' valign='top' align='left'><table width='400' border='0' cellspacing='0' cellpadding='0'> <tr> <td align='center' valign='middle' bgcolor='#66FF99'><h2>".$rowProduct['class_Name']."</h2></td> </tr> <td>Class Id: ".$rowProduct['class_Id']."</td> <tr> <td>Class Name: ".$rowProduct['class_Name']."</td> </tr> <tr> <td>Class Description: ".$rowProduct['class_Description'].";</td> </tr>

</table></td> </table></td> </tr> </table></td> </tr> <tr><td>&nbsp;</td> </tr>"; } ?>

3. Update Record

<?php $user=$_SESSION['MM_Username']; if(isset($_POST['btnSaveChanges'])){ $Fname=$_POST['member_Fname2']; $Mname=$_POST['member_Mname2']; $Lname=$_POST['member_Lname']; $Address=$_POST['member_Address2']; $Status=$_POST['member_Status2']; $Email=$_POST['member_Email2']; $Mobile=$_POST['member_mobile']; $Phone=$_POST['member_Phone2'];

mysql_query("UPDATE members SET member_Fname='$Fname', member_Mname='$Mname', member_Lname='$Lname', member_Address='$Address', member_Status='$Status', member_Email='$Email', member_Mobile='$Mobile', member_Phone='$Phone' WHERE member_UserName='$user'", $conndb) or die(mysql_error());

echo "<p><h5>Your Personal Information have been updated !</h5></p>";

$sqlProfile="SELECT * FROM members WHERE member_UserName='$user'"; $resultsProfile=mysql_query($sqlProfile, $conndb) or die(mysql_error()); $rowProfile=mysql_fetch_array($resultsProfile); ?>

4 Delete Record

<?php if(isset($_POST['submitProduct'])){ $removeId=$_POST['productId']; mysql_query("DELETE FROM products WHERE product_Id = '$removeId' ", $conndb) or die(mysql_error()); } ?>

USER MANUAL

Online Gym Information System is an user-friendly web tool that helps to enhance your gym activities. This user manual will provide the necessary support that is need to use the system successfully. This system use by four types of users. For each type of user, the separate guid elines provided for the convenience. General Users General users or visitors of the website You can visit all the web pages by navigating the menu bar. All items in the men u bar are linked to relevant web pages.

Members Login to the system Members can login to their profile in two ways. 1) Home page sign in

Enter Username: (default username= users) Enter Password : (default password= users) Click Sign In 2) Menu Bar.Login.Member Login

Enter Username: (default username= member) Enter Password : (default password= member) Click Submit Click Reset to clear the text field area

After Login to the system members can navigate through the menu bar

Instructors Login to the system Menu Bar.Login.Staff Login

Enter Username: (default username= users) Enter Password : (default password= users) Click Sumbit Click Reset to clear the text field area After Login to the system Instructors can navigate through the menu bar

Administrator Type /admin/ end of the URL address

Log in to the system

Enter Username: (default username= administrator) Enter Password : (default password= administrator) Click Submit button. Click Reset to clear the text field area.

After Login to the system Administrator can navigate through the control panel

Click on the icon or link it will direct you to the relevent page and each item have main funtions.Administrator can perform the function by clicking the link

You might also like