Social Network

Published on February 2017 | Categories: Documents | Downloads: 98 | Comments: 0 | Views: 1178
of 82
Download PDF   Embed   Report

Comments

Content

 

  Social Network

PETR A  U UNIVER SITY  

Faculty  o of  I Technology    Inf ormation  T Department  o of   C Computer  S Sof tware  e engineering   Graduation  P Pro ject  

E-Clubs   Prepared  B By:   Malek Mohammed Al-Rawashdeh   Supervised By: Dr.Ghassan essa Date: January, 2011

1

 

  Social Network

Abstract Blog system can be defined as a social network service that “focuses on the building and verifying of online social networks for communities of people who share interests and activities, or who are interested in exploring the interests and activities of others, and which necessitates the use of software.”  software.”   This idea suggests that we will develop an international web site which will allow users to communicate all over the world and initiate initiate different types of club and to insure many types of communities communities and allow users to share various types of activities within within the responsible club. This web site will will be divided into four levels, each level consists of specific activities as follows:  

The main level is the head master of this web site who can accept the admission requests and approve the administrator for each club also he will be able to manage the home page services, news, activities, and events.

 

Club administrator level level is res responsible ponsible for suggesting new ideas inside each club as classifications or categories for a specific activity and approve the supervisor for each specific activity inside his club also he can manage the main page of the club by adding news, activities, and services on that page.

 

Activity supervisor level is the person who can manage the activities of the main  page and allow the admission of o f members in this activity, and then he will be able to control the relationship among members and the sharing process.

2

 

  Social Network

 

Member ship level this level has a lot of system functionalities, allowing each member to access the following services :

1. 1.   Creating and managing his own account 2. 2.   Sharing the voting system to choose the responsible persons of the higher levels. 3. 3.   Advertising his ideas and any news after getting the supervisor approval through his main page activities. 4. 4.   Managing his own storage area by: adding, updating, and deleting any documents, pictures, or movies. 5. 5.   Searching for any member list and looking for authorization to add those into his friend contact list by sending messages or invitations to them.

Introduction

Blog system is a useful system to serve and enhance user interests, allowing users to create there own clubs, and then user shall support his club with the required fields such as, galleries, events, and activities. Then if other users are interested in a club activities; the user will register for that club and share the same interests and activities.

All the clubs that were established by the system administrator must have supervisor .The administrator implements the terms of the supervisor ’’s selection s selection process by allocating a

3

 

  Social Network

 part of the system s ystem for the election process and through this process, each participant can vote to choose the supervisor for each club.

Club supervisor will be able to manage the club activities and serve all club members requests and needs.

Table of Contents Chapter one: Initiating  …………………………………………………………………………… 1 1.1 Problem Definition Definit ion ………………………………………………………………………….. 1.2

Current

System

…………………………………………………………………………… 1.2.1Description

of

the

…………………………………………………….. …………………………………………………… 1.2.1Description



of

Current

System

Existing

System

3

the

…………………………………………………….. …………………………………………………… ..

3

3

1.3 Scope …………………………………………………………………………… 4 1.4 Scope Excluded ……………………………………………………………………………   4 1.5 Project Objectivities Objecti vities …………………………………………………………………………… . 7 1.6 Opportunities and challenges …………….. …………… ..…………………………………………………… ……………………………………………………   8 Chapter two: System

analysis

………………………………………………………………………… 9 2.1

Feasibility

Study

………………………………………………………………………… 10

4

 

  Social Network

2.1.1

Technical

feasibility

…………………………………………………………………………   10 2.1.2

Economic

feasibility

…………………………………………………………………………   10 2.1.3

Operational

feasibility

……………………………………………………………………………… .. 10 2.2

Information

Gathering

……………………………………………………………………………… .. 11 2.2.1

Sample

of

the

Questionnaire

……………………………………………………………………………..   11 2.3

Stakeholder

…………………………………………………………………………………   14 2.3.1

Users(Member)

………………………………………………………………………………..   14 2.3.2

Administrators

………………………………………………………………………………   14 2.4

List

of

Requirement

……………………..…………………………………………………………   15 2.4.1

Functional

Requirement

………………………………………………………………………………... 15

5

 

  Social Network

2.4.2

Non-Functional

Requirement

…………………………………………………………………………   19 2.5

Cost

Estimating

and

budgeting

………………………………………………………………………………   20 2.6

Online

Club

system

features

…………………………………………………………………………… . 21 2.7

Other

System

Features

………………………………………………………………………………   21 2.8

System

Development

Requirements

…………………………………………………………………. . 22 Chapter

Three:

Project

Design

………………………………………………………………… .. 24 3.1

Class

Diagram

………………………………………………………………………………… .. 25 3.2

Use

Case

Diagram

……………………………………………………………………………………   26 3.3

sequence

Diagram

……………………………………………………………………………   28 3.4

Collaboration

Diagram

