You are on page 1of 146

Muhammad Ikram ul haq

For My Classes Digital Library System

CHAPTER 1.................................................................................................................7

Muhammad Ikram Ul Haq


1 Introduction.............................................................................................................8 1.1 Purpose.....................................................................................................................................8 1.2 Project Scope............................................................................................................................8 1.4 Extra Features.......................................................................................................................9

1.4.1 Ajax......................................................................................................................................9 1.4.2 960 Grid view.......................................................................................................................9 1.4.3 TextboxWatermark..............................................................................................................9 1.4.3 Autocomplete Textbox.........................................................................................................9 1.4.4 Password Strength.............................................................................................................10 1.4.5 Tabs...................................................................................................................................10 1.5. Glossary................................................................................................................................10 1.6. References............................................................................................................................10 CHAPTER 2...............................................................................................................11 2 Project Description.................................................................................................12 2.1 Project Features......................................................................................................................12 2.2 Tools.......................................................................................................................................13 2.3 SWOT analysis of the project and tools...................................................................................13 2.3.1 STRENGTHS......................................................................................................................14 2.3.2 WEAKNESSES....................................................................................................................14 2.3.3 OPPORTUNITIES................................................................................................................14 2.3.4 THREATS...........................................................................................................................14 2.4 Quality Assurance:..................................................................................................................15 2.5 Software Testing:....................................................................................................................15 2.5.3.2 Functions to be tested:.............................................................................................17 CHAPTER 3...............................................................................................................28 3 Literature Review...................................................................................................29 3.1 Background.............................................................................................................................29 3.2 Summary................................................................................................................................30 3.3 Conclusion..............................................................................................................................30 CHAPTER 4...............................................................................................................30 4 Software Engineering Methodology.........................................................................31 4.1 Summary................................................................................................................................31 CHAPTER 5...............................................................................................................33

Page 2 of 146

Muhammad Ikram Ul Haq


5 Requirements Specification.....................................................................................34 5.1 Functional Requirements........................................................................................................34 5.2 Nonfunctional Requirements...................................................................................................34 5.3 Other Nonfunctional Requirements.........................................................................................35 5.4 Performance Requirements....................................................................................................35 5.4.1 Safety Requirements........................................................................................................36 5.4.2 Security Requirements.....................................................................................................36 CHAPTER 6...............................................................................................................36 6 Coding Description..................................................................................................37 6.1 Code for Login Student Member.............................................................................................37 6.2 Code for Logout......................................................................................................................38 6.3 Code for Member Registration................................................................................................38 6.4 Code for Checking Member Duplication..................................................................................39 6.5 Code for Requesting Digital Contents.....................................................................................39 6.6 Code for Downloading Digital Contents...................................................................................40 6.7 Code for Forum Post...............................................................................................................41 6.8 Code for Comments on Post....................................................................................................42 6.9 Code for Recover Password.....................................................................................................42 6.10 Code for Change Password...................................................................................................43 6.11 Code for Feedback................................................................................................................43 6.12 Code for Request Digital Contents........................................................................................44 CHAPTER 7...............................................................................................................45 7 System Analysis......................................................................................................46 7.1 USE CASES..............................................................................................................................46 7.1.1 Use Case 1: [Student Request for Registration]................................................................46 7.1.2 Use case 2: [Confirm Registration]...................................................................................47 7.1.3 Use case 3: [Forum/Topic Discussion]...............................................................................47 7.1.4 Use case 4: [Download Study Material].............................................................................48 7.1.5 Use case 5: [Search Web Directory/Links]........................................................................48 7.1.6 Use case 6: [Watching News Alerts].................................................................................49 7.1.7 Use case 7: [Watching Video Lectures].............................................................................49 7.1.8 Use case 8: [Send Feedback and Suggestions].................................................................50 7.1.9 Use Case 9: [Student Login]..............................................................................................50 7.1.10 Use Case 10: [Student Logout].......................................................................................51 7.1.11 Use Case 11: [Student Search digital Material]...............................................................51 7.1.12 Use Case 12: [Student Upload digital material]..............................................................52 7.1.13 Use Case 13 : [Student Comment on digital material]....................................................52 7.1.14 Use Case 14: [Student Request digital material]............................................................53

Page 3 of 146

Muhammad Ikram Ul Haq


7.1.15 7.1.16 7.1.17 7.1.18 7.1.19 7.1.20 7.1.21 7.1.22 7.1.23 7.1.24 7.1.25 Use Use Use Use Use Use Use Use Use Use Use Case 15: [Administrator Upload digital material].....................................................53 Case 16: [Administrator Delete digital material]......................................................54 Case 17: [Administrator Update digital material].....................................................54 Case 18: [Administrator Delete member].................................................................55 case 19: [Administrator Forum/Topic Discussion]....................................................55 case 20: [Administrator view feedback]...................................................................56 case 21: [Administrator News Alerts].......................................................................56 case 22: [Administrator E-mail notification].............................................................57 case 23: [Administrator Add categories]..................................................................57 case 24: [Administrator Approved uploaded material].............................................58 case 25: [Administrator update student Data].........................................................58

7.2 Main Use case Diagram..........................................................................................................59 7.3 Class Diagram.........................................................................................................................60 7.4 Domain Model.........................................................................................................................61 7.5 Sequence diagrams................................................................................................................62 7.5.1 Admin Add category (Sequence diagram).......................................................................62 7.5.2 Admin Add News Alert (Sequence diagram)....................................................................63 ................................................................................................................................................63 7.5.3 Admin Approval Page Uploaded By Students (sequence diagram)..................................64 7.5.4 Admin Delete digital contents (sequence diagram).........................................................64 7.5.5 Admin update digital contents (sequence diagram)........................................................65 7.5.6 Admin E-mail Notification (sequence diagram)................................................................66 7.5.7 Admin Feedback reply (sequence diagram).....................................................................66 7.5.8 Admin Forum Management (sequence diagram).............................................................67 .................................................................................................................................................67 7.5.9 Admin Member delete (sequence diagram).....................................................................67 7.5.10 Admin uploads content (sequence diagram)..................................................................68 7.5.11 Student comment digital material.................................................................................68 7.5.12 Student download digital contents (sequence diagram)................................................69 7.5.13 Student feedback (sequence diagram)..........................................................................69 7.5.14 Student makes post in forum (sequence diagram)........................................................70 7.5.15 Student login (sequence diagram).................................................................................70 7.5.16 Student logout (sequence diagram)...............................................................................71 7.5.17 Student view News Alerts (Sequence diagram).............................................................71 7.5.18 Student Request for digital contents (Sequence diagram).............................................72 7.5.19 Student upload digital contents (sequence diagram).....................................................72 7.5.20 Admin update member Record (sequence diagram)......................................................73 7.5.21 Student search page (sequence diagram).....................................................................73 7.5.22 Student registration page (sequence diagram)..............................................................74 7.5.23 Student watch video (Sequence diagram).....................................................................74 7.5.24 Student web directory (Sequence diagram)...................................................................75 7.5.25 Admin Registration confirmation page (sequence diagram)..........................................75 7.6 Activity diagrams....................................................................................................................76 7.6.1 Activity diagram of Student Request for Registration......................................................76 7.6.2 Activity diagram student comment digital contents........................................................76 7.6.3 Activity diagram Student Profile view..............................................................................77 7.6.4 Activity diagram student download digital contents........................................................78

Page 4 of 146

Muhammad Ikram Ul Haq


7.6.5 Activity diagram for student forum..................................................................................79 7.6.6 Activity diagram Student feedback..................................................................................79 7.6.7 Activity diagram student login page................................................................................80 7.6.8 Activity diagram for Watching/Downloading Video Lectures............................................81 7.6.9 Activity diagram student main.........................................................................................82 7.6.10 Activity diagram Student Request.................................................................................83 7.6.11 Activity diagram of Search Contents for Student.........................................................84 7.6.12 Activity diagram Student search web directory.............................................................85 7.6.13 Activity diagram Student uploads digital contents.........................................................85 7.6.14 Activity diagram Student view news alert......................................................................86 7.6.15 Activity diagram Administrator upload digital contents page........................................86 7.6.16 Activity diagram for Administrator Add category...........................................................87 7.6.17 Activity diagram for Administrator delete digital contents.............................................87 7.6.18 Activity diagram of Delete Member for Administrator ...................................................88 7.6.19 Activity diagram for Administrator Delete posts............................................................88 7.6.20 Activity diagram for Administrator login page...............................................................89 7.6.21 Activity diagram for Administrator main page...............................................................90 7.6.22 Activity Diagram Administrator sends E-mail notification..............................................91 7.6.23 Activity diagram for Administrator update digital contents............................................91 7.6.24 Activity diagram for Administrator update member page..............................................92 7.6.25 Activity diagram for Administrator approval of contents uploaded by student..............93 7.6.26 Activity diagram for Administrator confirmation of student registration........................94 7.6.27 Activity diagram for Administrator reply to feedback.....................................................94 7.7 Collaboration diagrams...........................................................................................................95 7.7.1 Admin Add category.........................................................................................................95 7.7.2 Admin add news alert.......................................................................................................95 7.7.3 Collaboration diagram for Student Login..........................................................................96 7.7.4 Admin digital contents delete...........................................................................................96 7.7.5 Admin contents update.....................................................................................................97 7.7.6 Admin E-mail Notification..................................................................................................98 7.7.7 Admin feedback................................................................................................................98 7.7.8 Admin Forum Management...............................................................................................99 7.7.9 Admin member Delete......................................................................................................99 7.7.10 Admin upload digital contents......................................................................................100 7.7.11 Comment digital content..............................................................................................100 7.7.12 Admin Delete Member record.......................................................................................101 7.7.13 Student Download digital material................................................................................102 7.7.14 Student Feed back........................................................................................................102 7.7.15 Student make post in forum.........................................................................................103 7.7.16 Student login page........................................................................................................103 7.7.17 Student Logout.............................................................................................................104 7.7.18 Student view news alert...............................................................................................104 7.7.19 Admin student Registration confirmation......................................................................105 7.7.20 Students Request digital contents................................................................................105 7.7.21 Student Search page....................................................................................................106 7.7.22 Student Registration page............................................................................................107 7.7.23 Student upload digital contents....................................................................................107 7.7.24 Student watch videos...................................................................................................108

Page 5 of 146

Muhammad Ikram Ul Haq


7.7.25 Student search web directory.......................................................................................109 7.7.26 Admin update member record......................................................................................109 7.8 Package diagram..................................................................................................................110 7.9 Physical diagram(Deployment Diagram)...............................................................................111 7.10 State diagram of Student....................................................................................................113 ..................................................................................................................................................113 7.11 State Diagram of Admin......................................................................................................114 7.12 Network Model....................................................................................................................115 7.13 ERD for the proposed system..............................................................................................116 CHAPTER 8.............................................................................................................117 8 GRAFICAL INTERFACES OF APPLICATION................................................................118 8.1 Student Home Page..............................................................................................................118 8.2 Administrator Home Page.....................................................................................................119 8.3 Login (Admin).......................................................................................................................120 8.4 Login (Student).....................................................................................................................121 8.5 Upload Digital Contents [Student]........................................................................................122 8.6 Student Registration Page....................................................................................................123 8.7 EBooks View [Student]..........................................................................................................124 8.8 Watch Video Lectures View [Student]...................................................................................125 8.9 Search EBooks View [Student]..............................................................................................126 8.10 Categories View [Student]..................................................................................................127 8.11 View User [Admin]..............................................................................................................128 8.12 Book View [Admin]..............................................................................................................129 8.13 Edit User [Admin]................................................................................................................130 8.14 Edit Book [Admin]...............................................................................................................131 8.15 Category Management Page [Admin].................................................................................132 8.16 Feedback View [Admin]......................................................................................................133 8.17 Request Content Page [Student].........................................................................................134 8.18 Content Search by Category Page [Student].......................................................................135 8.19 Content Search by Category Page [Student].......................................................................136 8.20 Download Content Page [Student]......................................................................................137 8.21 Student Feedback Page [Student].......................................................................................138 8.22 Forum Management Page [Admin]......................................................................................139 8.23 Web Directory Page [Student]............................................................................................140

Page 6 of 146

Muhammad Ikram Ul Haq


Appendix 1.............................................................................................................141 ASP.NET 4.0 Web Standards:.....................................................................................................141 Code validity:.............................................................................................................................141 Site Navigation:.........................................................................................................................141 Accessibility:..............................................................................................................................141 Separation between design and content:...............................................................................142 Master Pages and Themes:.....................................................................................................142 Software Engineering methodology:.......................................................................................142 RUP building blocks................................................................................................................142 Four Project Lifecycle Phases..................................................................................................143 Inception Phase......................................................................................................................143 Elaboration Phase...................................................................................................................144 Construction Phase.................................................................................................................144 Transition Phase.....................................................................................................................145 References:................................................................................................................................146

CHAPTER 1 INTRODUCTION

Page 7 of 146

Muhammad Ikram Ul Haq

1 Introduction
UOS Digital Library is an educational website for the student of University of Sargodha to get the relevant educational material regarding their university educational need. It will provide students of university to interact with each other, or get online educational queries help. Todays for downloading digital-Educational material many websites are working but majority are not fulfilling the requirement of the students of Universities, these are only developed for making profit through selling these digital materials. Many students cant afford to buy their reference book, handout etc. related to their courses. When all the educational material will available to the students from this application, then student have no need to buy their educational material.

1.1 Purpose
The purpose of Software Requirements Specification (SRS) document is to describe the external behavior of the UOS-DIGITAL LIBRARY. Requirements Specification defines and describes the operations, interfaces, performance, and quality assurance requirements of the UOS-DIGITAL LIBRARY. The document also describes the nonfunctional requirements such as the user interfaces. It also describes the design constraints that are to be considered when the system is to be designed, and other factors necessary to provide a complete and comprehensive description of the requirements for the software. The Software Requirement Specification (SRS) captures the complete software requirements for the system, or a portion of the system. Requirements described in this document are derived from the Vision Document prepared for the UOS-DIGITAL LIBRARY.

1.2 Project Scope


The Proposed Digital Library is build to provide to student the facility of uploading all type of educational digital material like ebooks, lectures, video tutorials or video lectures, relevant to their educational need. It will provide student the facility of requesting any digital material which is not yet available in the library. It will provide easy access to all the digital content by categorization of digital material, and by advance searching techniques used in this proposed application. It will provide a
Page 8 of 146

Muhammad Ikram Ul Haq

educational link directory, where student will navigate to get related digital material. It provides facility to students to communicate with each other to discuss their study problems and get online help. This website will also provide students online video lecture streaming that will be accessed from anywhere. So the resources can be saved. As the time passes this project will be improved and different service will be provided for the easiness of the users. In Future the online audio lecture streaming will be fulfill, or make it to facilitate the student for distance education. The project will be completed in the due date in a reasonable cost. Any problem that will come during the launching of running of the project will be handled in a short time. To serve will be the first priority in the successful running of this project.

1.3 .Out

of scope

This web application doesn't cover the work of university main website.

1.4 Extra Features 1.4.1 Ajax


Ajax is the latest technology that is currently used in dynamic web application. By using Ajax in a web page a sub part is if updated than only that area is updated instead of whole page request from the sever. This thing save the time and also dont make the user annoyed.

1.4.2

960 Grid view

960 grid view is CSS that are currently used by the web professionals for making the interface and structure of the pages. By using this we can easily make changes in the structure of the page.

1.4.3

TextboxWatermark

TextBoxWatermark is an ASP.NET AJAX extender that can be attached to an ASP.NET TextBox control to get "watermark" behavior. When a watermarked TextBox is empty, it displays a message to the user with a custom CSS style. Once the user has typed some text into the TextBox, the watermarked appearance goes away. The typical purpose of a watermark is to provide more information to the user about the TextBox itself without cluttering up the rest of the page.

1.4.3

Autocomplete Textbox

AutoComplete is an ASP.NET AJAX extender that can be attached to any TextBox control, and will associate that control with a popup panel to display words that begin with the prefix typed into the textbox. The dropdown with candidate words supplied by a web service is positioned on the bottom left of the text box.When you have typed more content than the specified minimum word length, a popup will show words or phrases starting with that value. Caching is turned on, so typing the same prefix multiple times results in only one call to the web service.
Page 9 of 146

Muhammad Ikram Ul Haq

1.4.4 Password Strength


PasswordStrength is an ASP.NET AJAX extender that can be attached to an ASP.NET TextBox control used for the entry of passwords. The PasswordStrength extender shows the strength of the password in the TextBox and updates itself as the user types the password. The indicator can display the strength of the password as a text message or with a progress bar indicator. The indicator is displayed when the user begins typing into the TextBox and is hidden from view once the TextBox loses focus.

1.4.5

Tabs

TabContainer is an ASP.NET AJAX Control which creates a set of Tabs that can be used to organize page content. A TabContainer is a host for a number of TabPanel controls. Each TabPanel defines its HeaderText or HeaderTemplate as well as a ContentTemplate that defines its content. The most recent tab should remain selected after a postback, and the Enabled state of tabs should remain after a postback as well.

1.5. Glossary

UOS UOS-DL AJAX E-Books E-Lectures E-Paper CSS HOD

: : : : : : :

University of Sargodha. University of Sargodha-Digital Library. Asynchronous Java Script XML. Electronic Books. : Electronic Lectures. Electronic Papers. Cascading Style Sheet. Head of Department.

1.6. References

Mr. Abid Rafique (HOD, Assistant professor, Department of CS & IT UOS). Dr. Javed Farzand (Assistant professor, Department of CS & IT UOS).

Page 10 of 146

Muhammad Ikram Ul Haq

CHAPTER 2 PROJECT DESCRIPTION

Page 11 of 146

Muhammad Ikram Ul Haq

2 Project Description
In this section the overall description of project will be described. It will include project features, tools and SWOT analysis, quality assurance, software testing.

2.1 Project Features


This website will perform following main functions in order to facilitate the users of the site which are students from different department of University of Sargodha.

Student Registration. Auto Complete Search Option. Forum Discussion and thread posting. Download Educational material. Educational web directory or links. Watch the video lectures. News alerts. Upload Educational Material. Request Educational Material Not Available On System. Response to Requested Material. Searching Of Educational Material. Comments on Digital Contents.
Page 12 of 146

Muhammad Ikram Ul Haq

Categorization of Digital Contents. Feedback and suggestions. Comment on Digital Contents. Top Downloaded Contents. Recent Uploaded Contents. UOS-DL-Channel (For Live Video Lectures, Seminars)

2.2 Tools
This website will be developed by using the Windows 7 environment. Members of the project team have experience with http based web technologies and also with dot Net Environment. Based on the experience and knowledge of the development team and the requirements of the developing website, following technologies and tools will be used in the website development.

Windows 7 OS. Microsoft Visual Studio (SP1) 2010. Microsoft SQL Server 2008. Dot Net Framework (SP1) 4.0. Ajax Control Toolkit .NET4 Adobe Photoshop CS5. MS Visio 2007. Star UML.

2.3 SWOT analysis of the project and tools


A SWOT analysis of this project that includes Web marketing strategy by looking at our websites strengths, overcoming its weaknesses, exploring potential opportunities and reducing the threats faced by us. In this analysis the internal and external forces which will prove favorable and unfavorable for
Page 13 of 146

Muhammad Ikram Ul Haq

our websites objectives. This analysis will also provide a look at our used tools in our project and how they will be useful for us. 2.3.1

STRENGTHS

These are the positive factors that will facilitate us to built a competition and lead us to the success

2.3.2

Our project has some unique and interesting features. Its competitive advantage is it will be updated on the basis of current demand and needs. It offers secure access to the data related to content databases by authentication, asp.net provides near to unbreakable access. Online videos streaming to save resources. This is a simple and user friendly website. Resources will be used at an optimal level Visual Studio enhances productivity

WEAKNESSES

These are the negative factors that get can slow down the development. These are the factors that will describe the weaknesses of our project.

2.3.3

Digital Library has need of windows server that is not like other open source servers free of cost. The developers are students and they do not belong to any software company having good reputation. There is also requirement of registering the server annually.

OPPORTUNITIES

These are the constructive factors of our project these are


Expanding this project to the different university campuses level. This project can be sold at high cost to other educational institutions.

New and interactive features can be added as new technology will come
The lifestyle of public is changing rapidly, every business owner wants its office to be

completely computerized and our software will fit in these changing trends.

2.3.4

THREATS

These are the negative factors that ore outside our control and can slow down our project success, these are
Page 14 of 146

Muhammad Ikram Ul Haq

Leaving or any emergency of the member Electricity shortfall during the development of our project The changing demands of the industry are a big threat.

2.4 Quality Assurance:


Quality assurance assures that the software will be completed fulfilling the functionalities, requirements and standards without errors and any possible problems. It monitors and tries to improve the project from the beginning to the end of the project. Quality assurance should be involved in the project from the start so that the team can understand the problems and concerns. Doing quality assurance from the start also gives time to set up the testing environment and configuration. But the actual testing starts when the plans are written, reviewed and approved based on the documentation.

2.5 Software Testing:


Software testing is the examining of a system or an application under controlled conditions. It intends to make sure that nothing goes wrong.

2.5.1The Testing Process:


The stages in the testing process are:

2.5.1.1 Unit Testing: First of all we have tested the individual components like form
validation, checks on textboxes, combo boxes, buttons, tabs, tab orders, working of data validation in the data grid views.

2.5.1.2 Module Testing: After unit testing, module testing is performed. There are
five modules in our project UPLOAD, SEARCH, AUTHENTICATION, DOWNLOAD and FORUM. The module testing is performed on each of these modules. Errors found during the unit testing and module testing phase were removed on second iteration of coding.

2.5.1.3Sub-System Testing: Database connectivity errors are removed. Interface


errors were detected and removed during sub-system testing. Authentication module is also considered in this testing phase and its interface is designed accordingly. Uploading the digital contents is checked. Search is checked independently and the correct contents are coming during search it is made sure. For to safe storage and correct data storage Regular expressions are applied on every field.

2.5.1.4 System Testing: After getting satisfaction from sub-system testing all the
modules were combined in a single system UOS-DL.
Page 15 of 146

Muhammad Ikram Ul Haq

Errors were removed which were found by the unanticipated interactions between subsystem and system components. All reports and validations of the system would be check, So that the system would meet its functional and non-functional requirements.

2.5.1.5 Acceptance Testing: Acceptance testing would be done by the university


library official after getting approval from the university the website will be in working form INSHALLAH.

2.5.2 Test Plan Strategy:


Our main emphasize is to make a centralized database with access available only to authorized person.

2.5.3 Objective of Test Plan:


Test Plan tells that what the system does. Objectives of the test plan are that anyone who reads this plan can confirm that the system is working properly and according to the requirement specifications.