………………………………………………………………………… . 40

6

 

  Social Network

3.5

Entity

Relation

…………………………………………………………………………   3.6

48

Table

Design

…………………………………………………………………………   49 3.7

User

Interface

……………………………………………………………………… . Chapter

54

Four

Conclusions

………………………………………………………………………  

62

4.1

Conclusion

…………………………………………………………………… .. 4.2

63

future

Improvements

………………………………………………………………………   Chapter

63

five

References

…………………………………………………………………….

64

5.1

References

……………………………………………………………………..

65

5.2

Appendix

…………………………………………………………………….. 5.2.1

Home

65

Page

……………………………………………………………………

Code 65

7

 

  Social Network

5.2.2

Member

Information

………………………………………………………………….. 5.2.3

67

Club

Login

………………………………………………………………….

69

5.3

Questioner

……………………………………………………………………

72

Table of Figures Figure 1.1: Gantt chart. ……………..…….…………………………………… ……………..…….………… ……………………………………………………… ………………………………. ….

5

Figure 1.1.1: Network Diagram Part 1. ………………………………............................................

6

Figure 1.1.2: Network Diagram Part 2. ….....…………………………………………………………......... Figure

3..1.1:

6

Class

Diagram

……………..………………………………………… ……………..…………… ………………………………………………………… ……………………………….. ….. 25 Figure 3.2.1: Admin Use Case Diagram ………………………………………………………………………….

26 26

Figure 3.2.2: User Use Case Diagram …………………………………………………..……………………….

27 27

8

 

  Social Network

Figure 3.3.1: User Sequence Diagram …………………………………………………..………………………. Figure 3..3.2: User Sequence Diagram

29

………

………………………………………………………………… ... 31 Figure 3.3.3: User Sequence Diagram ………..…………………………………………………………………… . 33 Figure 3.3.4: User Sequence Diagram ……..……………………………………………………………………… . 34 Figure 3.3.5: Admin Sequence Diagram ….……………………………………………………………………… .. 35 Figure 3.3.6: Admin Sequence Diagram ….………………………………………………………………………...  36 Figure 3.3.7: Admin Sequence Diagram ….…………………………………………………………………………  37 Figure 3.3.8: Admin Sequence Diagram ….…………………………………………………………………………  38 Figure 3.4.1: Admin Collaboration Diagram …….…………………………………………………………………… .40 Figure 3.4.2: Admin Collaboration Diagram ………………………………………………………………………… .41 Figure 3.4.3: Admin Collaboration Diagram ………………………………………………………………………… .42

9

 

  Social Network

Figure 3.4.4: Admin Collaboration Diagram ………………………………………………………….………………43   ………………………………………………………….………………43 Figure 3.4.1: User Collaboration Diagram ……………………………………………………… ………………………… …………………………………..………………44 ……..………………44   Figure 3.4.3: User Collaboration Diagram ……………………………………………………… ………………………… ……………………………………..……………45 ………..……………45   Figure 3.4.1: User Collaboration Diagram ……………………………………………………… ………………………… ………………………………………………..…46 …………………..…46   Figure 3.4.1: User Collaboration Diagram ……………………………………………………… ………………………… ………………………………………..…………47 …………..…………47   Figure 3.5.1: Entity Relation  ........………………………………………………………… ........……………………………… ………………………………..………………48 ……..………………48   Figure 3.6.1: Vote Table ……………………………………………………… ………………………… …………………………………………..………..……49 ……………..………..……49   Figure 3.6.2: User Type Table ………………………………..……………………… ………………………… ……..……………………………………………….…49 ……………………….…49   Figure 3.6.3: Activity Table ……………………………..………………………… ………………………… …..………………………………………………….…49 ……………………….…49   Figure 3.6.4: Comment Table ……………………………..………………………… ………………………… …..………………………………………………..…50 ……………………..…50   Figure 3.6.5: Country Table ………………………………..…………………………………………………… 50

10

 

  Social Network

Figure 3.6.6: Member Club Table ...……………………………..…………………………… ...…………………………… ..………………………………………………… ……………………50 50 Figure 3.6.7: Member Table ……………………………..………………………………………………… 51 Figure 3.6.8: Member Friend Table ……………………………..………..……………………………………..51 51 Figure 3.6.9: Member Picture Table ……………………………..…………………………………………….… 52 Figure 3.6.10: Club Table ……………………………..…………………………………………………. 52 Figure 3.6.11: Member Message Table ……………………………..………………………………………………. 53 Figure 3.6.12: Message Table ……………………………..………………………… ………………………… …..……………………………………………….. ……………………..53 53 Figure 3.6.13: Vote Club Table ……………………………..………………………… ………………………… …..……………………………………………….. ……………………..53 53 Figure.3.7.1: Main Page within Club ……………………………..………………………………………………. 54 Figure.3.7.2:

Login

screen.