2.5.3.1Tests to be performed:
1- Numeric text boxes (characters cannot be entered in numeric textboxes). Done by regular expressions. 2- Date Settings (e.g. session date can't be before the university established OR session that does not exist). 3- All the fields are cleared on clicking any of the following buttons Upload, Search, Edit, and Delete or on any of tabs of the application. 4- On entering the data for a new user/book/lecture, if the user/book/lecture is already exist then the data is not stored in the database and duplication of data error is displayed.

Page 16 of 146

Muhammad Ikram Ul Haq

2.5.3.2 Functions to be tested:


1- User Authentication (username and password). 2- Correct Transfer of control to different tabs, or different web pages. 3- Updating the database on each insertion, deletion and editing. 4- Regular expressions are correct. 5- Administrator can access the whole system but other users can access only the specific portions of the system. 6- Response time of the system.

2.6. Test Cases:


Page 17 of 146

Muhammad Ikram Ul Haq

2.6.1 Use Case of Login.


Test Case ID:1 Module Name: Login() Input: Username and Password

Use Case of Login


Functionality: User-name and Password checking Expected Output Actual Output Access allowed on According to expectation. correct Login Successfully message Table-2.6.1 Test Case 1 (use case of login).

Background: It is an important function from security and privacy point of view, if the username and password are verified from database, the user gets access to the system otherwise system will show an error message.

2.6.2. Use case of Change Password.


Test Case ID:2 Module Name: Change Password() Input: Username and Password

Use Case of Change Password


Functionality: Changing the Password

Expected Output Access allowed to change Password change message

Actual Output According to expectation

Table-2.6.2 Test Case 2 (use case of change Password). Background: After login is successfully the user can set his/her own Password.

Page 18 of 146

Muhammad Ikram Ul Haq

2.6.3. Use Case of Admin


Test Case ID:3 Module Name: Update User Info() Input: Username and Password, related info.

Use Case of Admin


Functionality: Add, Modify or Delete accounts

Expected Output Accounts Available to view.

Actual Output According to Expectation.

Table-2.6.3 Test Case 3 (use case of Admin) Background: A user (Power user/ administrator) can modify, delete any kind of Accounts information entered into system, if user is registered and is logged in.

2.6.4 Use Case of Search Digital Contents.


Test Case ID:4 Module Name: Search Contents() Input: Enter the desired Contents Name, Author Name.

Use Case of Search


Functionality: Make search of book, lecture, paper, videos.

Expected Output Book is shown on that is available.

Actual Output According to expectation.

Table-2.6.4 Test case 4 (Use case of Search) Background: Making correct and best search is main module of the Uosebrary.com.

Page 19 of 146

Muhammad Ikram Ul Haq

2.6.5. Use Case of Download Contents


Test Case ID:5 Module Name: Download Contents() Input: After search Contents , click the download link

Download E-book/E-lecture
Functionality: Downloading Of Digital Contents

Expected Output Correct lecture is downloading. Linking is correct.

Actual Output According to the expectation.

Table-2.6.5 Test Case 5 (Use case of Download E-book/E-lecture) Background: After the correct search it is important that correct digital Material is downloading. Correction of links is very important.

2.6.6. Use Case of Requesting Digital contents


Test Case ID:6

Use Case of Requesting digital contents

Module Name: Functionality: Making request for digital Requesting contents that can be fulfilled by Contents() admin/other users.

Input: Fill the respected fields of request form.

Expected Output Request is correctly saved and viewed by admin and other users.

Actual Output According to the expectation.

Table-2.6.6 Test Case 6 (Use case of requesting digital contents)


Page 20 of 146

Muhammad Ikram Ul Haq

Background: If book/lecture after the deep search is not in reach. Make request For the contents.

2.6.7. Use Case of Forum


Test Case ID:7 Use Case of Forum Module Name: Functionality: Make new post. Put Post() Input: Fill the relevant fields of post.

Expected Output Post is correctly displayed and deleted by user.

Actual Output According to the expectation.

Table-2.6.7 Test Case 7 (Use case of Forum) Background: Users can put different questions and make discussion on books lectures, also can give suggestions online. Discuss likeness unlikeness.

2.6. 8. Use Case of Registration


Test Case ID:8 Use Case of Registration Module Name: Functionality: Fill and submit register Register User() form.

Input: Admin Enter the details of student.

Expected Output Actual Output Basic information of the student is stored. And a username and According to the password is sending expectation. to user on his/her EPage 21 of 146

Muhammad Ikram Ul Haq

mail.

Table-2.6.8 Test Case 8 (Use case of registration) Background: information about every student is saved in the Database against a unique Id, so the system should automatically retrieve the required basic information from the database.

2.6.9. Use Case of Logout


Test Case ID:9 Use Case of Logout Module Name: Functionality: safely close the session. Logout() Input: On clicking the logout link.

Expected Output Session is completely destroyed. No page can be viewed without again login.

Actual Output The actual output is according to the expectations.

Table-2.6.9 Test Case 9 (Use case of logout) Background: To completely close the session of a member, so that nobody again access the data without authentication. There is need of logout system.

2.6.10. Use Case of upload Digital contents


Test Case ID:10 upload digital contents Module Name: Functionality: Fill form, modify update Upload library Contents()

Page 22 of 146

Muhammad Ikram Ul Haq

Input: After filling form click the upload button

Expected Output Correct folder is storing digital contents. Linking is correct.

Actual Output According to the expectation.

Table-2.6.10 Test Case 10 (Use case of upload digital contents) Background: For the correct search it is important that correct digital material is uploading. Correction of links is very important.

2.6.11. Use Case of student request for registration


Test Case ID:11 Module Name: Registration Request() Input: After filling form click the submit button

Request for registration


Functionality: Fill form, for getting id and password

Expected Output Correct data is storing in the databases.

Actual Output According to the expectation.

Table-2.6.11 Test Case 11 (Use case of request for registration) Background: For making the account, authentication is required, so registration form is filled by the student to decrease the burden on admin. An ID and password is sent to the student after the authentication.

2.6.12. Use Case of Admin confirm registration


Test Case ID:12

Admin confirm registration


Page 23 of 146

Muhammad Ikram Ul Haq

Module Name: Confirm Registration() Input: After viewing the form click the submit button

Functionality: Admin change the status 'OK'

Expected Output Correct data is storing in the databases.

Actual Output According to the expectation.

Table-2.6.12 Test Case 12 (Use case of Admin confirm registration) Background: For making the account, authentication is required, so registration form is filled by the student to decrease the burden on admin. An ID and password is sent to the student after the authentication.

2.6.13. Use Case of Student Search web directory


Test Case ID:13 Module Name: Search Web Directory() Input: Select Required Category

Student search web directory


Functionality: student search other Elibraries

Expected Output Correct data is storing in the databases. Correctly links are working.

Actual Output According to the expectation.

Table-2.6.13 Test Case 13 (Use case of Student search web directory) Background: Other E-Books and websites links are store in web directory. It is store correctly.
Page 24 of 146

Muhammad Ikram Ul Haq

2.6.14. Use Case of Student watching News Alert


Test Case ID:14 Module Name: News Alerts Input: Student click On Given News

Student watching News Alert


Functionality: student read different news alert

Expected Output Links are correctly working, news are displaying.

Actual Output According to the expectation.

Table-2.6.14 Test Case 14 (Use case of Student watching news alert) Background: To update students news alert are display with time to time. News are correctly displaying and links are correctly displaying is major task.

2.6.15. Use Case of Student watching Video lecture


Test Case ID:15 Module Name: Watch Video() Input: Student click the Play button

Student watching video lecture


Functionality: watching video lecture online

Expected Output Links are correctly working, video are correctly opening.
Page 25 of 146

Actual Output According to the expectation.

Muhammad Ikram Ul Haq

Table-2.6.15 Test Case 15 (Use case of Student watching video lecture) Background: Videos lectures/documentary is store, which can greatly help to Understand the different topics and subjects.

2.6.16. Use Case of Student sends feedback/suggestion


Test Case ID:16 Module Name: Put Feedback()

Student sends feedback/suggestion


Functionality: Getting details from the students what they are liking and unlinking

Input: Student send feedback

Expected Output Feedback is correctly storing.

Actual Output According to the expectation.

Table-2.6.16 Test Case 16 (Use case of Student send feedback/suggestion) Background: Students sends their suggestions to the admin for improvements in the UOS-DL.

2.6.17. Use Case of Delete Contents


Test Case ID:17 Module Name: Delete Contents() Input: Admin click the delete button

Delete Contents
Functionality: Data that is not useful is permanently deleted

Expected Output Digital contents are


Page 26 of 146

Actual Output According to the

Muhammad Ikram Ul Haq

correctly deleting.

expectation.

Table-2.6.17 Test Case 17 (Use case of Admin deletes digital contents) Background: Students sends their suggestions to the admin for improvements in the UOS-DL, and the Digital Content which are not relevant/ beneficial for the students or the contents Uploaded by The student will be deleted if they are not related to the Students educational need.

2.7 Test Environment: 2.7.1 Hardware


Processor: 860 MHz Pentium processor or equivalent (Minimum); 1.2GHz Pentium processor or equivalent (Recommended) RAM: 512 MB (Minimum); 1 GB (Recommended)
Page 27 of 146

Muhammad Ikram Ul Haq

Hard Disk: Up to 1GB of available space may be required CD or DVD Drive: Not required Display: 800 x 600, 256 colors (Minimum); 1024 x 768 high color, 32bit (Recommended) Internet: LAN card or WiFi

2.7.2 Software Supported Operating Systems: Windows Server 2008, Windows


Vista, Windows XP, Windows 7. Microsoft Visual Studio 2010. Microsoft SQL Express 2008. Ajax Control Toolkit. IIS. (Internet Intermediate Server)

CHAPTER 3 LITERATURE REVIEW


Page 28 of 146

Muhammad Ikram Ul Haq

3 Literature Review
Educational websites have a special importance in facilitating the educational services to students. These websites can be specific that can be for some special educational institutions or can be common purposes.

3.1 Background
As the world has become a global village and the technology has entered in every field of life. So the field of education has got a very excellent opportunity to use it. Different educational institutions spread their services online and educate people. Distance Education is a great example of it. In Pakistan
Page 29 of 146

Muhammad Ikram Ul Haq

Virtual University is providing Online Education system through website as well as through TV channels.

3.2 Summary
The purpose of this review is to examine the facilities that are provided by the educational websites. This review will also determine the students interest in using these websites and their motivation. As the student want easiness in his studies as he says technology has come and he should also be facilitated by it. So for this purpose websites have been developed that provide educational services to the students.

3.3 Conclusion
UOS-Digital-Library will provide a web based platform for the students for their studies as well as solutions of their problems regarding to study.

CHAPTER 4 SOFTWARE ENGINEERING METHODOLOGY

Page 30 of 146

Muhammad Ikram Ul Haq

4 Software Engineering Methodology


4.1 Summary
Software engineering methodology is a framework that will be used to structure, plan and control the development of our web based project. The best methodology that will be followed is Rational Unified Process (RUP) [Appendix 1]. RUP[Appendix 1] is based on a set of building blocks, or content elements, describing what are to be produced, the necessary skills required and the step-by-step explanation describing how specific development goals are achieved.

Page 31 of 146

Muhammad Ikram Ul Haq

RUP [Appendix 1] consists of four phases named Inception, Elaboration, Construction and Transition. The reasons why to use this methodology are

Group members can learn along the way, and their various abilities and specialties are more fully employed during the entire lifecycle. Testers start testing early, technical writers begin writing early, and so on. The development process itself can be improved and refined along the way. The entire development process takes into account the changing requirements and integrates them. Risks are usually discovered or addressed during integration. With the iterative approach. Risks and defects can, not only be discovered but addressed, and reduced or eliminated in the middle of integration process. RUP provides a prototype at the completion of each iteration, which makes it easier for the developers to synchronize and implement changes.

So the Rational Unified Process (RUP)[Appendix 1] methodology is designed to work as an online help that provides content, guidelines, processes templates, and examples for all stages of project development. During the development of University of Sargodha Digital Library different necessary changes can be done by using RUP methodology.

Page 32 of 146

Muhammad Ikram Ul Haq

CHAPTER 5 REQUIREMENT SPECIFICATION

Page 33 of 146

Muhammad Ikram Ul Haq

5 Requirements Specification
This chapter will describe the requirements of our project that includes functional and non-functional requirements.

5.1 Functional Requirements


Functional Requirements are those that refer to the functionality of the system, i.e., what services it will provide to the user. As students are the main target group of our website, so we will concern about important functions for students.

To Create an account for the user To give web based forum discussion facility To give the facility to access the digital library (EBooks, E-Lectures, etc.,) To download the desired digital material from the website. To get consultancy about study matters. To put request for digital material that is not yet present on website. To upload any digital material which any student has. To response regarding any requested digital material. To get online watching videos lectures / tutorial facility To get updates and news alerts To get Email Notification regarding new upload , profile edit etc..

5.2 Nonfunctional Requirements


These are main categories of non-functional requirements i. Usability requirements
Page 34 of 146

Muhammad Ikram Ul Haq

It is a requirement that the website will be developed for compatibility with the current IT Environment. ii. Security requirements It is require that it should be secure.

iii. Performance requirements

It is required that the website runs smoothly and fast to get faster access to it.

iv. Portability requirements The website can be visited anywhere in the university campus where internet facility is provided , also visited by the student by their homes.

v. Look & feel requirements The website should be good look and feel very pleasantly. vi. Proper help should be provided A proper help should be provided to use this website in a better way to give the easiness to the user.

5.3 Other Nonfunctional Requirements


The other nonfunctional that can be are

5.4 Performance Requirements


The performance of the website depends upon web server speed and upon network speed. This is web based therefore it also depends upon internet speed.
Page 35 of 146

Muhammad Ikram Ul Haq

We will make such a website that will perform well in all the situations like low speed network as well as high speed so for this purpose we will utilize fewer pictures in our website to make its performance better. 5.4.1

Safety Requirements

Unique passwords and logins are assigned to every user for safety and privacy purpose. No personal or high confidential information of users will be stored on the site. 5.4.2

Security Requirements

The security of the website is judgment of jaw likely it is that the system can resist accidental or deliberate intrusion. The websites system will secure all the information that user enter into the form and these are stored in database are secure by use of Secure Socket Layer (SSL) encryption for all data transmission. Our site takes appropriate precautions to protect our users' information. The account information is located on a secured server.

CHAPTER 6 CODING DESCRIPTION

Page 36 of 146

Muhammad Ikram Ul Haq

6 Coding Description
6.1 Code for Login Student Member
protected void Page_Load(object sender, EventArgs e) { if (Session["id"] != null) // If Session Id Is Not Null Its Mean That Session Is Already Maintained. { if (Request.QueryString["backUrl"] != null) //And Also another page redirected Control On Login Page. { Response.Redirect (Request.QueryString["backUrl"]);//Control Will Automatically Navigate on That page. } else // If Control is Not Redirected From any Page. {Response.Redirect ("Default.aspx");} // Then Redirect it On Home Page. } Username.Focus (); // if session not maintained then focus on username textbox on login page. Notice.Text = ""; } protected void LoginButton_Click(object sender, EventArgs e) { SqlDataReader sr = Data.retQuery ("select member_id, name from [user] where email='" + Username.Text + "' and password='" + Password.Text + "' and status='ok'"); //Query To Check the User Availability if (sr.Read()) // If User Available (Mean Query Read Proper) { Session ["id"] = sr["member_id"].ToString(); // Maintain Session with Unique Id id Page 37 of 146

Muhammad Ikram Ul Haq sr.Close (); // Close the SQL Reader Data.closeConn (); // Close the Maintained SQL Connection if (Request.QueryString["backUrl"] != null) { Response.Redirect (Request.QueryString ["backUrl"]); } // If Login Page Is Called From another Page Redirect Control to That Page. else { Response.Redirect ("Default.aspx"); } //Otherwise Redirect It on Home Page after Successfully Authentication. } else // if member not available then Notice it With Your login Failed With Red Color { sr.Close (); //Close the SQL Reader Data.closeConn (); // Close the SQL Connection Notice.Text = "Your Login Failed"; Notice.ForeColor = System.Drawing.Color.Red; } }

6.2 Code for Logout


protected void Page_Load(object sender, EventArgs e) // On Load Of Logout Page { Session. Abandon (); // Session Will Be Clear / End Response.Redirect ("Default.aspx"); // After Clearance of Session page Will Be Redirect To Home Page. }

6.3 Code for Member Registration


protected void RegisterButton_Click(object sender, EventArgs e) // On Click On Register Button { if (CheckUser()) // If Return True From CheckUser() Function. { Ntc.ForeColor = System.Drawing.Color.Red; Ntc.Text = "User already exists."; //Display This Notice For The Existence Of User. return; //Then Further Code Will Not To Compile. } Ntc.Text = ""; //If Return False From CheckUser (), Then Run Further Query. if (Data.nonQuery("insert into [user] (name,email,rollno,password,department,class,session, semester,creationdate,status)values('" + Name.Text + "','" + Email.Text + "','" + Rollno.Text + "','" + Password.Text + "','"+DropDownList1.SelectedItem+"','"+Classname.Text+"','"+Sessionyear.Text+"', '"+DropDownList2.SelectedValue+"','"+DateTime.Now.ToString("MM-dd-yyyy") + "','pending')")== 1) { RegPanel.Visible = false; // If Query Will Run Successfully Then, Hide the Registration Panel. postReg.Visible = true; // True the Visibility of Notice Panel after Registration. NoticeReg.Text = "Well Come <b>"+Name.Text+"</b> Roll No <b>"+Rollno.Text+"</b>, Page 38 of 146

Muhammad Ikram Ul Haq An Email will be send to You, After Your Authentication and Confirmation by The University Digital Library Admin"; // This Message Will Be Displayed, Email Will Be Send to That User. } Data.closeConn (); // SQL Connection Will Be Close. }

6.4 Code for Checking Member Duplication


public bool CheckUser() { SqlDataReader sr = Data.retQuery ("select member_id from [user] where email='" +Email.Text + "' OR rollno = '" + Rollno.Text + "'"); // Check for The Member Duplication, whether it exist already or Not? if (sr.Read()) // Is Student Already Exist? { sr.Close (); Data.closeConn (); // Close SQL Connection. return true; // Return True for This Function. } Else // Is Student Already Not Exist? { sr.Close (); Data.closeConn (); // Close SQL Connection. return false; // Return False for This Function. } }

6.5 Code for Requesting Digital Contents


protected void Page_Load(object sender, EventArgs e) // On Load Of Request_Lecture Page. { if (Session["id"] == null) // Check For Session, If Session Not Created Then Redirect It To Login Page. { Response.Redirect ("Login.aspx? backUrl=RequestLecture.aspx"); // With the BackUrl of Current Page. } } protected void requestbtn_Click(object sender, EventArgs e) // On Click Of Request Button. { if (Data.nonQuery("INSERT INTO request_Lecture(req_cat_id,req_lec_title,req_lec_author, req_lec_description,req_lec_status,user_id,req_lec_date)VALUES('" + CatList.SelectedItem.Value + "','" + Name.Text + "','" + Author.Text + "','" + Desc.Text + "','pending','" + Convert.ToInt32(Session["id"]) + "','" +DateTime.Now.ToString("MM-dd-yyyy") + "')") == 1) //If == 1 Mean Return True { Label1.ForeColor = System.Drawing.Color.Green; // Color This Message with Green Color. Label1.Text = "Request sent. ; // Display This Message, If Query Run Successfully. Name.Text = ""; Desc.Text = ""; Author.Text = ""; //Blank All the Fields. } else // if Query Not Return True { Label1.ForeColor = System.Drawing.Color.Chocolate; Color This Message with Chocolate Color. Label1.Text = "Request not sent yet! Try again."; // Display This Message To User. Page 39 of 146

Muhammad Ikram Ul Haq } }

6.6 Code for Downloading Digital Contents


private int contentId = 0; // Global Variable For Downloaded Content. protected void Page_Load(object sender, EventArgs e) // On Load of Digital Content Page. { if (Request.QueryString["downloadid"] != null)// If Page Is Load With the Query String of Download Content. { contentId = Convert.ToInt32(Request.QueryString["downloadid"]);// Global Integer Is Equal To Query String. ContentsViews.SetActiveView(DownlaodContentView); // Set Active View For MultiView SqlDataReader sr = Data.retQuery("select Content_Name from [ContentTable] where content_id='" +contentId+ "'"); // Run Query To Get Content_Name. if (sr.Read()) // If Query Run Succesfully. { this.Title = "Downloading "+ sr["Content_Name"].ToString() + " | uosebrary.com"; // Set Page Title. sr.Close(); // Close The SQL Reader. Data.closeConn(); // Close The SQl Connection. } } } protected void DownloadButton_Click(object sender, ImageClickEventArgs e) { contentId = Convert.ToInt32(Request.QueryString["downloadid"]);// Global Integer Equal To Query String. SqlDataReader sr = Data.retQuery("select * from ContentTable where content_id='" + contentId + "'"); if (sr.Read()) // Read The Content Data From Database. { try { string filePath = MapPath(sr["content_url"].ToString()); // read the content path, set it as filePath. string fileName = Path.GetFileName(filePath); // get content name Form the filePath. string fileExt = Path.GetExtension(filePath); // get the Extention From the filePath. string type = ""; // String type variable type if (fileExt != null) // if content extension is not null, mean have extension. { switch (fileExt.ToLower()) // change extension in lower_case. { case ".zip": // If content extension is .zip for content. type = "Application/zip"; // set type is Application/zip. break; case ".chm": type = "Application/chm"; break; case ".pdf": type = "Application/pdf"; break; case ".rar": //if content extension is .chm for content. // set type is Application/chm. // if content extension is .pdf for content. //set type is Application/pdf. // if content extension is .rar for content. Page 40 of 146

Muhammad Ikram Ul Haq type = "application/x-rar-compressed"; // set type is Application/x-rar-compressed. break; } } else { Response.Write("Content Not Available!!"); /* If not read a extension for the content, Its mean the content resources are not available.*/ sr.Close(); // Close the SQL Reader for the content Data. Data.closeConn(); // Close the SQL Database Connetion. } if (type != "") // if Type Variable have Some Extension. { Response.ContentType = type; // Set The Output stream Response has Type equal to Type Variable. } Response.AddHeader("Content-Disposition", "attachment; filename=" + fileName); Response.TransmitFile(filePath); // Downlaod The Content. Downloaded(bookid); // Called The Downlaoded Function for Increment the Downloaded Field. Response.End(); // End The Respose for the output stream. } catch // If Some Exception occur setting the content info. { Response.Write(ex.Message.ToString());// Display the Default Message for the exception. } } else // If query for reading content info not run successfully. { sr.Close(); // Close the SQL reader for content info. Data.closeConn(); // Close the SQL database connection. Response.Write("Error In Reading Contents Info!!"); // write the message for not reading content info. } }

6.7 Code for Forum Post


protected void postSend_Click(object sender, EventArgs e) // On Click Of Forum Post Send Button { if (Data.nonQuery("INSERT INTO post(member_id, post_title, contents, views, posteddate)VALUES('" + Convert.ToInt32(Session["id"]) + "','" + postTitle.Text + "','" + postMessage.Text + "','0','" + DateTime.Now.ToString("MM-dd-yyyy") + "')") == 1) // Run Query For Post Data Insertion. { Notice.ForeColor = System.Drawing.Color.Green; //Color The Message with Green. Notice.Text = "Post Has Been Submitted."; // Display Notice To User That Post Submitted. Notice.Enabled = true; // Enable the Notice Panel for Display of Notice. postTitle.Text = ""; postMessage.Text = ""; // Blank The Post Required Fields. } else { Notice.ForeColor = System.Drawing.Color.Chocolate; // Display Notice That Post Is Not Submitted. Notice.Text = "Post Has Not Submitted Yet! Try again."; } Page 41 of 146

Muhammad Ikram Ul Haq }