……………………………..………………………… ………………………… …..……………………………………………….. ……………………..55 55 Figure.3.7.3:

Validation

message.

……………………………..……………………………………………… 56

11

 

  Social Network

Figure.3.7.4: Sign Up. ……………………………..……………………………………….. 57 Figure.3.7.5:

The

main

screen

When

Login

………………………..…………………………………………… 58 Figure

3.7.6:

Edit

Information

screen.

……………………………..…………………………………………….. 59 Figure

3.7.7:

View

Friends

screen.

……………………………..……………………………………………… 60 Figure

3.7.8:

Login

or

Register

to

club.

.

……………………………..…………………………………………… .. 61

12

 

  Social Network

Chapter One Introduction And Background

13

 

  Social Network

1.1 Problem Definition

Communication with others is essential in our daily life, we communicate with our friends, families, families, relatives, relatives, and coworkers etc. but due to to our busy schedules sometimes sometimes due to legitimate responsibilities like work or child-rearing, but just as often due to distractions of modern life seem to make finding time to get together difficult.

Almost all conflicts involve communication problems, as both a cause and an effect. Misunderstandings, resulting from poor communication, can easily cause a conflict or make it worse. Further, once a conflict has started, communication problems often develop because people in conflict do not communicate with each other as frequently, as openly, and as accurately as they do when relationships are not strained. Thus communication is central to most conflict situations.

Internet communications allow us to listen, think, feel, touch, see, and embrace others across distances and across times. Internet communications have become an engagement of social interactions in work, school, and our personal lives. In a perfect world, internet communications simply allow us to stay connected. Now we can communicate in a fraction of second with a person who is sitting in the other part of the world. Today for  better communication, we can avail the facilities of internet; we can communicate for hours with our friends and families.

14

 

  Social Network

It seems nice to make a website that connects people together wherever they are, easily without any limitations.

1.2 Current System 1.2.1  Description of the Current System Current (existing) system

The existing system consisted of a website containing forums where access was granted  by the use of a user name and a password and the user could write a comment only on one subject. The user could not perform any other operations such as adding a friend, sharing information or sending instant messages or uploading images or videos. The user was not allowed to become b ecome a supervisor of the forum.

1.2.2  Description of the Existing System Modified (Updated) system

The website is now modified in the following manner: mann er: With only one user name and password, the user can access any forum in the website and Propose suggestions and other users can vote for the suggestions and if the suggestion obtains enough votes, the idea is put in practice on the website. The administrator of the website is the person who decides if the suggestion received enough votes or not.

15

 

  Social Network

In addition, all not allowed operations mentioned above in the Current system, are now all allowed in the Modified one.

1.3  Scope Our project is a website that enables its users to present themselves in an online profile, accumulate "friends" who can post comments on each other's images, and view each other's profiles.

Through this website, User can make a profile, add friends to it, upload images and share them with his friends.

The general idea of our project is to connect people so they can find out what is going on in the world, they can talk to others who are far away awa y faster and easier than ever.

1.4 Scope excluded

Our System will be developed as a graduation project in four months; this duration will give the scope of the project some limitations. So Social network will be developed with the main functionalities of communication as making profile, sending and receiving messages, and view friends’ profile, add comments on friends’ images, upload images and share them with friends.

16

 

  Social Network

Chatting, Make Groups, Make applications, Playing Games and Interface Customization will be excluded from our project.

Sequencing (Gantt chart) This task describes the project duration estimating and sequencing of each task, with its dependency with any other task, by using Microsoft Project 2003.

Figure 1.1: Gantt chart.

17

 

  Social Network

Figure 1.1.1: Network Diagram Part 1.

Figure 1.1.2: Network Diagram Part 2.

18

 

  Social Network

1.5 Project Objectives The main purpose of our project is to create a website that connect people together so they can connect easily and share their personal information, images and videos with others. They may also use the site to interact with people they already know offline or to meet new people.

Social networks can provide a range of benefits to members of an organization:   Support for learning: Social networks can enhance informal learning and support



social connections within groups of learners and with those involved in the support of learning.   Support for members of an organization: Social networks can potentially potentially be used



 by all members of an organization, and not just those involved in working with students. Social networks can help the development d evelopment of communities of practice.

  Engaging with others: Passive use of social networks can provide valuable



 business intelligence and feedback on institutional services (although this may give rise to ethical concerns).   Ease of access to information and applications: The ease of use of many social



networking services can provide benefits to users by simplifying access to other tools and applications. The Facebook Platform provides an example of how a social networking service can be used as an environment for other tools.

19

 

  Social Network

  Common interface: A possible benefit of social networks may be the common



interface which spans work / social boundaries. This can, however, also be a  barrier to those who wish to have strict boundaries between work and social activities.

1.6 Opportunities and Challenges The popularity and ease of use of social networking services have excited institutions with their potential in a variety of areas. However effective use of social networking services poses a number of challenges for institutions including long-term sustainability of the services; user concerns over use of o f social tools in a work o orr study context; a variety of technical issues and legal issues such as copyright, co pyright, privacy, accessibility; etc. Institutions would be advised to consider carefully the implications before promoting significant use of such services.

20

 

  Social Network

Chapter Two

System Analysis

21

 

  Social Network

2.1 Feasibility Study

A feasibility study assesses the operational, technical, and economic merits of the  proposed project.

2.1.1 Technical Feasibility The current technical resources are sufficient for the new system.

2.1.2 Economic feasibility The time and money that we need to develop this system are suitable and the estimated cost for software and hardware are also available.

2.1.3 Operational feasibility Many internet users may be available to use the website once it has been installed and  published.

A feasibility study decides whether or not the proposed propo sed system is worthwhile.

22

 

  Social Network

2.2 Information Gathering

- internet becomes an essential part in our life, Nowadays, lots of people use the internet daily for searching, shopping and communicating

- The objective set for the questionnaire is to gather some information about the  problems that face people in communicating and dealing with their friends, families etc…  etc… 

2.2.1 Sample of the Questionnaire

The aim of this questionnaire is to study the problems in daily social communications. we need your help to find the solution to make your communicate with your friends and family easily from at any time. Please read the following questions and give me one answer for each question.

1) Do you use the internet? Yes  No

2) How often do you use the Internet? Often

occasionally

always 23

 

  Social Network

1

2

3

4

5

6

7

3) You use Internet for? Searching Data Shopping Communicating Downloading Other, please specify

4) Your Job is? Student Employee Other, please specify

5) How often do you you visit your friends and family? family?  Monthly 1

weekly 2

3

4

Daily 5

6

7

6) Do you like to share your information, images and videos with others? Yes  No

24

 

  Social Network

7) How many of your friends use the internet? Less than 10% 10% - 30 % 40% - 60% 60% - 80 % More than 80%

8) Do use any website to communicate with others? Yes  No

9would you appreciate a website that allows you to communicate, at anytime, with your  buddies? Yes  No 10) How old are you? ≤ 20  20  > 20 10) Do you have any suggestions?

25

 

  Social Network

Thank you for your time… time …  Questionnaires analysis summarized the following: Most of people use the internet daily dail y and they use it for different reasons. Most of them in spite of their job don't visit their friends and relatives.

90% of the people agreed that if there is a website helps them to communicate with their friends and family anywhere anytime they will use it without hesitation.

2.3 Stakehold Stakeholders ers

2.3.1 Users (Members):

The members are called the users of this system; they have to be registered in order to access the system through his/her user name and password. The user can share clubs functionalities.

2.3.2 Administrators:

The administrator of the web site who had the full privilege to access the online club system database and perform r equired equired tasks such as maintenance, modifications … etc.  etc.  

26

 

  Social Network

2.4 List of Requirem Requirements ents

2.4.1 Functional Requirements:-

Client Server Application (System shall provide client side and server side for system users)

Multi User Access Level (System shall provide a multi accesses into system with different privileges)

User Access Level (Login) (System shall provide user access level with limited access level)

Create Account (User shall be able to create account with specific user information form)

View Clubs (User shall be able to search and view web site clubs)

Post Comment (User shall be able to post comment for ant activity when access allowed )

27

 

  Social Network

Post Activity (User shall be able to post an activity into clubs)

Manage Account (User shall be able to manage and modify his own account)

Create Gallery (User shall be able to create his own gallery)

Upload Images (User shall be able to upload picture into his own storage area)

Request to Create Club (User shall be able to create club with request to admin acceptance )

Send Message (User shall be able to send message with all to all privilege)

View Message (User shall be able to view all received messages )

28

 

  Social Network

Add Member (User shall be able to add member by b y sending request for friend)

Search Members (User shall be able to search for members with dynamic d ynamic search technique)

Election for Supervisor (User shall be able to vote to choose clubs supervisors)

Request to be Supervisor (User shall be able to request admin to be a club supervisor)

Admin Access Level (Login) (System shall provide administrator access level with full access on system functionality.)

Create all system objects (System shall allow admin to create all system referenced objects)

Update, Delete all system objects (System shall allow admin to update and delete any create system objects.)

29

 

  Social Network

Receive Message (Admin shall be able to receive message with all to all privileges)

Send Message (Admin shall be able to send message over web site with all to all privileges)

Accept/Reject Supervisor Requests (Admin shall be able to accept or reject users request to be clubs supervisor)

Post Comments (Admin shall be able to post comment for club activities.)

Post Notes (Admin shall be able to post clubs notes)

Create Club (Admin shall be able to create clubs for users)

Create Club Sections (Admin shall be able to manage clubs and create club sections)

30

 

  Social Network

Create Club Gallery (Admin shall be able to create gallery for a specific club)