6.8 Code for Comments on Post


protected void CommentsButton_Click(object sender, EventArgs e) // On Click Event of Comment Button. { if (Data.nonQuery("insert into [comment] (member_id,comments,posteddate,post_id) values('" + Convert.ToInt32(Session["id"].ToString()) + "','" + Editor.Text + "','" + DateTime.Now.ToString("MM-ddyyyy") + "','" + Request.QueryString["post_id"] + "')") == 1)/* Query Run For The Comment Insertion Against The Post, Whose Id Is Move On Comment Page.*/ { Notice.ForeColor = System.Drawing.Color.Red; Notice.Text = "Comments Added"; // Display The Green Color Notice To User. ListView2.DataBind (); // At the Submission of Comment, It Will Also Display. Editor.Text = ""; // Blank the Field of Comment Editor. } else // If Query Not Run Successfully. { Notice.ForeColor = System.Drawing.Color.Red; // Display the Message in Red Color. Notice.Text = "Comments not Added. Try later we are working on it"; } Data.closeConn (); }

6.9 Code for Recover Password


protected void PassRecoverybtn_Click(object sender, EventArgs e) // On Click of Password Recovery Button. { SqlDataReader sr = Data.retQuery ("select member_id, name, password from [user] where email='" + Email.Text + "' AND rollno = '" + Rollno.Text + "'");// Query Will Run for the Field Filled by User. if (sr.Read()) //If User Exist For The Fields Filled By User, Mean Return True. { Ntc.Text = ""; // Blank the Ntc Text. PassPanel.Visible = false; // Hide the Visibility of PassPanel, Mean Required Filed Panel. PostPass.Visible = true; // Visible The Password Recovery Panel. SmtpClient smtp = new SmtpClient (); // Create an Object Of SMTP Client. MailMessage msg = new MailMessage ();// Create an Object of MailMessage. smtp.Host = "smtp.wateen.net"; // Host For SMTP Client. smtp.Port = 25; // Port for SMTP. MailAddress fromaddress = new MailAddress ("faheemshah_007@yahoo.com", "faheemshah"); msg.From = fromaddress; // Put the Sender Address. msg.To.Add (sr["email"].ToString()); // Add The Receiver Email Address. msg.Subject = "Pass Recovery From University Digital Library";// Subject For Email. msg.IsBodyHtml = false; // Disable the Body Html Text. msg.Body = "Dear <b>" + sr["name"].ToString() + "</b> Your Password Of University Digital Library Is</b>" +sr["password"].ToString() + "</b>"; // Add In The Body Of Message. smtp.Send (msg); // Send This Message. NoticePass.Text = "Dear <b>" +sr["name"].ToString() + "</b> Roll No <b>" +Rollno.Text+ "</b>, An Email has been sent to Your Email By University Admin. </br>, Check Your Email for the Password"; // Display This Message To The User Page 42 of 146

Muhammad Ikram Ul Haq sr.Close (); Data.closeConn (); // Close the SQL Reader. // Close the SQL Connection.

} else //If User Not Exist In Library, Mean Return False. { Ntc.ForeColor = System.Drawing.Color.Red; Ntc.Text = "User With This Email & Roll No Is Not Exist In Library.";// Display Notice To User. sr.Close (); Data.closeConn (); } }

6.10 Code for Change Password