Upload Club Files (Admin shall be able to upload different extension files for a specific club)

Assign Supervisor (Admin shall be able to assign club supervisor with dynamic selection for supervisor  privileges)

Election Supervisor (Admin shall be able to vote for choose a supervisor for a specific club)

2.4.2 Non-Functional Requirements:

Friendly User Interface (System shall provide all its required forms with as much as possible a friendly user interface.)

Privileges Management (System shall provide each system user with a limitation privileges regarding to the login session.)

31

 

  Social Network

Security (System shall provide a high security to prevent any an y outside attacks.)

High Performance (System shall provide it’s functionality with a high performance process execution as much as possible.)

2.5 Cost estimating and budgeting Phase/Activity Description

Hour

Rate

Total

Program

60

2JD

120JD

Visual Studio and other..

Hardware Maintenance

3

10 JD

30 JD

Format Computer and

comment

download Drivers Requirement gathering

6

3 JD

18 JD

Printing and Transport

Document Printing

1

25JD

25 JD

Documentation

Others Services

7

5 JD

35 JD

Such as Internet…..

Total

77

228JD

32

 

  Social Network

2.6 Online Club System Features:

 

System is a client server application which means it can be used simply; where only needs for a PC and internet connection.

 

System allows the user to be a club supervisor; the user can improve his activities then the elections may assign him as a club supervisor.



  System allows members to share comments on club activities or member galleries.

 

Any user can suggest a new idea to create a new club by contacting the system administrator and get a permission to create the club.

2.7 Other System Features  

System will allow the user to upload applications and share them over the web site then they can be used by club members.

 

Members will be able to play network games over web site.

 

Members will be able to chat through the system.

33

 

  Social Network  

User will be able to create groups and send invitation to other members.

2.8 System Development Requirements: To Implement and develop my website, I choose Microsoft visual studio 2005 to implement my website pages and Microsoft SQLserver 2005 to design my database. I also used Adobe flash Cs3 to make a user friendly interface.

 

Visual Studio 2005

Microsoft Visual Studio is an Integrated Development Environment ([IDE]) from Microsoft. It can be used to develop console and graphical user interface applications along with Windows Forms applications, web sites, web applications, and web services in both native code together with managed code for all platforms supported by Microsoft Windows, Windows Mobile, Windows CE, .NET Framework, .NET Compact Framework and Microsoft Silver light.

 

SQL Server 2005

Microsoft SQL Server is a relational database management system (RDBMS) produced  by Microsoft. Its primary query language is Transact-SQL, an implementation of the ANSI/ISO standard Structured Query Language (SQL) used by both Microsoft and Sybase. SQL Server is commonly used by businesses for small- to medium-sized databases, but the past five years have seen greater adoption of the product for larger enterprise databases.

34

 

  Social Network

 

Adobe CS4 Flash

Adobe Flash (previously called Macromedia Flash) is a multimedia platform originally acquired by Macromedia and currently developed and distributed by Adobe Systems. Since its introduction in 1996, Flash has become a popular method for adding animation and interactivity to web pages; Flash is commonly used to create animation, advertisements, and various web page components, to integrate video into web pages, and more recently, to develop rich Internet applications.

 

Rational Rose

Rational Rose is an object-oriented Unified Modeling Language (UML) software design tool intended for visual modeling and component construction of enterprise-level software applications. In much the same way a theatrical director blocks out a play, a software designer uses Rational Rose to visually create (model) the framework for an application by blocking out classes with actors (stick figures), use case elements (ovals), objects (rectangles) and messages/relationships (arrows) in a sequence diagram using drag-and-drop symbols. Rational Rose documents the diagram as it is being constructed and then generates code in the designer's choice of C++, Visual Basic, Java, Oracle8, CORBA or Data Definition Language.

 

Microsoft Office

 

Ms Project 2003

35

 

  Social Network

Chapter Three

Project Design

 

36

 

  Social Network

3.1 Class Diagram Blog System Class Diagram see figure 3.1.1

Figure 3..1.1: Class Diagram

37

 

  Social Network

3.2 Use Case Diagram

Admin Use Case Diagram User Use Case Diagram

See Figure 3.2.1 See Figure 3.2.2

Figure 3.2.1: Admin Use Case Diagram

38

 

  Social Network

Figure 3.2.2: User Use Case Diagram

39

 

  Social Network

3.3 Sequence Diagram User Sequence Diagram

See Figure 3.3.1

Admin Sequence Diagram

See Figure 3.3.5

40

 

  Social Network

Figure 3.3.1: User Sequence Diagram

41

 

  Social Network

From the web interface the user should login to the system to to be able to send messages, view inbox etc. the user can select from the menu view inbox so he can view, reply or delete the received messages. The user will be also able to view outbox so he can view the messages he sent. He can also select new message to send a message to one of his friends or any other user (registered user which is not in his friend list).

42

 

  Social Network