protected void Page_Load(object sender, EventArgs e) { If (Session ["id"] == null) // Check For Session, If Session Not Created Then Redirect It To Login Page. { Response.Redirect ("Login.aspx? backUrl=MyProfile.aspx"); // With the BackUrl of Current Page. } SqlDataReader sr = Data.retQuery ("select * from [user] where member_id='" + Convert.ToInt32 (Session ["id"]) + "'"); // Run Query for Member of Session Id. if (sr.Read()) { OldPass.Text = sr["password"].ToString();// Fill Old Password Text Filed With User Previous Password. } } public void passChangeBtn_Click(object sender, EventArgs e) // On Click Of Change Password Button. { if (Data.nonQuery("update [user] set password='" + PassNew.Text + "' where member_id= '" + Convert.ToInt32(Session["id"]) + "'") == 1) // Set The New Password Against Member With Session Id. { SqlDataReader sr = Data.retQuery("select * from [user] where member_id='" + Convert.ToInt32(Session["id"]) + "'"); // Read Info For Member with Session Id. if (sr.Read()) { ChangePass.Visible = false; // Un Visible The Change Password Panel. NoticePass.Text = "Dear <b>"+sr["name"]+"</b>and Roll No <b>"+sr["rollno"]+" </b> Your Password Has Been Changed,, And Email Has Been Sent To You!"; PassChanged.Visible = true; // Visible The Password Changed Panel With Above Notice. Data.closeConn(); // Close The SQL Connection. } } else { Ntc.Text = "There Are Some Error In Reading!"; } }

6.11 Code for Feedback


protected void Page_Load(object sender, EventArgs e) // On Load Of Feedback Page { Page 43 of 146

Muhammad Ikram Ul Haq if (Session["id"] != null) // Session Is Created, The Registered Member Want To Give Feedback. { SqlDataReader sr = Data.retQuery ("select * from [user] where member_id='" + Convert.ToInt32 (Session ["id"]) + "'"); // Query To Read Data of Registered Member. if (sr.Read()) // If Query Run Successfully, Mean Return True. { UserName.Text = sr["name"].ToString(); //Fill User Name Text with Registered Member Name. UserEmail.Text = sr["email"].ToString(); //Fill Email Text with Registered Member Email Id. sr.Close (); //Close SQL Reader. Data.closeConn (); //Close SQL Connection. } else // If Query Not Run Successfully, Mean Return False. { sr.Close (); //Close SQL Reader. Data.closeConn (); //Close SQL Connection. } } } protected void feedBtn_Click(object sender, EventArgs e) // On Click of Feedback Button. { if (Data.nonQuery("INSERT INTO feedback(sender_name, sender_email,sender_feed, feed_date)VALUES('" + UserName.Text + "','" + UserEmail.Text + "','" + UserEmail.Text + "','" + DateTime.Now.ToString("MMdd-yyyy") + "')") == 1) // If Query Run Successfully , Mean Return True. { FeedPanel.Visible = false; // Hide The Feedback Panel. Notice.Text = "Dear! Your Feedback Has Been Sent To Admin, Reply will sent to U By Email"; NoticePanel.Visible = true; // Visible Notice Panel With About Notice. Data.closeConn (); } else // If Query Not Run Successfully , Mean Return False. { Ntc1.Text = "Feedback Not Sent.."; // Display Notice with ,Feedback Not Sent.. } }

6.12 Code for Request Digital Contents


protected void requestbtn_Click(object sender, EventArgs e) // On Click Event of Request Button { ReqPanel.Enabled = false; // disable the request panel. if (Data.nonQuery("INSERT INTO request_content(req_cat_id,req_content_name,author, req_content_description,req_content_status,user_id,req_content_date)VALUES('" + CatList.SelectedItem.Value + "','" + Name.Text + "','" + Author.Text + "','" + Desc.Text + "','pending','" + Convert.ToInt32 (Session["id"]) + "','" + DateTime.Now.ToString("MM-dd-yyyy")+"')") == 1) { // run query for request submission. Label1.ForeColor = System.Drawing.Color.Green; Label1.Text = "Request sent."; // display a message of request submitted. Name.Text = ""; Desc.Text = ""; Author.Text = ""; // blank all the fields for next request. ReqPanel.Enabled = true; // enable the request panel again. } Page 44 of 146

Muhammad Ikram Ul Haq else // if the request query not run successfully. { Label1.ForeColor = System.Drawing.Color.Chocolate; Label1.Text = "Request not sent yet! Try again."; // display a message for not submission of request. ReqPanel.Enabled = true; } }

CHAPTER 7 SYSTEM ANALYSIS

Page 45 of 146

Muhammad Ikram Ul Haq

7 System Analysis
In this chapter the application that is the website will be analyzed to see that how much it can meet the defined and expected requirements. The system is divided into different components and their functionality is decided. The interaction of the system components with one another and the interacting users are analyzed.

7.1 USE CASES


The students are the actors and will use the website and its different features that will be the use cases of the project. The detailed description of possible use cases are given below. 7.1.1 Use Case 1: [Student Request for Registration]

Request for Registration

Student

Figure No.1 Goal: For making account

Use Case 1

Page 46 of 146

Muhammad Ikram Ul Haq

Actor: Student Pre-conditions: A registration form will fill up by giving information to desired fields Post conditions: Checking of account information and store in database Exp1: Filling up the registration form Summary: The student will be register by filling up the information fields given in the registration form and will be stored in database. Admin will approve the registration and send the email to the student.

7.1.2

Use case 2: [Confirm Registration]

Confirm Registration

A dministrator

FigureNo.2

Use Case 2

Goal: Confirmation of registration Actor: Administrator Pre conditions: Registration form will be filled and submit by the student Post conditions: After the confirmation the account information will be stored in the database Exp 1: Confirmation by admin against student request Summary: The admin will just confirm the registration of student on the website after authenticate the information provided. 7.1.3 Use case 3: [Forum/Topic Discussion]
D iscuss T opics U sing F orum

S tudent

FigureNo.3 Use Case 3 Goal: To discuses related topic on the forum Actor: Student Pre condition: Only registered student can disuses on the forum Post condition: Student will see the solutions of his problems on the forum Exp1: Start discussion about any educational topic Summary: Any registered user can start any topic on the forum and others can reply to it.
Page 47 of 146

Muhammad Ikram Ul Haq

7.1.4

Use case 4: [Download Study Material]

S a hS d M te l e rc tu y a ria

S dn tu e t

Figure No.4

Use Case 4

Goal: To download study material in different file formats Actor: Student Pre condition: Only registered user can download Post condition: Downloaded material can be viewed easily on pc Exp 1: Registered user is allowed to download Summary: The student can download any type of study material available at the website in different file formats and can easily view on the pc. 7.1.5 Use case 5: [Search Web Directory/Links]

S a hWbD c ry e c e ire to

S dn tu e t

FigureNo.5

Use Case 5

Goal: To search on the website Actor: Student Pro Condition: Any user can search on the web for his own information Post condition: The results will be shown on the web page Exp 1: Searching through the website Exp 2: Showing of results Summary: Any user who visits the website can search the desired information on the web from search box and the results will be shown on the web page.

Page 48 of 146

Muhammad Ikram Ul Haq

7.1.6

Use case 6: [Watching News Alerts]

See News A lerts

Student

FigureNo.6 Use Case 6 Goal: To watch the news alerts on the web Actor: Student Pre condition: Whenever visit the website the news will be available in a box Post condition: Details of news can be read Exp 1: Clicking on the main news its detail can be read Summary: News alerts will be available on the website to be updated and their details will also be available. Furthermore news about internship and jobs will also be available for the facility of the student. 7.1.7

Use case 7: [Watching Video Lectures]

W a tc h vi d e o s L e c tu re s

S tu d e n t

FigureNo.7 Use Case 7 Goal: To watch the videos lectures on the website Actor: Student Pre condition: Registered users can watch Post condition: On the web site can be watched the videos Exp 1: The video lectures will be run on the web site Summary: Any registered student can watch the video lectures of related subject on the website in default window as well as in full screen mode.

Page 49 of 146

Muhammad Ikram Ul Haq

7.1.8

Use case 8: [Send Feedback and Suggestions]

S e n d Fe e d b a ck

S tu d e n t

FigureNo.8

Use Case 8

Goal: To send feedback to the admin Actor: Student Pre condition: Uosebrary.com is properly open. Post condition: A confirmation message will be given to the user that his feedback has been sent Exp 1: Send the feedback Summary: The registered student can send the feedback and suggestions to the admin for the improvement and changings in the website. 7.1.9 Use Case 9: [Student Login]

Login

Student

FigureNo.9

Use Case 9

Goal: For Login Actor: Student Pre conditions: Student must have an account on uosebrary.com. Post conditions: Checking of account information and updating material on uosebrary.com Exp1: Filling up login information to access the uosebrary.com Summary: The student will be filling up the information fields given in the login page. After the authentication student is allowed to view the uosebrary.com.

Page 50 of 146

Muhammad Ikram Ul Haq

7.1.10 Use Case 10: [Student Logout]

Logout

Student

FigureNo.10

Use Case 10

Goal: For Logout Actor: Student Pre conditions: Student must be first in login position. Post conditions: To completely destroy the session of student so nobody else can use his account. Exp1: Click on logout link to escape from the uosebrary.com Summary: The student when is wanted to leave the page he must have to properly leave the page by clicking on logout link. So nobody else can make misuse of his/her account. 7.1.11 Use Case 11: [Student Search digital Material]

Search digital material


Student

FigureNo.11

Use Case 11

Goal: For searching digital contents Actor: Student Pre conditions: Student must have an account on uosebrary.com and must be in login position. Post conditions: Data is displayed if available. Exp1: Search the E-book on the uosebrary.com by author OR book name. If E-book is available it is show with download link. Summary: To make the digital material easily available search option is made. By this user can easily search his desired material if it is available.

Page 51 of 146

Muhammad Ikram Ul Haq

7.1.12 Use Case 12: [Student Upload digital material]

Upload digital Material


Student

FigureNo.12

Use Case 12

Goal: Upload digital material to help other students. Actor: Student Pre conditions: Student must have an account on uosebrary.com and must be in login position. Post conditions: After uploading digital contents are in pending form. Exp1: Requested E-books, E-lectures are displayed on the main page of web. Student by filling the required information upload the material. Summary: When a student doesn't find relevant material on the UOS-DL he simply makes a request that is displayed on the main page. When someone wanted to help him, he/she simply click on the link after filling the form upload the digital contents or send a link to admin. After the permission from the admin E-book, E-lecture etc. are available. 7.1.13 Use Case 13 : [Student Comment on digital material]

Comment/rate digital Material


Student

FigureNo.13

Use Case 13

Goal: How much book is liked? Actor: Student Pre conditions: Student must have an account on uosebrary.com and in login position. Post conditions: After the comment on digital material it is immediately displayed. Exp1: When a student download and read the book, he make the idea how much this material is relevant to him/her or helpful. Summary: Students can make comments on E-books, E-lectures, etc and can share what they have found interesting in it. So that other students have interest in them.

Page 52 of 146

Muhammad Ikram Ul Haq

7.1.14 Use Case 14: [Student Request digital material]

Request digital material


Student

Figure No.14

Use Case 14

Goal: Wanted to make request for digital material that is not currently available Actor: Student Pre conditions: Student must have an account on uosebrary.com and is in login position. Post conditions: Message is displayed your request has been received. Exp1: When a student after the deep search doesn't found his/her relevant material they can make request for it. Summary: When a student doesn't find relevant material on the Uosebrary.com he simply makes a request that is displayed on the main page. When someone wanted to help him, he/she simply click on the link after filling the form upload the digital contents or send a link to admin. After the permission from the admin E-book, E-lecture etc. are available. 7.1.15 Use Case 15: [Administrator Upload digital material]

Upload digital Material


Administrator

FigureNo.15

Use Case 15

Goal: Administrator Upload digital material to help students. Actor: Administrator Pre conditions: Administrator must be first in login position. Post conditions: After uploading digital contents, data are successfully uploaded message is displayed. Exp1: Requested E-books, E-lectures are displayed to the administrator. Administrator by filling the required information uploads the material. Summary: When a student doesn't find relevant material on the Uosebrary.com he simply makes a request that is displayed on the main page. When Administrator has that material OR new digital material he/she simply upload it and it is immediately available for download.

Page 53 of 146

Muhammad Ikram Ul Haq

7.1.16 Use Case 16: [Administrator Delete digital material]

Delete digital Material


Administrator

Figure No.16

Use Case 16

Goal: Administrator Delete digital material. Actor: Administrator Pre conditions: Administrator must be first in login position. Post conditions: After deleting digital contents, data are successfully deleted message is displayed. Exp1: E-books, E-lectures that not relevant to educational material is deleted by the administrator. Summary: When students upload digital contents they may upload material that is not relevant to the educational need. So this material must be deleted to reduce the space usage on the server. 7.1.17 Use Case 17: [Administrator Update digital material]

Update digital Material


Administrator

Figure No.17

Use Case 17

Goal: Administrator Update digital material to help students. Actor: Administrator Pre conditions: Administrator must be first in login position. Post conditions: After updating digital contents, data are successfully updated message is displayed. Exp1: E-books, E-lectures etc. uploaded by students are displayed to the administrator. Administrator by filling the required information uploads the material. Summary: When a student upload the E-book, E-lecture they may haven't complete information about these material. To update them so that all the fields are available to the searcher material is updated.

Page 54 of 146

Muhammad Ikram Ul Haq

7.1.18 Use Case 18: [Administrator Delete member]

Delete member

Administrator

FigureNo.18

Use Case 18

Goal: Administrator deletes the students. Actor: Administrator Pre conditions: Administrator must be first in login position. Post conditions: After deleting the student account, account is successfully deleted message is displayed. Exp1: When a student makes misuse of uosebrary.com his account is deleted.

Summary: When a student doesn't follow the rules of the uosebrary.com his account will be permanently deleted.
7.1.19 Use case 19: [Administrator Forum/Topic Discussion]

D i s c u s s T o p ic s U s in g F o ru m

S tu d e n t

Figure No.19 Goal: Administrator Delete the irrelevant post Actor: Administrator Pre condition: Administrator must be first login. Exp1: Administrator wanted to delete irrelevant posts.

Use Case 19

Summary: Administrator work is to make check and balance if any post is posted that is
not relevant to education, or annoying somebody it is immediately deleted and strict action is taken against the poster person.

Page 55 of 146

Muhammad Ikram Ul Haq

7.1.20 Use case 20: [Administrator view feedback]

View feedback

Administrator

FigureNo.20

Use Case 20

Goal: Administrator wanted to view feedback Actor: Administrator Pre condition: Administrator must be first login. Post conditions: After viewing the feedback, Administrator makes a reply and conformation of message sent notice appear. Exp1: Administrator when wanted to view the feedbacks posted by the different users he simply click the check feedback. Summary: What a product is doing, where is fault, what is wrong, where is need of improvement these things are mostly, informed by the user of that application. By checking the feedback administrator checks and analyses where we are there application currently lying. 7.1.21 Use case 21: [Administrator News Alerts]

News Alerts

Administrator

FigureNo.21

Use Case 21

Goal: Administrator wanted to put latest news Actor: Administrator Pre condition: Administrator must be first login and open the news alert page. Post conditions: After putting the news fields. News has been store successfully a message is showed. Exp1: Administrator when wanted to post latest news he/she simply fill the relevant fields of news alert page. Summary:To update students what is going on, or what uosebrary.com going to launch is display in the news alert page.

Page 56 of 146

Muhammad Ikram Ul Haq

7.1.22 Use case 22: [Administrator E-mail notification]

E-mail notification

Administrator

FigureNo.22

Use Case 22

Goal: Administrator E-mail notification to students Actor: Administrator Pre condition: Administrator must be first login and open the notification page. Post conditions: After E-mail the notification. Notification has been sent to students successfully message is displayed. Exp1: Administrator when upload the new digital contents he/she sent an E-mail notification to the students. Summary: To update students what is going on, or what uosebrary.com going to launch is E-mail to the students so that they do not miss them. 7.1.23 Use case 23: [Administrator Add categories]

Add categories

Administrator

Figure No.23

Use Case 23

Goal: Administrator Add the new categories for E-books etc. Actor: Administrator Pre condition: Administrator must be first login and open the Add categories page. Post conditions: After filling the add categories page when it is submitted it is immediately updated. Exp1: Administrator when find new type of contents that are not until categories, he/she than add some suitable category for it. Summary: Today search is going on and subjects are changing, so according to this category is also maintain.

Page 57 of 146

Muhammad Ikram Ul Haq

7.1.24 Use case 24: [Administrator Approved uploaded material] Approved Uploaded
Material

Administrator

FigureNo.24.

Use Case 24

Goal: Administrator makes approval for the contents uploaded by students Actor: Administrator Pre condition: Administrator must be first login and open the approval page. Post conditions: After checking the material administrator click the link and make the pending status to yes. Exp1: Administrator when check the material if it is relevant makes approval for it. Summary: In uosebrary.com because student is allowed to share the digital contents that they have. So when they upload it, these are not directly available for download. To make them available administrator change contents status from pending to yes. 7.1.25 Use case 25: [Administrator update student Data] Update Student Data
Administrator

Figure No.25.

Use Case 25

Goal: Administrator makes changes in student data/information. Actor: Administrator Pre condition: Administrator must be first login and open the update page. Post conditions: After updating the profile message is displayed. Exp1: Administrator when wanted to make changes in student basic data use this page. Summary: In uosebrary.com because student is allowed to register by themselves, by simply filling register form. There are chances of wrong information store, to update there is need of proper handling that is done in update student page.

Page 58 of 146

Muhammad Ikram Ul Haq

7.2 Main Use case Diagram


System Unsuccessful authentication <<include>> A uthentication Login <<include>> <<include>> <<include>>
<<extend>>

Successful authentication

Logout

Member

Response For Contents Delete Digital Material Search Digital Material A dministrator Update Digital Material Upload Digital material Delete Member Request for regestration Forum/ Discussion A pprove Registration A dd/ Update member Play video

view News A lert

View Feedback/ Reply

Send Feedback

News A lerts

Comment on Digital Material

Read Notification E- mail Notification Request Digital material A dd Categories A pproval uploaded Content

Response Digital material

Figure No.26.

Main Use Case 26

Page 59 of 146

Muhammad Ikram Ul Haq

7.3 Class Diagram


R e g is t ra t io n +M e m b e r I D + N am e + R o ll N o + C la ss + S e ssio n + S e m e st e r + D e p a rt m e n t + E m a il + P assw o rd + C re at io n _ d at e + R e g ist rat io n ( ) S t u d en t L o g in + U se r N am e + P assw o rd + L o g in ( ) +Lo g o u t ( ) Re g ist e r 1 . . * + Fo rg e t p assw o rd ( ) lo g in
1

E m a il No t ific a t io n + R e cie v e r E ma ilI D + N o t if ica t io n + S e n d N o tif ica t io n ( )

1..*

A d m in ist ra t o r

Fe e d _ b a ck +F e e d _ b ac k_ 1 . . * id +M e ssag e +T it le +d at e
1

+ D o w n lo a d in g ( ) +C h an g e P sw d ( ) + Co m m e n t ( ) +U p lo ad _ D ig it al M at e rial( ) 1 + P la y V id e o L e c t u re s( ) o n f irm re g ist rat io n ( ) 1 +C Ne w s A le rt 1 + S e a rc h ( ) +S t u d e n t U p lo a d A p p ro va l( ) 1 +N e w s_ id + Re sp o se R e q u e st e d+B ro a d c ast L iv e L e c t u re ( )1 () + Ch a n g e p sw d ( ) +S t u d e n t Re c o rd M a n a g e m e n t ( )+N e w s_ t o p ic + U p lo ad D ig it al C o n t e n to( n t e n t Re c o rd M a n a g e m e n t ( )+N e w s_ d e sc rip t io n +C ) + W a t c h L iv e L e c t u re+A)d d / U p d at e N e w s( ) s( + Re q u e st D ig it al C o n+Fo t ( )m M a n ag e m e n t ( ) 1 t e n ru +A d d / U p d at e Ca t e g o ry( ) 1
1 1 1 1 1 1..* 1..* 1..* 1. . * 1 1. . *

1..*

1. . *

1..*

D ire c t o ry +T it le +c at e rg o ry +D isc rip t io n +A d d lin k ( )

E-b o o k

V id e o s

E - le ct u re

R es e a rc h p a p e r ru m / D isc u ss io n Fo

+b o o k_ id + vid e o _ id +L e c _ I d +P ap e r_ id +Fo ru m _ id +B o o k_ n am e + V id e o _ t it le +L e c _ t it le +P ap e r_ t it le +Fo ru m _ t it le +b o o k_ im ag e + V id e o _ d e sc rip t +Lne c _ d e sc rip t io+P ap e r_ d e sc rip t +Fo ru m _ c a t io n io n +b o o k_ d e sc rip t io V id e o _ au t h o r +L e c _ au t h o r +P ap e r_ a u t h o r +Fo ru m _ c a t _ n a m e +n +B o o k_ a u t h o r + vid e o _ u rl +L e c _ d e sc rip t io+P ap e r_ u rl n +M ak e p o st ( ) +B o o k_ u rl + M e m b e r_ id +t y p e +M e m b e r_ id + Ca t _ id + U p lo ad _ d at e + V id e o _ vie w +S t at u s + Fe at u re +L e c _ u rl +D o w n lo ad e d +M e m b e r_ id +c at _ id +D o w n lo ad e d +size +C a t _ id +U p lo ad _ d at e 1 . . * +size +st at u s +U p lo a d _ d at e +F e a t u re +S t at u s +fe at u re 1.. *

+M e m b e r_ id +D o w n lo a d e d +c at _ id 1.. * R e q u e st _ C o n t en t s +S ize +U p lo ad _ d at e +R e q u e st _ id +st a t u s +C at e g o ry +F e at u re d +D e sc rip t io n +M e m b e r_ id 1.. * +A u t h o r


1..*

1.. *

Figure No.27. Class diagram Page 60 of 146

Muhammad Ikram Ul Haq

7.4 Domain Model


R e g is t r a t io n R e g is t e r +M e m be r ID L o g in S t u d e n t A d m in is t r a 1t o r 1 1..* +N am e 1 + U se r N am e + U se r N am e + R o ll N o + P a s s w o rd 1 + P a s s w o rd 1 + C la s s 1 1 + S e s s io n U p lo a d / D o w n lo a d + S e m e st e r 1 1 1 + D e p a rt m e n t 1 1 + E m a il I D S u b m it t / N a v ig a t e U p la o d + P assw o rd 1..* + R e g ist ra t io n _ d a t e * *
1 . . * S u b m it W e b L in k W a t c h W e b D ir e c t o r y D ig it a l M a g t e r ia l 1 . . * D is c u s s F o r u m / D is c u s s io n + W e b L in k U r l + C a te g o ry + D e s c r ip t io n + N ame + C a te g o ry + A u tho r + D e s c r it io n

+ P o s t T it le P u t F e e db a ck + P o s t D e s c r ip t io n 1 . . *S u b m it U r l / P la y V id e o L e c t u r e s 1..* 1..* m 1 . . * V id e o L iv e S t r e a + Vin g o T it le id e + V id e o C a t + C hanne l N ame Fe e d b a c k +V + C h a n n e l D e s c r ip t io n id e o U r l + V id e o A u t h o r + Se n de rN a me + E m a ilI d + F e e d b a c k/ M s g 1..* *

S u b m it U r l

Bro a d ca st

Figure No.28.

Domain Model

Page 61 of 146

Muhammad Ikram Ul Haq

7.5 Sequence diagrams


7.5.1 Admin Add category (Sequence diagram)

Admin

Add Category Page

D.B

1: Show Add Category Form 2: Fill Required Fields 3: Stored Category in D 4: Return 'True ' 5: Category Stored Successfully .B

Figure No.29.

Sequence1

Page 62 of 146

Muhammad Ikram Ul Haq

7.5.2 Admin Add News Alert (Sequence diagram)

Adm in

A News A Page dd lert

D.B

1: Show News Form 2: Fill Required Fields 3: S tored News in D 4: Return 'True ' 5: News Stored Successfully .B

Figure No.30.

Sequence2

Page 63 of 146

Muhammad Ikram Ul Haq

7.5.3 Admin Approval Page Uploaded By Students (sequence diagram)


A in dm D igital C ontent P age D.B

1: D play D is igital M aterail R ord ec 2: C k N U hec ew ploaded 3: C heck S tatus 4: R eturn S tatus 5: S how D etails R ord ec 6: U pdate S tatus To ('O ') k 7: U pdate D atabase 8: U pdate 9: A ppraov C ed ontent S ces uc sfully 'True ' () ('P ending ') 'P ending '

Figure No.31.

Sequence3

7.5.4 Admin Delete digital contents (sequence diagram)


Am d in D ita M te l R c rd ig l a ria e o Pg ae D.B

1: V wD ita M te l ie ig l a ria 2: S a h e rc (K y o e w rd ) 3: R te eF mD e riv ro 4: R tu R s lts e rn e u 5: S o R s lt h w eu 6: W n T D le R c rd a t o e te e o s 7: D le F m e te ro D 8: R tu e rn 9: D le C n n S c e s lly e te o te t u c s fu .B .B

'T e ' ru

Figure No.32.

Sequence4

Page 64 of 146

Muhammad Ikram Ul Haq

7.5.5 Admin update digital contents (sequence diagram)

A d m in

D ig ita l C o n te n t P a g e

C o n te n t E d it P a g e

D.B

1: V ie w C o n t e n t s R e c o r d s 2: S e a r (Khe y w o r d c ) 3: R e te r iv e F .B m D ro 4: R e t u r n R e s u lts 5: S h o w R e s u lt 6: W a n t T o E d it R e c o r7: M o v e W ith S p e c ifie d Id ds 8: R e s u lt F o r S p e c if ie d Id 9: E d it R e q u ir e d F ie ld s 1 0 U p d a te .B D : In 1 1 R e t u 'Tnr u''e : r 1 2 U p d a te C o n t e n t s R e c o r d S u c c e s s fu lly :

Figure No.33.

Sequence5

Page 65 of 146

Muhammad Ikram Ul Haq

7.5.6 Admin E-mail Notification (sequence diagram)


Am d in E a N tific tio P g m il o a in a e D.B

1: S o N tific tio F rm hw o a n o 2: F R q ire F ld ill e u d ie s 3: R trie eS e ificU e E a e v pc s r m il 4: R tu U e E a e rn s r m il 5: S n N tific tinT U e ed o a o sr

6: S tpS rv r m e e 7: M l S n S c e s lly ia e t u c s fu

Figure No.34.

Sequence6

7.5.7 Admin Feedback reply (sequence diagram)

Am d in

F e b c R v wP g e d a k e ie a e

1: S o F e b c s h w e d ak 2: Mv T S e ificF e b c oe o p c e d ak 3: S o F e b c R p F ld h w e d a k e ly ie 4: W R p rite e ly

5: S n Mil ed a 6: Mil S n S c e s lly a e t u c s fu

Figure No.35. Sequence7 Page 66 of 146

Muhammad Ikram Ul Haq

7.5.8 Admin Forum Management (sequence diagram)

Am d in

F ru E it P g o m d ae

D.B

1: F ru P s R c rd o m ot eo 2: D le Irra v n P s e te le a t o t 3: D le P s F m e te o t ro D 4: R tu e rn 5: D le P s S c e s lly e te o t u c s fu 'T e ' ru .B

Figure No.36.

Sequence8

7.5.9 Admin Member delete (sequence diagram)

Adm in

M ber Record Page em

D.B

1: View M bers Records em 2: Search Record 3: Reterive From D 4: Return Results 5: Show Result 6: W To Delete Records ant 7: Delete From D .B .B

8: Return 'True ' 9: Delete M ber Successfully em

Figure No.37.

Sequence9

Page 67 of 146

Muhammad Ikram Ul Haq

7.5.10 Admin uploads content (sequence diagram)


Am d in U lo d D ita M te l p a ig l a ria

1: W n T U lo d at o p a 2: V wF rm ie o 3: F R q ire F ld ill e u d ie 4: U lo d D ita C n n p a ig l o te t 5: C n n In S re o te t fo to d 6: R tu e rn 'Tru ' e ()

7: S re C n n O S rv r to o te t n e e 8: U lo d S c e s lly p a u c s fu 'O '' k

Figure No.38.

Sequence10

7.5.11 Student comment digital material

Registered Student

Digital Material Page

D.B

1: Want To Comments 2: Show Comments Form 3: Fill Required Fields 4: Store Comment 5: Return 'True' 6: Comment Stored Successfully

Figure No.39.

Sequence11

Page 68 of 146

Muhammad Ikram Ul Haq

7.5.12 Student download digital contents (sequence diagram)


Registered Student Digital Material Page Downlaod Page

1: Search Material

2: Search From D .B 3: Dispaly Result 4: Req For Downlaod

5: Downlaod From Server 6: Downlaoding

Figure No.40.

Sequence12

7.5.13 Student feedback (sequence diagram)

Student

FeedBack Page

Admin Inbox

1: Go To 2: Display Feedback Form 3: Write & Send Feedback 4: Send In Admin Inbox 5: Feedback Sent

Figure No.41.

Sequence13

Page 69 of 146

Muhammad Ikram Ul Haq

7.5.14 Student makes post in forum (sequence diagram)


Registered Student Forum Page Other Reg Student D.B

1: Discuss Topic 2: Stored Topic 3: Return 'True ' 4: Successfully Stored 5: Access By Other Reg Students 6: Post & Reply 7: Display Post 8: Get Replies & Replies

Figure No.42.

Sequence14

7.5.15 Student login (sequence diagram)

User

Login page

D.B

1: Login 2: Authentication 3: successufll Authentication

4: Session Created 5: Successful Login

Figure No.43.

Sequence15

Page 70 of 146

Muhammad Ikram Ul Haq

7.5.16 Student logout (sequence diagram)

S dn tu e t

L g u Pg oot ae

1: C kF r L g u lic o o o t

2: E dS s io n es n 3: L g u S c e s lly o o t u c s fu

Figure No.44.

Sequence16

7.5.17 Student view News Alerts (Sequence diagram)

Student

Student H om e Page

N ew Alerts Page

1: Show N ew s Alert 2: C lick F or D etail N ew s 3: M ove T o

4: R eterive F rom.B D 5: D etail Of N ew s

Figure No.45.

Sequence17

Page 71 of 146

Muhammad Ikram Ul Haq

7.5.18 Student Request for digital contents (Sequence diagram)


Registered Student Content Search Page Content Request page D.B

1: Enter Keyword 2: Search(Keyword) 3: Return 'False' 4: Searched Content Not Available

5: Request For Content 6: Dispaly Request Form 7: Fill Required Fields 8: Store Requested Data 9: Return 'True' 10 : Content Requested Successfully

Figure No.46.

Sequence18

7.5.19 Student upload digital contents (sequence diagram)


R g te dS d n e is re tu e t U lo dD ita M te l p a ig l a ria D.B

1: R qF r U lo d e o pa 2: V wF rm ie o 3: F R q ire F ld ill e u d ie 4: U lo dD ita C n n p a ig l o te t 5: S re C n n D ta to d o te t a 6: R tu e rn 'T e ' ru

7: S reC n n O S rv r to o te t n e e 8: U lo dS c e s llyB t p a u c s fu u 'P n in ed g '

Figure No.47.

Sequence19

Page 72 of 146

Muhammad Ikram Ul Haq

7.5.20 Admin update member Record (sequence diagram)


Am d in M m e R c rdP g e b r eo ae D.B

1: V wM m e R c rd ie e b rs e o s 2: S a h e rc (K y o e w rd ) 3: R te eF mD e riv ro 4: R tu R s lts e rn e u 5: S o R s lt h w eu 6: Wn T D le R c rd a t o e te e o s 7: D le F m e te ro D 8: R tu e rn 9: D le M m e S c e s lly e te e b r u c s fu .B .B

'T e ' ru

Figure No.48.

Sequence20

7.5.21 Student search page (sequence diagram)

Registered Student

Content Search Page

Database

1: Enter Keyword 2: Content Search 3: Return 'True ' 4: Display Results

Figure No.49.

Sequence21

Page 73 of 146

Muhammad Ikram Ul Haq

7.5.22 Student registration page (sequence diagram)


New User (Student ) Registration Page D.B

1: Req For Registration 2: Registration Form View 3: Fill The Required Fields 4: Store Member Data 5: Return 'True ' 6: Confirmation Message

Figure No.50.

Sequence22

7.5.23 Student watch video (Sequence diagram)

Registered Student

Search Video Page

D.B

1: Search Video

(Keyword ) 2: Reterive Result 3: Display Results

4: View Results 5: Request For Play

6: Browsing From YouTube Server 7: W atch Video

Figure No.51.

Sequence23

Page 74 of 146

Muhammad Ikram Ul Haq

7.5.24 Student web directory (Sequence diagram)


R g te dS d n e is re tu e t W bD c ryP g e ire to a e D.B

1: S a hE u a n l L k e rc d c tio a in s 2: R tre eL k e iv in s 3: D p yR s lt is la e u 4: V wL k ie in s 5: N v a T L k a ig te o in 6: W bS rv r e e e 7: L kP g B w in in a e ro s g

Figure No.52.

Sequence24

7.5.25 Admin Registration confirmation page (sequence diagram)

Am d in

S d n R c rdP g tu e t e o ae

D.B

1: C e kN wS d n h c e tu e t 2: S a hS d n e rc tu e t 3: R tu e rn 4: D p yR c rd is la e o 5: C n o firmR g tra n e is tio 6: U d teR c rd pa eo 7: R tu e rn 8 :U d teS u c s fu p a c c e s lly 9: S n M il T C n e S d n e d a o o firm d tu e ts 1 : M il S n S c e s lly 1 a e t u c s fu 1 : S tpS rv r 0 m e e 'T e ' ru 'T e ' ru

Figure No.53.

Sequence25

Page 75 of 146

Muhammad Ikram Ul Haq

7.6 Activity diagrams


7.6.1 Activity diagram of Student Request for Registration

Ri ta na es t p e gr i o g

Ft el l s i hfe l l i d

/ I p i c rc n tn re u o t

c fm n oi a n t r i o

D sr d a t e t o a

Figure No.54.

Activity1

7.6.2 Activity diagram student comment digital contents

v w i i ac ne t i d t l o t ns e g

Cm e t r t d i ac ne t o mn ae ig l o t ns t

D p yc m e t i la o mns s

Figure No.55.

Activity2

Page 76 of 146

Muhammad Ikram Ul Haq

7.6.3 Activity diagram Student Profile view

L o g in P a g e

E n t e r U s e & P aasm w o r d r N se

/ I n V a lid / V a lid

C h e c k p r o f ile

C h an g e p a ssw ord

U p d a t e D a ta b a s e s

Figure No.56.

Activity3

Page 77 of 146

Muhammad Ikram Ul Haq

7.6.4 Activity diagram student download digital contents

L g Pg oi ae n

Et r N m ne a e

& Ps w r as od

/ I v li nad / Vli ad

Ue Hm Pg sr o e ae

Et r Ky odF r d i ac ne t s ac ne ewr o i t l o t ns e r h g

Ce kFo Dt b s h c r m aa ae / Nt F u d o on ,F u d on & Pn i g ' ed n '

/ F ud on

& Sts t u a

'O ' k

d s e c ne t v i b eir d o t nAa l la e

Cc F r Dwlo d li k o o n a

Dwlo d ona

Figure No.57.

Activity4

Page 78 of 146

Muhammad Ikram Ul Haq

7.6.5 Activity diagram for student forum

Fr m ou

Mk p s a e ot

v w ot i ps e s

c m e tp s o mn ot

Figure No.58.

Activity5

7.6.6 Activity diagram Student feedback

feedback /suggestion

Fill form subm it

M essage save

Figure No.59.

Activity6

Page 79 of 146

Muhammad Ikram Ul Haq

7.6.7 Activity diagram student login page

L o g in P a g e

E n te r U s e r N&aPm e s w o r d as

/ In v a lid / V a lid

U se r H o m e P a g e

Logout

Figure No.60.
Page 80 of 146

Activity7

Muhammad Ikram Ul Haq

7.6.8 Activity diagram for Watching/Downloading Video Lectures

Ue H m P g sr o e ae

E te K y o F r V e n r e w rd o id o

C e kL kF mD ta a e h c in ro a bs / N tF u d o on ,F u d on &' P n in ed g '

/Fud on

& S tu ta s

'O ' k

V d Aa b e io v ila le

D w lo dF mL kR s u e o n a ro in e o rc

Figure No.61.

Activity8

Page 81 of 146

Muhammad Ikram Ul Haq

7.6.9 Activity diagram student main

Enter User Name & Password

/ Invalid / valid

Display Profile

Search Digital Mterial

Update Profile

Request Didital Material

/ Not Available / Available Change Info Display Result Change Password

Open/Read

Download Save Detail

Figure No.62.

Activity9

Page 82 of 146

Muhammad Ikram Ul Haq

7.6.10 Activity diagram Student Request

Login Page

Enter Name & Password

/ Invalid / Valid

User Home Page

Request Page

/ Request For

Books

Lectures

Research Paper

Thesis

Video

Store In Database

Request In Queue

Figure No.63.

Activity10

Page 83 of 146

Muhammad Ikram Ul Haq

7.6.11 Activity diagram of Search Contents for Student

Search Page

Enter Keyword For Searching

Check From Database / Not Found,Found & 'Pending '

/ Found & Status 'Ok'

Details Available

Figure No.64.

Activity11

Page 84 of 146

Muhammad Ikram Ul Haq

7.6.12 Activity diagram Student search web directory

W Dc r e i t y b r o

sa h i et r er D c y c r o

Ntf ud o on

ceki k hc lns

Figure No.65.

Activity12

7.6.13 Activity diagram Student uploads digital contents

student upload digital content page

Fill the fields

Wrong data

contents saved

Figure No.66.

Activity13

Page 85 of 146

Muhammad Ikram Ul Haq

7.6.14 Activity diagram Student view news alert

s dnpg tu e t a e

N w a rt p g e s le a e

C kfo d ta lic r e ils

Figure No.67.

Activity14

7.6.15 Activity diagram Administrator upload digital contents page

U lo dP g p a ae

E te U lo d dIn n r p a e fo

U lo dD ita C n n p a ig l o te ts

S reInD ta a e to a bs

Figure No.68.

Activity15

Page 86 of 146

Muhammad Ikram Ul Haq

7.6.16 Activity diagram for Administrator Add category

Admin main page

Add categories

Categories stored

Figure No.69.

Activity16

7.6.17 Activity diagram for Administrator delete digital contents

A in view digital contents dm

D elete digital contents

Database successfully updated

Figure No.70.

Activity17

Page 87 of 146

Muhammad Ikram Ul Haq

7.6.18 Activity diagram of Delete Member for Administrator

a m m inp g d in a a e

D le m m e e te e b r

M m e d le d e b r e te

Figure No.71.

Activity18

7.6.19 Activity diagram for Administrator Delete posts

Admin view posts

Delete posts

Figure No.72.

Activity19

Page 88 of 146

Muhammad Ikram Ul Haq

7.6.20 Activity diagram for Administrator login page

Adm in Login Page

Enter N am& Passw ord e

/ Invalid / Valid

Adm in H om e Page

Logout

Figure No.73.

Activity20

Page 89 of 146

Muhammad Ikram Ul Haq

7.6.21 Activity diagram for Administrator main page

Enter UserName & Password

/ Invalid / Valid

Display Profile

Digital Data Inventory Mgt

Member Registration Mgt

Upload New

Download

Notification

Add Member

Delete Data

Upadte Data

Update Member

Delete Member

Approved Member

Update DataBase

Logout

Figure No.74.

Activity21

Page 90 of 146

Muhammad Ikram Ul Haq

7.6.22 Activity Diagram Administrator sends E-mail notification

E-mil n tific tio a o a n

F th re u dfie s ill e q ire ld

s b it um

Ms a es n s c e s lly e s g e t u c s fu

Figure No.75.

Activity22

7.6.23 Activity diagram for Administrator update digital contents

U d t D i a C ne t p ae ig l o t ns t

D l t C ne t e e o t ns e

U d t mt ri p ae ae ls

S v ind t b s s ae aa a e

Figure No.76.

Activity23

Page 91 of 146

Muhammad Ikram Ul Haq

7.6.24 Activity diagram for Administrator update member page


Mme u d tio e br pa n

D le Mme e te e b r

U d t mme p ae e b r

U d ted tas p a e il

S reinD ta a e to a bs

Figure No.77.

Activity24

Page 92 of 146

Muhammad Ikram Ul Haq

7.6.25 Activity diagram for Administrator approval of contents uploaded by student

Admin Home Page

Check New Uploaded

/ Check 'Pending' Status

Books

Lectures

Research Paper

Thesis

Video

Update Status To 'OK'

Update Database

Figure No.78.

Activity25

Page 93 of 146

Muhammad Ikram Ul Haq

7.6.26 Activity diagram for Administrator confirmation of student registration

A i M pg d n a ae m i n

R i t a n eus pg e s to R e s ae gr i q t

s dnap vd t et pr e u o

E-m cn mo a ofr a n i l i t i

Figure No.79.

Activity26

7.6.27 Activity diagram for Administrator reply to feedback

A m v wfe d a k d in ie ebc

Rp e ly

d le e te

Figure No.80. Activity27 Page 94 of 146

Muhammad Ikram Ul Haq

7.7 Collaboration diagrams


7.7.1

Admin Add category


1: Show Add Category Form 2: Fill Required Field 5: Category Stored Successfully Admin Add Category Page

D.B

3:

rue' cord e n 'T etur gor y R 4: R Cate ed Stor

Figure No.81. 7.7.2

Collboration1

Admin add news alert


1: Show News Form 2: Fill Required Field 5: News Store Successfully Admin Add News Alert Page

D.B

Figure No.82.

Collboration2

Page 95 of 146

4:Return 'True' 3: Store News

Muhammad Ikram Ul Haq

7.7.3

Collaboration diagram for Student Login


1 : Display Digital Content Record 2: Check New Upload 5: Show Details 9: Update Status To ('O ') k 10: Approved Contents Successfully Amin Digital Content Page
g') 3: Check Status('Pendin 4: Return Status pending cord 7: Update Re 8: Return 'True'

D.B

Figure No.83. 7.7.4

Collboration3

Admin digital contents delete


1: View Digital M aterial Record 2: S earch Result 5: Show Result 6: W To Delete Record ant 9: Successfully To Delete Adm in Digital M aterial Record P age

esult 3: Retrieve R 4: Return Result 7: D elete R ecord 8: Return'Tru e'

D.B

Figure No.84.

Collboration4

Page 96 of 146

Muhammad Ikram Ul Haq

7.7.5

Admin contents update


1: View Content Record 2: Search Content 5: Show Result 6: Want Edit Record
A in dm
essfully pdateContents Rec Succ ord 12: U

D igital C ontent P age

ecord 3: R etriev C ntent R e o eturn 'True' 4: R

e r pecified Id 8: R sult Fo S 9: E R dit equiredFields

e ov :M

ith W

ifi ec Sp

ed

Id

10 : U pdate Rec ord 11 : R eturn 'True ' D.B

C ontent E P dit age

Figure No.85.

Collboration5

Page 97 of 146

Muhammad Ikram Ul Haq

7.7.6

Admin E-mail Notification

1: Show Notification Form 2: Fill Required Field 5: Send Notificatin To User Admin

6: Smtp Server

Email Notification Page

D.B

l mai ail er E m n Us User E tur : Re peci fic 4 S how 3: S

Figure No.86. 7.7.7

Collboration6

Admin feedback
1: Show Feedbacks 2: Move To Specifi c Feedback 3: Show Feedback Reply Field 4: Write Reply 6:Mail Sent Successfully
A d m in

5: S e n d M a il

F e e d b a c k R e v ie w P a g e

Figure No.87.

Collboration7

Page 98 of 146

Muhammad Ikram Ul Haq

7.7.8

Admin Forum Management


1: Forum Post Record 2: Delete Irralevant Post 5: Delete Post Successfully Admin Forum Edit Page 4: Return 'True' 3: Delete Post D.B

Figure No.88. 7.7.9

Collboration8

Admin member Delete


1: V M ber R ord iew em ec 2: S earc R ult h es 5: S how R ult es 6: W To D ant elete R ord ec 9: S c s uc es fully To D elete A in dm M ber R ord P em ec age

esult 3: R etrieve R es 4: R eturn R ult

ecord 7: D lete R e eturn 'T rue' 8: R

D.B

Page 99 of 146

Muhammad Ikram Ul Haq

Figure No.89. 7.7.10 Admin upload digital contents


1: Request For Upload 2: Vi ew Upload Form 3: Fill Required Fields 4: Upload Digital Content 8: Upload Successfully 'Status:Ok'
Admin

Collboration9

7: Store Content On Server

Upload Page

D.B

Figure No.90. 7.7.11 Comment digital content


1: Want To Comment 2: Show Comments Form 3: Fill Comment Filed
R egistered S tudent

Collboration10

D igital M aterial P age

6: Return 'True' 5: Stored Content Data

D.B

Page 100 of 146

4 Store C m : om ent

5: R eturn 'True'

Muhammad Ikram Ul Haq

Figure No.91. 7.7.12 Admin Delete Member record


1: View Member Record 2: Search Result 5: Show Result 6: Want To Delete Record 9: Successfully To Delete Admin

Collboration11

Member Record Page

3: Retrieve Result 4: Return Result 7: Delete Record 8: Return 'True'

D.B

Figure No.92.

Collboration12

Page 101 of 146

Muhammad Ikram Ul Haq

7.7.13 Student Download digital material


1: Search Material 3: Search Result Registered Student 2: Search From D.B

4: R

Digital Material Page

eq u 6: D est F ow or D nlo o w ad n ing load

5: Download From Server

Downlaod Page

Figure No.93.

Collboration13

7.7.14 Student Feed back


1: G To o 2: Dispaly Feedback Form 3: W rite & Send Feedback 5: Feedback Sent S uccessfully S tudent Feedback Page 4: S end In A in Inbox dm Adm Inbox in

Figure No.94.

Collboration14

Page 102 of 146

Muhammad Ikram Ul Haq

7.7.15 Student make post in forum


1: Create Topic 4: Successfully 8: G Replies et Registered Student Forum Page

7: Disp Post & Replies lay 6: Post & R eplies ts 5: Acce By Other Reg Studen ss

' ue 'T r pic rn To etu d : R t ore 3 S 2:

D.B

O ther Registered Students

Figure No.95. 7.7.16 Student login page


1: Login () 5: Successful login Student

Collboration15

Login page

D.B

tion ica ent () th o n l Au ti sf u en tica ce th uc 3 S 2 Au

Figure No.96.

Collboration16

Page 103 of 146

Muhammad Ikram Ul Haq

7.7.17 Student Logout


2: E n d S e ssio n 1: C lick F o r L o g o u t 3: L o g o u t S u cce ssfu lly S tu d e n t Logout Page

Figure No.97. 7.7.18 Student view news alert


1: S h o w N e w s A le r t 2: C lick F o r D e ta il N e w s S tu d e n t
5: Di sp

Collboration17

S tu d e n t H o m e P a g e

l ay

3 : M o ve T o

De ta ile

dN ew s

4: R e tr ie ve F r o.B D m

N e w s A le r t P a g e

Page 104 of 146

Muhammad Ikram Ul Haq

Figure No.98.

Collboration18

7.7.19 Admin student Registration confirmation


1: Check New Student 4: Dis play Record 5: Confirmation Registration 8: Update Successfully 9: Send Mail To Confirmed Students 11 : Mail Sent Successfully
Am d in 1 : S tpS rv r 0 m e e

S d n R c rdP g tu e t e o ae

7 U d teS d n R c rd : p a tu e t e o

D.B

Figure No.99. 7.7.20 Students Request digital contents

Collboration19

Content Request Page

Registered Student

D.B

9: R rn 'T etu rue' 8: Store R equested Data

10 Content Requested Successfully 7: Fill Required Fields 6: Display Request Form 5: Request For Content

3 S a hS d n : e rc tu e t

8 R tu 'T e : e rn ru '

4 R tu 'T e : e rn ru '

Content Search Page

ord 1: Enter Keyw ontent Not Available 4: Search C

3: Return 'False' 2: Content Search(Keyword)

Page 105 of 146

Muhammad Ikram Ul Haq

Figure No.100. 7.7.21 Student Search page


1: E te K y o n r e w rd 4: D p yR s lt is la e u R g te dS d n e is re tu e t

Collboration20

C n n S a hP g o te t e rc a e 2 Cn n S a h : o te t e rc

D.B

Figure No.101.

Collboration21

Page 106 of 146

3 R tun'T u ' : e r re

Muhammad Ikram Ul Haq

7.7.22 Student Registration page


1: Request For Registration 2: View Registration Form 3: Fill Required Fields 6: Confiramtion Message
N U er ew s (S tudent ) R egis tration P age 4 Sto M be D : re em r ata

D.B

Figure No.102. 7.7.23 Student upload digital contents

Collboration22

Page 107 of 146

5: R eturn'Tru e'

Muhammad Ikram Ul Haq

1: Request For Upload 2: View Upload Form 3: Fill Required Fields 4: Upload Digital Content 8: Upload Successfully 'Status:Pending'
Registered Student

7: Store Content On Server

Upload Page

D.B

..

Figure No.103. 7.7.24 Student watch videos


.
1: Search Video(Keyword) 4: View Result 5: Request For Play 7: Watch Video
R egis tered S tudent

Collboration23

6: B s FromY row ing ouTube S erver

S earch V ideo P age

D.B

Figure No.104.

3: D play R ult is es 2: R etrieve R ult es

Collboration24

Page 108 of 146

6: Return 'True' 5: Stored Content Data

Muhammad Ikram Ul Haq

7.7.25 Student search web directory


1: Search Educational Links 5: Navigate To Link 4: V iew Link 7: Link Page B rowsing
Rg t r d t d n e i ee S e t s u W Det r Pg e i coy a e b r 6: W Sr e e ev r b

3 D p yRs lt : is l a eu D.B

Figure No.105. 7.7.26 Admin update member record


1: View memberRecord 2: Search Member 5: Show Result 6: Want Edit Record
Am d in
e b r e o u c s fu 1 : U d teM m e R c rdS c e s lly 2 pa

Collboration25

M me v w P g e b t ie ae

2 Rt i v L k : eree in

3 R trie em m e R c rd : e v e b r eo

8 R s lt F r S e ifie Id : eu o p c d

9 E it R q ire F ld : d e u d ie s

4 R tun'Tu ' : e r re

e ov : M 7

ith

i fi ec Sp

ed

Id

1 : U d teR c rd 0 p a eo 1 : R tu 1 e rn 'T e ' ru D.B

M m e E it P g e br d ae

Figure No.106.

Collboration26

Page 109 of 146

Muhammad Ikram Ul Haq

7.8 Package diagram


www.uosdgitallibrary.com
UOS DIGITAL LIBRARY

User Login GUI

Admin
Upload E-Book

Student
Download Digital Contents

Management
Approved Digital Contents

Upload E-Lecture

Forum/Discussion

Confirm Member Registration

Upload Research Paper

Upload Digital Contens

Edit Digital Content Record

Upload Videos

Request Digital Contents

Edit Memners Record

Student Registration

Response Against Requested

Reply Against Feedback

Upload Weblink

Comment On Digital Contents

Send E-mail Notification

Website Mangement

Send Feedback

Edit Category

Add Category

Edit Profile

Forum Management

Add News Alerts

Play Video Lectures

Manage Forum Forum


New Topic Post

Database

Edit Forum Post

Post New Topic

Reply

Reply Against Post

Figure No.107. Package diagram Page 110 of 146

Muhammad Ikram Ul Haq

7.9 Physical diagram(Deployment Diagram)


Application Server

<<device>> Application Server {OS = W indows XP}

Administrator

<<database>> :MS My SQL Student

SQL

:Computer {OS = W indows XP}

TCP/IP <<device>> Computer {OS = W indows XP} TCP/IP <<browser>> W ebBrowser IE8 <<device>> W eb Server {OS = Windows XP} SHTP/SSL <<web server>> W eb Services

<<browser>> W eb Browser IE8

W eb Server

Figure No.108. Physical diagram

Page 111 of 146

Muhammad Ikram Ul Haq

Page 112 of 146

Muhammad Ikram Ul Haq

7.10 State diagram of Student

L o g in S tu d e n t e n tr y / E n te r U s e r N a m e & P a s s w o r d

S tu d y M a te r ia l

R e q u e s t M a te r iaV id e o s L e c tu r eU p lo a d M a te r ia l l s

d o / S e a r c h M a te r ia n tr y / E n te r R e q u edso /IS e a r c h V idnetr y / T itle , A u th o r e tc . , el t n fo e os

D o w n lo a d

S e nd F e e dba ck

P la y V id e o

W e b D ir e c toor r u m / D is c u s s io n F y

e n tr y / I f A v a ila n tr y / N a m e , E m a il, F eeendtr ya/ cI k P r o p e r V idoe/o e a lr c h d o / k o s t e b le b f d S Ur L in P d o / P la y V id e o L e c tu r e s ( D o w n lo a d e d ) ( R e q u e s te d ) ( U p lo a d e d ) (S end) ( W a tc h L e c tu r e s ) ( N a vig a te d ) ( S ta r t D is c u s s io n )

Figure No.109. State diagram


Page 113 of 146

Muhammad Ikram Ul Haq

7.11 State Diagram of Admin

Login Adm in entry/ Enter User Name & Passw ord

S earch S tudy M aterial S earch M em bers do/ S earch M aterial

Notifications

Quick Upload M aterial orum/ Discussion F

do/ S earch M em ber New A rrival etc,. T itle,Author etc., Put Post,Reply entry/ entry/ do/ W ebsite M anagem ent S end Notification entry/ Enter Notification entry/ Choose Required Em ails do/ S end Notifications

V iew F eedback entry/ If A vailable View M aterial Data entry/ If Available

View M em bers (Edited/ Approved Uploaded) entry/ If M em ber Available S end Reply entry/ W rite Reply do/ S end Reply (Reply S ent) (Approve Registration/ Edited)

(Uploaded) (S tart Discussion,Reply)

(Notificatoin S ent)

Figure No.110. State diagram


Page 114 of 146

Muhammad Ikram Ul Haq

7.12 Network Model

Firewall

Web Server Application Server

Database Server

Internet

Fast Ethernet Cable ADSL Modem

WAP ` Student A Student B

Student C

Figure No.111. Network diagram

Page 115 of 146

Muhammad Ikram Ul Haq

7.13 ERD for the proposed system

Figure No.112. ERD Page 116 of 146

Muhammad Ikram Ul Haq

CHAPTER 8 GUI INTERFACES OF APPLICAYTION

Page 117 of 146

Muhammad Ikram Ul Haq

8 GRAFICAL INTERFACES OF APPLICATION.


8.1 Student Home Page

Figure No.113.

Student Home Page

Page 118 of 146

Muhammad Ikram Ul Haq

8.2 Administrator Home Page

Figure No.114. Admin Home Page

Page 119 of 146

Muhammad Ikram Ul Haq

8.3 Login (Admin)

Figure No.115.Login Admin Page

Page 120 of 146

Muhammad Ikram Ul Haq

8.4 Login (Student)

Figure No.115.Login Student Page

Page 121 of 146

Muhammad Ikram Ul Haq

8.5 Upload Digital Contents [Student]

Figure No.116.Upload Digital Contents [Student]

Page 122 of 146

Muhammad Ikram Ul Haq

8.6 Student Registration Page

Figure No.117.Student Registration Page

Page 123 of 146

Muhammad Ikram Ul Haq

8.7 EBooks View [Student]

Figure No.123. View EBooks

Page 124 of 146

Muhammad Ikram Ul Haq

8.8 Watch Video Lectures View [Student]

Figure No.125.Watch Video Lectures

Page 125 of 146

Muhammad Ikram Ul Haq

8.9 Search EBooks View [Student]

Figure No.127.Search EBooks Page

Page 126 of 146

Muhammad Ikram Ul Haq

8.10 Categories View [Student]

Figure No.129.Categories Page

Page 127 of 146

Muhammad Ikram Ul Haq

8.11 View User [Admin]

Figure No.130. View User Page

Page 128 of 146

Muhammad Ikram Ul Haq

8.12 Book View [Admin]

Figure No.131.Book View Page

Page 129 of 146

Muhammad Ikram Ul Haq

8.13 Edit User [Admin]

Figure No.132.Edit User Page

Page 130 of 146

Muhammad Ikram Ul Haq

8.14 Edit Book [Admin]

Figure No.133.Edit Book Page

Page 131 of 146

Muhammad Ikram Ul Haq

8.15 Category Management Page [Admin]

Figure No.133.Category Manage Page

Page 132 of 146

Muhammad Ikram Ul Haq

8.16 Feedback View [Admin]

Figure No.162. Feedback View Page

Page 133 of 146

Muhammad Ikram Ul Haq

8.17 Request Content Page [Student]

Figure No.162. Request Content Page

Page 134 of 146

Muhammad Ikram Ul Haq

8.18 Content Search by Category Page [Student]

Figure No.133.Edit Book Page

Page 135 of 146

Muhammad Ikram Ul Haq

8.19 Content Search by Category Page [Student]

Figure No.133.Search By Category Page

Page 136 of 146

Muhammad Ikram Ul Haq

8.20 Download Content Page [Student]

Figure No.133.Downlaod Content Page

Page 137 of 146

Muhammad Ikram Ul Haq

8.21 Student Feedback Page [Student]

Figure No.133.Student Feedback Page

Page 138 of 146

Muhammad Ikram Ul Haq

8.22 Forum Management Page [Admin]

Figure No.133.Forum Management Page

Page 139 of 146

Muhammad Ikram Ul Haq

8.23 Web Directory Page [Student]

Figure No.133.Web Directory Page

Page 140 of 146

Muhammad Ikram Ul Haq

Appendix 1
The website UOS-Digital Library has been developed with full effort with our complete knowledge that we avail during our degree. We tried our best to make this Final year Project as much as understandable for everyone and according to the web standards that are available in the present world. The standards and methodologies that were used in the development phase of this project are:

ASP.NET 4.0 Web Standards:


Web standards impact four broad categories: code validity, site navigation, accessibility, and separation of content and design. These categories are explained in detail below.

Code validity:
Web sites must use valid XHTML and CSS according to W3C standards and be well formed. This will ensure maximum browser support, faster rendering, and code that's easier to understand.

Site Navigation:
Many content management systems internalize content and serve up page URLs that give the user no clue about where the page is in relation to the rest of the site. Moreover, dynamically created content tends to generate unfriendly URLs because information such as unique identifiers is often passed in the URL via the query string. To remedy these problems, URLs should be organized according to subject matter and show the user where he is. And you can achieve friendly URLs for dynamically generated content by using URL rewriting, in which an HTTP module maps an unfriendly URL to a friendly URL when the HTTP request is handled. URL rewriting is supported in the Microsoft .NET Framework. Friendly URLs also make your content more discoverable, and some search engines actually rank pages higher if they have friendly URLs.

Accessibility:
Building or rendering code that is accessible to people with disabilities is as important to a business as building wheelchair-accessible doors. You can't possibly predict the abilities of all the users who will visit your site. For example, between five and ten percent of all males are colorblind. Fortunately, there are a few easy practices that can make a Web site more accessible. Avoiding the use of tables can help because screen readers, which read the screen to visually impaired users, are confused by table layouts. Accessible forms are important as well.

Page 141 of 146

Muhammad Ikram Ul Haq

Separation between design and content:


Web sites must use a style sheet to define layout and presentation with content represented in XHTML.

Master Pages and Themes:


In ASP.NET 4.0, ASP.NET AJAX is integrated into the .NET Framework, thereby making the process of building cool user interfaces easier and intuitive. Now that you have the tools to render controls that comply with Web standards, you can make an entire site compliant. The combination of Master Pages and Themes provide a powerful and flexible infrastructure for a Web site. Master Pages allow Web developers to create flexible templates for Web pages. A powerful tool for creating reusable components across Web pages, Master Pages also provides a way to ensure standards compliance throughout a site. Creating a Master Page that uses the XHTML 1.1 DocType is good way to ensure compliance across all pages within the site. Master Pages are also handy for letting you make all changes to the DocType in one place when, for example, a site migrates from XHTML 1.0 Transitional to Strict. ASP.NET 2.0 Themes allow you to create multiple designs for the same content, enhancing accessibility. For example, themes can improve accessibility for visually impaired users by letting them increase the font and image size. Placing the ability to switch themes within the Master Page allows users to view the site in a manner that best meets their individual needs.

Software Engineering methodology:


The software engineering methodology that was followed in the whole process of this project is RUP. The detailed description of this methodology is given below.

RUP building blocks


RUP is based on a set of building blocks, or content elements, describing what is to be produced, the necessary skills required and the step-by-step explanation describing how specific development goals are to be achieved. The main building blocks, or content elements, are the following: Roles (who) A Role defines a set of related skills, competencies, and responsibilities. Work Products (what) A Work Product represents something resulting from a task, including all the documents and models produced while working through the process. Tasks (how) A Task describes a unit of work assigned to a Role that provides a meaningful result.
Page 142 of 146

Muhammad Ikram Ul Haq

Within each iteration, the tasks are categorized into nine disciplines: six "engineering disciplines" (Business Modeling, Requirements, Analysis and Design, Implementation, Test, Deployment) and three supporting disciplines (Configuration and Change Management, Project Management, Environment).

Four Project Lifecycle Phases


The RUP has determined a project lifecycle consisting of four phases. These phases allow the process to be presented at a high level in a similar way to how a 'waterfall'-styled project might be presented, although in essence the key to the process lies in the iterations of development that lie within all of the phases. Also, each phase has one key objective and milestone at the end that denotes the objective being accomplished. The visualization of RUP phases and disciplines over time is referred to as the RUP hump chart.

Inception Phase
The primary objective is to scope the system adequately as a basis for validating initial costing and budgets. In this phase the business case which includes business context, success factors (expected revenue, market recognition, etc), and financial forecast is established. To complement the business case, a basic use case model, project plan, initial risk assessment and project description (the core
Page 143 of 146

Muhammad Ikram Ul Haq

project requirements, constraints and key features) are generated. After these are completed, the project is checked against the following criteria: Stakeholder concurrence on scope definition and cost/schedule estimates. Requirements understanding as evidenced by the fidelity of the primary use cases. Credibility of the cost/schedule estimates, priorities, risks, and development process. Depth and breadth of any architectural prototype that was developed. Establishing a baseline by which to compare actual expenditures versus planned expenditures.

If the project does not pass this milestone, called the Lifecycle Objective Milestone, it either can be cancelled or repeated after being redesigned to better meet the criteria.

Elaboration Phase
The primary objective is to mitigate the key risk items identified by analysis up to the end of this phase. The elaboration phase is where the project starts to take shape. In this phase the problem domain analysis is made and the architecture of the project gets its basic form. This phase must pass the Lifecycle Architecture Milestone by meeting the following deliverables:

A use-case model in which the use-cases and the actors have been identified and most of the use-case descriptions are developed. The use-case model should be 80% complete. A description of the software architecture in a software system development process. An executable architecture that realizes architecturally significant use cases. Business case and risk list which are revised. A development plan for the overall project. Prototypes that demonstrably mitigate each identified technical risk.

If the project cannot pass this milestone, there is still time for it to be canceled or redesigned. However, after leaving this phase, the project transitions into a high-risk operation where changes are much more difficult and detrimental when made. The key domain analysis for the elaboration is the system architecture.

Construction Phase
The primary objective is to build the software system. In this phase, the main focus is on the development of components and other features of the system. This is the phase when the bulk of the coding takes place. In larger projects, several construction iterations may be developed in an effort to divide the use cases into manageable segments that produce demonstrable prototypes. This phase produces the first external release of the software. Its conclusion is marked by the Initial Operational Capability Milestone.
Page 144 of 146

Muhammad Ikram Ul Haq

Transition Phase
The primary objective is to 'transition' the system from development into production, making it available to and understood by the end user. The activities of this phase include training the end users and maintainers and beta testing the system to validate it against the end users' expectations. The product is also checked against the quality level set in the Inception phase. If all objectives are met, the Product Release Milestone is reached and the development cycle ends.

Page 145 of 146

Muhammad Ikram Ul Haq

References:
[1] [2] [3] [4] [5] [6] [7] [8] [9]
[10] [11] [12] [13] [14] [15] www.asp.net/general/videos

www.w3schools.com www.microsoft.com/rus/aspnet/ en.wikipedia.org/wiki/ASP.NET www.hotscripts.com/category/asp-net/ www.aspnet.codeplex.com/ www.asp.net-tutorials.com/ www.dotnetspider.com www.somee.com


ASP.NET Data Web Controls Kick St By Scott Mitchell ASP.NET 3.5 by Stephen Walther Inside ASP.NET Web Matrix By Alex Homer Dave Sussman http://idealprogrammer.com/net-languages/asp/ http://urdututorials.com/ www.aspspider.com/tutorials

Page 146 of 146