Figure 3..3.2: User Sequence Diagram

43

 

  Social Network

From the web interface the user can login to the system by entering his username and  password so he will be able to view his pr ofile, ofile, view his friends’ profiles, profiles, add new friends, upload images and videos and share them with friends, send messages, view inbox and outbox etc.

The user can search for other users by email or name or city so after the search result is displayed, he can send message or add this user only if this user is already registered in the website.

44

 

  Social Network

Figure 3.3.3: User Sequence Diagram

45

 

  Social Network

Figure 3.3.4: User Sequence Diagram

46

 

  Social Network

Figure 3.3.5: Admin Sequence Diagram

47

 

  Social Network

Figure 3.3.6: Admin Sequence Diagram

48

 

  Social Network

Figure 3.3.7: Admin Sequence Diagram

49

 

  Social Network

Figure 3.3.8: Admin Sequence Diagram

50

 

  Social Network

From the web interface the administrator can choose one of the listed menus (Country, City) , after choosing one of them, he can select from the two displayed options(add and search).if he chooses chooses add the corresponding page will will be displayed displayed so he can enter the required information to perform the adding process. If he entered any wrong data he will  be informed about it, otherwise the adding process will be performed successfully. successfully.

If he chooses search, the corresponding page will be displayed so he can enter the information he wants to search for. After searching, the results will be displayed so he can update or delete one of the displayed results.

If he chooses update, the corresponding page will be displayed so he can enter the required information to perform the updating process. If he entered any wrong data he will be informed about it, otherwise the updating process p rocess will be performed successfully. If he chooses delete, the system will check if the selected items can be deleted, otherwise the administrator will be informed about it.

51

 

  Social Network

3.4 Collaborat Collaboration ion Diagram Diagram:: User Collaboration Diagram

See Figure 3.4.1

Admin Collaboration Diagram

See Figure 3.4.5

Figure 3.4.1: Admin Collaboration Diagram 52

 

  Social Network

Figure 3.4.2: Admin Collaboration Diagram

53

 

  Social Network

Figure 3.4.3: Admin Collaboration Diagram

54

 

  Social Network

Figure 3.4.4: Admin Collaboration Diagram

55

 

  Social Network

Figure 3.4.1: User Collaboration Diagram

56

 

  Social Network

Figure 3.4.3: User Collaboration Diagram

57

 

  Social Network

Figure 3.4.1: User Collaboration Diagram

58

 

  Social Network

Figure 3.4.1: User Collaboration Diagram

59

 

  Social Network

3.5 Entity Relation

Figure 3.5.1 : Entity Relation Diagram 

60

 

  Social Network

3.6 Table Design

Vote Table

Figure 3.6.1 :Vote Table

User Type Table 

Figure 3.6.2 :User Type Table

Activity Table

Figure 3.6.3 :Activity Table

61

 

  Social Network

Comment Table

Figure 3.6.4: Comment Table

Country Table

Figure 3.6.5: Country Table

Member Club Table

Figure 3.6.6: Member Club Table

62

 

  Social Network

Member Table

Figure 3.6.7: Member Table

Member Friend Table

Figure 3.6.8: Member Friend Table

63

 

  Social Network

Member Picture

Figure 3.6.9: Member Picture Table

Club Table

Figure 3.6.10: Club Table

64

 

  Social Network

Member Message

Figure 3.6.11: Member Message Table

Message Table

Figure 3.6.12: Message Table Vote Club Table

Figure 3.6.13: Vote Club Table

65

 

  Social Network

3.7 User Interface

Figure.3.7.1: Main Page within Club

66

 

  Social Network

Figure.3.7.2: login screen. From this screen screen the user will enter his Email and Password.

67

 

  Social Network

Figure.3.7.3: Any error in entering the Email or password will expose a validation message.

68

 

  Social Network

Figure.3.7.4: Sign Up.

69

 

  Social Network

Figure.3.7.5: The main screen that appears appe ars to the user after login to the system

70

 

  Social Network

Figure 3.7.6: Edit Information screen, from this screen user can edit his personal information.

71

 

  Social Network

Figure 3.7.7: View Friends screen, from this screen user can view his friends, profile, Gallery and send messages.

72

 

  Social Network

Figure 3.7.8: Login or Register to club.

73

 

  Social Network

Chapter Four

Conclusions And Future Improvements

74

 

  Social Network

4.1 Conclusion

Communication is essential in our social life and with the technology revolution nowadays, we can communicate in a fraction of second with a person who is sitting in the other part of the world. Sometimes we don’t have time to visit our friends, families even our neighbors who live one or two blocks away of us But with the Social Network website we can connect with our beloved ones in a fraction of second.

4.2 Future improvements

Our website has been developed as a graduation project in four months; this duration gave the scope of the project some limitations, so we are looking forward to improving this website and take into consideration all scope excluded points in the future, as an example for those points we mention some of o f them:

 

Chatting

 

Make Groups

 

Make applications

 

Playing Games

 

Interface Customization

75

 

  Social Network

Chapter Five References And Appendix

76

 

  Social Network

5.1 References Topics t

System Analysis and Design 6 ,prentice hall Kendal & Kendal. t

Ian samervill, Software engineering 8  . http://”www.w3schools.com . learn . learn asp.net http://www.naftatrade.com/1000h.html  

5.2 Appendix 5.2.1 Home Page Code Partial Class HomePage Partial  Class HomePage Inherits System.Web.UI.Page Inherits System.Web.UI.Page Dim Managment As  Dim Managment As New ManagmentClass New ManagmentClass Dim Con  Con As As   New Data.SqlClient.SqlConnection( New Data.SqlClient.SqlConnection("" "") ) Dim Dim Cmd As Dim Cmd As   New Data.SqlClient.SqlCommand( New Data.SqlClient.SqlCommand("" "", , Con) Dim DT As Data.DataTable Dim DT As Data.DataTable Dim DA As Data.SqlClient.SqlDataAdapter Dim DA As Data.SqlClient.SqlDataAdapter Dim AR() As Integer Dim AR() As  Dim R As TableRow Dim R As TableRow Dim C As TableCell Dim C As TableCell Dim Counter As  Dim Counter As Integer Integer =  = 0 Protected Protected   Sub Page_Load( Sub Page_Load(ByVal ByVal sender  sender As As   Object, Object, ByVal ByVal e  e As  As  Me.Load System.EventArgs) Handles  Handles Me.Load If   Not IsPostBack Not IsPostBack Then If Session("LoginClub" Session( "LoginClub") ) = "" Session("ClubID" Session( "ClubID") ) = "" 'Update User Active 'Managment.UpdateUserActive(Date.Now.Date, False) Con.ConnectionString = "Data Source=.\SQLEXPRESS;AttachDbFilename=C:\BlogSystemWebsite\Database\Blog System.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True" Cmd.Connection = Con Cmd.CommandText = "SELECT * FROM Club"

77

 

  Social Network

DT = New Data.DataTable New Data.DataTable DA = New New    Data.SqlClient.SqlDataAdapter(Cmd) DA.Fill(DT) ' Dim i As Integer = DT.Rows.Count For i For  i As  As Integer = Integer To DT.Rows.Count To DT.Rows.Count - 1 If If Counter  Counter = = 0 0 Then R = New TableRow New TableRow End  End If Counter += 1 New TableCell  TableCell C = New C.Text = "<a href='ClubHomePage.aspx?p=" & href='ClubHomePage.aspx?p=" & ='Club/" &  & DT.Rows(i)(0) & ".jpg' width DT.Rows(i)(0) & "'><img src ='Club/" =200 height =200 /></a>" R.Cells.Add(C) If Counter  Counter = 4 Or i Or i = DT.Rows.Count - 1 Then If Table1.Rows.Add(R) Counter = 0 End If End  Next

End If End  End  End  Sub End  End  Class.

78

 

  Social Network

5.2.2 Member Information Partial Partial   Class MemberInformation Class MemberInformation Inherits System.Web.UI.Page Inherits System.Web.UI.Page Dim managment As  Dim managment As New ManagmentClass New ManagmentClass Protected   Sub Page_Load( Sub Page_Load(ByVal ByVal sender  sender As As   Object, Object, ByVal ByVal e  e As  As  Protected System.EventArgs) Handles  Handles Me.Load Me.Load If   Not IsPostBack Not IsPostBack Then If Response.Buffer = True Response.CacheControl = "no-cache" Response.AddHeader("Pragma" Response.AddHeader( "Pragma", , "no-cache" "no-cache") ) Response.Expires = -1441 If If Session(  Session("MemberID" "MemberID") ) = Nothing Nothing   Then Response.Redirect("HomePage.aspx" Response.Redirect( "HomePage.aspx") ) Else If Session( If  Session("Admin" "Admin") ) = "Admin"  "Admin" Then Menu1.Visible = True Else Menu1.Visible = False End  End  If Session("Club" Session( "Club") ) = "" Session("FriendID" Session( "FriendID") ) = "" Dim ds Dim  ds As Data.DataSet As Data.DataSet = managment.GetMember(Session("MemberID" managment.GetMember(Session( "MemberID")) )) If ds.Tables(0).Rows.Count  ds.Tables(0).Rows.Count > 0 Then If If ds.Tables(0).Rows(0)( If  ds.Tables(0).Rows(0)("Name" "Name").ToString ).ToString <> ""  "" Then txtCountry.Text = ds.Tables(0).Rows(0)("Name" ds.Tables(0).Rows(0)( "Name").ToString ).ToString End   If End If ds.Tables(0).Rows(0)( If  ds.Tables(0).Rows(0)("Birthdate" "Birthdate").ToString ).ToString <> ""  ""  Then

txtDate.Text = "Birthdate").ToString ).ToString ds.Tables(0).Rows(0)("Birthdate" ds.Tables(0).Rows(0)( End   If End If ds.Tables(0).Rows(0)( If  ds.Tables(0).Rows(0)("Email" "Email").ToString ).ToString <> ""  ""  Then txtEmail.Text = "Email").ToString ).ToString ds.Tables(0).Rows(0)("Email" ds.Tables(0).Rows(0)( End End   If If ds.Tables(0).Rows(0)( If  ds.Tables(0).Rows(0)("LastName" "LastName").ToString ).ToString <> ""  ""  Then txtLastName.Text = ds.Tables(0).Rows(0)("LastName" ds.Tables(0).Rows(0)( "LastName").ToString ).ToString End   If End If ds.Tables(0).Rows(0)( If  ds.Tables(0).Rows(0)("Mobile" "Mobile").ToString ).ToString <> ""  ""  Then txtMobile.Text = ds.Tables(0).Rows(0)("Mobile" ds.Tables(0).Rows(0)( "Mobile").ToString ).ToString

79

 

  Social Network

End If End  If ds.Tables(0).Rows(0)( If  ds.Tables(0).Rows(0)("FirstName" "FirstName").ToString ).ToString <> ""  ""  Then txtName.Text = ds.Tables(0).Rows(0)( ds.Tables(0).Rows(0)("FirstName" "FirstName").ToString ).ToString End   If End Dim Male Dim  Male As As   Boolean Male = ds.Tables(0).Rows(0)("IsMale" ds.Tables(0).Rows(0)("IsMale") ) If Male  Male = True  True Then If RBMale.Checked = True Else RBFemale.Checked = True End If End  Image1.Width = "200" Image1.ImageUrl = "~/Member/" & "~/Member/"  & Session("MemberID" Session("MemberID") ) & ".jpg" End If End  End  End  If End  End  If End Sub End  End  End  Class

80

 

  Social Network

5.2.3 Club Login

Partial Partial   Class ClubLogin Class ClubLogin Inherits System.Web.UI.Page Inherits System.Web.UI.Page Dim managment As  Dim managment As New ManagmentClass New ManagmentClass Protected   Sub Button1_Click( Sub Button1_Click(ByVal ByVal sender  sender As  As Object Object, , ByVal ByVal e  e As As    Protected System.EventArgs) Handles Button1.Click Handles Button1.Click Dim ds  ds As As Data.DataSet  Data.DataSet = managment.GetLogin(txtEmail.Text, Dim txtPassword.Text) If ds.Tables(0).Rows.Count > 0 Then If ds.Tables(0).Rows.Count Dim MemberID Dim  MemberID As  As Integer = Integer = ds.Tables(0).Rows(0)("MemberID" ds.Tables(0).Rows(0)("MemberID") ) Session("MemberID" Session( "MemberID") ) = MemberID Dim i  i As  As Integer = Integer = Session("ClubID" Session("ClubID") ) Dim Dim Dim dss  dss As As Data.DataSet  Data.DataSet = )) managment.CheckMemberClub(MemberID, Session("ClubID" Session("ClubID")) If If dss.Tables(0).Rows.Count  dss.Tables(0).Rows.Count > 0 Then Session("Club") Session("Club" ) = "Club" Response.Redirect("Pictures.aspx" Response.Redirect( "Pictures.aspx") ) Else If Session( If  Session("LoginClub" "LoginClub") ) <> "LoginClub"  "LoginClub" Then managment.AddMemberToClub(MemberID, Session("ClubID" Session( "ClubID")) )) Dim a  a As  As String Dim a = MsgBox("The MsgBox("The operation has been successfully", successfully", MsgBoxStyle.OkCancel, "Register to club") club") If If a  a = 1 Then Session("Club" Session( "Club") ) = "Club" Response.Redirect("Pictures.aspx" Response.Redirect( "Pictures.aspx") ) Else Response.Redirect("HomePage.aspx" Response.Redirect( "HomePage.aspx") ) Else

End If End 

Label2.Visible = False Label1.Visible = True End  End  If End  End  If Else Label1.Visible = True Label2.Visible = False End  End  If End  End  Sub Protected  Protected  Sub Page_Load( Sub Page_Load(ByVal ByVal sender  sender As As   Object, Object, ByVal ByVal e  e As  As  Me.Load System.EventArgs) Handles  Handles Me.Load If If   Not IsPostBack Not IsPostBack Then Label1.Visible = False Label2.Visible = False

81

 

  Social Network

End If End  End Sub End  End  End  Class

5.3 Questioner

Sponsor Documents

Or use your account on DocShare.tips

Hide

Forgot your password?

Or register your new account on DocShare.tips

Hide

Lost your password? Please enter your email address. You will receive a link to create a new password.

Back to log-in

Close