Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST...

208
Batch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima Rabia Sheikh Sahar Fatima Neelma Parveen Department of Computer Science and Information Technology Federal Urdu University of Arts, Science and Technology Karchi, Pakistan

Transcript of Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST...

Page 1: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Batch 2005-2008

Project Advisor: Mam Shazia Usmani

Submitted By

Rida Fatima Rabia Sheikh Sahar Fatima Neelma Parveen

Department of Computer Science and Information Technology Federal Urdu University of Arts, Science and Technology

Karchi, Pakistan

Page 2: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Rida Fatima

Roll # 26

Enrolment# BS/M/1996/05

D.O.B: 25th April, 1987

Class: 8th

Semester, BS (CS)

Sahar Fatima Roll# 15

Enrolment# BS/M/2481/50/CS

D.O.B: 22nd

July, 1987

Class: 8th

Semester, BS (CS)

Rabia Sheikh Roll# 14

Enrolment# BS/M/1993/05

D.O.B: 18th October, 1986

Class: 8th

Semester, BS (CS)

Neelma Parvin Roll# 11

Enrolment# BS/M/2003/05/C

D.O.B: 26th February, 1986

Class: 8th

Semester, BS (CS)

Page 3: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

We dedicate this project to our beloved parents

&

Computer Science Department of Federal Urdu University.

We wish our University a good future and a name known by quality Education

Page 4: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 22

This book is designed to provide a comprehensive introduction to our final year project; this

software engineering book will help the readers to understand the whole project easily. The

authors of this book are: Rabia Sheikh, Rida Fatima, Sahar Fatima and Neelma Parveen,

students of final semester of BS in Federal Urdu University of Arts, Science and Technology.

This book has been presented to our Department‟s Head as well as our Project Supervisor. We

have written this book to be primarily focused on whole process of Software Engineering Life-

Cycle by following IEEE standards.

Page 5: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 23

Our goal is to make a website for the ease of students of this university and the people

who want to get any type of information about FEDERAL URDU UNIVERSITY. Our website has

the features which are very beneficial for all sorts of students whether he/she is from any faculty

of this university. We are trying to make our project user friendly; that means just click and have

what you want. This project has been integrated with so many new features to make the existing

software more dynamic and user-friendly.

Page 6: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 24

We would like to thank our project supervisor, Ma‟am Shazia, who assists us in every

phase of our project, and gives generously of her time and expertise. We would like to thank our

parents on behalf of whom we are able to do this, our department‟s faculty; Sir Farhan Shafiq,

Sir Siddique, Sir Kashif Laeeq(for all his motivations),Sir Kashif Raffat, Sir Saeed, who

suggested us to do work on this project.

Page 7: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 25

Chapter 1: Software Project Management Plan (SPMS).

Chapter 2: Software Requirement Specification (SRS).

Chapter 3: Software Designs Document (SDD).

Chapter 4: Software Test Document (STD).

Code (1-96)

Brief Contents

Page 8: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 26

Chapter 1:

Document Version no. 1.1.0

Page 9: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 27

Table of Contents 1 Introduction ..............................................................................................................................................28

1.1 Departments .............................................................................................................................................. 1 1.1.1 Abdul Haq Campus ............................................................................................................................ 1 1.1.2 Gulshan-e-Iqbal Campus: ................................................................................................................. 2 1.1.3 Islamabad Campus: .......................................................................................................................... 2

1.2 Project Overview: ..................................................................................................................................... 3 1.3 Project Deliveries: ..................................................................................................................................... 3

1.3.1 Previous version of this system ........................................................................................................ 3 1.3.2 Latest Version .................................................................................................................................... 4

1.4 Project Organizaton ................................................................................................................................. 4 1.4.1 Software Process Model:................................................................................................................... 4 1.4.2 Introduction of the Process Model: .................................................................................................. 5

1.5 Roles and Responsibilities:....................................................................................................................... 6 1.5.1 Architectural Roles ............................................................................................................................ 6

1.6 Primary Responsibilities of Each Architect ............................................................................................ 6 1.6.1 Chief Architect .................................................................................................................................... 6 1.6.2 Applications Architect ....................................................................................................................... 6 1.6.3 Data Architect.................................................................................................................................... 7 1.6.4 Information Architect ....................................................................................................................... 7 1.6.5 Project Architects (PA) ...................................................................................................................... 7 1.6.6 Project Architects (PA) ...................................................................................................................... 7 1.6.7 Tools and Techniques:....................................................................................................................... 8

1.7 Languages Used in Development: ........................................................................................................... 8 1.8 PROJECT MANAGEMENT PLAN: .......................................................................................................... 8 1.9 Risks and Contingencies: ........................................................................................................................ 11 1.10 Resources Needed: ................................................................................................................................ 13 1.11 Deliverables and Milestones: ................................................................................................................ 13

1.11.1 Tasks, Deliverables and Milestones .............................................................................................. 13

Page 10: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 28

1 INTRODUCTION

Federal Urdu University of Arts, Science and Technology was established by a presidential

ordinance on Nov. 13, 2002. Upgrading two existing colleges, Federal Urdu Science College

and Federal Urdu College at Karachi.

It consists of three campuses:

Abdul Haq Campus (Karachi)

Gulshan-e-Iqbal Campus (Karachi)

Islamabad Campus

1.1 Departments

1.1.1 Abdul Haq Campus

Arabic

B .Ed

Commerce

Economics Education

Page 11: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 29

English

General History

International Relation

Islamiat

Islamic History

Law

Mass Communication

Political Science

Psychology

Sindhi

Social Work

Special Education

Urdu

1.1.2 Gulshan-e-Iqbal Campus

Biochemistry

Botany

Business Administration

Chemistry

Computer Science

Environmental Sciences

Geography

Geology

Mathematical Sciences

Microbiology

Pakistan Studies

Pharmaceutical Sciences

Physics

Statistics

Page 12: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 30

Zoology

1.1.3 Islamabad Campus

Computer Science

Economics

Electronics Engineering

English

Islamiat

Management Sciences

Mathematics

The project will be formed to give all related information online to the visitors, especially

students who are willing to get admissions here or enrolled students who want to get related

information regarding their subjects, teachers or department.

This site will be an upgrade level of current site of Federal Urdu University which is live. This

site will have additional features for the benefits of students ,few of them are listed below:

Press Releases

FAQ‟s, etc.

1.2 Project Overview

An existing site of Federal Urdu University of Arts, Science and Technology is enough successful

to give appropriate information regarding University‟s procedures to departments

informations,campus policies to courses offered, but with the passage of time information

inventories needs major changes to word side by side with other universities‟ sites. In order to

consider and implement these changes we are willing to form a new phase of our site, to upgrade

it and to make it the most powerful online information system that will able to deliver

appropriate results to the visitors.

Our goal is to make a website for the ease of students of this university and the people who want

to get any type of information about FEDERAL URDU UNIVERSITY. Our website has the

features which are very beneficial for all sorts of students whether he/she is from any faculty of

this university.

Page 13: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 31

We are trying to make our project user friendly; that means just click and have what you want.

This site will come up with a new face with powerful graphics and layout that will be eye catchy

and simple.

1.3 Project Deliveries

Our Major milestone is to make fully functional website of our university which is the upgraded

version of the existing site. The existing system has following major features:

1.3.1 PREVIOUS VERSION OF THIS SYSTEM

The existing website of our university has following features include:

News & Announcements Management

Managements of Events Pictures

Managements of Sports Events

Management of Research Papers

Results

Departments

Admission

1.3.2 LATEST VERSION

Besides these features, we are adding many more functionalities to our project; the additional

features are as under:

Courses Management

Management of Achievement & Awards

Upload different Forms

Management of News and Announcements in upgraded manner

CMS (Content Management System)

Results Managements.

FAQ‟s

Press Releases

Dynamic Photo/Sports Gallery with filtering feature.

Information of all the facilities provided within University.

Easy administration of whole website

Page 14: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 32

1.4 PROJECT ORGANIZATION

1.4.1 Software Process Model

The process model we will follow to achieve the completion of this website is “Agile” process

model.

Agile software development is a group of software development methodologies that are based on

similar principles. Agile methodologies generally promote a project management process that

encourages frequent inspection and adaptation, a leadership philosophy that encourages team

work, self-organization and accountability, a set of engineering best practices that allow for

rapid delivery of high-quality software, and a business approach that aligns development with

customer needs and company goals.

1.4.2 Introduction of the Process Model

There are many specific agile development methods. Most promote development iterations,

teamwork, collaboration, and process adaptability throughout the life-cycle of the project.

Agile chooses to do things in small increments with minimal planning, rather than long-term

planning. Iterations are short time frames (known as 'time boxes') which typically last from one

to four weeks. Each iteration is worked on by a team through a full software development cycle,

including planning, requirements analysis, design, coding, unit testing, and acceptance testing

when a working product is demonstrated to stakeholders. This helps to minimize the overall risk,

and allows the project to adapt to changes more quickly. Documentation is produced as required

by stakeholders. Iteration may not add enough functionality to warrant releasing the product to

market, but the goal is to have an available release (with minimal bugs) at the end of each

iteration. Multiple iterations may be required to release a product or new features.

Team composition in an agile project is usually cross-functional and self-organizing without

consideration for any existing corporate hierarchy or the corporate roles of team members.

Team members normally take responsibility for tasks that deliver the functionality of an

iteration. They decide for themselves how they will execute during an iteration.

Agile methods emphasize face-to-face communication over written documents. Most agile teams

are located in a single open office to facilitate such communication. Team size is typically small

(5-9 people) to help make team communication and team collaboration easier. Larger

development efforts may be delivered by multiple teams working toward a common goal or

different parts of an effort. This may also require a coordination of priorities across teams.

Page 15: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 33

No matter what development disciplines are required, each agile team will contain a customer

representative. This person is appointed by stakeholders to act on their behalf and makes a

personal commitment to being available for developers to answer mid-iteration problem-domain

questions. At the end of each iteration, stakeholders and the customer representative review

progress and re-evaluate priorities with a view to optimizing the return on investment and

ensuring alignment with customer needs and company goals.

Most agile methodologies include a routine and formal daily face-to-face communication among

team members. This specifically includes the customer representative and any interested

stakeholders as observers. In a brief session, team members report to each other what they did

yesterday, what they intend to do today, and what their roadblocks are. This standing face-to-

face communication prevents problems being hidden.

1.5 Roles and Responsibilities

Roles and responsibilities are divided into several phases and architecture, each architecture

defines specific responsibilities. These roles and responsibilities have been elaborated below:

1.5.1 Architectural Roles

The Architecture team is divided into a number of roles based on an orthogonal “separation of

concerns”:

Chief Architect

Applications Architect

Data Architect

Information Architect

Systems Architect

Security Architect

Process Architect

Project Architects (PA)

1.6 Primary Responsibilities of Each Architect

1.6.1 Chief Architect

Takes proactive escalation of probable system problems or design flaws to upper

management before serious impact.

Assures the complementary synthesis of all standards, models, designs and

methodologies recommended.

Page 16: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 34

Acts as evangelist of the work and recommendations of the architecture team.

1.6.2 Applications Architect

Selects the paradigm and technology for application program-to-program

communication.

Determines the overall priority ranking of each of the possible system qualities (cost,

robustness, etc.) so the other architects can design models that enforce the “balance

of concerns”.

Responsible for defining the application tiers, frameworks, components types and

interfaces.

1.6.3 Data Architect

Sets Data Policy and the technical solution for the management, storage, access,

navigation, movement, and transformation of data.

Specifies recommended DBMS tools and technologies for structured and unstructured

content.

Creates and maintains the Metadata Repository.

Examines and enforces opportunities to provide data reuse, balancing the issues of

centralization and replication.

Reviews the policies and work of the Data Base Administrators.

1.6.4 Information Architect

Establishes branding policy and holds the UI templates.

Defines the recommended dialog flow for long-running transactions and “speech

acts” in coordination to whom the project will be submitted.

1.6.5 Project Architects (PA)

Responsible for translating application requirements and business process models

(BPM) into component and interface specifications.

Ensures that the Technology Partners and development teams adhere to the

principles established by the Enterprise Architects.

Designs first-draft graphical ER models that are delivered to the software

development & DBA teams.

1.6.6 Project Architects (PA)

The activities of the Project Architect (PA) can be contrasted with the Project Manager (PM)

as shown in the following table:

Topic Project Manager Project Architect

Software Organize project; manage Organizes team or technology

Page 17: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 35

Development resources, budgets, schedules partner around design; manages

dependencies

Requirements Negotiate with marketing;

emphasis on business process

and user interface

Review requirements; emphasis on

functionality and system qualities

Technology Introduce new technologies

per architect‟s

recommendations

Recommend technology, standards,

training, tools

Quality Ensure quality of product Ensure quality of design and

operational control characteristics

Metrics Measure productivity, size,

quality

Ensure design goals are met,

volumetric do not exceed scale

1.6.7 Tools and Techniques

SQLyog is a Graphical User Interface (GUI) tool for the popular Relational Database

Management System (RDBMS) MySQL.

SQLyog works on the Windows platform starting from Windows 2000 to Windows Vista/Server

2008 (Windows 9 x/ME/NT4 supports was removed in version 5.0 because of lack of Unicode

support in those early Windows versions). It has also been made to work under Linux and

various UNIX‟s (including Mac OS X) using WINE environment. Further subsets of SQLyog

Enterprise functionalities are available with the free SJA (SQLyog Job Agent) for Linux as a

native Linux utility.

JAVA uploader: Java upload applets are an ideal solution for file and folder upload. Unlike

ActiveX components applets are platform independent, we have used this applet in our site to

make it more powerfull, user just has to drag and drop the files he wants to upload to the site.

XAMPP: XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl.

XAMPP is really very easy to install and to use - just download, extract and start. It will be used

to integrate PHP, MySQL database withing our project with collaboration of apache server.

1.7 Languages Used in Development

HTML

JavaScript

Ajax

PHP

Page 18: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 36

1.8 PROJECT MANAGEMENT PLAN

Task Description

Oct

1-7

Oct

8-14

Oct

15-

21

Oct

22-

28

Oct

29-

Nov

4

Nov

5-

11

Nov

12-

18

Nov

19-

25

Nov

26-

Dec

2

Dec

3-9

Dec

10-

16

Dec

17-

23

De

c

24-

30

1. Admin Features:

Result management

News &

announcements

management

Courses Management

Management of

Events Pictures

Management of Sports

events

Management of

Research papers

Management of

achievement &

awards

Upload Different

forms

Managements of

Student testimonials

Management of Press

released

CMS (contents

management system)

Banner Management

2. Main site features:

Student Profile

i. Profile

i. Inbox

ii. Send a

Page 19: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 37

message

iii. Teachers

Lectures

iv. Announcement

s

v. Results

vi. Forum

Task Description

Oct

1-7

Oct

8-14

Oct

15-

21

Oct

22-

28

Oct

29-

Nov

4

Nov

5-

11

Nov

12-

18

Nov

19-

25

Nov

26-

Dec

2

Dec

3-9

Dec

10-

16

Dec

17-

23

De

c

24-

30

i. Create Results

ii. Forum

3. Web Layout

4. Main Tabs

About FUUAST

i. History

ii. University

iii. Mission

Statement

iv. Officer of

University

Admission

i. Gulshan

Campus

ii. Abdul Haq

Campus

iii. Islamabad

Campus

Results

Departments

Administration

Researches

i. Board of

Advanced

study and

Research

ii. Researches

iii. Upload your

research

Contact Us

Affiliated Colleges

Photo Gallery

Page 20: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 38

Our Project management plan concerned to their deadline specification is given below by the

gang chart

1.9 Risks and Contingencies

Risk Management Plan

Why? Our analysis found that the average requirements overrun on our projects is

about 40%. We need to control creeping requirements to prevent

uncontrolled cost and schedule increases on the project.

How? In general, we need to look for ways to eliminate the source of requirements

changes by doing a good job of gathering requirements in the first place.

After that, we need to be sure to allow only those requirements changes that

are absolutely necessary.

Sports

Admission Procedure

Examination

Procedure

Download Forms

Facilities

i. Main library

ii. Seminar

libraries

iii. Computer

Labs

iv. Canteen

Adwards and

achievements

Students Testimonials

Press Released

Page 21: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 39

What? We are addressing the risk in three specific ways:

1. We're using a user interface prototype at the beginning of the project to

be sure we gather high-quality requirements. We will continue showing

the prototype to the users, refining it, and showing the prototype to the

users again until we are confident that they will be very happy with the

software we build.

2. We're placing the requirements specification under explicit change

control. After we complete the user interface prototype and gather other

requirements, we'll baseline the requirements. After that, requirements

changes will have to go through a more formal change process in which

cost, schedule, quality and other impacts have to be carefully assessed before the change is accepted.

3. We're using a staged delivery approach to keep the delivery cycles short,

which reduces the need for changes within cycles. Between stages we can change features if needed.

We'll upgrade this risk to a higher level if any of the following conditions

become true:

We can't get users to buy into a user interface prototype within a reasonable amount of time.

We receive requests for requirements changes constituting more than 5%

of the system in the first 30 days after the requirements have been baseline.

We actually accept requirements changes constituting more than 5% of the system at any point in the project lifecycle.

Who? The engineering lead is responsible for the user interface prototype.

The change board is responsible for maintaining the requirements under change control.

The project manager is responsible for keeping the stages within our staged

delivery plan short.

When? We'd like to have the UI prototype completes by 4/15. If it isn't complete by

6/1, we'll upgrade the severity of this risk to "project critical."

The requirements spec should be base lined by 5/15. If it hasn't been base lined by 6/15, we'll upgrade the severity of this risk to "project critical."

We should have completed our first staged delivery by 7/15. If it hasn't been

completed by 8/15, we'll upgrade the severity of this risk to "project critical."

How

much?

We estimate the UI prototype will cost 6 engineering staff months. Explicit

change control is accounted for in our standard development practices and

does not add cost to the project. Staged delivery increases the apparent

project cost by about 5% because of the increased effort associated with

releasing the software multiple times, but it reduces integration risk and the

risk of building the wrong product. In the end the only increase is probably

in the visibility of project's true cost, so it is a net gain rather than a cost.

Page 22: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 40

1.10 Resources Needed

This team is comprised of four peoples. When the work begins it will need all these to be fully

functional and focused to achieve high level quality work.

Following will be most important phases of site.

1. Site Admin development.

2. Database creation and administration

3 Static pages development.

4 Dynamic pages development.

5 Graphics and Layout productions

6. Testing Cycles.

7. Software Engineering Documentation.

A fully focused team will be comprised to achieve these goals. Teams will be made for following

acronyms.

Development Team

Graphic Designing Team

Testing Team.

1.11 Deliverables and Milestones

1.11.1 Tasks, Deliverables and Milestones

Date Type Description Completed

Oct 15,2008 Meeting

Nov 2,2008 Meeting Kick off

Nov 5,2008 Milestone First draft

Nov 10,2008 Meeting ,Tasking Demonstration

Nov 12,2008 Deliverable Final draft

Dec 1,2008 Deliverable Final draft of chapters

Dec 2,2008 Deliverable Book manuscript submitted

Dec 5,2008 Meeting Resources Meeting

Dec 10,2008 Deliverable Changes Communicated,

implementation plan

Dec 31,2008 Deliverable Testing while System integration

Page 23: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 41

Chapter 2:

Document Version no. 1.1.0

Page 24: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 42

Table of Contents

2 Introduction .............................................................................................................................................. 14

2.1 Purpose .................................................................................................................................................... 14 2.2 Project Scope and Product Features ..................................................................................................... 14

3 Overall Description .................................................................................................................................. 14 3.1 Product Perspective ................................................................................................................................ 14 3.2 Functional Features ............................................................................................................................... 14

3.2.1 Admin Features ............................................................................................................................... 14 3.2.2 Main Tabs ........................................................................................................................................ 16

4 External Interface Requirements: .......................................................................................................... 19 4.1 User Interface .......................................................................................................................................... 19 4.2 Hardware Interface ............................................................................................................................... 19 4.3 Software Interface .................................................................................................................................. 19 4.4 Acceptance criteria ................................................................................................................................ 20

5 Software system attributes .................................................................................................................... 20 5.1 Reliability ............................................................................................................................................... 20 5.2 Availability ............................................................................................................................................. 20 5.3 Security................................................................................................................................................... 20 5.4 Maintainability ...................................................................................................................................... 20 5.5 Portability .............................................................................................................................................. 20 5.6 Web Browsers Compatibility: ............................................................................................................... 21

5.7 Database Requirements and Administration………………………………………………………………………….21

Page 25: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 43

Version Control History:

Version Primary Primary Author(s) Description of

Version

Date Completed

1.0.0 Sahar Fatima Project Planning 2-Oct,2008

1.1.0 Changed Press

Release Feature

Changed Press

Release Feature

3-Oct-2008

Page 26: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 44

2 INTRODUCTION

2.1 Purpose

This SRS describes the software functional and nonfunctional requirements for release 1.0 of the

Federal Urdu University‟s Web Portal. This document is intended to be used by the members of

the project team that will implement and verify the correct functioning of the system. Unless

otherwise noted, all requirements specified here are high priorities and committed for release

1.0.

Project Scope and Product Features

The System will permit Process Impact of visitors; students‟ visits the website and request

several pages to view them or download several uploaded contents on site. User will be able to

submit their testimonials and upload research papers. Each activity will be tracked by the admin

of the site. Each content will be maintained by the content management system within the admin.

The section in that document titled “Scope of Initial and Subsequent Releases” lists the features

that are scheduled for full or partial implementation in this release.

3 Overall Description

3.1 Product Perspective

The System is a new system that replaces the current existing system, because of its new features

and upgraded phases of this site. Each content will become dynamic and easy to handle. The

system is expected to evolve over several releases, ultimately connecting to the Internet site

process to the administration of the site.

3.2 Functional Features

3.2.1 ADMIN FEATURES

Admin Management:

Admin can create new admin to manage the website.

Page 27: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 45

Result Management:

Admin can upload the excel sheets of results of different programs. Admin just select the

campus name, department name, class name and enter the year and upload an excel

sheet.

Enrollment No:

Admin have the list of enrollment no‟s of overall University student to keep track on other

unauthorized users.

Student, who has an enrollment can only see the result.

News & Announcements Management:

Admin manage the all announcement related to the University on the Site. He just enters

the announcement title and announcement text.

Courses Management:

Admin can manage the courses outlines. If any course outline has changed then admin

can update it. He just selects the campus, department and then course, and then he

updates the subjects.

Managements of Events Pictures:

Admin can view all events name and can upload more pictures related to a particular

event or can add a new event and upload its pictures, enter some text about the event if

necessary.

Managements of Sports Events:

Admin can view all sports events name and descriptions of event and can upload more

pictures, edit description text related to a particular event or can add a new event and

upload its pictures, enter some text about the event if necessary.

Management of Research Papers:

Admin can view all the research papers submitted by researchers on site, and allow these

papers to show on the sites. And send an e-mail to the author of the research paper that

your paper is now shown on our site.

Management of Achievement & Awards:

Admin can view all the achievements taken by students or teachers of the University. And

can also add new Achievement to the list of achievements

Page 28: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 46

Upload different Forms:

Admin can view or edit all Forms such as admission form examination form, enrolment

form, degree form, fee concession form etc. or can add a form of new category.

Management of Student Testimonials:

Admin can view all the testimonials submitted by student on the site and can allow these

testimonials to show on the site.

Management of Press Released:

Admin can view all the Press Released related to FUUAST University and can upload

new Press Released related to FUUAST University to show on Site. He just enters the

title, date of news, some description (if necessary) and uploads the cutting of news paper.

CMS (Content Management System):

Through CMS admin can change the static pages on the site such as About FUUAST

page.

Banner Management:

Admin can upload the banner or advertisement shown on the site.

3.2.2 Main Tabs

About FUUAST:

Some Pages which have information about FUUAST.

History

University

Mission statement

Admission:

Describe different courses that have been teaching at three campuses.

Gulshan campus

1. Undergraduate courses admission

2. Post graduate courses admission

Abdul Haq campus

1. Undergraduate courses admission

Page 29: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 47

2. Post graduate courses admission

Islamabad campus

1. Undergraduate courses admission

2. Post graduate courses admission

Results:

If user have an enrollment no so he can download the annual or semester Results of different

courses that have been teaching at three campuses.

Departments:

View the list and information about departments at three campuses.

Home

Faculty

Courses Offered

News and Announcements (The one who has department password issued by admin, can

only upload news and announcements)

Administration:

View the information of the administration persons of FUUAST at all three campuses.

Researches:

Three links

Board of advanced study & research

Researches

Upload your Research (researcher can upload his research, so admin allow his research

to be shown on the site)

Contact us:

Contacts of all administration and teachers of FUUAST. There name, department name, phone

no, extension no, e-mail addresses.

Affiliated Colleges:

List and information of colleges that are affiliated with FUUAST.

Photo gallery:

Page 30: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 48

Select the event, so user can view the pictures of that event. Click on particular picture and can

view the large picture and some text if attached with picture on a new page.

Sports:

Select the sport event, so user can view the pictures of that sport event. Click on particular

picture and can view the large picture and some text if attached with picture on a new page.

Admission Procedure:

User can understand the admission procedure of different courses in FUUAST.

Examination Procedure:

User can understand the Examination procedure of different courses in FUUAST.

Download Forms:

Users can downloads different type of forms (such as admission form examination form,

enrolment form, degree form, fee concession form etc) uploaded by admin.

Facilities:

Information of all facilities provided to student.

Main Library

Seminar libraries

Computer labs

Canteen

Awards and Achievements:

Users can view all awards and achievements of FUUAST student and teachers.

News and Announcements:

User can view the news or announcements of FUUAST.

Students Testimonials:

User can view testimonials of different students of FUUAST, and also can upload their

testimonial if they are or they were the student of FUUAST.

Press Released:

Page 31: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 49

User can view the page that has information/cuttings and articles released by press related to

FUUAST University with date of released.

FAQ (Frequently Asked Question):

User can view all FAQ‟s about FUUAST.

4 External Interface Requirements

All the possible interactions of the software with people, hardware and other software are

clearly specified below:

4.1 User Interface

The system is menu driven.

The system is user-friendly.

4.2 Hardware Interface

The system must be provided with minimum number of hardware specifications to run. It must

respond when there is a hardware failure. It works on all PC‟s above 486 processor. It requires

a keyboard with 104 keys, mouse, monitor and printer like ink-jet or dot-matrix printer.

4.3 Software Interface

This interface depends on the hardware interface as well as the software platform. It works as

independent program on windows ‟95 or above. High speed internet is also very necessary to

access the site.

4.4 ACCEPTANCE CRITERIA

Before accepting the system, the developer must demonstrate that the system works well on the

given data. Then developer will have to show test cases such that all conditions are satisfied.

Page 32: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 50

5 Software system attributes

The software consists of the following elements:

The web server

The MySQL database.

5.1 Reliability

The reliability of the overall program depends on the reliability of the separate components.

5.2 Availability

The system should be available at all times, meaning the user can access it using a web

browser, only restricted by the down time of the server on which the system runs. In case of a

of a hardware failure or database corruption, a replacement page will be shown. Also in

case of a hardware failure or database corruption, backups of the database should be

retrieved with the MySQL server and saved by the administrator.

5.3 Security

Passwords will be saved encrypted in the database in order to ensure the user's privacy.

5.4 Maintainability

MySQL is used for maintaining the database and the Apache server takes care of the site. In

case of a failure, a re-initialization of the program is recommended.

5.5 Portability

The application is window based and should be compatible with other systems. Apache and

MySQL programs are practically independent of the OS-system which they communicate

with. The end-user part is fully portable and any system using any web browser should be

able to use the features of the application.

5.6 Web Browsers Compatibility

Application will be tested on standard browsers listed below:

1. IE7/IE6

2. FireFox current and older versions.

Page 33: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 51

5.7 Database Requirements and Administration:

SQLyog will be used in maintaining and creating the database. An operational Access database

usually requires less administration than a client-server system. However, it will require

attention from time to time. You may decide to appoint someone in house to perform these tasks.

It is useful to define up-front how the following will be handled:

Database backups

User training and support

Compact and repair procedures should the database be corrupted

Installation of the application on new client machines

Addition and deletion of logins; password reset

Installation of database upgrades on client machines

Page 34: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 52

Chapter 3:

Document Version no. 1.1.0

Table of Contents

Page 35: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 53

3 SYSTEM ARCHITECTURAL DESIGN: .................................................................................................. 54 4 Entity Relationships Diagram ................................................................................................................ 24 5 Use Cases .................................................................................................................................................. 25 6 UC-00: USE CASE NAME: Result Managements ................................................................................. 26

6.1 UC-01:USE CASE NAME: Departments 27 6.2 UC-02:USE CASE NAME: Research 29 6.3 UC-03:USE CASE NAME: Photo Gallery 30 6.4 UC-04:USE CASE NAME: Sports 32 6.5 UC-05:USE CASE NAME: Forms 33 6.6 UC-06:USE CASE NAME: Awards and Achievements 35 6.7 UC-07:USE CASE NAME: Students Testimonial 36 6.8 UC-08:USE CASE NAME: News and Announcements 38 6.9 UC-09: USE CASE NAME: Press Release 39 6.10 Use Case List 41

7 User Guide ................................................................................................................................................ 42 7.1 Guide for Administrator 42

7.1.1 Admin login ...................................................................................................................................... 42 7.2 Description of Navigation Bar 42

7.2.1 Admin Management........................................................................................................................ 42 7.2.2 Course Management ....................................................................................................................... 43

7.3 Result Management 46 7.4 Forms Management 48 7.5 Awards and Achievements: 49 7.6 News and Announcements 50 7.7 Press Released 50 7.8 Student Testimonials 51 7.9 Research Papers 52 7.10 Event Pictures 52 7.11 Sports event Pictures………...……….…………………………………………………………………………………..….. 53

8 Guide for End User………………………………………………………………………………………………………...... 54 8.1 News and Announcement………………………………………………………………………………………………..…… 54 8.2 Students Testimonials……………………………………………………………………………………………………….…. 54 8.3 Awards and Achievements……………………………………………………………………………………………….….. 54 8.4 Press Releases………………………………………………………………………………………………………………….….. 54 8.5 Google Search Bar…………………………………………………………………………………………………………….….. 55

Page 36: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 54

Revision History

Name Date Reason For Changes Version

Rida Fatima 25/09/2008 Adding Students Testimonials 1.0

Sahar Fatima,Rabia

Sheikh

12/10/2008 Updating Press Releases 1.1.0

3 SYSTEM ARCHITECTURAL DESIGN

Page 37: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 55

Main Page

About

Fuuast

Admis

sions

Depart

ments

Results Admin

istratio

n

Faciliti

es

Award

s and Achiev

ements

FAQ’s

Google search

History

University

Mission

Statement

University

Office

Undergradua

te

Gulshan Cam

AbdulHaq

Cam

Isb Cam

Post

Graduates

Gulshan Cam

AbdulHaq

Cam

Isb Cam

Faculty

Courses

Offered

Home

News and

Announcement

Seminar Library

Canteen

Library Computer Labs

Sports

Downlo

ad

Forms

Press Release

Exami

nation

Research

Admissi

on

Procedure

Picture Gallery

Aff.

Colleges

and

institutes

Uploa

d

Research

Downlo

ad

Links

Static

page

Static

page

Static

page

Static

page

Static

page

Static

page

Page 38: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 56

4 Entity Relationships Diagram

Page 39: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 57

Page 40: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 58

5 Use Cases

Page 41: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 59

6 UC-00: USE CASE NAME: Result Managements

Following is the list of Use Cases of most functional area in Federal Urdu University

Site.

In all use cases

Direct

Actors:

User: end-user in any role

System: The system being built

When actors are not listed, assume User is doing it.

Items beginning with "see" indicate that System has presented a new

screen.

Stakeholders: The user who is entering the data, and those who will read it

Prereq: Project is set up

Summary: This Use Case defines the end-user‟s activity to fetch

the results information present on Federal Urdu

University‟s web portal.

Priority: Essential | Expected

Use Frequency: Often

Direct Actors: End User (Students/Site Visitors)

Stakeholders: Administration of Urdu University and Site

Visitors/Students

Prerequisite: PRECONDITION

User has opened the web url of Federal Urdu

University and clicked the result‟s tab from the

header area.

Main Success Scenario: visit LOCATION

User Visits the GUI window. User is intended

to view the results. For results information

user is on the main page of the site.

enter INFORMATION

User clicks the tab under the upper header

area navigation bar.

COMMAND

1. User clicks selects the campus, department

and enrolment number from the results page

and will be able to download the results excel

Page 42: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 60

sheet.

see CONTENT

On selecting only one or two fields from these

three fields, user will be prompted to select

three fields as they all mandatory. If the

result is not available user will be given a

prompt that “Result is not available”

Alternative Scenario Extensions: There is no alternative step for this case;

header tab is the only place from that user

will be able to be redirected towards the

results page.

Notes and Questions

perform USE-CASE-NAME

None

6.1 UC-01: USE CASE NAME: Departments

Summary: This Use Case defines the end-user‟s activity to jump

on to the department information present on Federal

Urdu University‟s web portal.

Priority: Essential | Expected

Use Frequency: Often

Direct Actors: End User (Students/Site Visitors)

Stakeholders: Administration of Urdu University and Site

Visitors/Students

Prerequisite: PRECONDITION

User has opened the web url of Federal Urdu

University and clicked the department‟s tab from the

header area.

Main Success Scenario: visit LOCATION

User Visits the main GUI window. User is

intended to view the view department. For

department information user is on the main

page of the site.

Page 43: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 61

enter INFORMATION

User clicks the tab “Department” from the

header tabs and then select a particular

campus from following campuses menu items

from the list populated:-

1. Gulshan Campus.

2. Islamabad Campus.

3. Abdul-Haq Campus.

COMMAND

Pre-Requirement:- New page for the particular

campus should be opened, listed all the department

of that campus.

see CONTENT

1. Users hovers the mouse over any specific

department, the name of the department

should be highlighted.

2. New page for the specific department

should be opened. selecting any department

new page must be opened with following

considerations:-

a. Design/color scheme of each page should

be same.

b.Four sub-tabs under the scope of the

department should be given with following

behaviors:-

c Home:-Should return the focus to the main

information page of the department from any

other page user is visiting for the particular

department.

d.Faculty: - opens up the new page, listed

whole faculty information of that department.

e. Courses Offered: - opens up a new page,

listed all the courses offered in the particular

department.

f.News and Announcements: - opens up a new

page, with „Title‟,‟News‟ and „Attachment‟.

i. If the announcements are out of page

Page 44: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 62

scope, paging should be there.

ii. When user clicks “View Full

Announcement”, it will open up a new

pop-up window, with full details of

the announcement. Pop-up window

can be closed by the” Close” option

and move from the “Move” option

iii. User clicks “Add new announcement”

opens up a new page with following

fields for department login

-Department name will be pre-selected in

the department name field.

-Password field will be blank. User will

be able to enter password in this field.

Alternative Scenario Extensions: There is no alternative step for this case;

header tab is the only place from that user

will be able to be redirected towards the

results page.

Notes and Questions If the password goes correct, system will be

known that it‟s an- authenticated user and

will redirect the user to a new page area,

where he can put the new announcement by

browsing the file within the system, can name

the announcement and give briefing about it.

perform USE-CASE-NAME

None

6.2 UC-02:- USE CASE NAME: Research

Summary: This Use Case defines the end-user‟s activity to fetch

the research information‟s present on Federal Urdu

University web portal

Priority: Essential | Expected

Use Frequency: Often

Direct Actors: End User (Students/Site Visitors)

Stakeholders: Administration of Urdu University and Site

Page 45: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 63

Visitors/Students/Researchers

Prerequisite: PRECONDITION

User has opened the web url of Federal Urdu

University and clicked the research tab left

navigation area

Main Success Scenario: visit LOCATION

User Visits the GUI window. User is intended

to view the research.

enter INFORMATION and COMMAND

User clicks the tab from the left navigation

bar.

see CONTENT

When user is jumped onto the new page of

research, user is able to see the following

sub-tabs

1.Board of Advance Study and Research

(It will display the members of Advance study

and Research

2.Researchers

(It will display the names of the

Alternative Scenario Extensions: There is no alternative step for this case;

header tab is the only place from that user

will be able to be redirected towards the

results page.

Notes and Questions When there is no research paper available,

page can be blank

perform USE-CASE-NAME

Non

6.3 UC-03:- USE CASE NAME: Photo Gallery

Summary: This Use Case defines the end-user‟s activity to view

the photos present on Federal Urdu University Web

Page 46: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 64

Portal.

Priority: Essential | Expected

Use Frequency: Often

Direct Actors: End User (Students/Site Visitors)

Stakeholders: Administration of Urdu University and Site

Visitors/Students

Prerequisite: PRECONDITION

User has opened the web url of Federal Urdu

University and clicked the Events and activities tab

from the left navigation panel.

Main Success Scenario: visit LOCATION

User Visits the GUI window. User is intended

to view the photos of the particular event.

enter INFORMATION

User clicks the tab from the left navigation

bar.

COMMAND

Pre-Selected event will be Null

User can select any event from the drop down

list available on the top of the page.

see CONTENT

1. When the field displaying Null, whole

photo gallery will be visible with paging to

cover the scope.

2. Small thumbnails of the photos will be

displayed.

3. On hovers the mouse over any picture, a

small magnifying glass will be visible over

the thumbnail.

4. When user single right clicks the

thumbnail, thumbnail will be enlarged.

5. On enlarged thumbnail, when user hovers

the mouse over the enlarged image, a small

demagnification glass will be visible.

6. Title of picture will be visible on the footer

area of picture if available..

7. When user selects a particular event from

the drop-down menu, photos of that

Page 47: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 65

particular event will be visible with the

behavior listed in previous cases.

Alternative Scenario Extensions: There is no alternative step for this case; left

navigation panel is the only place from that

user will be able to be redirected

Notes and Questions When there is no photos available from the

database, page can be blank

perform USE-CASE-NAME

None

6.4 UC-04:- USE CASE NAME: Sports

Summary: This Use Case defines the end-user‟s activity to view

the sports events picture present on Federal Urdu

University Web Portal.

Priority: Essential | Expected

Use Frequency: Often

Direct Actors: End User (Students/Site Visitors)

Stakeholders: Administration of Urdu University and Site

Visitors/Students

Prerequisite: PRECONDITION

User has opened the web url of Federal Urdu

University and clicks the Sports tab from the left

navigation panel.

Main Success Scenario: visit LOCATION

User Visits the GUI window. User is intended

to view the Sports event photos.

enter INFORMATION

User clicks the tab from the left navigation

bar.

COMMAND

Pre-Selected event will be Null

User can select any event from the drop down

list available on the top of the page.

Page 48: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 66

see CONTENT

1. When the field displaying Null, whole

photo gallery will be visible with paging to

cover the scope of the page..

2. Small thumbnails of the photos will be

displayed.

3. On hovers the mouse over any picture, a

small magnifying glass will be visible over

the thumbnail.

4. When user single right clicks the

thumbnail, thumbnail will be enlarged.

5. On enlarged thumbnail, when user hovers

the mouse over the enlarged image, a small

demagnification glass will be visible.

6. Title of each picture will be visible on the

footer area of each picture.

7. When user selects a particular event from

the drop-down menu, photos of that

particular event will be visible with the

behavior listed in previous cases.

8. Selecting any sports event which does not have

sports picture should not disturb the page layout.

Alternative Scenario Extensions: There is no alternative step for this case; left

navigation panel is the only place from that

user will be able to be redirected

Notes and Questions When there is no photos available from the

database, page can be blank

perform USE-CASE-NAME

None

6.5 UC-05:- USE CASE NAME: Forms

Summary: This Use Case defines the end-user‟s activity to

Page 49: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 67

download the forms present on Federal Urdu

University Web Portal.

Priority: Essential | Expected

Use Frequency: Often

Direct Actors: End User (Students/Site Visitors)

Stakeholders: Administration of Urdu University and Site

Visitors/Students

Prerequisite: PRECONDITION

User has opened the web url of Federal Urdu

University and clicks the Forms tab from the left

navigation panel.

Main Success Scenario: visit LOCATION

User Visits the GUI window. User is intended

to download the forms.

enter INFORMATION

User clicks the tab from the left navigation

bar.

COMMAND

User can view the page where all the

forms are available; user clicks

download option associated with the

title of the form.

see CONTENT

When clicking any form‟s link,

download manager of the browser

should be opened.

When the file completely downloaded

in the format attached from

administrator of the site, should be

opened and user is able to view it

after successful download.

Alternative Scenario Extensions: There is no alternative step for this case; left

navigation panel is the only place from that

user will be able to be redirected on

download forms page

Notes and Questions When there is no forms uploaded from the

database of the site, page can be blank

None

Page 50: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 68

perform USE-CASE-NAME

6.6 UC-06:- USE CASE NAME: Awards and Achievements

Summary: This Use Case defines the end-user‟s activity to view

awards and achievements of Federal Urdu

University‟s students and teachers.

Priority: Essential | Expected

Use Frequency: Often

Direct Actors: End User (Students/Site Visitors)

Stakeholders: Administration of Urdu University and Site

Visitors/Students

Prerequisite: PRECONDITION

User has opened the web url of Federal Urdu

University and clicks the awards and achievement

tab from the header area.

Main Success Scenario: visit LOCATION

User Visits the GUI window. User is intended

to view the awards and achievements.

enter INFORMATION

1. User clicks the awards and

achievement tab upwards in

the header

2. User can also view the latest

award and achievement from

the main page or all over

site‟s pages on the right panel

awards and achievement‟s box

COMMAND

On clicking the awards and achievement header tab

will open a new page and on the latest awards and

achievement from the right panel box, text can be

enlarged whenever user clicks the “view full

information” static text

see CONTENT

When clicking any awards and

achievement‟s tab from the header

,new page should display the

Page 51: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 69

following information in a grid:-

Person Information

Award

Some Words about this Award

Award Picture (will be enlarged when

user hover the mouse over it), if

available.

2. All the awards and achievements can

be spread over paging if not covering

scope of the page.

3. From the right panel box, text can be

enlarged whenever user clicks the “view

full information” static text

Alternative Scenario Extensions: There is no alternative step for this case; right

small box is the only option to view the latest

award and achievement and to view all user has

to click the tab available on the header area

Notes and Questions None

perform USE-CASE-NAME

None

6.7 UC-07:- USE CASE NAME: Students Testimonial

Summary: This Use Case defines the end-user‟s activity to view

and enter student‟s testimonials of Federal Urdu

University.

Priority: Essential | Expected

Use Frequency: Often

Direct Actors: End User (Students/Site Visitors)

Stakeholders: Administration of Urdu University and Site

Visitors/Students

Prerequisite: PRECONDITION

User has opened the web url of Federal Urdu

Page 52: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 70

University and view the testimonials in the small box

on the right panel.

User can also enter its testimonial from by clicking

the “Testimonial” tab from the left navigation panel.

Main Success Scenario: visit LOCATION

User Visits the GUI window. User is intended

to view/enter the student‟s testimonials.

enter INFORMATION

When user intended to view the latest

testimonial allowed by the administrator of

the site, can be viewed on the main and each

page of the site with student‟s picture (if

available).

User is on the testimonial page, when

clicking the testimonial tab from the left

navigation panel, a new page should be

opened whenever user click on the

testimonial tab

COMMAND

Whenever user wants to enter a new

testimonial, can click the testimonial tab.

When the new page is opened, following

fields will be available:-

o Student Name

o Enrollment No.

o Student Picture

o Select Campus Name

o Select Department

Name

o Testimonial

When user enters all the fields as all of them

mandatory except “Picture” and clicks the

“Ok” button, system shall display the text as

“Thanks for your Testimonial. Your request

has been sent to administrator for approval.

When it will be approved by administrator,

then will be shown on site”

System shall display the new testimonial on

the site, if it will be allowed by the admin of the

site

Page 53: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 71

see CONTENT

User is on the testimonial page, when

clicking the testimonial tab from the left

navigation panel,shall display the following

fields in a grid:-

o Students Information

o Testimonial

View full testimonial link will be opened the

whole testimonial in a small pop-up

window,with close and move options

Alternative Scenario Extensions: There is no alternative step for this case;

right small box is the only option to view the

testimonial and from the left panel when user

clicks the testimonial.

Notes and Questions None

perform USE-CASE-NAME

None

6.8 UC-08:- USE CASE NAME: News and Announcements

Summary: This Use Case defines the end-user‟s activity to view

news and announcements added by the admin

Priority: Essential | Expected

Use Frequency: Often

Direct Actors: End User (Students/Site Visitors)

Stakeholders: Administration of Urdu University and Site

Visitors/Students

Prerequisite: PRECONDITION

User has opened the web url of Federal Urdu

University and view the news and announcements in

the small box on the right panel.

Main Success Scenario: visit LOCATION

User Visits the GUI window. User is intended

to view the news and announcements.

enter INFORMATION

Page 54: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 72

When user intended to view the latest news

added by the administrator of the site, can be

viewed on the main and each page of the site,

moving in upward direction in the small box

available on the right panel of the page.

COMMAND

User hovers the mouse on a specific news

text, the movement should be stopped and

user will be able to click the text:

see CONTENT

New page should open with the full text of the

news/announcements

Alternative Scenario Extensions: There is no alternative step for this case;

right small box is the only option to view and

click the news/announcement text

Notes and Questions None

perform USE-CASE-NAME

None

6.9 UC-09:- USE CASE NAME: Press Release

Summary: This Use Case defines the end-user‟s activity to press

releases concerned to Federal Urdu University ,

added by the admin

Priority: Essential | Expected

Use Frequency: Often

Direct Actors: End User (Students/Site Visitors)

Stakeholders: Administration of Urdu University and Site

Visitors/Students

Prerequisite: PRECONDITION

User has opened the web url of Federal Urdu

University and clicks the “Press Release” tab from

Page 55: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 73

the left navigation panel.

Main Success Scenario: visit LOCATION

User Visits the GUI window. User is intended

to view the press releases

enter INFORMATION

When user intended to view the latest and old

press releases added by the administrator of

the site, can be viewed on the main page or

any other page from the left navigation panel

COMMAND

User hovers the mouse on the Press Release

tab; the color of the tab will be highlighted.

see CONTENT

New page for Press Release shall be opened,

displaying the following information on the

page maintained in a grid:-

o Title

o Date Of News

o Text

o Press Cutting

Alternative Scenario Extensions: There is no alternative step for this case; left

navigation panel is the only option to view

Press Releases.

Notes and Questions None

perform USE-CASE-NAME

None

Page 56: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 74

6.10 Use Case List

Primary Actor Use Cases

Any visitor + Student UC-00

Any Visitor + Admin UC-01

Any Visitor UC-02

Any Visitor UC-03

Any Visitor UC-04

Any Visitor UC-05

Any Visitor UC-06

Any Visitor + Student UC-07

Any Visitor UC-08

Any Visitor UC-09

Page 57: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 75

7 User Guide

7.1 Guide for Administrator

7.1.1 ADMIN LOGIN

To log-in to the admin management, the administrator must know the user Id and

password, fill the text boxes with the correct user id and password and click on “Login”

button. If the user id or password or both are incorrect, a message “invalid id or

password” is shown on the top of the page.

After being signed in, a default page appears which displays the information of all

administrators in the centre and the navigation bars in the left corner of the page.

7.2 DESCRIPTION OF NAVIGATION BARS

7.2.1 ADMIN MANAGEMENT

When this navigation bar is clicked, the default page appears which has the name and

other information of the administrators.

.

ACTIONS CAN BE PERFORMED BY ADMINISTRATOR

Creating an Administrator:

Only the master administrator can add a new administrator by simply clicking on Create

Admin line. A form appears which asks the necessary information about the

administrator to be created. The field “Admin Level” defines the level of the user means

the level of the new administrator will be whether master or normal. “Login Name” and

“Password” define the allocated name and password to the new administrator.” First

Name” and “Last Name” define the complete name of the administrator being created.

Administrator can upload a picture for the new administrator by browsing the picture, it

Page 58: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 76

is an optional field. After completing the form, click on “Add” button. Now the new

administrator will be added to the list of the available administrator.

Deleting an Administrator:

If master administrator wants to remove the information of any administrator, simply

click on in the column of “Delete”.

Editing an Administrator:

In the same way, master administrator can edit the information of the existed

administrator to edit the record click on .A page “Update User” appears and it

displays the record of that specific administrator after editing, click on “Update” button

it automatically switches to the default page.

7.2.2 COURSE MANAGEMENT

On clicking this navigation bar, “Course Management” page opens.

ACTIONS CAN BE PERFORMED BY ADMINISTRATOR

Adding New Programs:

If admin wants to add new programs offered by Federal Urdu University, Type the name

of the program to be added in “Enter Program” text box and select the Undergraduate

and Postgraduate(to which level the program is being offered) from the dropdown list

and Click on “Add” button. A message “Program is added” is shown just below a line.

Campuses:

If an administrator wants to view, add, edit or delete any of the Campus of Federal Urdu

University, it will need just clicking on Campuses link.

When this link is clicked, a list of the existed campuses of the Federal Urdu University is

displayed.

Page 59: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 77

Adding New Campus:

If an administrator wants to add a new campus, click on Add New Campus link, a new

page appears “Insert/Update the campus”, fill the text box with the name of the new

campus and click on “Ok” button, it switches to the campuses page which contains the

campuses name (including the newly added campus).

Editing a Campus Name:

Similarly, the administrator can edit the existed campus name by click on Edit link, a

page “Insert/update the Campus” appears, a text box will display the name of campus to

be edited, change the name and click on “Ok” button, it switches to the campuses page

which contains the campuses name (including the edited campus name).

Deleting a Campus Name:

The name of any campus can be removed by clicking on Delete link.

Departments:

To view, add, edit or delete any of the department of Federal Urdu University or assign

password to any department of Federal Urdu University, click on the Departments link.

To take any action related to the departments, first select the corresponding campus from

the dropdown list and click “Ok” button. A list of departments of the selected campus

will be displayed on the bottom of the page.

Adding New Department:

If an administrator wants to introduce a new department, click on Add New Department,

a new page (Insert/Update the department) appears, select campus name from the

dropdown list, type the department name to be added and allocate a password to the

newly added department, then click on “Upload” button. Now the list of the department

will contain the information of the new department also.

Editing a Department Name:

Similarly if the administrator wants to edit the record of any existed department, click on

the Edit link, the same page (Insert/Update the department) appears and the text boxes

will display the records of the departments to be edited, edit the record and click on

Page 60: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 78

“Upload” button. Now the list of department will contain the edited information in

addition to the other records.

Deleting a Department Name:

Deletion of any record takes place just by clicking on Delete link. It means if a user wants

to delete the record of any specific record of any campus, just click on this link, the list

will now contain the all records except the deleted record.

(Courses) Semester/Year:

To view, add, edit or delete any of the Semester/year of any Program of Federal Urdu

University, click on the Semester/year link, select the campus name and department name

from the dropdown lists and click on “Ok” button. A list of the records will appear on the

bottom of the page with the name “Semester or Annual”.

Adding New Course:

If administrator wants to upload a new course to the existed course, just click on Add

New Course link, a page (Insert/Update the Course) appears, fill the required

information; select the name of campus, department and program in which the course is

being introduced and fill the last text box with the course name (either semester or year)

and click on “Upload” button. In this way a new course will be added to the record.

Editing a Course:

Similarly, to edit the course name of a particular program, click on Edit link, the same

page (Insert/Update the course) appears, edit the course name and click on “Upload”

button, the course name will be edited.

Deleting a Course:

To delete the existed course name click on Delete link, just click on this link and get

deleted the selected course name.

Subjects:

To view, add, edit or delete any of the subject of Federal Urdu University, click on the

Subjects link.Select name of campus, department, course of which subjects are to be

viewed and click on “Ok” button. A list (Subjects) will appear on the bottom of the page

Page 61: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 79

that will contain the selected campus name, department name, course name and all

subjects in the particular department of the campus.

Adding New Subject:

Clicking on Add New Subject, administrator can add a new subject, a new page

(Insert/Update the Subject) appears, select campus name, department name and course

name from the dropdown lists and text the subject name to be added, and click on

”Upload” button. The newly subject will be added to the appropriate list of the subjects.

Editing a Subject:

If the administrator wants to edit the record of any subject of any department of any

campus, click on Edit link, a page (Insert/Update the Subject), edit the record and click

on “Upload” button.

Deleting a Subject:

If the administrator wants to delete any subjects of any department of any campus, select

the subject to be removed and click on Delete link, the particular subject will be deleted

from the list.

7.3 RESULT MANAGEMENT

When this navigation bar is clicked, a new page (Result Management) appears which

displays the link of result sheets with its campus name, department name, course name

(semester/year), year of the uploaded result sheet.

ACTIONS CAN BE PERFORMED BY ADMINISTRATOR

Adding New Result Sheets:

If the administrator wants to upload a result sheet, he/she needs to click on Add New

Result Sheets link, a page (insert/update Result Sheet) appears which requires the

necessary information about the result sheet to be uploaded, select campus name,

department name, course name (semester/year) from the drop down lists and upload

result sheet by browsing. This field can accept only file with extension .xls or .doc or

.docx or .pdf, and insert the year of result to be uploaded in the last text box and click on

“Upload” button. All the record with a link Result Sheet will be displayed on Result

Management page.

Page 62: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 80

Downloading a Result Sheet:

The uploaded result sheet can be downloaded by clicking on Result Sheet link, when this

link is clicked a window (File Download) appears which asks to open or save the result

sheet, click any of the buttons upon your requirement. And click on cancel button to take

no action.

Editing a Result Sheet:

To edit the already uploaded result sheets click on Edit link, the same page (insert/update

Result Sheet) appears, edit the record of the result sheet, even that a result sheet can also

be altered if mistakenly a wrong result sheet has been uploaded. After editing the record

click on “Upload” button. You will switch on Result management page.

Deleting a Result Sheet:

Similarly, if you want to remove any of the uploaded sheets, simply click on Delete link.

The selected result sheet will be deleted without changing on the remaining result sheets.

ENROLLMENT NO:

When this navigation bar is clicked, a page (Student Enrollment No) appears which

contains the information of the enrolled students with their names, enrollment no, campus

name and department name.

ACTIONS CAN BE PERFORMED BY ADMINISTRATOR

Adding New Student Enrollment No:

To add a new student enrollment number click on Add New Student Enrollment No , a

page (Insert/Update the Enrollment No of Student) opens, select campus name,

department name from the dropdown lists and type the name and enrollment number of

the student to be recorded and click on “Upload” button. Automatically Student

Enrollment No page opens which will display the enrollment number of all recorded

students including the newly added student.

Editing the Enrollment No:

If administrator wants to edit the enrollment number or other record of a student, click

on Edit link, the same page (Insert/Update the Enrollment No of Student) appears, edit

Page 63: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 81

the record of that student and click on “Upload” button, the record will be edited and it

will be displayed on Student Enrollment No page with all other records.

Deleting the Enrollment No:

To delete the record of any student, click on Delete link.

7.4 FORMS MANAGEMENT

When this navigation bar is clicked, a new page (Forms Management) appears on the

screen which contains the form name, form (link of file).

ACTIONS CAN BE PERFORMED BY ADMINISTRATOR

Adding New Form:

To add a new form to the website, click on Add New Form link, a new page

(Insert/Update Form) appears, type the form name of the form to be uploaded (e.g.

examination, admission, degree etc), and in the form file field give the address of the

form file either by browsing or manually, click on “Upload” button, and the previous

page (Forms Management) will be shown on the screen.

Downloading a Form:

The uploaded form can be downloaded by clicking on Form link, when this link is clicked

a window (File Download) appears which asks to open or save the form, click any of the

buttons upon your requirement. And click on cancel button to take no action.

Editing a Form:

To edit a form, click on Edit link, the same page (Insert/Update Form) appears; edit the

file name or even the file. And click on “Upload” button, and the previous page (Forms

Management) will be shown on the screen with the edited records.

Deleting a Form:

To delete the form, click on Delete link, the form will be deleted from the list of uploaded

forms.

Page 64: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 82

7.5 AWARDS AND ACHIEVEMENTS

This navigation bar leads to display the awards and achievements received by the

students or teachers or any person related to the Federal Urdu University.

ACTIONS CAN BE PERFORMED BY ADMINISTRATOR

Adding a New Achievement:

To add a new award and achievement, click on Add New Achievement link, a page

(Insert/Update Awards and Achievements) opens, fill the text boxes with the

corresponding information, type name of the person to whom the award belongs, select

campus name and department name from the dropdown list, type the award title in the

award title. If you are willing to upload a picture of this achievement, click on “Browse”

button and in the last field (Person Text) type the personal comment of the award

achiever, and click on “upload” button, the previous page (Awards and Achievements)

opens which displays the whole information of the recorded awards and achievements.

Viewing the Complete Person Text:

If the person text is too long to be shown completely, click on View All link, a window

appears which displays the complete text of the achiever, even that this window can be

moved from its original position by placing the cursor on MOVE, and drag it wherever

you want it to be moved, and it can be closed easily, simply by clicking on CLOSE.

Editing Award and Achievement:

The fed awards and achievements can be edited by clicking on Edit link, a page

(Insert/Update Awards and Achievements) opens edit the record and click on “upload”

button, the previous page (Awards and Achievements) opens which displays the whole

information of the recorded awards and achievements with the addition of edited record.

Deleting Award and Achievement:

To delete any of the awards and achievements click on Delete link, the particular award

and achievement will be completely removed from the list.

Page 65: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 83

7.6 NEWS AND ANNOUNCEMENTS

This navigation bar is when clicked, a new page News and Announcement appears on the

screen which contains the title and text of the news and announcement announced by

Federal Urdu University.

ACTIONS CAN BE PERFORMED BY ADMINISTRATOR

Adding New Announcement:

To add a new announcement or news click on Add New Announcement , a page

(Insert/Update the News) appears, type the title of the news in the news title and type the

whole text of the news to be added, click on “upload” button, the previous page (News

and Announcement) opens with the added news title and text.

Viewing the Complete News Text:

If the news text is too long to be shown completely, click on View All link, a window

appears which displays the complete text of the news and announcement, even that this

window can be moved from its original position by placing the cursor on MOVE, and

drag it wherever you want it to be moved, and it can be closed easily, simply by clicking

on CLOSE.

Editing News and Announcement:

To edit the news text or title click on Edit link, the same page (Insert/Update the News)

appears, edit the news text or title and click on “upload” button, the previous page (News

and Announcement) opens with the edited news title or text.

Deleting News and Announcement:

To delete any of the news and announcements click on Delete link, specific news will be

completely deleted from the list of News and Announcements.

7.7 PRESS RELEASED

This navigation bar is when clicked, a new page (Press Released) opens which contains

the information of the press released by the Federal Urdu University.

ACTIONS CAN BE PERFORMED BY ADMINISTRATOR

Page 66: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 84

Adding New Press Released:

When u wants to add a new press released to the already existed stored press, click on

Add New Press Released, a new page (Insert/Update the Press Released), type the title of

the press, date on which the press released (date should be in this format: Year, Month,

Date), type the text of the press, and in the last field give the address of the released press

cutting either by browsing or manually. Press cutting must be either in jpeg, bitmap or

gif format, click on “upload” button, the previous page (Press Released) appears, with

the newly added press released record.

Viewing the Complete Text of Press Released:

If the press text is too long to be shown completely, click on View All link, a window

appears which displays the complete text of the press released, even that this window can

be moved from its original position by placing the cursor on MOVE, and drag it

wherever you want it to be moved, and it can be closed easily, simply by clicking on

CLOSE.

Editing the Press Released:

If the administrator wants to make change in the information of press released, he/she

must click on Edit link, the same page (Insert/Update the Press Released) appears on the

screen, edit the recorded information and click on “upload” button, the previous page

(Press Released) appears, with the edited record.

Deleting the Press Released:

To delete the record of press released from the list of records, click on Delete link,

specific press released will be completely deleted from the list of Press Released.

7.8 STUDENT TESTIMONIALS:

This navigation bar is when clicked, a new page (Student Testimonials) appears on the

screen which contains the students‟ testimonials with the other necessary information.

ACTIONS CAN BE PERFORMED BY ADMINISTRATOR

Page 67: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 85

If the student testimonial is according to our site rules and is submitted by an

authenticated student of University, then administrator will approve the testimonial to

show on the main site of FUUAST.

7.9 RESEARCH PAPERS

This navigation bar is when clicked, a new page (Researches) appears on the screen

which contains the research papers and other information.

ACTIONS CAN BE PERFORMED BY ADMINISTRATOR

Admin will check the research paper by downloading the research papers and read it. If

research papers are according to our site rules and are submitted by an educated person,

then administrator will approve the research papers to show on the main site of

FUUAST.

7.10 EVENT PICTURES

This navigation bar is when clicked, a new page (Event Pictures) appears on the screen

which contains the event title, event text (for whom the event conducted), event pictures.

ACTIONS CAN BE PERFORMED BY ADMINISTRATOR

Uploading an Event Pictures:

To upload a number of pictures simultaneously; first select the event name from the

dropdown list and then click on” Upload Event Pictures” , a new page (upload Event

Pictures) appear which can accept multiple pictures simultaneously just by dragging and

dropping the image files on the box. The image file should be of jpeg or jpg or bmp or gif

format, and width of the uploading picture should be 390px or more and its height should

be 420px or more.

Viewing the Uploaded Event Pictures:

To view the already uploaded event picture, first select the Event name, as you have

selected the event name, all the pictures related to that particular event will be listed.

Page 68: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 86

Adding New Event:

To add a new event click on Add New Event link, two more fields will appear along this

link, type the name of event to be added and description of this event, and click on “Ok”

button, the newly added event name will be recorded in the dropdown list of the events

name.

Deleting an Event Picture:

To delete any of the event pictures, click on Delete link, specific event picture will be

completely deleted from the list of Event pictures.

7.11 SPORTS EVENT PICTURES

This navigation bar is when clicked, a new page (Sports Event Pictures) appears on the

screen which contains the event title, event text (for whom the event conducted), event

pictures.

ACTIONS CAN BE PERFORMED BY ADMINISTRATOR

Uploading an Event Pictures:

To upload a number of pictures simultaneously; first select the event name from the

dropdown list and then click on” Upload Event Pictures” , a new page (upload Sport

Event Pictures) appear which can accept multiple pictures simultaneously just by

dragging and dropping the image files on the box. The image file should be of jpeg or jpg

or bmp or gif format, and width of the uploading picture should be 390px or more and its

height should be 420px or more.

Viewing the Uploaded Event Pictures:

To view the already uploaded sports event picture, first select the Event name, as you

have selected the event name, all the pictures related to that particular event will be

listed.

Adding New Event:

To add a new event click on Add New Event link, two more fields will appear along this

link, type the name of event to be added and description of this event, and click on “Ok”

Page 69: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 87

button, the newly added event name will be recorded in the dropdown list of the events

name.

Deleting Sport Event Picture:

To delete any of the event pictures, click on Delete link, specific event picture will be

completely deleted from the list of Event pictures.

CMS (CONTENT MANAGEMENT SYSTEM):

Through CMS admin can change (edit) the static pages running on the main FUUAST

website. He/she just clicks on the edit link and can change the text or image on the

particular page that has been shown on the FUUAST website.

Banner Management:

Admin can upload the banner or advertisement shown on the site.

Page 70: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 88

8 Guide for End User

Our FUUAST website has four boxes that are displayed on each page.

8.1 News & Announcements:

User can find out latest news and announcements from this box. he/she can view full

news by clicking on the news running from bottom to up.

8.2 Student Testimonials:

In this box user can see the testimonials posted by University student on our website.

He/she can view all testimonials by just clicking on the „Student Testimonial‟ link in left

navigation bar. If the User is also the student of University, so he can upload his own

testimonial on his University website.

8.3 Awards & Achievement:

In this box user can find out awards and achievements won by University or by university

student or by university teachers. These awards are uploaded by administrator of

website. User can find out a list of awards and achievement by just clicking the link

„Awards & achievements‟ in upper navigation bar.

8.4 Press Released:

In this box user can find out press cutting about the University, and can view list of press

released by just clicking on the „Press Released‟ link in left navigation bar.

Page 71: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 89

8.5 Google Search Bar:

Our website also provide search option on each page, user can search any thing related

to FUUAST website or can search any thing of world wide websites.

Page 72: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 90

History page

This is the default page of our website, where user cans find out the history of the

University.

Page 73: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 91

University page

In this page user can find out all three campuses of University, and can view the

department of a campus by just clicking on any campus link.

Page 74: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 92

Mission Statement

This page defines the mission of Federal Urdu University of Arts Sciences and

Technology.

Page 75: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 93

Postgraduate programs of Gulshan e Iqbal Campus

A list is dropped when user just mouse over on the „Admission‟ link in Upper navigation

bar, then he can select any program of any campus and can see these programs.

Page 76: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 94

Departments

User just mouse over on the „Departments‟ link in upper navigation bar, he simply find

out a dropdown list. So, he can select any campus from the list and can see all

department names that are also linked.

Page 77: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 95

A Single Department Page

This page has further four sub links for each department,

Home

Faculty

Courses offered

Announcements

Page 78: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 96

Announcement of a Department

This page shows the announcement of particular department. User can view full

announcement by just clicking on „View Full News‟. And can download attachment if

attached with the announcement. When user clicks on „Add New Announcement‟ then a

new page will be opened as shown in next page.

Page 79: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 97

Login page for Department Admin

This is login page for department administrator. So, if he has the password issued by the

Master Administrator of website, then he can upload any announcement related to that

department.

Page 80: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 98

Upload News or Announcements

After the department administrator has logged in by inserting correct password. He can

upload the announcements. He just needs to insert news title, text and upload attachment

of news if necessary.

Page 81: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 99

Results page

User can find out result sheets by just clicking on „Results‟ link in upper navigation bar.

Then fills the required fields (Select his Campus, Department, insert his enrollment no)

and click on the Ok button. Then the next page will be open as shown in next page.

Page 82: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 100

After first page of Results, if the user(student) insert the correct enrollment no then he

can jump to the second page, where he just need to select the course name so in next

selection bar all available results of that course are shown that are separated by year of

examination.

Page 83: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 101

Awards & Achievements

On this page User can find out the achievement of University.User can view full award

text by just clicking on „View Full Text‟.Also he can View large image when clicking on

any image.

Page 84: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 102

Board of Advanced Study & Researches

This page shows the information about the Board of Advanced Study and Researches of

FUUAST.

Page 85: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 103

View Uploaded Researches

Through this page user can view all Researches uploaded by researchers and can

download the research by just clicking on „Research Paper‟ link.

Page 86: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 104

Upload Research

Through this page user can upload their research on the university website. just need to

fill all required fields and upload their Research. After the approval by the Master

administrator of website, uploaded research will be available on the main website to view

and download.

Page 87: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 105

Upload Research

After uploading the Research Paper user view this message shown in the above page.

Page 88: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 106

Upload Research

After uploading the Research Paper user view this message shown in the above page.

Page 89: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 107

Events & Activities

User can view all event pictures, or can just view a particular event pictures by just

selecting event name from the selection bar.

Page 90: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 108

Events & Activities

User can view large size of image by just clicking on the image.

Page 91: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 109

Student Testimonials

User can view all testimonials submitted by the University students. And can view full

testimonial submitted by any student by just clicking on „View Full Testimonial‟.

Page 92: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 110

Add Your Testimonials

User can add their testimonial if they are the student of University. Just need to fill all

required information and click on Ok button.

Page 93: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 111

Add Your Testimonials

After adding the testimonial user views this message shown in the above page. After the

approval by the Master administrator of website, added testimonial will be available on

the main website to view.

Page 94: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 112

Chapter 4:

Document Version no. 1.1.0

Page 95: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 113

Table of Contents 4.1 Introduction……………..………………………………………………………………………………………………….……79

4.1.1Test Plan Objectives 79 4.1.2 Scope………………………………………………………………………………..……………………………………………….80

4.1.3Web Site Maintenance 80 4.1.4 Valid Information 80

4.2 Test Strategy……………………………………………………………………………………………………………..........80

4.2.1 System Test 80 4.2.2 Performance Test …………………………………………………………………………………………………………..81 4.2.3 Security Test 82 4.2.4 Stress and Volume Test ………………………………………………………………………………………………………81 4.2.5 Recovery Test …………………………………………………………………………………………………………………..81 4.2.6 Documentation Test …………………………………………………………………………………………………………81 4.2.7 Beta Test ………………………………………………………………………………………………………………………….81 4.2.8 User Acceptance Test …………………………………………………………………………………………………………81

4.3 Environment Requirements ……………………………………………………………………………………………………..82

4.3.1 Server 82 4.3.2. Client …………………………………………………………………………………………………………………………..82

4.4 Test Schedule………………………………………………..…………………………………………………………………..82 4.5 Control Procedures………………………………………………………………………………................................Error! Bookmark not defined.82 4.5.1 Reviews……………………………………………………………………………………………......................................82 4.5.1.1 Bugs Review meetings…………………………………………………………………………..............................83 4.5.1.2 Change Request…………………………………………………………………………………………………………….83 4.5.1.3 Defect Reporting………………………………………………………………………………………………….………..83 4.5.2 Functions to Be Tested………..…………………………………………………………..........................................83 4.5.3 Functions not to be Tested…………………………………………………………………………………………………..84 4.5.4 Resources and Responsibilities……………………………………………………………………………………………84 4.5.4.1 Resources……………………………………………………………………………………………………………………..84 4.5.4.2 Responsibilities……………………………………………………………………………………………………….……84 4.6 Deliverables……………………………………………………………………………………………………………….........85 4.7 Suspension / Exit Criteria…………………………………………………………………………………….………...…86 4.8 Resumption Criteria…………………………………………………………………………………………….……………86 4.9 Dependencies……………………………………………………………………………………………………….…………...86 4.9.1 Personnel Dependencies………………………………………………………………………………………….……………86 4.9.2 Software Dependencies………………………………………………………………………………………….…………….86

Page 96: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 114

4.9.3 Hardware Dependencies……………………………………………………………………………………………………...86 4.9.4 Test Data & Database…………………………………………………………………………………………………………..86 4.10 Risk Schedule……………………………………………………………………………………………………………..........86 4.10.1 Technical…………………………………………………………………………………………………………………….….….87 4.11 Test Suite……………………………………………………………………………………………………………………….….87 4.12 Test cases…………………………………………………………………………………………………………………….......88

Page 97: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 115

Version Control History:

Version Primary Primary Author(s) Description of Version Date Completed

1.0.0 Rabia Sheikh Project Planning 30-Oct,2008

1.1.0 Rida Fatima Added Test Suite 1-Nov-2008

Page 98: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 116

4.1 INTRODUCTION

Federal Urdu University has outgrown its current web portal & is developing a new

system that will allow for further growth and provide additional features. The software

test department has been tasked with testing the new system.

The new system will do the following:

Provide the users with updated information regarding results of each department of

Federal Urdu University through downloadable and viewable excel sheets, user will

be able to perform keyword search as well.

Handle the update/addition of employee information of Federal Urdu

University

Latest Announcements regarding Urdu University

Courses Management will be done and site will be updated with updated course

outlines.

Events pictures will be managed in a particular picture gallery on the main page.

Admin can view all the research papers submitted by researchers on site, and allow

these papers to show on the sites. And send an e-mail to the author of the research

paper that your paper is now shown on our site.

Admin can view all the achievements taken by students or teachers of the University.

And can also add new Achievement to the list of achievements.

Admin can view or edit all Forms such as admission form examination form,

enrolment form, degree form, fee concession form etc. or can add a form of new

category.

Admin can view all the Press Released related to FUUAST University and can upload

new Press Released related to FUUAST University to show on Site. He just enters the

title, date of news, some description (if necessary) and uploads the cutting of news

paper.

FAQs management and updated information controls.

Through CMS admin can change the static pages on the site such as About FUUAST

page.

Admin can upload the banner or advertisement shown on the site.

4.1.1 Test Plan Objectives

Define the activities required to prepare for and conduct Smoke, Beta and User

Acceptance testing.

Communicate to all responsible people who are part of delivering the project

Page 99: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 117

Define deliverables and major features and functionalities with correctness and

completeness

Communicate to all responsible parties the various Dependencies and Risks.

4.1.2 Scope

Login for Administrator

The Administration group of this portal will be able to login with their assigned

credentials from the main page of the site.

Major Security

The system will allow the person who has the login credentials to login in the admin

section of the web site, system will provide a major check and field validations on the

login fields,no fake will be able to access the admin part of the site.

4.1.3 Web Site Maintenance

Once the system will be able to identify the user, it will redirect to admin section of the

website, from where the admin will be able to handle the whole site including static and

dynamic contents.

4.1.4 Valid Information

Every user who enters into the site to get the information, it should be updated and

according to search criteria (if entered), system should not return any error or crashing

the web application.

4.2 Test Strategy

The test strategy consists of a series of different tests that will fully exercise this web this

web portal as well as the administrator console. The primary purpose of these tests is to

uncover the systems limitations and measure its full capabilities. A list of the various

planned tests and a brief explanation follows below.

4.2.1 System Test

Page 100: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 118

The System tests will focus on the behavior of the overall site as well as the Admin

Console. User scenarios will be executed against the system as well as screen mapping

and error message testing. Overall, the system tests will test the integrated system and

verify that it meets the requirements defined in the requirements document.

4.2.2 Performance Test

Performance test will be conducted to ensure that the system‟s response time meet the

user expectations and does not exceed the specified performance criteria. During these

tests, response times will be measured under heavy stress and/or volume.

4.2.3 Security Test

Security tests will determine how secure the admin login feature is. The test will verify

Unauthorized user to access the confidential contents and maintenance of the site.

4.2.4 Stress and Volume Test

We will subject the system to high requirements conditions during the peak times. The

System will be stress tested using (100 users) requirement needs to be fulfilled by the

server at once.

4.2.5 Recovery Test

Recovery tests will force the system to fail in a various ways and verify the recovery is

properly performed. It is vitally important that all server data is recovered after a system

failure and no corruption of the data occurred for both client and server.

4.2.6 Documentation Test

Tests will be conducted to check the accuracy of the user documentation. These tests will

ensure that no features are missing, and the contents can be easily understood. This is

specified for the User Manual to be provided to the clients.

4.2.7 Beta Test

All testers will beta tests the new system and will report any defects they find. This will

subject the system to tests that could not be performed in our test environment.

4.2.8 User Acceptance Test

Page 101: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 119

Once the system is ready for implementation, the department will perform User

Acceptance Testing. The purpose of these tests is to confirm that the system is developed

according to the specified user requirements and is ready for operational use.

4.3 Environment Requirements

4.3.1 Server

1 compatible machine for all necessary installations of the server‟s software.

1 GHz processor (minimum)

1 GB Ram

100 GB Hard Drive

Attached to Banyan Vines network

A Network attached printer

1 user credentials to login into the admin console of the site.

Server will be tested in the environment of XAMP, Apache server.

4.3.2 Client

Complete setup of PC with an internet connection.

Compatible Browser installed in the PC.

4.4 Test Schedule

Ramp up / System familiarization 11/30/08 - 12/10/08

System Test 12/13/08 - 12/20/08

Beta Test 12/22/08 - 12/26/08

User Acceptance Test 12/27/08 - 01/07/09

Page 102: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 120

4.5 Control Procedures

4.5.1 Reviews

The project team will perform reviews for each Phase. (i.e. Requirements Review,

Design Review, Code Review, Test Plan Review, Test Case Review and Final Test

Summary Review). A meeting notice, with related documents, will be emailed to each

participant.

4.5.1.1 Bug Review meetings

Regular basis meetings will be held to discuss reported defects coming from the

testers end. The development team will participate in the meeting and discuss the

major caused of the bugs arrivals as well as the deadlines to resolve the issues.

Testing team will also discuss the verifications of the reported bugs in the next builds

and a complete statistics of the project strength. All members of the project team will

participate in this meeting.

4.5.1.2 Change Request

Once testing begins, changes to the system are discouraged. If functional changes are

required, these proposed changes will be discussed with all the members either from

the development side or from the testing side. Change impacts to whole project have

to be identified and verified.

4.5.1.3 Defect Reporting

When defects are found, the testers will complete a defect report. These reports

should be accessible by the developer, testers and all the project team members. If a

defect has been fixed by the developers, tester has to verify it on the current project

state, he is also responsible to close and report the bug fix state to all the members of

the projects.

4.5.2 Functions to Be Tested

The following is a list of functions that will be tested:

Add/View/Edit of Results/Announcements/Pictures/Banners and other major activities

of the administrator.

Login feature of the admin.

Page 103: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 121

All tabs and buttons are functioning and displaying the accurate results to the user.

Search / Lookup in all over the sites have to be tested.

Escape to return to Main Menu/Home Page

Security features

UI themes,pictures,flash objects css and every graphic and design related part should

be as working as required

Error messages

Downloadable files

Screen mappings (GUI flow). Includes default settings

Server Response Time

Server Response Accuracy

Correctness and Accuracy in information provided to user by the website.

Alert Box.

All Browsers Compatibility.

Changes implemented to static contents and their impacts on all over the site

A Requirements Validation Matrix will “map” the test cases back to the requirements.

See Deliverables.

4.5.3 Functions not to be Tested.

All previous contents that are to be used in the new Web Portal of Federal Urdu

University will not be tested and to be assigned with low priority.

4.5.4 Resources and Responsibilities

The Test Lead and Project Manager will determine when system test will start and end.

The Test lead will also be responsible for coordinating schedules, equipment, & tools for

the testing as wells updating the Test Plan, Weekly Test Status reports and Final Test

Summary report. The testers will be responsible for writing the test cases and executing

the tests. With the help of the Test Lead, the client person will be responsible to perform

the User Acceptance Testing and to inform the currect progress and change states of the

project.

4.5.4.1 Resources

The test team will consist of:

A Project Manager

A Test Lead

1 Tester.

Page 104: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 122

4.5.4.2 Responsibilities

Project Manager Responsible for Project schedules and the

overall success of the project.

Lead Developer Serve as a primary contact/liaison between the

development department and the project team.

Test Lead Ensures the overall success of the test cycles.

He/she will coordinate weekly meetings and

will communicate the testing status to the

project team.

Testers Responsible for performing the actual system

testing.

Client Person Will assist in performing the Beta and User

Acceptance testing.

4.6 Deliverables

Deliverable Responsibility Completion

Date

Develop Test cases Testers 10/11/08

Test Case Review Test Lead, Testers 13/11/08

Obtain User ids and Passwords Test Lead 15/11/08

Execute manual tests Testers & Test Lead 18/11/08

Complete Defect Reports Everyone testing the

product

On-going

Document and communicate test

status/coverage

Test Lead Weekly

Execute Beta tests Clients 12/26/08

Document and communicate Beta

test status/coverage

Clients 12/28/08

Execute User Acceptance tests Clients 12/30/08

Page 105: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 123

Document and communicate

Acceptance test status/coverage

Clients 01/13/09

Final Test Summary Report Test Lead 9/05/98

Page 106: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 124

4.7 Suspension / Exit Criteria

If any defects are found which seriously impact the test progress, the QA tea, members

will choose to suspend testing. Criteria that will justify test suspension are:

Hardware/software is not available at the times indicated in the project schedule.

Source code contains one or more critical defects, which seriously prevents or limits

testing progress.

4.8 Resumption Criteria

If testing is suspended, resumption will only occur when the problem(s) that caused the

suspension has been resolved. When a critical defect is the cause of the suspension, the

“FIX” must be verified by the test department before testing is resumed.

4.9 Dependencies

4.9.1 Personnel Dependencies

The test team requires experience testers to develop, perform and validate tests.

These

The test team will also need the following resources available: Application

developers and Payroll Clerks.

4.9.2 Software Dependencies

The source code must be unit tested and provided within the scheduled time outlined

in the Project Schedule.

4.9.3 Hardware Dependencies

The 10 PCs (with specified hardware/software) as well as the LAN environment need

to be available during testing. Any downtime will affect the test schedule.

4.9.4 Test Data & Database

Test data & database should also be made available to the testers for use during

testing.

4.10 Risk Schedule

The schedule for each phase is very aggressive and could affect testing. A slip in the

schedule in one of the other phases could result in a subsequent slip in the test phase.

Close project management is crucial to meeting the forecasted completion date.

Page 107: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 125

4.10.1 Technical

Since this is a new system, in the event of a failure the old system can be used. We

will run our test in parallel with the production system so that there is no downtime of

the current system.

4.11 Test Suite

Summary:

Execution Date

Total No.

Status

Not Applicable

Testing Variant

22-10-2008

12

Pass

0

IE6,IE7,FF2

25-10-2008

14

Pass

0

IE6,IE7,FF2

01-11-2008

4

Pass

0

IE6,IE7,FF2

Page 108: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 126

4.12 TEST CASES:

UC# TC # Steps Expected Result Status

00 FS-001

Pre-Condition: User opens FUUAST site.

1.User clicks the Result tab.

Result tab should be opened successfully.

Three fields should be available on the

page:

(Campus name, Department name and,

Enrolment number).

Pass

00 FS-002 Result page: User enter invalid enrolment number in the field and click „Ok‟

System should prompt to enter valid enrolment number.

Pass

00 FS-003 Result page: User select campus name

and enrolment number and does not

select department name, click „Ok‟

Verify all the fields are mandatory;

system should prompt to enter

information in every field.

Pass

00 FS-004 Result: On entering all information, clicking and click „Ok‟

User should be redirected to the Results

page, verify two fields should be given,

course name and year of examination

Pass

00 FS-005 Result: User click enter any course name

and without selecting year of

examination.

Repeat the scenario with selecting

examination year and not selecting course name.

System should prompt the user to enter all the information.

Pass

00 FS-006 Result: User enter all correct

information in the fields given on results page.

Download link should be available. Pass

00 FS-007 User clicks on the download link System should start downloading the

excel sheet of results via browser

download manager.

Pass

01 FS-008 User clicks the department tab

User clicks any department from the

campus page. .

Tab should be populated in a list of campuses.

Department page should be opened with

the following sub-tabs

1.Home

2.Faculty

3.News and announcement

4. Course offered.

Pass

Page 109: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 127

UC# TC # Steps Expected Result Status

01 FS-010

User clicks on Faculty tab. Faculty page should be opened

successfully displaying faculty

information on the page.

Pass

01 FS-011 User Courses Offered tab System should open the courses page

successfully while displaying all the courses offered in the department.

Pass

01 FS-012 User clicks the back button of the browser.

System should not return the 404 HTTP

error and redirect the user to the previous

visited page.

Pass

01 FS-013 User clicks on News and announcement tab on the department page.

User clicks on attachments link

System should open the page successfully with following information in grid:-

Title

News

Attachments.

On clicking attachment link, should start

downloading the attachment

Pass

01 FS-014 User clicks the back button of the

browser.

System should not return the 404 HTTP

errors and redirect the user to the previous visited page.

Pass

02 FS-015 User clicks Research tab from the main left panel.

User should be redirected to the research tab wit following labels on the grid:-

Board of Research

Researchers

Upload Research

Pass

02 FS-016 User clicks on board of researchers sub-

tab

System should refresh the page and

should display the names and information of board of researchers.

Pass

02 FS-017 User clicks Researchers tab. Static contents of Researchers

information should be displayed on the page

Pass

02 FS-018 User clicks on Upload research tab System should opens up a new page with

following text fields:-

01 FS-009 User clicks the Home tab on department page.

The home page of the department should

get refreshed and displays the

information of the department

Page 110: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 128

User clicks the browse button on the

page.

Person Name

Person Education

Research Title

Upload Research Paper( on clicking the

browse button should allow the user to

attach a document in the pc.

03 FS-019

User clicks the photo gallery tab from the left panel

Repeat the case for sports events

System should open a new page with

photos of university uploaded by the

admin

Pass

03 FS-020 User hovers the mouse over any media thumb and clicks it.

Repeat the case for sports events

System should highlight the thumb and on

clicking it should open the media in full

view

Pass

03 FS-021 User clicks the back button of the browser.

Repeat the case for sports events

System should not return the 404 HTTP

error and redirect the user to the previous visited page.

Pass

05 FS-022 User clicks on Forms tab from the left

navigation panel

System should open a new page to

download form

Pass

05 FS-023 User clicks on the form links on the page System should start the download manager.

Pass

05 FS-024 User hits the back button. System should not return the 404 HTTP

errors and redirect the user to the

previous visited page.

Pass

06 FS-025 User has opened the web url of Federal

Urdu University and clicks the awards

and achievement tab from the header area.

User can also view the latest award and

achievement from the main page or all

over site‟s pages on the right panel

awards and achievement‟s box

On clicking the awards and achievement

header tab will open a new page and on

the latest awards and achievement from

the right panel box, text can be enlarged

whenever user clicks the “view full

information” static text

Pass

07 FS-026 User has opened the web url of Federal

Urdu University and view the testimonials

in the small box on the right panel.

User is on the testimonial page, when

clicking the testimonial tab from the left

navigation panel, a new page should be

Pass

Page 111: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 129

User can also enter its testimonial from

by clicking the “Testimonial” tab from

the left navigation panel.

opened whenever user click on the

testimonial tab.

08 FS-027 User can also enter its testimonial from

by clicking the “Testimonial” tab from

the left navigation panel.

Following fields will be available:-

Student Name

Enrollment No.

Student Picture

Select Campus Name

Select Department Name

Testimonial

09

FS-029

User has opened the web url of Federal

Urdu University and clicks the “Press

Release” tab from the left navigation

panel.

New page for Press Release shall be

opened

Pass

09 FS-030 Verify the grid information on the press release page

Following information should be

maintained in the grid:

Title

Date Of News

Text

Press Cutting

Pass

Page 112: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 130

Approvals

Name (Print) Signature Date

1.Rida Fatima Project Manager 31-Nov-2008

2.Sahar Fatima Technical Team Lead 2-Dec-2008

3.Rabia Sheikh Testing Team Lead 10-Dec-2008

4.Neelma Parveen Testing Resource 12-Dec-2008

Page 113: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 131

Selective Source Code of the Project

Style Sheet:

/*******************************************************************

Sheet of style used in our website.

*******************************************************************/

body {

text-align: center;

margin:0px;

padding:0px;

}

img{

margin:0px;

padding:0px;

border:0px;

}

.heading {

text-align: center;

}

.left {

float: left;

padding: 0% 2% 0% 0%;

width: 14%;

}

.middle {

top: 10px;

margin-left: 16%;

margin-right: 16%;

}

.right {

float: right;

padding: 0% 0% 0% 2%;

width: 14%;

Page 114: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 132

}

.footer {

padding-top: 2%;

text-align: center;

clear: both;

}

a.signup{

text-decoration:none;

color: #CC9933;

}

a.signup:hover{

text-decoration:underline;

}

a.campus{

text-decoration:none;

color: #4B7AE4;

}

a.campus:hover{

text-decoration:underline;

}

.login{

position:relative;

left: 7px;

}

.h1{

font-size:24;

color: #3399FF;

font-weight: bold;

}

.h2{

font-size: 21;

color: #0099FF;

font-weight: bold;

font-style: italic

}

.p{

font-size: 16;

color: #999999;

}

h1{

font-size:24;

color: #3399FF;

font-weight: bold;

Page 115: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 133

}

h2{

font-size: 21;

color: #0099FF;

font-weight: bold;

font-style: italic

}

h3{

font-size: 19;

color: #B58903;

font-weight: bold;

font-style: italic;

text-decoration: underline

}

.small_heading{

font-size: 16;

color: #B58903;

font-weight: bold;

font-style: italic;

text-decoration: underline

}

p{

font-size: 16;

color: #999999;

}

.faculty{

font-size: 13;

color: #999999;

}

a.faculty{

text-decoration:none;

color: #999999;

}

a.faculty:hover{

text-decoration:underline;

}

.preload1 {background: url(images/three_1.gif);}

.preload2 {background: url(images/three_1a.gif);}

#nav {padding:0; margin:0; list-style:none; height:38px; background:#fff

url(images/three_0.gif) repeat-x; position:relative; z-index:500; font-family:arial,

verdana, sans-serif;}

#nav li.top {display:block; float:left; height:38px;}

Page 116: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 134

#nav li a.top_link {display:block; float:left; height:35px; line-height:33px; color:#ccc;

text-decoration:none; font-size:11px; font-weight:bold; padding:0 0 0 12px;

cursor:pointer;background: url(images/three_0.gif);}

#nav li a.top_link span {float:left; display:block; padding:0 24px 0 12px; height:35px;

background: url(images/three_0.gif) right top no-repeat;}

#nav li a.top_link span.down {float:left; display:block; padding:0 24px 0 12px;

height:35px; background: url(images/three_0a.gif) no-repeat right top;}

#nav li:hover a.top_link {color:#fff; background: url(images/three_1.gif) no-repeat;}

#nav li:hover a.top_link span {background:url(images/three_1.gif) no-repeat right top;}

#nav li:hover a.top_link span.down {background:url(images/three_1a.gif) no-repeat right

top;}

/* Default list styling */

#nav li:hover {position:relative; z-index:200;}

#nav li:hover ul.sub

{left:1px; top:38px; background: #7863F9; padding:3px; border:1px solid #5c731e;

white-space:nowrap; width:90px; height:auto; z-index:300;}

#nav li:hover ul.sub li

{display:block; height:20px; position:relative; float:left; width:110px; font-

weight:normal;}

#nav li:hover ul.sub li a

{display:block; font-size:11px; height:18px; width:108px; line-height:18px; text-

indent:5px; color:#FFFFFF; text-decoration:none; border:1px solid #7863F9;}

#nav li ul.sub li a.fly

{background:#7863F9 url(images/arrow.gif) 80px 6px no-repeat;}

#nav li:hover ul.sub li a:hover

{background:#B2B8F9; color:#fff; border-color:#020EFA;}

#nav li:hover ul.sub li a.fly:hover

{background:#B2B8F9 url(images/arrow_over.gif) 80px 6px no-repeat; color:#fff;}

#nav li:hover li:hover ul,

#nav li:hover li:hover li:hover ul,

#nav li:hover li:hover li:hover li:hover ul,

#nav li:hover li:hover li:hover li:hover li:hover ul

{left:90px; top:-4px; background: #7863F9; padding:3px; border:1px solid #5c731e;

white-space:nowrap; width:90px; z-index:400; height:auto;}

#nav ul,

#nav li:hover ul ul,

#nav li:hover li:hover ul ul,

#nav li:hover li:hover li:hover ul ul,

#nav li:hover li:hover li:hover li:hover ul ul

Page 117: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 135

{position:absolute; left:-9999px; top:-9999px; width:103px; height:166px; margin:0;

padding:0; list-style:none;}

#nav li:hover li:hover a.fly,

#nav li:hover li:hover li:hover a.fly,

#nav li:hover li:hover li:hover li:hover a.fly,

#nav li:hover li:hover li:hover li:hover li:hover a.fly

{background:#7863F9 url(images/arrow_over.gif) 80px 6px no-repeat; color:#fff; border-

color:#7863F9;}

#nav li:hover li:hover li a.fly,

#nav li:hover li:hover li:hover li a.fly,

#nav li:hover li:hover li:hover li:hover li a.fly

{background:#FF006C url(images/arrow.gif) 80px 6px no-repeat; color:#000; border-

color:#bbd37e;}

/*******************************The End*****************************/

Page 118: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 136

Connection String:

/*******************************************************************

Connection to databases

*******************************************************************/

<?php

$server = "localhost";

$database = "uni_site";

$user = "root";

$password = "";

$link = mysql_connect($server, $user, $password);

if (!$link) { die('Could not connect: ' . mysql_error()); }

// make $database the current db

$db_selected = mysql_select_db($database, $link);

if (!$db_selected) { die ("Cant use $database : " . mysql_error()); }

?>

Constants used in website:

<?

SITE_URL=”http://localhost/uni_site/”;

?>

/*******************************The End*****************************/

Page 119: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 137

Admin Panel:

/*******************************************************************

Admin panel’s main page in which all other pages are including.(admin/index.php)

*******************************************************************/

<?php session_start(); ?>

<?php include_once("includes.php"); ?>

<?php include_once("security.php"); ?>

<?php echo display_error(); ?>

<html>

<head>

<link href="<?=SITE_URL?>threefixed.css" rel="stylesheet" type="text/css">

<title>Federal Urdu University of Arts, Sciences & Technology</title>

<script src="<?=SITE_URL?>pro_dropdown_2/stuHover.js"

type="text/javascript"></script>

<script type="text/javascript">

function roll(img_name1, img_src1)

{

document[img_name1].src = img_src1;

document[img_name2].src = img_src2;

}

</script>

<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">

</head>

<body>

<table width="100%" align="center" cellpadding="0" cellspacing="0" border="0" >

<tr><td><img src="<?=SITE_URL?>images/header.jpg" width="100%"></td></tr>

<tr><td>

<table width="100%" border="0" bordercolor="#999999">

<tr>

<td width="22%" valign="top"><table width="100%" border="0"

cellpadding="0" cellspacing="0">

<tr><td>

<table width="100%" border="0" cellspacing="0"

cellpadding="0">

<tr>

<td width="10%" align="right" valign="top" style="height:50px;

background:url(<?=SITE_URL?>images/top_left.gif); background-repeat:no-repeat;

background-position:right top;"></td>

Page 120: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 138

<td width="80%" valign="bottom"><a

href="<?=SITE_URL?>admin/index.php?m=admins" onMouseOver="roll('admin',

'<?=SITE_URL?>hover/1.gif')"

onmouseout="roll('admin', '<?=SITE_URL?>images/1.gif')">

<IMG SRC="<?=SITE_URL?>images/1.gif" WIDTH=176

HEIGHT=26 ALT="" name="admin" ></a></td>

<td width="10%" align="left" valign="top" style="height:50px;

background:url(<?=SITE_URL?>images/top_right.gif); background-repeat:no-repeat;

background-position:left top;"></td>

</tr>

<tr>

<td align="left" valign="top"></td>

<td valign="middle"><IMG SRC="<?=SITE_URL?>images/left-navigation-

bar_09.gif" WIDTH=176 HEIGHT=9 ALT=""></td>

<td align="left" valign="top"></td>

</tr>

<tr>

<td align="left" valign="top"></td>

<td valign="middle"><a href="<?=SITE_URL?>admin/index.php?m=course"

onMouseOver="roll('cours', '<?=SITE_URL?>hover/2.gif')"

onmouseout="roll('cours', '<?=SITE_URL?>images/2.gif')">

<IMG SRC="<?=SITE_URL?>images/2.gif" WIDTH=176

HEIGHT=26 ALT="" name="cours" ></a></td>

<td align="left" valign="top"></td>

</tr>

<tr>

<td align="left" valign="top"></td>

<td valign="middle"><IMG SRC="<?=SITE_URL?>images/left-navigation-

bar_09.gif" WIDTH=176 HEIGHT=9 ALT=""></td>

<td align="left" valign="top"></td>

</tr>

<tr>

<td align="left" valign="top"></td>

<td valign="middle"><a href="<?=SITE_URL?>admin/index.php?m=result"

onMouseOver="roll('res', '<?=SITE_URL?>hover/3.gif')"

onmouseout="roll('res', '<?=SITE_URL?>images/3.gif')">

<IMG SRC="<?=SITE_URL?>images/3.gif" WIDTH=176

HEIGHT=26 ALT="" name="res" ></a></td>

<td align="left" valign="top"></td>

</tr>

<tr>

<td align="left" valign="top"></td>

<td valign="middle"><IMG SRC="<?=SITE_URL?>images/left-navigation-

bar_09.gif" WIDTH=176 HEIGHT=9 ALT=""></td>

<td align="left" valign="top"></td>

</tr>

Page 121: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 139

<tr>

<td align="left" valign="top"></td>

<td valign="middle"><a href="<?=SITE_URL?>admin/index.php?m=inroll"

onMouseOver="roll('inroll', '<?=SITE_URL?>hover/14.gif')"

onmouseout="roll('inroll', '<?=SITE_URL?>images/14.gif')">

<IMG SRC="<?=SITE_URL?>images/14.gif" WIDTH=176

HEIGHT=26 ALT="" name="inroll" ></a></td>

<td align="left" valign="top"></td>

</tr>

<tr>

<td align="left" valign="top"></td>

<td valign="middle"><IMG SRC="<?=SITE_URL?>images/left-navigation-

bar_09.gif" WIDTH=176 HEIGHT=9 ALT=""></td>

<td align="left" valign="top"></td>

</tr>

<tr>

<td align="left" valign="top"></td>

<td><a href="<?=SITE_URL?>admin/index.php?m=forms"

onMouseOver="roll('form', '<?=SITE_URL?>hover/4.gif')"

onmouseout="roll('form', '<?=SITE_URL?>images/4.gif')">

<IMG SRC="<?=SITE_URL?>images/4.gif" ALT=""

name="form" WIDTH=176 HEIGHT=26 ></a></td>

<td align="left" valign="top"></td>

</tr>

<tr>

<td align="left" valign="top"></td>

<td valign="middle"><IMG SRC="<?=SITE_URL?>images/left-navigation-

bar_09.gif" WIDTH=176 HEIGHT=9 ALT=""></td>

<td align="left" valign="top"></td>

</tr>

<tr>

<td align="left" valign="top"></td>

<td><a href="<?=SITE_URL?>admin/index.php?m=awards"

onMouseOver="roll('award', '<?=SITE_URL?>hover/5.gif')"

onmouseout="roll('award', '<?=SITE_URL?>images/5.gif')">

<IMG SRC="<?=SITE_URL?>images/5.gif" ALT=""

name="award" WIDTH=176 HEIGHT=26 ></a></td>

<td align="left" valign="top"></td>

</tr>

<tr>

<td align="left" valign="top"></td>

<td valign="middle"><IMG SRC="<?=SITE_URL?>images/left-navigation-

bar_09.gif" WIDTH=176 HEIGHT=9 ALT=""></td>

<td align="left" valign="top"></td>

</tr>

<tr>

Page 122: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 140

<td align="left" valign="top"></td>

<td><a href="<?=SITE_URL?>admin/index.php?m=news"

onMouseOver="roll('new', '<?=SITE_URL?>hover/6.gif')"

onmouseout="roll('new', '<?=SITE_URL?>images/6.gif')">

<IMG SRC="<?=SITE_URL?>images/6.gif" ALT=""

name="new" WIDTH=176 HEIGHT=26 ></a></td>

<td align="left" valign="top"></td>

</tr>

<tr>

<td align="left" valign="top"></td>

<td valign="middle"><IMG SRC="<?=SITE_URL?>images/left-navigation-

bar_09.gif" WIDTH=176 HEIGHT=9 ALT=""></td>

<td align="left" valign="top"></td>

</tr>

<tr>

<td align="left" valign="top"></td>

<td><a href="<?=SITE_URL?>admin/index.php?m=press"

onMouseOver="roll('pres', '<?=SITE_URL?>hover/7.gif')"

onmouseout="roll('pres', '<?=SITE_URL?>images/7.gif')">

<IMG SRC="<?=SITE_URL?>images/7.gif" ALT=""

name="pres" WIDTH=176 HEIGHT=26 ></a></td>

<td align="left" valign="top"></td>

</tr>

<tr>

<td align="left" valign="top"></td>

<td valign="middle"><IMG SRC="<?=SITE_URL?>images/left-navigation-

bar_09.gif" WIDTH=176 HEIGHT=9 ALT=""></td>

<td align="left" valign="top"></td>

</tr>

<tr>

<td align="left" valign="top"></td>

<td><a href="<?=SITE_URL?>admin/index.php?m=std_testi"

onMouseOver="roll('std_testi', '<?=SITE_URL?>hover/8.gif')"

onmouseout="roll('std_testi', '<?=SITE_URL?>images/8.gif')">

<IMG SRC="<?=SITE_URL?>images/8.gif" ALT=""

name="std_testi" WIDTH=176 HEIGHT=26 ></a></td>

<td align="left" valign="top"></td>

</tr>

<tr>

<td align="left" valign="top"></td>

<td valign="middle"><IMG SRC="<?=SITE_URL?>images/left-navigation-

bar_09.gif" WIDTH=176 HEIGHT=9 ALT=""></td>

<td align="left" valign="top"></td>

</tr>

<tr>

<td align="left" valign="top"></td>

Page 123: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 141

<td><a href="<?=SITE_URL?>admin/index.php?m=research"

onMouseOver="roll('research', '<?=SITE_URL?>hover/9.gif')"

onmouseout="roll('research', '<?=SITE_URL?>images/9.gif')">

<IMG SRC="<?=SITE_URL?>images/9.gif" ALT=""

name="research" WIDTH=176 HEIGHT=26 ></a></td>

<td align="left" valign="top"></td>

</tr>

<tr>

<td align="left" valign="top"></td>

<td valign="middle"><IMG SRC="<?=SITE_URL?>images/left-navigation-

bar_09.gif" WIDTH=176 HEIGHT=9 ALT=""></td>

<td align="left" valign="top"></td>

</tr>

<tr>

<td align="left" valign="top"></td>

<td><a href="<?=SITE_URL?>admin/index.php?m=events"

onMouseOver="roll('event', '<?=SITE_URL?>hover/10.gif')"

onmouseout="roll('event', '<?=SITE_URL?>images/10.gif')">

<IMG SRC="<?=SITE_URL?>images/10.gif" ALT=""

name="event" WIDTH=176 HEIGHT=26 ></a></td>

<td align="left" valign="top"></td>

</tr>

<tr>

<td align="left" valign="top"></td>

<td valign="middle"><IMG SRC="<?=SITE_URL?>images/left-navigation-

bar_09.gif" WIDTH=176 HEIGHT=9 ALT=""></td>

<td align="left" valign="top"></td>

</tr>

<tr>

<td align="left" valign="top"></td>

<td><a href="<?=SITE_URL?>admin/index.php?m=sport_events"

onMouseOver="roll('sport_events', '<?=SITE_URL?>hover/11.gif')"

onmouseout="roll('sport_events',

'<?=SITE_URL?>images/11.gif')">

<IMG SRC="<?=SITE_URL?>images/11.gif" ALT=""

name="sport_events" WIDTH=176 HEIGHT=26 ></a></td>

<td align="left" valign="top"></td>

</tr>

<tr>

<td align="left" valign="top"></td>

<td valign="middle"><IMG SRC="<?=SITE_URL?>images/left-navigation-

bar_09.gif" WIDTH=176 HEIGHT=9 ALT=""></td>

<td align="left" valign="top"></td>

</tr>

<tr>

<td align="left" valign="top"></td>

Page 124: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 142

<td><a href="<?=SITE_URL?>admin/index.php?m=site_contents"

onMouseOver="roll('site_contents', '<?=SITE_URL?>hover/12.gif')"

onmouseout="roll('site_contents',

'<?=SITE_URL?>images/12.gif')">

<IMG SRC="<?=SITE_URL?>images/12.gif" ALT=""

name="site_contents" WIDTH=176 HEIGHT=26 ></a></td>

<td align="left" valign="top"></td>

</tr>

<tr>

<td align="left" valign="top"></td>

<td valign="middle"><IMG SRC="<?=SITE_URL?>images/left-navigation-

bar_09.gif" WIDTH=176 HEIGHT=9 ALT=""></td>

<td align="left" valign="top"></td>

</tr>

<tr>

<td align="right" valign="bottom" style="height:50px;

background:url(<?=SITE_URL?>images/bottom_left.gif); background-repeat:no-repeat;

background-position:right bottom;"></td>

<td valign="top"><a href="<?=SITE_URL?>admin/index.php?m=ads"

onMouseOver="roll('ads', '<?=SITE_URL?>hover/13.gif')"

onmouseout="roll('ads', '<?=SITE_URL?>images/13.gif')">

<IMG SRC="<?=SITE_URL?>images/13.gif" WIDTH=176

HEIGHT=26 ALT="" name="ads" ></a></td>

<td align="left" valign="bottom" style="height:50px;

background:url(<?=SITE_URL?>images/bottom_right.gif); background-repeat:no-

repeat; background-position:left bottom;"></td>

</tr>

</table>

</td></tr>

</table>

</td>

<td width="78%" valign="top">

<table width="100%" border="0" cellpadding="0" cellspacing="0"

align="center">

<tr><td align="center">&nbsp;</td></tr>

<tr><td>

<table width="100%" border="0" cellpadding="0"

cellspacing="0" align="center">

<tr><td>

<?

if (isset($_GET['m']))

{

$m = $_GET['m'].'.php';

include_once($m);

}

Page 125: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 143

else

{

include_once("admins.php");

}

?>

</td></tr>

</table>

</td></tr>

</table>

</td>

</tr>

</table>

</td></tr>

<tr><td><br><br><br><img

src="<?=SITE_URL?>images/footer.jpg"></td></tr>

</table>

</body>

</html>

/*******************************The End*****************************/

/*******************************************************************

Login page for Admin

*******************************************************************/

<?php

# IF ADMIN IS NOT LOGGED IN THEN SEND ADMIN TO LOGIN PAGE

if(isset($_SESSION["admin_id"])){}

else

{

$_SESSION['msg'][] = "Please Login to Admin Management...";

echo "<meta http-equiv=\"refresh\" content=\"0;URL=login.php\" />";

exit;

}

?>

/*******************************login.php*****************************/

<form method="POST" name="form1" action="checklogin.php">

<table border="0" cellpadding="0" cellspacing="0" width="100%" align="center">

<!-- fwtable fwsrc="LOGIN(slices).png" fwbase="login.jpg" fwstyle="Dreamweaver"

fwdocid = "742308039" fwnested="0" -->

<tr><td><?php echo display_error(); ?></td></tr>

Page 126: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 144

<tr><td>&nbsp;</td></tr>

<tr>

<td><table width="343" border="2" align="center" cellpadding="0" cellspacing="0"

bordercolor="#6699FF">

<tr><td colspan="5" bgcolor="#6699FF" ><div align="center" class="heading"><?php

echo SITE_NAME; ?> Admin Login</div></td>

</tr>

<tr><td><table border="0" cellpadding="0" cellspacing="5" width="100%"

align="center">

<tr>

<td colspan="5" >&nbsp;</td>

</tr>

<tr>

<td width="80">&nbsp;</td>

<td width="77">User ID</td>

<td colspan="3">&nbsp;&nbsp;<input name="login_id" type="text" id="login_id"

/></td>

</tr>

<tr>

<td width="80">&nbsp;</td>

<td>Password</td>

<td colspan="3">&nbsp;&nbsp;<input name="password" type="password"

id="password" /></td>

</tr>

<tr>

<td colspan="2">&nbsp;</td>

<td width="141" align="center"><input type="image" name="login_r4_c3"

src="<?=SITE_URL?>images/login_btn.gif" width="59" height="22" border="0" alt=""

/></td>

<td width="92">&nbsp;</td>

</tr>

<tr>

<td colspan="5" >&nbsp;</td>

</tr>

</table></td></tr>

</table>

</td>

</tr>

<tr><td>&nbsp;</td></tr>

<tr><td>&nbsp;</td></tr>

<tr><td>&nbsp;</td></tr>

</table>

</form>

Page 127: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 145

/******************************checklogin.php****************************/

<?

$return_url = isset($_REQUEST['return_url']) ? $_REQUEST['return_url'] : "index.php";

$username = isset($_REQUEST['username']) ?

mysql_query_string($_REQUEST['username']) : "";

$login_id = isset($_REQUEST['login_id']) ?

mysql_query_string($_REQUEST['login_id']) : "";

$password = isset($_REQUEST['password']) ?

mysql_query_string($_REQUEST['password']) : "";

// IF LOGIN AS A ADMIN OR MANAGER

$sql = "SELECT * FROM admins where BINARY login_id = '$login_id' and BINARY

password = '$password'";

if($result = mysql_query($sql))

{

if(mysql_num_rows($result) == 0)

{

$_SESSION['msg'][] = "Invalid ID or Password...";

echo "<meta http-equiv=\"refresh\" content=\"0;URL=login.php\" />";

exit;

}

else

{

$row = mysql_fetch_array($result);

if ($row["status"] == 0)

{

$_SESSION['msg'][] = "Your account is not active. Please check

your e-mail";

echo "<meta http-equiv=\"refresh\" content=\"0;URL=login.php\"

/>";

exit;

}

elseif($row["status"] == 1)

{

$sql = "UPDATE admins SET last_login=SYSDATE() WHERE

admin_id={$row['admin_id']}";

if(!mysql_query($sql)){exit("$sql<br>\n".mysql_error());}

$_SESSION['admin_id'] = $row['admin_id'];

$_SESSION['fullname'] = $row['firstname']." ".$row['lastname'];

$_SESSION['member_level'] = $row['member_level'];

echo "<meta http-equiv=\"refresh\"

content=\"0;URL=".$return_url."\" />";

exit;

}

Page 128: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 146

}

}

else{exit("$sql<br>\n".mysql_error());}

?>

/*******************************The End*****************************/

Admin Features:

For Example:

Admin Management /*******************************************************************

*A page which describe the information of admins.

*Only the Master admin can add, edit or delete the administrator.

*Normal admin can’t see the add, edit or delete options.

*******************************************************************/

<?php

if(!isset($_REQUEST['orderby'])) $_REQUEST['orderby'] = "admin_id";

if(!isset($_REQUEST['sortby'])) $_REQUEST['sortby'] = "desc";

$display = isset($_REQUEST['display']) ? $_REQUEST['display']

: "List";

$Action = isset($_REQUEST['Action']) ? $_REQUEST['Action']

: "";

$admin_id = isset($_REQUEST['admin_id']) ?

$_REQUEST['admin_id'] : 0;

# USER BASIC INFORMATION REQUEST

$login_id = isset($_REQUEST['login_id']) ?

mysql_query_string($_REQUEST['login_id']) : "";

$password = isset($_REQUEST['password']) ? $_REQUEST['password'] : "";

$firstname = isset($_REQUEST['firstname']) ?

mysql_query_string($_REQUEST['firstname']) : "";

$lastname = isset($_REQUEST['lastname']) ?

mysql_query_string($_REQUEST['lastname']) : "";

$aboutme = isset($_REQUEST['aboutme']) ?

mysql_query_string($_REQUEST['aboutme']) : "";

$picture = (isset($_FILES['picture']) AND $_FILES['picture']['size'] > 0 AND

$_FILES['picture']['error'] == 0) ? $_FILES['picture'] : "";

$status = isset($_REQUEST['status']) ? $_REQUEST['status'] : 0;

$member_level = isset($_REQUEST['member_level']) ?

$_REQUEST['member_level'] : 0;

Page 129: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 147

if($password != "")

{

$password = "`password`='$password',";

}

else

{

$password = "";

}

# ERRORS AND VALIDATIONS

if($Action == "Add" OR $Action == "Update")

{

if(is_array($picture)) # CHECK UPLOADED FILE FOR VALIDATION

{

$picture['name'] = str_replace(" ","_",$picture['name']);

$picture['name'] = str_replace("&","and",$picture['name']);

# CHECK FILE TYPE IF IT IS IMAGE JPG,GIF,PNG ETC

$fnarr = explode(".", $picture['name']);

$file_extension = strtolower($fnarr[count($fnarr)-1]);

$allowed_file_type = array('jpg','jpeg','gif');

if(in_array($file_extension,$allowed_file_type))

{

# GO AHEAD, THESE FILE TYPE ALLOWED

$picture['name'] =

substr(md5($picture['name'].time()),5,15).".".$file_extension;

}

else

{

$_SESSION['msg'][] = "Invalid Image type! please upload

only ".implode(",",$allowed_file_type)." files.";

}

}

if($login_id == ""){$_SESSION['msg'][] = "Please enter user name";}

if($firstname == ""){$_SESSION['msg'][] = "Please enter First name";}

if($lastname == ""){$_SESSION['msg'][] = "Please enter Last name";}

if($password == ""){$_SESSION['msg'][] = "Please provide some

password";}

if(isset($_SESSION['msg']))

{

$display = $Action;

$Action = "";

Page 130: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 148

}

}

// ADD NEW MEMBER

if($Action == "Add")

{

$sql = "select * from admins where login_id='$login_id'";

# check if admin is already there

if($result = mysql_query($sql))

{

if(mysql_num_rows($result) > 0)

{

$_SESSION['msg'][] = "User already exist...";

}

else

{

if(is_array($picture))

{

if(is_dir("../images/"))

{

$file = "../images/".$picture['name'];

if(move_uploaded_file($picture['tmp_name'],$file))

{

$picture = $picture['name'];

}

else

{

$picture = "";

}

}

else

{

echo "dir "."../images/"." not exist";

exit();

}

}

$sql = "INSERT INTO admins SET

Page 131: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 149

`login_id`= '$login_id',

$password

`firstname` = '$firstname',

`lastname` = '$lastname',

`aboutme` = '$aboutme',

`join_date` = SYSDATE(),

`last_updated` = SYSDATE(),

`picture`= '$picture',

member_level = $member_level

";

if(!mysql_query($sql)){exit("$sql<br>\n".mysql_error());}

$_SESSION['msg'][] = "New member [ $login_id ] added

successfully...";

echo "<meta http-equiv=\"refresh\"

content=\"0;URL=".SITE_URL.ADMIN_PATH.basename($_SERVER['PHP_SELF'])."

?m=admins\" />";

exit();

}

}

// UPLOADING PROCESS FOR PHOTO 1

}

// UPDATE NEW MEMBER

if($Action == "Update")

{

$Delete1 =

isset($_REQUEST['Delete1']) ? $_REQUEST['Delete1'] : 0;

$oldfile = isset($_REQUEST['oldfile']) ? $_REQUEST['oldfile'] : 0;

if(is_array($picture)){ $Delete1 = 1; }

// DELETE PHOTO 1

if($Delete1)

{

if(file_exists("../images/".$oldfile))

{

if(unlink("../images/".$oldfile))

{

Page 132: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 150

$_SESSION['msg'][] = "$oldfile file deleted...";

}

}

$sql = "UPDATE admins SET `picture`='' WHERE

admin_id=$admin_id";

if (!mysql_query($sql)){exit("$sql<br>\n".mysql_error());}

}

// UPLOADING PROCESS FOR PHOTO 1

if(is_array($picture))

{

if(is_dir("../images/"))

{

$file = "../images/".$picture['name'];

if(move_uploaded_file($picture['tmp_name'],$file))

{

$picture = $picture['name'];

$sql = "UPDATE admins SET `picture`='$picture'

WHERE admin_id=$admin_id";

if (!mysql_query($sql)){exit("$sql<br>\n".mysql_error());}

}

else

{

$picture = "";

}

}

else

{

echo "dir "."../images/"." not exist";

exit();

}

}

$sql = "UPDATE admins SET

`login_id` = '$login_id',

$password

`firstname` = '$firstname',

`lastname` = '$lastname',

`aboutme` = '$aboutme',

`last_updated` = SYSDATE(),

member_level = $member_level

WHERE admin_id=$admin_id

";

if (!mysql_query($sql)){exit("$sql<br>\n".mysql_error());}

Page 133: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 151

$_SESSION['msg'][] = "User updated successfully...";

echo "<meta http-equiv=\"refresh\"

content=\"0;URL=".SITE_URL.ADMIN_PATH.basename($_SERVER['PHP_SELF'])."

?m=admins\" />";

exit();

}

// DELETE MEMBER

if($Action == "Delete" AND $admin_id > 0)

{

$sql = "SELECT * FROM admins WHERE admin_id=$admin_id";

if(!mysql_query($sql)){exit("$sql<br>\n".mysql_error());}

else

{

$result = mysql_query($sql);

$row = mysql_fetch_array($result);

$login_id = $row['login_id'];

$picture = $row['picture'];

}

if($row['picture'] != "")

{

if(file_exists("../images/".$row['picture']))

{

if(unlink("../images/".$row['picture']))

{

$_SESSION['msg'][] = "File [ {$row['picture']} ] has

been deleted...";

}

}

}

# DELETE admins

$sql = "DELETE FROM admins WHERE admin_id=$admin_id";

if (!mysql_query($sql)){exit("$sql<br>\n".mysql_error());}

$_SESSION['msg'][] = "User [ $login_id ] has been deleted...";

echo "<meta http-equiv=\"refresh\"

content=\"0;URL=".SITE_URL.ADMIN_PATH.basename($_SERVER['PHP_SELF'])."

?m=admins\" />";

exit();

}

?>

<?php include_once("sortorder.php"); ?>

<?php

Page 134: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 152

// ADD OR UPDATE MEMBER FORM

if($display == "Add" OR ($display == "Update" AND $admin_id > 0))

{

if($display == "Update")

{

$sql = "SELECT * FROM admins WHERE

admin_id=$admin_id";

if($result = mysql_query($sql))

{

$row = mysql_fetch_array($result);

# BASIC INFORMATION

$login_id = $row['login_id'];

$password = $row['password'];

$firstname = $row['firstname'];

$lastname = $row['lastname'];

$aboutme = $row['aboutme'];

$picture = $row['picture'];

$status = $row['status'];

$member_level = $row['member_level'];

}else{exit("$sql<br>\n".mysql_error());}

}

?>

<table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td style="padding:14px;"><table width="100%" border="0" cellspacing="0"

cellpadding="0">

<tr>

<td valign="top" bgcolor="#FFFFFF" style="padding:1px;"><table

width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td><table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td width="50%" class="bigHeader"><span class="heading"><?php echo

$display; ?> User</span></td>

<td width="50%" align="right" >&nbsp;

</td>

</tr>

</table></td>

</tr>

Page 135: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 153

<tr>

<td><?php echo display_error(); ?></td>

</tr>

<tr>

<td>

<form action="" method="post" enctype="multipart/form-data"

name="form1" id="form1" >

<table width="100%">

<tr>

<td class="heading1">Admin Basic Information</td>

</tr>

<tr>

<td><table width="100%" border="0" cellpadding="3" cellspacing="3"

id="basic" style="display:block;">

<tr> <td width="81">Admin Level</td>

<td width="258"><?php

// GET type COMBO BOX

$status_array['sql'] = "SELECT title,value FROM dropdownitems

WHERE itemtype='member_level' ORDER BY sort_order";

$status_array['title_field'] = "title";

$status_array['value_field'] = "value";

$status_array['combobox_name'] = "member_level";

$status_array['select_value'] = $member_level;

$status_array['default_title'] = 0;

echo combobox($status_array);

?></td>

</tr>

<tr>

<td>Login Name</td>

<td><input name="login_id" type="text" id="login_id"

value="<?php echo $login_id; ?>" /></td>

</tr>

<tr>

<td>First Name </td>

<td><input name="firstname" type="text" id="firstname"

value="<?php echo $firstname; ?>" /> </td>

</tr>

<tr>

<td>Last Name </td>

<td><input name="lastname" type="text" id="lastname"

value="<?php echo $lastname; ?>" /></td>

</tr>

Page 136: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 154

<tr>

<td> Password </td>

<td><input name="password" type="password" id="password"

value="<?php echo $password; ?>" /></td>

</tr>

<tr>

<td>Picture<br /></td>

<td><?php if($display == "Update" AND $picture != "")

{

$filename = "../images/".$picture;

if(file_exists($filename))

{

echo "<img

src=\"thumb.php?src=$filename&dest=$filename&x=300&y=250&f=0\" border=\"0\"

/><br>".$picture;

}

else

{

echo "The file $filename does not exist";

}

echo "<label><input name=\"Delete1\" type=\"checkbox\" id=\"Delete1\"

value=\"1\" />Delete</label><input name=\"oldfile\" type=\"hidden\" value=\"$picture\"

/><br>";

}?>

<label>Upload Photo

<input name="picture" type="file" id="picture" />

</label></td>

</tr>

<tr>

<td>&nbsp;</td>

<td>&nbsp;</td>

</tr>

</table></td>

</tr>

<tr>

<td><input name="submit2" type="submit" id="submit2" value="<?php

echo $display; ?>" class="btn"/>

<input type="button" class="btn" name="button_back" value="Back"

onclick="parent.history.back(); return false;" > </td> </tr>

</table>

Page 137: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 155

<input type="hidden" name="admin_id" value="<?php echo $admin_id;

?>" />

<input type="hidden" name="Action" id="Action" value="<?php echo

$display; ?>" />

</form>

<iframe width="174" height="189" name="gToday:normal:agenda.js"

id="gToday:normal:agenda.js" src="../HelloWorld/ipopeng.htm" scrolling="No"

frameborder="0" style="visibility:visible; z-index:999; position:absolute; top:-500px;

left:-500px;"></iframe>

</td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

</table>

<?php

}

elseif($display == "List")

{

?>

<table width="100%" border="0" cellspacing="0" cellpadding="0">

<?php

$sql = "SELECT * FROM admins $orderby $sortby";

//////////////////PAGINATION STARTS HERE////////////

$sqlCount = $sql;

$rsCount = mysql_query($sqlCount);

$totalrows = mysql_num_rows($rsCount);

$limit=5;

$PageLink=SITE_URL."admin/index.php?m=admins&";

if(isset($_REQUEST['page'])){$page = $_REQUEST['page'];}

else{

$page = 1;

}

$limitvalue = ($page - 1) * $limit;

ob_start();

if($page > 1){

$pageprev = $page-1;

echo("<a href=\"".$PageLink."page=$pageprev\">Previous</a>&nbsp;");

}

$numofpages = ceil($totalrows / $limit);

for($i = 1; $i <= $numofpages; $i++)

{

if($i > $page-10 and $i < $page+10)

Page 138: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 156

{

if($page == $i)

echo($i."&nbsp;");

else

echo("<a href=\"".$PageLink."page=$i\">$i</a>&nbsp;");

}

}

if($page < $numofpages){

$pagenext = ($page + 1);

echo ("<a href=\"".$PageLink."page=$pagenext\">Next</a>");

}

$pagination = ob_get_contents();

ob_end_clean();

$sql.= " LIMIT $limitvalue, $limit";

$res = mysql_query($sql);

$total_displaying = mysql_num_rows($res);

$starting = ($total_displaying > 0) ? $limitvalue+1 : 0;

$ending = $limitvalue+$total_displaying;

//////////////// PAGINATION ENDS HERE////////////

?>

<tr>

<td style="padding:14px;"><table width="100%" border="0" cellspacing="0"

cellpadding="0">

<tr>

<td valign="top" bgcolor="#FFFFFF" style="padding:1px;"><table

width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>

<td><table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr><td colspan="2"><span class="heading">Admin Management

</span></td>

</tr>

<? if($_SESSION['member_level']==0) { ?>

<tr>

<td width="50%"></td>

<td width="50%" align="right" ><?php if($display == "List"){ ?>

<a

href="<?=SITE_URL?>admin/index.php?m=admins&display=Add">Create Admin </a>

<?php } ?>

&nbsp;</td>

</tr>

<? } ?>

</table></td>

</tr>

<tr>

<td><?php echo display_error(); ?></td>

Page 139: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 157

</tr>

<tr>

<td>

<table width="100%">

<tr class="head">

<td bgcolor="#6699FF"><div align="center"><strong><font

color="#FFFFFF">Image</font></strong></div></td>

<td bgcolor="#6699FF"><div align="center"><strong><font

color="#FFFFFF">Admin Name</font></strong></div></td>

<td bgcolor="#6699FF"><div

align="center"><strong><font color="#FFFFFF">Admin

Lavel</font></strong></div></td>

<?

if($_SESSION['member_level']==0) { ?>

<td bgcolor="#6699FF"><div align="center"><strong><font

color="#FFFFFF">Delete</font></strong></div></td>

<td bgcolor="#6699FF"><div align="center"><strong><font

color="#FFFFFF">Edit</font></strong></div></td>

<? } ?>

</tr>

<?

$ref=$total_displaying;

while ($row = mysql_fetch_array($res))

{

$admin_id = $row['admin_id'];

$picture = $row['picture'];

if($picture == "") $picture="users.jpg";

if(!isset($color)){ $color = COLOR1;} if($color == COLOR2){$color

= COLOR1;}else{$color = COLOR2;}

?>

<tr bgcolor="<?php echo $color; ?>">

<td width="100" align="center">

<?php if($picture != "")

{

$filename = "../images/".$picture;

if(file_exists($filename))

{

echo "<img

src=\"thumb.php?src=$filename&dest=$filename&x=100&y=75&f=0\" border=\"0\" />";

}

else

{

echo "The file $filename does not exist";

Page 140: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 158

}

}else echo "No picture"; ?> </td>

<td><?php echo $row['firstname']." ".$row['lastname']; ?></td>

<td><?php

if($row['member_level']==0) $level="Master Admin"; else $level="Normal Admin";

echo $level; ?></td>

<?

if($_SESSION['member_level']==0) { ?>

<td align="center" class="delete"><a

href="<?=SITE_URL?>admin/index.php?m=admins&admin_id=<?php echo

$row['admin_id']; ?>&amp;Action=Delete" ><img

src="<?=SITE_URL?>images/delete.png" alt="Delete" border="0" /></a></td>

<td align="center" class="mail"><a

href="<?=SITE_URL?>admin/index.php?m=admins&admin_id=<?php echo

$row['admin_id']; ?>&amp;display=Update"><img

src="<?=SITE_URL?>images/edit.png" alt="Edit" border="0" /></a></td>

<? } ?>

</tr>

<?php

$ref--;

}

?>

<tr class="tfoot">

<td colspan="4"><table width="100%" border="0" cellpadding="1"

cellspacing="3">

<tr>

<td width="30%"><?php echo $starting; ?> - <?php echo $ending;

?> out of <?php echo $totalrows; ?></td>

<td width="70%" align="center"><?php echo $pagination; ?></td>

</tr>

</table></td>

</tr>

</table>

</td>

</tr>

</table></td>

</tr>

</table></td>

</tr>

</table>

<?php

}

?>

/*******************************The End*****************************/

Page 141: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 159

Courses Management /*******************************************************************

*Through this feature admin can add, edit or delete the Campus, Depart, Program,

semester/annual course of program and Subjects of course.

*In this feature we used ajax functions.

*******************************************************************/

<script type="text/javascript" src="mootools.js" ></script>

<script type="text/javascript" src="ajax.js"></script>

<script type="text/javascript">

var ajax = new Array();

function getdepart(camp)

{

document.getElementById("woadingx").style.display='';

var camp_id = camp.options[camp.selectedIndex].value;

document.getElementById('depart3').options.length = 0; // Empty city select

box

if(camp_id.length>0){

var index = ajax.length;

ajax[index] = new sack();

ajax[index].requestFile = 'getdeparts.php?camp_id='+camp_id; //

Specifying which file to get

ajax[index].onCompletion = function(){ createdepart(index) }; //

Specify function that will be executed after file has been found

ajax[index].runAJAX(); // Execute AJAX function

document.getElementById("woadingx").style.display='none';

}

}

function createdepart(index)

{

var depart_obj = document.getElementById('depart3');

eval(ajax[index].response); // Executing the response from Ajax as Javascript

code

}

function getdepartt(camp)

{

document.getElementById("woadingx").style.display='';

var camp_id = camp.options[camp.selectedIndex].value;

document.getElementById('depart4').options.length = 0; // Empty city select

box

if(camp_id.length>0){

var index = ajax.length;

ajax[index] = new sack();

Page 142: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 160

ajax[index].requestFile = 'getdeparts.php?camp_id='+camp_id; //

Specifying which file to get

ajax[index].onCompletion = function(){ createdepartt(index) }; //

Specify function that will be executed after file has been found

ajax[index].runAJAX(); // Execute AJAX function

document.getElementById("woadingx").style.display='none';

}

}

function createdepartt(index)

{

var depart_obj = document.getElementById('depart4');

eval(ajax[index].response); // Executing the response from Ajax as Javascript

code

}

function getcoursee(depart,camp)

{

document.getElementById("woadingx").style.display='';

var depart_id = depart.options[depart.selectedIndex].value;

var camp_id = camp.options[camp.selectedIndex].value;

document.getElementById('course4').options.length = 0; // Empty city select

box

if(depart_id.length>0){

var index = ajax.length;

ajax[index] = new sack();

ajax[index].requestFile =

'getcourses.php?camp_id='+camp_id+'&depart_id='+depart_id;// Specifying which file to

get

ajax[index].onCompletion = function(){ createcoursee(index) }; //

Specify function that will be executed after file has been found

ajax[index].runAJAX(); // Execute AJAX function

document.getElementById("woadingx").style.display='none';

}

}

function createcoursee(index)

{

var course_obj = document.getElementById('course4');

eval(ajax[index].response); // Executing the response from Ajax as Javascript

code

}

</script>

Page 143: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 161

/******************************getdeparts.php****************************/

<? include_once("includes.php"); ?>

<?

$camp_id=$_GET['camp_id'];

?>

<?

echo "depart_obj.options[depart_obj.options.length] = new Option('--Select

Depart--','null');\n";

$depart=mysql_query("Select * from departs where camp_id=".$camp_id);

while($depart_row=mysql_fetch_array($depart)) {

echo "depart_obj.options[depart_obj.options.length] = new

Option('".$depart_row['depart_name']."','".$depart_row['depart_id']."');\n";

}

?>

/*********************************************************************/

/******************************getcourses.php****************************/

<? include_once("includes.php"); ?>

<?

$camp_id=$_GET['camp_id'];

$depart_id=$_GET['depart_id'];

?>

<?

echo "course_obj.options[course_obj.options.length] = new Option('--Select

Course--','null');\n";

$course=mysql_query("Select * from courses where camp_id=".$camp_id."

and depart_id=".$depart_id);

while($course_row=mysql_fetch_array($course)) {

echo "course_obj.options[course_obj.options.length] = new

Option('".$course_row['course_name']."','".$course_row['course_id']."');\n";

}

?>

/*********************************************************************/

<script>

function showdiv(showdiv,hidediv1,hidediv2)

{

var divid = showdiv;

var hide_div=hidediv1;

var hide_divv=hidediv2;

document.getElementById(divid).style.display='';

document.getElementById(hide_div).style.display='none';

document.getElementById(hide_divv).style.display='none';

}

</script>

Page 144: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 162

<script>

function campus_values(div)

{

var divid = div;

document.getElementById('campus').style.display='none';

document.getElementById('campus2').style.display='none';

document.getElementById('campus3').style.display='none';

document.getElementById("woadingx").style.display='';

var req = new Request.HTML(

{

method: 'get',

url: 'show_camp.php' ,

data: { 'do' : '1' },

onRequest: function() {

},

update: $(divid),

onComplete: function(response)

{

document.getElementById("woadingx").style.display='none';

}

}).send();

}

</script>

<script>

function departs_values(div)

{

var divid = div;

var camp_val = document.getElementById('camp2').value;

document.getElementById("woadingx").style.display='';

var req = new Request.HTML(

{

method: 'get',

url: 'show_depart.php?camp_id='+camp_val ,

data: { 'do' : '1' },

onRequest: function() {

},

Page 145: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 163

update: $(divid),

onComplete: function(response)

{

document.getElementById("woadingx").style.display='none';

}

}).send();

}

</script>

<script>

function courses_values(div)

{

var divid = div;

var camp_val = document.getElementById('camp3').value;

var depart_val = document.getElementById('depart3').value;

document.getElementById("woadingx").style.display='';

var req = new Request.HTML(

{

method: 'get',

url: 'show_course.php?camp_id='+camp_val+'&depart_id='+depart_val ,

data: { 'do' : '1' },

onRequest: function() {

},

update: $(divid),

onComplete: function(response)

{

document.getElementById("woadingx").style.display='none';

}

}).send();

}

</script>

<script>

function subs_values(div)

{

var divid = div;

var camp_val = document.getElementById('camp4').value;

var depart_val = document.getElementById('depart4').value;

Page 146: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 164

var course_val = document.getElementById('course4').value;

document.getElementById("woadingx").style.display='';

var req = new Request.HTML(

{

method: 'get',

url:

'show_sub.php?camp_id='+camp_val+'&depart_id='+depart_val+'&course_id='+course_

val ,

data: { 'do' : '1' },

onRequest: function() {

},

update: $(divid),

onComplete: function(response)

{

document.getElementById("woadingx").style.display='none';

}

}).send();

}

</script>

<?

$msg=0;

if(isset($_POST['submit']))

{

mysql_query("Insert into programs set prog_name='".$_POST['program']."',

prog_status='".$_POST['status']."'");

$msg=1;

}

?>

<table width="100%" border="0" cellspacing="0" cellpadding="0">

<form action="" method="post">

<tr><td colspan="3"><span class="heading">Courses Management</span></td></tr>

<tr><td colspan="3">&nbsp;</td></tr>

<tr>

<td colspan="3">Add new programs offered by Federal Urdu University to

study.</td>

</tr>

<tr>

<td>&nbsp;</td>

<td width="78%">Enter Program: <input type="text" id="program" name="program"

/>

&nbsp; <select name="status" id="status">

Page 147: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 165

<option value="under" >Undergraduate</option>

<option value="post" >Postgraduate</option>

</select>

&nbsp;&nbsp;<input type="submit" name="submit" id="submit" value=" Add "

/>

</td>

<td>&nbsp;</td>

</tr>

<tr><td colspan="3">&nbsp;</td></tr>

<? if($msg==1) { ?>

<tr><td colspan="3"><font color="#CC3300" >Program has added.</font></td></tr>

<tr><td colspan="3">&nbsp;</td></tr>

<? } ?>

<tr>

<td colspan="3">To View, Add, Edit or Delete any of the Campus of Federal Urdu

University, please click on the Campuses link.</td>

</tr>

<tr>

<td><a href="javascript:campus_values('show');">Campuses</a></td>

<td width="78%">&nbsp;</td>

<td>&nbsp;</td>

</tr>

<tr><td colspan="3">&nbsp;</td></tr>

<tr>

<td colspan="3">To View, Add, Edit or Delete any of the Department of Federal Urdu

University or assigne password to any Department of Federal Urdu University, please

click on the Departments link.</td>

</tr>

<tr>

<td width="12%"><a

href="javascript:showdiv('campus','campus2','campus3');">Departments</a></td>

<td><span id="campus" style="display:none;">

<select name="camp2" id="camp2">

<option value="null" >--Select Campus--</option>

<? $camp=mysql_query("Select * from campuses");

while($camp_row=mysql_fetch_array($camp)) { ?>

<option value="<?=$camp_row['camp_id']?>" >

<?=$camp_row['camp_name']?>

</option>

<? } ?>

</select>

<input type="button" id="depart_btn" name="depart_btn" value=" Ok "

onclick="departs_values('show');">

Page 148: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 166

</span></td>

<td width="10%"><div id="woadingx" style="display:none;"

align="center"><img src="<?=SITE_URL?>images/loading.gif" /></div></td>

</tr>

<tr><td colspan="3">&nbsp;</td></tr>

<tr>

<td colspan="3">To View, Add, Edit or Delete any of the Semester/year of any

Program of Federal Urdu University, please click on the Semester/year link.</td>

</tr>

<tr>

<td><a

href="javascript:showdiv('campus2','campus','campus3');">Semester/year</a></td>

<td><span id="campus2"style="display:none;">

<select name="camp3" id="camp3" onChange="getdepart(this)">

<option value="null" >--Select Campus--</option>

<? $camp=mysql_query("Select * from campuses");

while($camp_row=mysql_fetch_array($camp)) { ?>

<option value="<?=$camp_row['camp_id']?>" >

<?=$camp_row['camp_name']?>

</option>

<? } ?>

</select>

<select id="depart3" name="depart3" >

<option value="null" >--Select Depart--</option>

</select>

<input type="button" id="course_btn"

name="course_btn" value=" Ok " onclick="courses_values('show');">

</span>

</td>

<td>&nbsp;</td>

</tr>

<tr><td colspan="3">&nbsp;</td></tr>

<tr>

<td colspan="3">To View, Add, Edit or Delete any of the Subject of Federal Urdu

University, please click on the Subjects link.</td>

</tr>

<tr>

<td><a href="javascript:showdiv('campus3','campus2','campus');">Subjects</a></td>

<td><span id="campus3"style="display:none;">

<select name="camp4" id="camp4" onChange="getdepartt(this)">

<option value="null" >--Select Campus--</option>

<? $camp=mysql_query("Select * from campuses");

while($camp_row=mysql_fetch_array($camp)) { ?>

Page 149: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 167

<option value="<?=$camp_row['camp_id']?>" >

<?=$camp_row['camp_name']?>

</option>

<? } ?>

</select>

<select id="depart4" name="depart4"

onChange="getcoursee(this,document.getElementById('camp4'))">

<option value="null" >--Select Depart--</option>

</select>

<select id="course4" name="course4" >

<option value="null" >--Select Course--</option>

</select>

<input type="button" id="course_btn"

name="course_btn" value=" Ok " onclick="subs_values('show');">

</span>

</td>

<td>&nbsp;</td>

</tr>

<tr><td colspan="3">&nbsp;</td></tr>

<tr><td colspan="3">

<span id="show">

&nbsp;

</span>

</td></tr>

</form>

</table>

/*******************************Show_camp.php**************************/

<? include_once("includes.php"); ?>

<?

if(isset($_GET['did']))

{

$delete_id=$_GET['did'];

mysql_query("Delete from campuses where camp_id=".$delete_id);

}

?>

<table width="100%" align="center">

<tr class="head">

<td colspan="2" align="left"><span

class="heading">Campuses</span></td>

Page 150: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 168

</tr>

<tr class="head">

<th colspan="6" align="left" class="nickname"

style="padding:5px;"><?php echo display_error(); ?></th>

</tr>

<tr class="head">

<td colspan="6" align="left"><div align="right"><a

href="<?=SITE_URL?>admin/index.php?m=insert_camp">Add New Campus

</a></div></td>

</tr>

<tr class="head">

<td bgcolor="#6699FF"><div

align="center"><strong><font color="#FFFFFF">Campus Name

</font></strong></div></td>

<td bgcolor="#6699FF"><div

align="center"><strong><font color="#FFFFFF">Action</font></span></div></td>

</tr>

<? $camp=mysql_query("Select * from campuses");

while($camp_row=mysql_fetch_array($camp)) {

if(!isset($color)){ $color = COLOR1;} if($color ==

COLOR2){$color = COLOR1;}else{$color = COLOR2;} ?>

<tr bgcolor="<?php echo $color; ?>">

<td><?php echo $camp_row['camp_name']; ?></td>

<td align="center" class="mail"><div align="center">[

<a href="<?=SITE_URL?>admin/index.php?m=insert_camp&eid=<?php

echo $camp_row['camp_id']; ?>">Edit</a>

&nbsp;&nbsp;|&nbsp;&nbsp;

<a href="<?=SITE_URL?>admin/index.php?m=show_camp&did=<?php

echo $camp_row['camp_id']; ?>">Delete</a>]</div>

</td>

</tr>

<?php } ?>

</table>

/*******************************************************************/

Page 151: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 169

/*****************************Show_depart.php************************/

<? include_once("includes.php"); ?>

<?

if(isset($_GET['camp_id']))

{

$camp_id=$_GET['camp_id'];

}

?>

<?

if(isset($_GET['did']))

{

$delete_id=$_GET['did'];

mysql_query("Delete from departs where depart_id=".$delete_id);

}

?>

<table width="100%" align="center">

<tr class="head">

<td colspan="4" align="left"><span

class="heading">Departments</span></td>

</tr>

<tr class="head">

<th colspan="6" align="left" class="nickname"

style="padding:5px;"><?php echo display_error(); ?></th>

</tr>

<tr class="head">

<td colspan="6" align="left"><div align="right"><a

href="<?=SITE_URL?>admin/index.php?m=insert_depart">Add New Department

</a></div></td>

</tr>

<tr class="head">

<td width="23%" bgcolor="#6699FF"><div

align="center"><strong><font color="#FFFFFF">Campus Name

</font></strong></div></td>

<td width="27%" bgcolor="#6699FF"><div

align="center"><strong><font color="#FFFFFF">Department Name

</font></strong></div></td>

<td width="27%" bgcolor="#6699FF"><div

align="center"><strong><font color="#FFFFFF">Department Password

</font></strong></div></td>

Page 152: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 170

<td width="23%" bgcolor="#6699FF"><div

align="center"><strong><font

color="#FFFFFF">Action</font></strong></span></div></td>

</tr>

<? $depart=mysql_query("Select * from departs where

camp_id=".$camp_id);

while($depart_row=mysql_fetch_array($depart)) {

$camp=mysql_query("Select * from campuses where

camp_id=".$depart_row['camp_id']);

$camp_row=mysql_fetch_array($camp);

if(!isset($color)){ $color = COLOR1;} if($color ==

COLOR2){$color = COLOR1;}else{$color = COLOR2;} ?>

<tr bgcolor="<?php echo $color; ?>">

<td><?php echo $camp_row['camp_name']; ?></td>

<td><?php echo $depart_row['depart_name']; ?></td>

<td><?php echo $depart_row['depart_pass']; ?></td>

<td align="center" class="mail"><div align="center">[

<a href="<?=SITE_URL?>admin/index.php?m=insert_depart&eid=<?php

echo $depart_row['depart_id']; ?>">Edit</a>

&nbsp;&nbsp;|&nbsp;&nbsp;

<a

href="<?=SITE_URL?>admin/index.php?m=show_depart&camp_id=<?=$camp_id?>&

did=<?php echo $depart_row['depart_id']; ?>">Delete</a>]</div>

</td>

</tr>

<?php } ?>

</table>

/*******************************************************************/

/*****************************Show_course.php************************/

<? include_once("includes.php"); ?>

<?

if(isset($_GET['camp_id']))

{

$camp_id=$_GET['camp_id'];

}

if(isset($_GET['depart_id']))

Page 153: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 171

{

$depart_id=$_GET['depart_id'];

}

?>

<?

if(isset($_GET['did']))

{

$delete_id=$_GET['did'];

mysql_query("Delete from courses where course_id=".$delete_id);

}

?>

<table width="100%" align="center">

<tr class="head">

<td colspan="2" align="left"><span

class="heading">Semester or Annual</span></td>

</tr>

<tr class="head">

<th colspan="6" align="left" class="nickname"

style="padding:5px;"><?php echo display_error(); ?></th>

</tr>

<tr class="head">

<td colspan="6" align="left"><div align="right"><a

href="<?=SITE_URL?>admin/index.php?m=insert_course">Add New Course

</a></div></td>

</tr>

<tr class="head">

<td bgcolor="#6699FF"><div

align="center"><strong><font color="#FFFFFF">Campus Name

</font></strong></div></td>

<td bgcolor="#6699FF"><div

align="center"><strong><font color="#FFFFFF">Department Name

</font></strong></div></td>

<td bgcolor="#6699FF"><div

align="center"><strong><font color="#FFFFFF">Semester/year

</font></strong></div></td>

<td bgcolor="#6699FF"><div

align="center"><strong><font

color="#FFFFFF">Action</font></strong></span></div></td>

</tr>

<? $course=mysql_query("Select * from courses where

camp_id=".$camp_id." and depart_id=".$depart_id);

while($course_row=mysql_fetch_array($course)) {

Page 154: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 172

$camp=mysql_query("Select * from campuses where

camp_id=".$course_row['camp_id']);

$camp_row=mysql_fetch_array($camp);

$depart=mysql_query("Select * from departs where

depart_id=".$course_row['depart_id']);

$depart_row=mysql_fetch_array($depart);

if(!isset($color)){ $color = COLOR1;} if($color ==

COLOR2){$color = COLOR1;}else{$color = COLOR2;} ?>

<tr bgcolor="<?php echo $color; ?>">

<td><?php echo $camp_row['camp_name']; ?></td>

<td><?php echo $depart_row['depart_name']; ?></td>

<td><?php echo $course_row['course_name']; ?></td>

<td align="center" class="mail"><div align="center">[

<a href="<?=SITE_URL?>admin/index.php?m=insert_course&eid=<?php

echo $course_row['course_id']; ?>">Edit</a>

&nbsp;&nbsp;|&nbsp;&nbsp;

<a

href="<?=SITE_URL?>admin/index.php?m=show_course&camp_id=<?=$camp_id?>&

depart_id=<?=$depart_id?>&did=<?php echo $course_row['course_id'];

?>">Delete</a>]</div>

</td>

</tr>

<?php } ?>

</table>

/*******************************************************************/

/*****************************Show_sub.php************************/

<? include_once("includes.php"); ?>

<?

if(isset($_GET['camp_id']))

{

$camp_id=$_GET['camp_id'];

}

if(isset($_GET['depart_id']))

{

$depart_id=$_GET['depart_id'];

}

if(isset($_GET['course_id']))

{

Page 155: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 173

$course_id=$_GET['course_id'];

}

?>

<?

if(isset($_GET['did']))

{

$delete_id=$_GET['did'];

mysql_query("Delete from subjects where sub_id=".$delete_id);

}

?>

<table width="100%" align="center">

<tr class="head">

<td colspan="2" align="left"><span

class="heading">Subjects</span></td>

</tr>

<tr class="head">

<th colspan="6" align="left" class="nickname"

style="padding:5px;"><?php echo display_error(); ?></th>

</tr>

<tr class="head">

<td colspan="6" align="left"><div align="right"><a

href="<?=SITE_URL?>admin/index.php?m=insert_sub">Add New Sbject

</a></div></td>

</tr>

<tr class="head">

<td bgcolor="#6699FF"><div

align="center"><strong><font color="#FFFFFF">Campus Name

</font></strong></div></td>

<td bgcolor="#6699FF"><div

align="center"><strong><font color="#FFFFFF">Department Name

</font></strong></div></td>

<td bgcolor="#6699FF"><div

align="center"><strong><font color="#FFFFFF">Semester/year

</font></strong></div></td>

<td bgcolor="#6699FF"><div align="center"><strong><font

color="#FFFFFF">Subject Name </font></strong></div></td>

<td bgcolor="#6699FF"><div

align="center"><strong><font

color="#FFFFFF">Action</font></strong></span></div></td>

</tr>

Page 156: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 174

<? $sub=mysql_query("Select * from subjects where

camp_id=".$camp_id." and depart_id=".$depart_id." and course_id=".$course_id);

while($sub_row=mysql_fetch_array($sub)) {

$camp=mysql_query("Select * from campuses where

camp_id=".$sub_row['camp_id']);

$camp_row=mysql_fetch_array($camp);

$depart=mysql_query("Select * from departs where

depart_id=".$sub_row['depart_id']);

$depart_row=mysql_fetch_array($depart);

$course=mysql_query("Select * from courses where

course_id=".$sub_row['course_id']);

$course_row=mysql_fetch_array($course);

if(!isset($color)){ $color = COLOR1;} if($color ==

COLOR2){$color = COLOR1;}else{$color = COLOR2;} ?>

<tr bgcolor="<?php echo $color; ?>">

<td><?php echo $camp_row['camp_name']; ?></td>

<td><?php echo $depart_row['depart_name']; ?></td>

<td><?php echo $course_row['course_name']; ?></td>

<td><?php echo $sub_row['sub_name']; ?></td>

<td align="center" class="mail"><div align="center">[

<a href="<?=SITE_URL?>admin/index.php?m=insert_sub&eid=<?php echo

$sub_row['sub_id']; ?>">Edit</a>

&nbsp;&nbsp;|&nbsp;&nbsp;

<a

href="<?=SITE_URL?>admin/index.php?m=show_sub&camp_id=<?=$camp_id?>&dep

art_id=<?=$depart_id?>&course_id=<?=$course_id?>&did=<?php echo

$sub_row['sub_id']; ?>">Delete</a>]</div>

</td>

</tr>

<?php } ?>

</table>

/*******************************************************************/

/*******************************The End*****************************/

Page 157: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 175

Main Website of FUUAST:

/*******************************************************************

FUUAST website’s main page in which all other pages are including.(index.php)

*******************************************************************/

<?php session_start(); ?>

<?php include_once("includes.php"); ?>

<html>

<head>

<link href="<?=SITE_URL?>threefixed.css" rel="stylesheet" type="text/css">

<title>Federal Urdu University of Arts, Sciences & Technology</title>

<script src="<?=SITE_URL?>pro_dropdown_2/stuHover.js"

type="text/javascript"></script>

<script type="text/javascript">

function roll(img_name1, img_src1)

{

document[img_name1].src = img_src1;

document[img_name2].src = img_src2;

}

</script>

<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">

</head>

<body>

<table width="100%" align="center" cellpadding="0" cellspacing="0" border="0" >

<tr><td><img src="<?=SITE_URL?>images/header.jpg" width="100%"></td></tr>

<tr><td>

<div class="heading">

<ul id="nav">

<li class="top"><a href="#" class="top_link"><span class="down">About

FUUAST</span></a>

<ul class="sub" style="width:110px">

<li><a href="index.php?m=history">History</a></li>

<li><a href="index.php?m=university">University</a></li>

<li><a href="index.php?m=mission_statement">Mission

Statement</a></li>

</ul>

</li>

<li class="top"><a href="#" id="products" class="top_link"><span

class="down">Admissions</span></a>

<ul class="sub" style="width:110px">

<li style="text-align:left"><a href="#" class="fly">Undergraduate</a>

Page 158: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 176

<ul style="width:110px">

<li><a

href="index.php?m=addmission&camp_id=1&prog_status=under">Gulshan

Campus</a></li>

<li><a

href="index.php?m=addmission&camp_id=2&prog_status=under">Abdul-haq

Campus</a></li>

<li><a

href="index.php?m=addmission&camp_id=3&prog_status=under">Islamabad

Campus</a></li>

</ul>

</li>

<li class="mid" style="text-align:left"><a href="#" class="fly">Postgraduate</a>

<ul style="width:110px">

<li><a

href="index.php?m=addmission&camp_id=1&prog_status=post">Gulshan

Campus</a></li>

<li><a

href="index.php?m=addmission&camp_id=2&prog_status=post">Abdul-haq

Campus</a></li>

<li><a

href="index.php?m=addmission&camp_id=3&prog_status=post">Islamabad

Campus</a></li>

</ul>

</li>

</ul>

</li>

<li class="top"><a href="#" id="services" class="top_link"><span

class="down">Departments</span></a>

<ul class="sub" style="width:110px">

<li><a href="index.php?m=all_departs&camp=1">Gulshan

Campus</a></li>

<li><a href="index.php?m=all_departs&camp=2">Abdul-haq

Campus</a></li>

<li><a href="index.php?m=all_departs&camp=3">Islamabad

Campus</a></li>

</ul>

</li>

<li class="top"><a href="index.php?m=result" id="contacts"

class="top_link"><span>Result</span></a>

</li>

<li class="top"><a href="#" id="shop" class="top_link"><span

class="down">Administration</span></a>

<ul class="sub" style="width:120px">

Page 159: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 177

<li><a href="index.php?m=administration_gul">Gulshan

Campus</a></li>

<li><a href="index.php?m=administration_abdul">Abdul-haq

Campus</a></li>

<li><a href="index.php?m=administration_islam">Islamabad

Campus</a></li>

</ul>

</li>

<li class="top"><a href="#" id="privacy" class="top_link"><span

class="down">Facilities</span></a>

<ul class="sub" style="width:110px">

<li><a href="index.php?m=main_library">Main Library</a></li>

<li><a href="index.php?m=seminar_library">Seminar

Libraries</a></li>

<li><a href="index.php?m=Comp_labs">Computer Labs</a></li>

<li><a href="index.php?m=canteen">Canteen</a></li>

</ul>

</li>

<li class="top"><a href="index.php?m=awards" id="privacy"

class="top_link"><span>Awards & Achievements</span></a>

</li>

<li class="top"><a href="#" id="privacy" class="top_link"><span

class="down">Contacts</span></a>

<ul class="sub" style="width:110px">

<li><a href="index.php?m=contact_gulshan">Gulshan

Campus</a></li>

<li><a href="index.php?m=contact_abdul">Abdul-haq

Campus</a></li>

<li><a href="index.php?m=contact_islam">Islamabad

Campus</a></li>

</ul>

</li>

</ul>

</div>

</td></tr>

<tr><td align="center">

<table width="99%" border="0" cellpadding="0" cellspacing="0" style="border:1px

solid; color:#82ADF0">

<tr><td>

<form method="get" action="http://www.google.com/search">

<table border="0" cellpadding="0" align="right">

<tr>

<td width="120" align="right">

Page 160: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 178

<a href="http://www.google.com/">

<img src="<?=SITE_URL?>images/google_logo.gif" width="80" height="30"

border="0" alt="google"></a></td>

<td width="189" align="right" style="font-size:75%">

<input type=radio name=sitesearch value=""> Web

<input type="radio" name="sitesearch"

value="fuuast.edu.pk" checked /> only search FUUAST<br />

</td>

<td width="287" align="right">

<input type="text" name="q" size="20" maxlength="255" value="" />

<input type="submit" value="Google Search" class="button" />

</td>

</tr></table>

</form>

</td></tr></table>

</td></tr>

<tr><td>

<table width="100%" border="0" bordercolor="#999999">

<tr>

<td width="22%" valign="top"><table width="100%" border="0"

cellpadding="0" cellspacing="0">

<tr><td>

<table width="100%" border="0" cellspacing="0"

cellpadding="0">

<tr>

<td width="10%" align="right" valign="top" style="height:50px;

background:url(<?=SITE_URL?>images/top_left.gif); background-repeat:no-repeat;

background-position:right top;"></td>

<td width="80%" valign="bottom"><a href="index.php?m=add_pro"

onMouseOver="roll('adm_proc', '<?=SITE_URL?>hover/left-navigation-bar_03.gif')"

onmouseout="roll('adm_proc', '<?=SITE_URL?>images/left-

navigation-bar_03.gif')">

<IMG SRC="<?=SITE_URL?>images/left-navigation-bar_03.gif"

WIDTH=176 HEIGHT=26 ALT="" name="adm_proc" ></a></td>

<td width="10%" align="left" valign="top" style="height:50px;

background:url(<?=SITE_URL?>images/top_right.gif); background-repeat:no-repeat;

background-position:left top;"></td>

</tr>

<tr>

<td align="left" valign="top"></td>

<td valign="middle"><IMG SRC="<?=SITE_URL?>images/left-navigation-

bar_09.gif" WIDTH=176 HEIGHT=9 ALT=""></td>

Page 161: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 179

<td align="left" valign="top"></td>

</tr>

<tr>

<td align="left" valign="top"></td>

<td valign="middle"><a href="index.php?m=exam"

onMouseOver="roll('exam', '<?=SITE_URL?>hover/left-navigation-bar_06.gif')"

onmouseout="roll('exam', '<?=SITE_URL?>images/left-

navigation-bar_06.gif')">

<IMG SRC="<?=SITE_URL?>images/left-navigation-bar_06.gif"

WIDTH=176 HEIGHT=26 ALT="" name="exam" ></a></td>

<td align="left" valign="top"></td>

</tr>

<tr>

<td align="left" valign="top"></td>

<td valign="middle"><IMG SRC="<?=SITE_URL?>images/left-navigation-

bar_09.gif" WIDTH=176 HEIGHT=9 ALT=""></td>

<td align="left" valign="top"></td>

</tr>

<tr>

<td align="left" valign="top"></td>

<td valign="middle"><a href="index.php?m=forms"

onMouseOver="roll('download', '<?=SITE_URL?>hover/left-navigation-bar_08.gif')"

onmouseout="roll('download', '<?=SITE_URL?>images/left-

navigation-bar_08.gif')">

<IMG SRC="<?=SITE_URL?>images/left-navigation-bar_08.gif"

WIDTH=176 HEIGHT=26 ALT="" name="download" ></a></td>

<td align="left" valign="top"></td>

</tr>

<tr>

<td align="left" valign="top"></td>

<td valign="middle"><IMG SRC="<?=SITE_URL?>images/left-navigation-

bar_09.gif" WIDTH=176 HEIGHT=9 ALT=""></td>

<td align="left" valign="top"></td>

</tr>

<tr>

<td align="left" valign="top"></td>

<td><a href="index.php?m=research" onMouseOver="roll('research',

'<?=SITE_URL?>hover/left-navigation-bar_10.gif')"

onmouseout="roll('research', '<?=SITE_URL?>images/left-

navigation-bar_10.gif')">

<IMG SRC="<?=SITE_URL?>images/left-navigation-bar_10.gif"

ALT="" name="research" WIDTH=176 HEIGHT=26 ></a></td>

<td align="left" valign="top"></td>

</tr>

<tr>

<td align="left" valign="top"></td>

Page 162: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 180

<td valign="middle"><IMG SRC="<?=SITE_URL?>images/left-navigation-

bar_09.gif" WIDTH=176 HEIGHT=9 ALT=""></td>

<td align="left" valign="top"></td>

</tr>

<tr>

<td align="left" valign="top"></td>

<td><a href="index.php?m=affiliated" onMouseOver="roll('affiliate',

'<?=SITE_URL?>hover/left-navigation-bar_12.gif')"

onmouseout="roll('affiliate', '<?=SITE_URL?>images/left-

navigation-bar_12.gif')">

<IMG SRC="<?=SITE_URL?>images/left-navigation-bar_12.gif"

ALT="" name="affiliate" WIDTH=176 HEIGHT=26 ></a></td>

<td align="left" valign="top"></td>

</tr>

<tr>

<td align="left" valign="top"></td>

<td valign="middle"><IMG SRC="<?=SITE_URL?>images/left-navigation-

bar_09.gif" WIDTH=176 HEIGHT=9 ALT=""></td>

<td align="left" valign="top"></td>

</tr>

<tr>

<td align="left" valign="top"></td>

<td><a href="index.php?m=events" onMouseOver="roll('events',

'<?=SITE_URL?>hover/left-navigation-bar_14.gif')"

onmouseout="roll('events', '<?=SITE_URL?>images/left-

navigation-bar_14.gif')">

<IMG SRC="<?=SITE_URL?>images/left-navigation-bar_14.gif"

ALT="" name="events" WIDTH=176 HEIGHT=26 ></a></td>

<td align="left" valign="top"></td>

</tr>

<tr>

<td align="left" valign="top"></td>

<td valign="middle"><IMG SRC="<?=SITE_URL?>images/left-navigation-

bar_09.gif" WIDTH=176 HEIGHT=9 ALT=""></td>

<td align="left" valign="top"></td>

</tr>

<tr>

<td align="left" valign="top"></td>

<td><a href="index.php?m=sport_events" onMouseOver="roll('sports',

'<?=SITE_URL?>hover/left-navigation-bar_16.gif')"

onmouseout="roll('sports', '<?=SITE_URL?>images/left-

navigation-bar_16.gif')">

<IMG SRC="<?=SITE_URL?>images/left-navigation-bar_16.gif"

ALT="" name="sports" WIDTH=176 HEIGHT=26 ></a></td>

<td align="left" valign="top"></td>

</tr>

Page 163: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 181

<tr>

<td align="left" valign="top"></td>

<td valign="middle"><IMG SRC="<?=SITE_URL?>images/left-navigation-

bar_09.gif" WIDTH=176 HEIGHT=9 ALT=""></td>

<td align="left" valign="top"></td>

</tr>

<tr>

<td align="left" valign="top"></td>

<td><a href="index.php?m=std_testi" onMouseOver="roll('stu_testi',

'<?=SITE_URL?>hover/left-navigation-bar_18.gif')"

onmouseout="roll('stu_testi', '<?=SITE_URL?>images/left-

navigation-bar_18.gif')">

<IMG SRC="<?=SITE_URL?>images/left-navigation-bar_18.gif"

ALT="" name="stu_testi" WIDTH=176 HEIGHT=26 ></a></td>

<td align="left" valign="top"></td>

</tr>

<tr>

<td align="left" valign="top"></td>

<td valign="middle"><IMG SRC="<?=SITE_URL?>images/left-navigation-

bar_09.gif" WIDTH=176 HEIGHT=9 ALT=""></td>

<td align="left" valign="top"></td>

</tr>

<tr>

<td align="left" valign="top"></td>

<td><a href="index.php?m=press" onMouseOver="roll('press',

'<?=SITE_URL?>hover/left-navigation-bar_20.gif')"

onmouseout="roll('press', '<?=SITE_URL?>images/left-

navigation-bar_20.gif')">

<IMG SRC="<?=SITE_URL?>images/left-navigation-bar_20.gif"

WIDTH=176 HEIGHT=26 ALT="" name="press" ></a></td>

<td align="left" valign="top"></td>

</tr>

<tr>

<td align="left" valign="top"></td>

<td valign="middle"><IMG SRC="<?=SITE_URL?>images/left-navigation-

bar_09.gif" WIDTH=176 HEIGHT=9 ALT=""></td>

<td align="left" valign="top"></td>

</tr>

<tr>

<td align="right" valign="bottom" style="height:50px;

background:url(<?=SITE_URL?>images/bottom_left.gif); background-repeat:no-repeat;

background-position:right bottom;"></td>

<td valign="top"><a href="index.php?m=FAQs" onMouseOver="roll('faq',

'<?=SITE_URL?>hover/FAQ_hover.gif')"

onmouseout="roll('faq',

'<?=SITE_URL?>images/FAQ_image.gif')">

Page 164: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 182

<IMG SRC="<?=SITE_URL?>images/FAQ_image.gif"

WIDTH=176 HEIGHT=26 ALT="" name="faq" ></a></td>

<td align="left" valign="bottom" style="height:50px;

background:url(<?=SITE_URL?>images/bottom_right.gif); background-repeat:no-

repeat; background-position:left bottom;"></td>

</tr>

</table>

</td></tr>

<tr><td>

<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center">

<tr>

<td>&nbsp;</td>

</tr>

<tr>

<td><table width="95%" border="1" bordercolor="#82ADF0"

cellpadding="0" cellspacing="0" align="center">

<tr><td align="center" style="background-

color:#82ADF0"><img src="<?=SITE_URL?>images/press_released.jpg"></td></tr>

<tr><td><table width="100%" height="150" border="0"

cellpadding="2" cellspacing="2" align="center" >

<tr>

<td>

<? include_once("press_box.php"); ?>

</td>

</tr>

</table>

</td></tr>

</table></td>

</tr>

</table>

</td></tr>

</table>

</td>

<td width="56%" valign="top">

<table width="100%" border="0" cellpadding="0" cellspacing="0"

align="center">

<tr><td align="center"><img

src="<?=SITE_URL?>images/welcome.jpg" width="530px" ></td></tr>

<tr><td>&nbsp;</td></tr>

<tr><td>

<table width="100%" border="0" style="border:1px solid;

color:#82ADF0" cellpadding="0" cellspacing="0" align="center">

Page 165: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 183

<tr><td>

<? if (isset($_GET['m']))

{

$m = $_GET['m'].'.php';

include_once($m);

}

else

{

include_once("history.php");

}

?>

</td></tr>

</table>

</td></tr>

</table>

</td>

<td width="22%" valign="top">

<table width="100%" border="0" cellpadding="0" cellspacing="0"

align="center">

<tr>

<td><table width="95%" border="1" bordercolor="#82ADF0"

cellpadding="0" cellspacing="0" align="center">

<tr><td align="center" style="background-

color:#82ADF0"><img src="<?=SITE_URL?>images/news&annou.jpg"></td></tr>

<tr><td><table width="100%" height="150" border="0"

cellpadding="2" cellspacing="2" align="center" >

<tr>

<td>

<? include_once("news_box.php"); ?>

</td>

</tr>

</table>

</td></tr>

</table></td>

</tr>

<tr>

<td><table width="95%" border="1" bordercolor="#82ADF0"

cellpadding="0" cellspacing="0" align="center">

<tr><td align="center" style="background-

color:#82ADF0"><img src="<?=SITE_URL?>images/std_testi.jpg"></td></tr>

<tr><td><table width="100%" height="150" border="0"

cellpadding="2" cellspacing="2" align="center" >

Page 166: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 184

<tr>

<td>

<? include_once("std_testi_box.php"); ?>

</td>

</tr>

</table>

</td></tr>

</table></td>

</tr>

<tr>

<td><table width="95%" border="1" bordercolor="#82ADF0"

cellpadding="0" cellspacing="0" align="center">

<tr><td align="center" style="background-

color:#82ADF0"><img src="<?=SITE_URL?>images/event_pic.jpg"></td></tr>

<tr><td><table width="100%" height="150" border="0"

cellpadding="2" cellspacing="2" align="center" >

<tr>

<td>

<? include_once("awards_box.php"); ?>

</td>

</tr>

</table>

</td></tr>

</table></td>

</tr>

</table>

</td>

</tr>

</table>

</td></tr>

<tr><td><br><br><br><img

src="<?=SITE_URL?>images/footer.jpg"></td></tr>

</table>

</body>

</html>

/*******************************The End*****************************/

Page 167: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 185

/*****************************news_box.php**************************

News box in which news are running from bottom to top.

*******************************************************************/

<marquee behavior="scroll" direction="up" width="100%" height="150" scrollamount=1

scrolldelay=60 onMouseOver="this.stop()" onMouseOut="this.start()">

<?

$query_news=mysql_query("Select * from news where camp_id=0 and

depart_id=0 order by news_id desc");

while($row_news=mysql_fetch_array($query_news)) {

?>

<a

href="<?=SITE_URL?>index.php?m=news&news_id=<?=$row_news['news_id']?>"

class="campus"><span

class="small_heading"><?=$row_news['news_title'];?></span></a>

<a

href="<?=SITE_URL?>index.php?m=news&news_id=<?=$row_news['news_id']?>"

class="campus"><?=$row_news['news_text'];?></a>

<hr size="1" color="#82ADF0">

<? } ?>

</marquee>

/*******************************The End*****************************/

/****************************std_testi_box.php*************************

Student testimonials box on website.

*******************************************************************/

<style type="text/css">

.highslide-wrapper div {

font-family: Verdana, Helvetica;

font-size: 10pt;

}

.highslide-html {

background-color: white;

}

.highslide-html-blur {

}

.highslide-html-content {

position: absolute;

display: none;

}

.highslide-loading {

display: block;

Page 168: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 186

color: black;

font-size: 8pt;

font-family: sans-serif;

font-weight: bold;

text-decoration: none;

padding: 2px;

border: 1px solid #669900;

background-color: white;

padding-left: 22px;

background-image: url(<?=SITE_URL?>images/graphics/loader.white.gif);

background-repeat: no-repeat;

background-position: 3px 1px;

}

a.highslide-credits,

a.highslide-credits i {

padding: 2px;

color: silver;

text-decoration: none;

font-size: 10px;

}

a.highslide-credits:hover,

a.highslide-credits:hover i {

color: white;

background-color: gray;

}

/* Styles for the popup */

.highslide-wrapper, .rounded-white {

background-color: white;

}

.highslide-wrapper .highslide-html-content {

width: 400px;

padding: 0 5px 5px 5px;

}

.highslide-wrapper .highslide-header {

padding-bottom: 5px;

}

.highslide-wrapper .highslide-header ul {

margin: 0;

padding: 0;

text-align: right;

}

.highslide-wrapper .highslide-header ul li {

display: inline;

Page 169: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 187

padding-left: 1em;

}

.highslide-wrapper .highslide-header ul li.highslide-previous, .highslide-wrapper

.highslide-header ul li.highslide-next {

display: none;

}

.highslide-wrapper .highslide-header a {

font-weight: bold;

color: #3399FF;

text-transform: uppercase;

text-decoration: none;

}

.highslide-wrapper .highslide-header a:hover {

color: black;

}

.highslide-wrapper .highslide-header .highslide-move a {

cursor: move;

}

.highslide-wrapper .highslide-footer {

height: 15px;

}

.highslide-wrapper .highslide-footer .highslide-resize {

float: right;

margin-top: 4px;

height: 11px;

width: 11px;

background: url(<?=SITE_URL?>images/graphics/resize.gif);

}

.highslide-wrapper .highslide-body {

font-size: 14;

color: #999999;

}

.highslide-move {

cursor: move;

}

.highslide-resize {

cursor: nw-resize;

}

</style>

<?

$query_testi=mysql_query("Select * from std_testi where allow='Yes' ORDER BY

RAND() LIMIT 1");

$row_testi=mysql_fetch_array($query_testi);

Page 170: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 188

$camp=mysql_query("Select * from campuses where

camp_id=".$row_testi['std_camp_id']);

$camp_row=mysql_fetch_array($camp);

$depart=mysql_query("Select * from departs where

depart_id=".$row_testi['std_depart_id']);

$depart_row=mysql_fetch_array($depart);

?>

<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center" >

<tr>

<td width="13%" align="center" height="100" valign="top">

<? if($row_testi['std_pic']!="") { ?>

<img

src="<?=SITE_URL?>thumb.php?src=images/<?=$row_testi['std_pic']?>&dest=<?=SIT

E_URL?>images/<?=$row_testi['std_pic']?>x=70&y=90&f=0" alt="" width="70"

height="90" />

<? } else { ?>

<img

src="<?=SITE_URL?>thumb.php?src=images/users.jpg&dest=<?=SITE_URL?>images/

users.jpgx=70&y=90&f=0" alt="" width="70" height="90" />

<? } ?>

</td>

<td width="87%"><table width="100%" border="0" cellpadding="0" cellspacing="2"

align="center" >

<tr>

<td><p><font color="#B58903"><?=$row_testi['std_name'];?></font></p></td>

</tr>

<tr>

<td><p><font color="#3399FF"><?=$depart_row['depart_name'];?>

department</font></p></td>

</tr>

<tr>

<td><p><font color="#3399FF"><?=$camp_row['camp_name'];?></font></p></td>

</tr>

</table></td>

</tr>

<tr>

<td colspan="2" class="p">

<script type="text/javascript" src="js/highslide-with-html.js"></script>

<script type="text/javascript">

hs.graphicsDir = '<?=SITE_URL?>images/graphics/';

hs.outlineType = 'rounded-white';

hs.outlineWhileAnimating = true;

</script>

<?

if(strlen($row_testi['std_testi']) > 150 )

Page 171: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 189

{

echo substr($row_testi['std_testi'],0,150)."..."; ?>

<div align="right" valign="bottom" ><a href="#" onclick="return hs.htmlExpand(this, {

contentId: 'highslide-html-std' } )"

class="highslide">View Full Testimonial</a>

<div class="highslide-html-content" id="highslide-html-std">

<div class="highslide-header">

<ul>

<li class="highslide-move">

<a href="#" onclick="return false">Move</a>

</li>

<li class="highslide-close">

<a href="#" onclick="return hs.close(this)">Close</a>

</li>

</ul>

</div>

<div class="highslide-body">

<?=$row_testi['std_testi'];?>

</div>

<div class="highslide-footer">

<div>

<span class="highslide-resize" title="Resize">

<span></span>

</span>

</div>

</div>

</div>

</div>

<? }

else

{

echo $row_testi['std_testi'];

}

?>

</td>

</tr>

</table>

/*******************************The End*****************************/

Page 172: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 190

/*****************************awards_box.php**************************

Awards & Achievements box on website.

*******************************************************************/

<style type="text/css">

.phighslide-wrapper div {

font-family: Verdana, Helvetica;

font-size: 10pt;

}

.phighslide {

cursor: url(<?=SITE_URL?>images/graphics/zoomin.cur), pointer;

outline: none;

text-decoration: none;

}

.phighslide img {

border: 2px solid gray;

}

.phighslide-active-anchor img {

visibility: hidden;

}

.phighslide:hover img {

border: 2px solid white;

}

.phighslide-wrapper, .outer-glow {

background: #444;

}

.phighslide-image {

border: 5px solid #444444;

}

.phighslide-image-blur {

}

.phighslide-caption {

display: none;

font-family: Verdana, Helvetica;

font-size: 10pt;

border: 5px solid #444444;

border-top: none;

padding: 5px;

background-color: gray;

}

.phighslide-loading {

display: block;

color: white;

font-size: 9px;

Page 173: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 191

font-weight: bold;

text-transform: uppercase;

text-decoration: none;

padding: 3px;

border-top: 1px solid white;

border-bottom: 1px solid white;

background-color: black;

padding-left: 22px;

background-image: url(<?=SITE_URL?>images/graphics/loader.gif);

background-repeat: no-repeat;

background-position: 3px 1px;

}

a.phighslide-credits,

a.phighslide-credits i {

padding: 2px;

color: silver;

text-decoration: none;

font-size: 10px;

}

a.phighslide-credits:hover,

a.phighslide-credits:hover i {

color: white;

background-color: gray;

}

a.phighslide-full-expand {

background: url(<?=SITE_URL?>images/graphics/fullexpand.gif) no-repeat;

display: block;

margin: 0 10px 10px 0;

width: 34px;

height: 34px;

}

.highslide-wrapper div {

font-family: Verdana, Helvetica;

font-size: 10pt;

}

.highslide-html {

background-color: white;

}

.highslide-html-blur {

}

.highslide-html-content {

position: absolute;

display: none;

Page 174: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 192

}

.highslide-loading {

display: block;

color: black;

font-size: 8pt;

font-family: sans-serif;

font-weight: bold;

text-decoration: none;

padding: 2px;

border: 1px solid #669900;

background-color: white;

padding-left: 22px;

background-image: url(<?=SITE_URL?>images/graphics/loader.white.gif);

background-repeat: no-repeat;

background-position: 3px 1px;

}

a.highslide-credits,

a.highslide-credits i {

padding: 2px;

color: silver;

text-decoration: none;

font-size: 10px;

}

a.highslide-credits:hover,

a.highslide-credits:hover i {

color: white;

background-color: gray;

}

/* Styles for the popup */

.highslide-wrapper, .rounded-white {

background-color: white;

}

.highslide-wrapper .highslide-html-content {

width: 400px;

padding: 0 5px 5px 5px;

}

.highslide-wrapper .highslide-header {

padding-bottom: 5px;

}

.highslide-wrapper .highslide-header ul {

margin: 0;

padding: 0;

text-align: right;

Page 175: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 193

}

.highslide-wrapper .highslide-header ul li {

display: inline;

padding-left: 1em;

}

.highslide-wrapper .highslide-header ul li.highslide-previous, .highslide-wrapper

.highslide-header ul li.highslide-next {

display: none;

}

.highslide-wrapper .highslide-header a {

font-weight: bold;

color: #3399FF;

text-transform: uppercase;

text-decoration: none;

}

.highslide-wrapper .highslide-header a:hover {

color: black;

}

.highslide-wrapper .highslide-header .highslide-move a {

cursor: move;

}

.highslide-wrapper .highslide-footer {

height: 15px;

}

.highslide-wrapper .highslide-footer .highslide-resize {

float: right;

margin-top: 4px;

height: 11px;

width: 11px;

background: url(<?=SITE_URL?>images/graphics/resize.gif);

}

.highslide-wrapper .highslide-body {

font-size: 14;

color: #999999;

}

.highslide-move {

cursor: move;

}

.highslide-resize {

cursor: nw-resize;

}

</style>

<?

$query_awards=mysql_query("Select * from awards ORDER BY RAND() LIMIT 1");

Page 176: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 194

$row_awards=mysql_fetch_array($query_awards);

$camp=mysql_query("Select * from campuses where

camp_id=".$row_awards['per_camp_id']);

$camp_row=mysql_fetch_array($camp);

$depart=mysql_query("Select * from departs where

depart_id=".$row_awards['per_depart_id']);

$depart_row=mysql_fetch_array($depart);

?>

<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center" >

<tr>

<td width="13%" align="center" height="100" valign="top">

<? if($row_awards['award_pic']!="") { ?>

<script type="text/javascript" src="js/highslide.js"></script>

<script type="text/javascript">

hs.graphicsDir = '<?=SITE_URL?>images/graphics/';

hs.outlineType = 'outer-glow';

</script>

<div>

<a id="thumb1" href="<?=SITE_URL?>images/<?=$row_awards['award_pic']?>"

class="phighslide" onclick="return hs.expand(this)">

<img

src="<?=SITE_URL?>thumb.php?src=images/<?=$row_awards['award_pic']?>&dest=<

?=SITE_URL?>images/<?=$row_awards['award_pic']?>x=70&y=90&f=0" alt=""

title="Click to enlarge" width="70" height="90" /></a>

<div class="phighslide-caption">

<?=$row_awards['award']?>

</div>

</div>

<? } ?>

<div class="p" style="vertical-align:text-bottom"><font size="2" >click on

pic</font></div>

</td>

<td width="87%"><table width="100%" border="0" cellpadding="0" cellspacing="2"

align="center" >

<tr>

<td><p><font

color="#B58903"><?=$row_awards['person_name'];?></font></p></td>

</tr>

<tr>

<td><p><font color="#3399FF"><?=$depart_row['depart_name'];?>

department</font></p></td>

</tr>

<tr>

Page 177: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 195

<td><p><font color="#3399FF"><?=$camp_row['camp_name'];?></font></p></td>

</tr>

</table></td>

</tr>

<tr>

<td colspan="2" class="small_heading">

<?=$row_awards['award']?>

</td>

</tr>

<tr>

<td colspan="2" class="p">

<font color="#B58903">Some words about this Award :</font> <br/>

<?

if(strlen($row_awards['person_text']) > 150 )

{

echo substr($row_awards['person_text'],0,150)."..."; ?>

<script type="text/javascript" src="js/highslide-with-html.js"></script>

<script type="text/javascript">

hs.graphicsDir = '<?=SITE_URL?>images/graphics/';

hs.outlineType = 'rounded-white';

hs.outlineWhileAnimating = true;

</script>

<div align="right" valign="bottom" ><a href="#" onclick="return hs.htmlExpand(this, {

contentId: 'highslide-html-award' } )"

class="highslide">View Full Text</a>

<div class="highslide-html-content" id="highslide-html-award">

<div class="highslide-header">

<ul>

<li class="highslide-move">

<a href="#" onclick="return false">Move</a>

</li>

<li class="highslide-close">

<a href="#" onclick="return hs.close(this)">Close</a>

</li>

</ul>

</div>

<div class="highslide-body">

<?=$row_awards['person_text'];?>

</div>

<div class="highslide-footer">

Page 178: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 196

<div>

<span class="highslide-resize" title="Resize">

<span></span>

</span>

</div>

</div>

</div>

</div>

<? }

else

{

echo $row_awards['person_text'];

}

?>

</td>

</tr>

</table>

/*******************************The End*****************************/

/*****************************press_box.php**************************

Press Released box on website.

*******************************************************************/

<style type="text/css">

.phighslide-wrapper div {

font-family: Verdana, Helvetica;

font-size: 10pt;

}

.phighslide {

cursor: url(<?=SITE_URL?>images/graphics/zoomin.cur), pointer;

outline: none;

text-decoration: none;

}

.phighslide img {

border: 2px solid gray;

}

.phighslide-active-anchor img {

visibility: hidden;

}

.phighslide:hover img {

border: 2px solid white;

}

Page 179: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 197

.phighslide-wrapper, .outer-glow {

background: #444;

}

.phighslide-image {

border: 5px solid #444444;

}

.phighslide-image-blur {

}

.phighslide-caption {

display: none;

font-family: Verdana, Helvetica;

font-size: 10pt;

border: 5px solid #444444;

border-top: none;

padding: 5px;

background-color: gray;

}

.phighslide-loading {

display: block;

color: white;

font-size: 9px;

font-weight: bold;

text-transform: uppercase;

text-decoration: none;

padding: 3px;

border-top: 1px solid white;

border-bottom: 1px solid white;

background-color: black;

padding-left: 22px;

background-image: url(<?=SITE_URL?>images/graphics/loader.gif);

background-repeat: no-repeat;

background-position: 3px 1px;

}

a.phighslide-credits,

a.phighslide-credits i {

padding: 2px;

color: silver;

text-decoration: none;

font-size: 10px;

}

a.phighslide-credits:hover,

a.phighslide-credits:hover i {

color: white;

background-color: gray;

}

Page 180: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 198

a.phighslide-full-expand {

background: url(<?=SITE_URL?>images/graphics/fullexpand.gif) no-repeat;

display: block;

margin: 0 10px 10px 0;

width: 34px;

height: 34px;

}

.highslide-wrapper div {

font-family: Verdana, Helvetica;

font-size: 10pt;

}

.highslide-html {

background-color: white;

}

.highslide-html-blur {

}

.highslide-html-content {

position: absolute;

display: none;

}

.highslide-loading {

display: block;

color: black;

font-size: 8pt;

font-family: sans-serif;

font-weight: bold;

text-decoration: none;

padding: 2px;

border: 1px solid #669900;

background-color: white;

padding-left: 22px;

background-image: url(<?=SITE_URL?>images/graphics/loader.white.gif);

background-repeat: no-repeat;

background-position: 3px 1px;

}

a.highslide-credits,

a.highslide-credits i {

padding: 2px;

color: silver;

text-decoration: none;

font-size: 10px;

}

Page 181: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 199

a.highslide-credits:hover,

a.highslide-credits:hover i {

color: white;

background-color: gray;

}

/* Styles for the popup */

.highslide-wrapper, .rounded-white {

background-color: white;

}

.highslide-wrapper .highslide-html-content {

width: 400px;

padding: 0 5px 5px 5px;

}

.highslide-wrapper .highslide-header {

padding-bottom: 5px;

}

.highslide-wrapper .highslide-header ul {

margin: 0;

padding: 0;

text-align: right;

}

.highslide-wrapper .highslide-header ul li {

display: inline;

padding-left: 1em;

}

.highslide-wrapper .highslide-header ul li.highslide-previous, .highslide-wrapper

.highslide-header ul li.highslide-next {

display: none;

}

.highslide-wrapper .highslide-header a {

font-weight: bold;

color: #3399FF;

text-transform: uppercase;

text-decoration: none;

}

.highslide-wrapper .highslide-header a:hover {

color: black;

}

.highslide-wrapper .highslide-header .highslide-move a {

cursor: move;

}

.highslide-wrapper .highslide-footer {

height: 15px;

}

Page 182: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 200

.highslide-wrapper .highslide-footer .highslide-resize {

float: right;

margin-top: 4px;

height: 11px;

width: 11px;

background: url(<?=SITE_URL?>images/graphics/resize.gif);

}

.highslide-wrapper .highslide-body {

font-size: 14;

color: #999999;

}

.highslide-move {

cursor: move;

}

.highslide-resize {

cursor: nw-resize;

}

</style>

<?

$query_press=mysql_query("Select * from press ORDER BY RAND() LIMIT 1");

$row_press=mysql_fetch_array($query_press);

?>

<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center" >

<tr>

<td class="small_heading">

<?=$row_press['press_title']?>

</td>

</tr>

<tr>

<td align="right" class="p">

<?=date("d-m-y", strtotime($row_press['date_of_news']));?>

</td>

</tr>

<tr>

<td colspan="2" class="p">

<?

if(strlen($row_press['text']) > 150 )

{

echo substr($row_press['text'],0,150)."..."; ?>

<script type="text/javascript" src="js/highslide-with-html.js"></script>

Page 183: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 201

<script type="text/javascript">

hs.graphicsDir = '<?=SITE_URL?>images/graphics/';

hs.outlineType = 'rounded-white';

hs.outlineWhileAnimating = true;

</script>

<div align="right" valign="bottom" ><a href="#" onclick="return hs.htmlExpand(this, {

contentId: 'highslide-html-press' } )"

class="highslide">View Full Text</a>

<div class="highslide-html-content" id="highslide-html-press">

<div class="highslide-header">

<ul>

<li class="highslide-move">

<a href="#" onclick="return false">Move</a>

</li>

<li class="highslide-close">

<a href="#" onclick="return hs.close(this)">Close</a>

</li>

</ul>

</div>

<div class="highslide-body">

<?=$row_press['text'];?>

</div>

<div class="highslide-footer">

<div>

<span class="highslide-resize" title="Resize">

<span></span>

</span>

</div>

</div>

</div>

</div>

<? }

else

{

echo $row_press['text'];

}

?>

</td>

</tr>

<tr>

Page 184: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 202

<td width="13%" align="center" colspan="2">

<? if($row_press['press_cutting']!="") { ?>

<script type="text/javascript" src="js/highslide.js"></script>

<script type="text/javascript">

hs.graphicsDir = '<?=SITE_URL?>images/graphics/';

hs.outlineType = 'outer-glow';

</script>

<div>

<a id="thumb1" href="<?=SITE_URL?>images/<?=$row_press['press_cutting']?>"

class="phighslide" onclick="return hs.expand(this)">

<img

src="<?=SITE_URL?>thumb.php?src=images/<?=$row_press['press_cutting']?>&dest=<

?=SITE_URL?>images/<?=$row_press['press_cutting']?>x=150&y=100&f=0" alt=""

title="Click to enlarge" width="150" height="100" /></a>

<div class="phighslide-caption">

<?=$row_press['press_title']?>

</div>

</div>

<? } ?>

<div class="p" style="vertical-align:text-bottom"><font size="2" >click on pic &amp;

view large</font></div>

</td>

</tr>

</table>

/*******************************The End*****************************/

Some Main Site Features:

Departments

/*******************************************************************

*This page shows the all department of slected campus.

*******************************************************************/

<?

$camp_id=$_GET['camp'];

?>

<? if($camp_id==1) { ?>

<table width="100%" border="0" cellpadding="2" cellspacing="2" align="center" >

<tr><td align="center" class="h1" colspan="6">Departments of Gulshan

Campus</td></tr>

<tr><td class="h1" colspan="6">&nbsp;</td></tr>

<tr>

<? $i=0;

Page 185: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 203

$depart_query=mysql_query("Select * from departs where camp_id=".$camp_id."

order by depart_name ASC");

while($depart_row=mysql_fetch_array($depart_query))

{ $i++;

if($i<4) { ?>

<td width="2%" align="center"><font

color="#669900">&bull;</font></td>

<td class="p"><a

href="index.php?m=depart&depart_id=<?=$depart_row['depart_id']?>"

class="campus"><?=$depart_row['depart_name']?></a></td>

<? }

else { $i=1;?>

</tr><tr>

<td width="2%" align="center"><font

color="#669900">&bull;</font></td>

<td class="p"><a

href="index.php?m=depart&depart_id=<?=$depart_row['depart_id']?>"

class="campus"><?=$depart_row['depart_name']?></a></td>

<? } ?>

<? } ?>

<tr><td class="h1" colspan="6">&nbsp;</td></tr>

<tr><td class="h1" colspan="6">&nbsp;</td></tr>

<tr><td class="h1" colspan="6">&nbsp;</td></tr>

</table>

<? } ?>

<? if($camp_id==2) { ?>

<table width="100%" border="0" cellpadding="2" cellspacing="2" align="center" >

<tr><td align="center" class="h1" colspan="6">Departments of Abdul-Haq

Campus</td></tr>

<tr><td class="h1" colspan="6">&nbsp;</td></tr>

<tr>

<? $i=0;

$depart_query=mysql_query("Select * from departs where camp_id=".$camp_id."

order by depart_name ASC");

while($depart_row=mysql_fetch_array($depart_query))

{ $i++;

if($i<4) { ?>

<td width="2%" align="center"><font

color="#669900">&bull;</font></td>

<td class="p"><a

href="index.php?m=depart&depart_id=<?=$depart_row['depart_id']?>"

class="campus"><?=$depart_row['depart_name']?></a></td>

<? }

else { $i=1;?>

</tr><tr>

Page 186: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 204

<td width="2%" align="center"><font

color="#669900">&bull;</font></td>

<td class="p"><a

href="index.php?m=depart&depart_id=<?=$depart_row['depart_id']?>"

class="campus"><?=$depart_row['depart_name']?></a></td>

<? } ?>

<? } ?>

<tr><td class="h1" colspan="6">&nbsp;</td></tr>

<tr><td class="h1" colspan="6">&nbsp;</td></tr>

<tr><td class="h1" colspan="6">&nbsp;</td></tr>

</table>

<? } ?>

<? if($camp_id==3) { ?>

<table width="100%" border="0" cellpadding="2" cellspacing="2" align="center" >

<tr><td align="center" class="h1" colspan="6">Departments of Islamabad

Campus</td></tr>

<tr><td class="h1" colspan="6">&nbsp;</td></tr>

<tr>

<? $i=0;

$depart_query=mysql_query("Select * from departs where camp_id=".$camp_id."

order by depart_name ASC");

while($depart_row=mysql_fetch_array($depart_query))

{ $i++;

if($i<4) { ?>

<td width="2%" align="center"><font

color="#669900">&bull;</font></td>

<td class="p"><a

href="index.php?m=depart&depart_id=<?=$depart_row['depart_id']?>"

class="campus"><?=$depart_row['depart_name']?></a></td>

<? }

else { $i=1;?>

</tr><tr>

<td width="2%" align="center"><font

color="#669900">&bull;</font></td>

<td class="p"><a

href="index.php?m=depart&depart_id=<?=$depart_row['depart_id']?>"

class="campus"><?=$depart_row['depart_name']?></a></td>

<? } ?>

<? } ?>

<tr><td class="h1" colspan="6">&nbsp;</td></tr>

<tr><td class="h1" colspan="6">&nbsp;</td></tr>

<tr><td class="h1" colspan="6">&nbsp;</td></tr>

</table>

<? } ?>

/*******************************The End*****************************/

Page 187: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 205

/*******************************************************************

*This page shows the features of selected department.

*Features are Home page, Faculty Page, Courses offered page, Annaonuncement page.

*******************************************************************/

<link href="<?=SITE_URL?>threefixed.css" rel="stylesheet" type="text/css">

<?

$depart_id=$_GET['depart_id'];

$depart_query=mysql_query("Select * from departs where depart_id=".$depart_id);

$depart_row=mysql_fetch_array($depart_query)

?>

<table width="100%" border="0" cellpadding="2" cellspacing="2" align="center" >

<tr><td align="center">

<div class="heading">

<ul id="nav">

<li class="top"><a

href="index.php?m=depart&depart_id=<?=$depart_row['depart_id']?>&n=<?=$depart_r

ow['home']?>" id="privacy" class="top_link"><span>Home</span></a>

</li>

<li class="top"><a

href="index.php?m=depart&depart_id=<?=$depart_row['depart_id']?>&n=<?=$depart_r

ow['faculty']?>" id="privacy" class="top_link"><span>Faculty</span></a>

</li>

<li class="top"><a

href="index.php?m=depart&depart_id=<?=$depart_row['depart_id']?>&n=depart_course

s" id="privacy" class="top_link"><span>Courses Offered</span></a>

</li>

<li class="top"><a

href="index.php?m=depart&depart_id=<?=$depart_row['depart_id']?>&n=depart_news"

id="privacy" class="top_link"><span>News &amp; Announcements</span></a>

</li>

</ul>

</div>

</td></tr>

<tr><td class="h1">

<?=$depart_row['depart_name']?> Department

</td></tr>

<tr><td align="center">

<table width="100%" border="0" cellpadding="2" cellspacing="2"

align="center" >

<tr><td>

<? if (isset($_GET['n']))

{

$n = $_GET['n'].'.php';

include_once($n);

}

else

Page 188: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 206

{

$depart_home=$depart_row['home'].'.php';

include_once($depart_home);

}

?>

</td></tr>

</table>

</td></tr>

</table>

/*******************************The End*****************************/

/*******************************************************************

*This page shows the list of courses offered by department.

*******************************************************************/

<?

$depart_id=$_GET['depart_id'];

$depart_query=mysql_query("Select * from departs where depart_id=".$depart_id);

$depart_row=mysql_fetch_array($depart_query)

?>

<?php

$sql = "Select * from courses where depart_id=".$depart_id." order by

prog_id,course_id ASC";

//////////////////PAGINATION STARTS HERE////////////

$sqlCount = $sql;

$rsCount = mysql_query($sqlCount);

$totalrows = mysql_num_rows($rsCount);

$limit=3;

$PageLink=SITE_URL."index.php?m=depart&depart_id=".$depart_row['depart_

id']."&n=depart_courses&";

if(isset($_REQUEST['page'])){$page = $_REQUEST['page'];}

else{

$page = 1;

}

$limitvalue = ($page - 1) * $limit;

ob_start();

if($page > 1){

$pageprev = $page-1;

echo("<a href=\"".$PageLink."page=$pageprev\"

class=\"campus\">Previous</a>&nbsp;");

}

$numofpages = ceil($totalrows / $limit);

for($i = 1; $i <= $numofpages; $i++)

{

if($i > $page-10 and $i < $page+10)

{

Page 189: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 207

if($page == $i)

echo($i."&nbsp;");

else

echo("<a href=\"".$PageLink."page=$i\"

class=\"campus\">$i</a>&nbsp;");

}

}

if($page < $numofpages){

$pagenext = ($page + 1);

echo ("<a href=\"".$PageLink."page=$pagenext\"

class=\"campus\">Next</a>");

}

$pagination = ob_get_contents();

ob_end_clean();

$sql.= " LIMIT $limitvalue, $limit";

//echo $sql;

$res = mysql_query($sql);

$total_displaying = mysql_num_rows($res);

$starting = ($total_displaying > 0) ? $limitvalue+1 : 0;

$ending = $limitvalue+$total_displaying;

//////////////// PAGINATION ENDS HERE////////////

$program=0;

?>

<table width="100%" border="0" cellpadding="2" cellspacing="2" align="center" >

<? while($row_courses=mysql_fetch_array($res)) {

if($program!=$row_courses['prog_id']) {

?>

<tr>

<? $query_prog=mysql_query("Select * from programs where

prog_id=".$row_courses['prog_id']);

$row_prog=mysql_fetch_array($query_prog); ?>

<td class="h2" colspan="4"

bgcolor="#DFE8F9"><?=$row_prog['prog_name'];?></td></tr>

<? } ?>

<? if($row_courses['prog_id']==$row_prog['prog_id']) { ?>

<tr><td class="p" colspan="3">

<strong><?=$row_courses['course_name'];?></strong>

</td></tr>

<? } ?>

<? $query_sub=mysql_query("Select * from subjects where

course_id=".$row_courses['course_id']);

while($row_sub=mysql_fetch_array($query_sub)) { ?>

<tr>

<td width="2%" align="center"><font color="#669900">&bull;</font></td>

<td class="p">

Page 190: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 208

<?=$row_sub['sub_name'];?>

</td>

</tr>

<? } ?>

<? $program=$row_courses['prog_id']; ?>

<tr><td colspan="4"><hr size="1" color="#82ADF0"></td></tr>

<? } ?>

<tr>

<td colspan="4"><table width="100%" border="0" cellpadding="1" cellspacing="3">

<tr>

<td width="30%"><strong><?php echo $starting; ?> - <?php echo $ending; ?>

out of <?php echo $totalrows; ?></strong></td>

<td width="70%" align="center"><strong><?php echo $pagination;

?></strong></td>

</tr>

</table></td>

</tr>

</table>

/*******************************The End*****************************/

/*******************************************************************

*This page shows the all announcemts uploaded by the admin of depart.

*If any attachment is attached with any announcement then user can download it.

*******************************************************************/

<script type="text/javascript" src="js/highslide-with-html.js"></script>

<script type="text/javascript">

hs.graphicsDir = '<?=SITE_URL?>images/graphics/';

hs.outlineType = 'rounded-white';

hs.outlineWhileAnimating = true;

</script>

<style type="text/css">

.highslide-wrapper div {

font-family: Verdana, Helvetica;

font-size: 10pt;

}

.highslide-html {

background-color: white;

}

.highslide-html-blur {

}

.highslide-html-content {

position: absolute;

display: none;

}

.highslide-loading {

display: block;

Page 191: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 209

color: black;

font-size: 8pt;

font-family: sans-serif;

font-weight: bold;

text-decoration: none;

padding: 2px;

border: 1px solid #669900;

background-color: white;

padding-left: 22px;

background-image: url(<?=SITE_URL?>images/graphics/loader.white.gif);

background-repeat: no-repeat;

background-position: 3px 1px;

}

a.highslide-credits,

a.highslide-credits i {

padding: 2px;

color: silver;

text-decoration: none;

font-size: 10px;

}

a.highslide-credits:hover,

a.highslide-credits:hover i {

color: white;

background-color: gray;

}

/* Styles for the popup */

.highslide-wrapper, .rounded-white {

background-color: white;

}

.highslide-wrapper .highslide-html-content {

width: 400px;

padding: 0 5px 5px 5px;

}

.highslide-wrapper .highslide-header {

padding-bottom: 5px;

}

.highslide-wrapper .highslide-header ul {

margin: 0;

padding: 0;

text-align: right;

}

.highslide-wrapper .highslide-header ul li {

display: inline;

Page 192: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 210

padding-left: 1em;

}

.highslide-wrapper .highslide-header ul li.highslide-previous, .highslide-wrapper

.highslide-header ul li.highslide-next {

display: none;

}

.highslide-wrapper .highslide-header a {

font-weight: bold;

color: #3399FF;

text-transform: uppercase;

text-decoration: none;

}

.highslide-wrapper .highslide-header a:hover {

color: black;

}

.highslide-wrapper .highslide-header .highslide-move a {

cursor: move;

}

.highslide-wrapper .highslide-footer {

height: 15px;

}

.highslide-wrapper .highslide-footer .highslide-resize {

float: right;

margin-top: 4px;

height: 11px;

width: 11px;

background: url(<?=SITE_URL?>images/graphics/resize.gif);

}

.highslide-wrapper .highslide-body {

font-size: 14;

color: #999999;

}

.highslide-move {

cursor: move;

}

.highslide-resize {

cursor: nw-resize;

}

</style>

<?

$depart_id=$_GET['depart_id'];

$depart_query=mysql_query("Select * from departs where depart_id=".$depart_id);

$depart_row=mysql_fetch_array($depart_query)

?>

Page 193: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 211

<table width="100%" align="center">

<tr class="head">

<td colspan="6" align="left" class="p"><div

align="right"><a

href="<?=SITE_URL?>index.php?m=depart&depart_id=<?=$depart_row['depart_id']?>

&n=depart_insert_news" class="campus">Add New Announcement </a></div></td>

</tr>

<tr bgcolor="#DFE8F9">

<td width="21%" bgcolor="#DFE8F9" ><div

align="center"><strong>Title</strong></div></td>

<td width="57%" bgcolor="#DFE8F9" ><div

align="center"><strong>News </strong></div></td>

<td width="22%" bgcolor="#DFE8F9" ><div

align="center"><strong>Attachment </strong></div></td>

</tr>

<?php

$sql = "Select * from news where depart_id=".$depart_id." order by news_id

desc";

//////////////////PAGINATION STARTS HERE////////////

$sqlCount = $sql;

$rsCount = mysql_query($sqlCount);

$totalrows = mysql_num_rows($rsCount);

$limit=10;

$PageLink=SITE_URL."admin/index.php?m=depart&depart_id=".$depart_row['

depart_id']."&n=depart_news&";

if(isset($_REQUEST['page'])){$page = $_REQUEST['page'];}

else{

$page = 1;

}

$limitvalue = ($page - 1) * $limit;

ob_start();

if($page > 1){

$pageprev = $page-1;

echo("<a href=\"".$PageLink."page=$pageprev\"

class=\"campus\">&lt;</a>&nbsp;");

}

$numofpages = ceil($totalrows / $limit);

for($i = 1; $i <= $numofpages; $i++)

{

if($i > $page-10 and $i < $page+10)

{

if($page == $i)

Page 194: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 212

echo($i."&nbsp;");

else

echo("<a href=\"".$PageLink."page=$i\"

class=\"campus\">$i</a>&nbsp;");

}

}

if($page < $numofpages){

$pagenext = ($page + 1);

echo ("<a href=\"".$PageLink."page=$pagenext\"

class=\"campus\">&gt;</a>");

}

$pagination = ob_get_contents();

ob_end_clean();

$sql.= " LIMIT $limitvalue, $limit";

//echo $sql;

$res = mysql_query($sql);

$total_displaying = mysql_num_rows($res);

$starting = ($total_displaying > 0) ? $limitvalue+1 : 0;

$ending = $limitvalue+$total_displaying;

//////////////// PAGINATION ENDS HERE////////////

while ($row = mysql_fetch_array($res))

{

if(!isset($color)){ $color = COLOR1;} if($color == COLOR2){$color

= COLOR1;}else{$color = COLOR2;}

?>

<tr bgcolor="#FFFFFF">

<td height="40" class="p"><div align="center"><?php echo $row['news_title'];

?></div></td>

<td class="p">

<? if(strlen($row['news_text']) > 100 )

{

echo substr($row['news_text'],0,100)."..."; ?>

<div align="right" valign="bottom" ><a href="#" onclick="return

hs.htmlExpand(this, { contentId: 'highslide-html' } )"

class="highslide">View Full News</a>

<div class="highslide-html-content" id="highslide-html">

<div class="highslide-header">

<ul>

<li class="highslide-move">

<a href="#" onclick="return false">Move</a>

</li>

Page 195: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 213

<li class="highslide-close">

<a href="#" onclick="return hs.close(this)">Close</a>

</li>

</ul>

</div>

<div class="highslide-body">

<?=$row['news_text'];?>

</div>

<div class="highslide-footer">

<div>

<span class="highslide-resize" title="Resize">

<span></span> </span> </div>

</div>

</div>

</div>

<? }

else

{

echo $row['news_text'];

}

?></td>

<td class="p"><div align="center">

<? if($row['news_attach']!="") { ?>

<a href="<?=SITE_URL?>images/<?php echo $row['news_attach']; ?>"

class="campus">Attachment</a>

<? } ?>

</div></td>

</tr>

<tr><td colspan="4"><hr size="1" color="#82ADF0"></td></tr>

<?php } ?>

<tr class="p">

<td colspan="4"><table width="100%" border="0"

cellpadding="1" cellspacing="3">

<tr>

<td width="30%"><strong><?php echo $starting; ?> - <?php echo

$ending; ?> out of <?php echo $totalrows; ?></strong></td>

<td width="70%" align="center"><strong><?php echo $pagination;

?></strong></td>

</tr>

</table></td>

</tr>

</table>

/*******************************The End*****************************/

Page 196: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 214

/*******************************************************************

*This page first shows the login to the admin of particular department.

*If admin provides correct password then through this page he/she can uploade the

announcement related to the department.

*******************************************************************/

<?

$depart_id=$_GET['depart_id'];

$depart_query=mysql_query("Select * from departs where depart_id=".$depart_id);

$depart_row=mysql_fetch_array($depart_query)

?>

<script type="text/javascript">

function validate()

{

var title = document.getElementById('title').value;

var text = document.getElementById('text').value;

var file = document.getElementById('attachfile').value;

var check=true;

if(title == '')

{document.getElementById("dtitle").style.display = ''; check= false;}

if(text == '')

{document.getElementById("dtext").style.display = ''; check= false;}

if( check == true )

{

return true;

}

else return false;

}

</script>

<?

if(isset($_POST['password']))

{

$depart=$_POST['depart'];

$pass=$_POST['password'];

$query=mysql_query("Select * from departs where depart_id=".$depart." and

depart_pass='".$pass."'");

$count=mysql_num_rows($query);

if($count==0)

{

Page 197: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 215

echo "<meta http-equiv=\"refresh\"

content=\"0;URL=index.php?m=depart&depart_id=".$depart_row['depart_id']."&n=depa

rt_insert_news&msg=1\" />";

}

else

{

echo "<meta http-equiv=\"refresh\"

content=\"0;URL=index.php?m=depart&depart_id=".$depart_row['depart_id']."&n=depa

rt_insert_news&valid=1\" />";

}

}

?>

<? if(isset($_GET['valid'])) { ?>

<?

if(isset($_POST['submit2']))

{

$title=$_POST['title'];

$text=$_POST['text'];

if(isset($_FILES['attachfile']) AND $_FILES['attachfile']['size'] > 0 AND

$_FILES['attachfile']['error'] == 0)

{

$attach = $_FILES['attachfile'];

$allowed_attach_type =

array('xls','doc','docx','ppt','pdf','jpg','gif','png','jpeg');

$attachfile_name = upload($attach

,$allowed_attach_type,"images/");

}

mysql_query("Insert into news set news_title='".$title."', news_text='".$text."',

news_attach='".$attachfile_name."', camp_id=".$depart_row['camp_id'].",

depart_id=".$depart_id);

//echo "Insert into news set news_title='".$title."', news_text='".$text."'";

echo "<meta http-equiv=\"refresh\"

content=\"0;URL=index.php?m=depart&depart_id=".$depart_row['depart_id']."&n=depa

rt_news&msg=2\" />";

}

if(isset($_POST['submit1']))

{

echo "<meta http-equiv=\"refresh\"

content=\"0;URL=index.php?m=depart&depart_id=".$depart_row['depart_id']."&n=depa

rt_news\" />";

}

?>

Page 198: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 216

<table width="100%" border="0" cellspacing="5" cellpadding="4">

<form action="" method="post" name="form2" id="form2" enctype="multipart/form-

data" >

<tr>

<td colspan="3"><span class="h2">Insert the News: </span></td>

</tr>

<tr>

<td width="29%" class="p">News Title : </td>

<td width="45%"><input type="text" name="title" id="title" value="" ></td>

<td width="26%"><div id="dtitle" class="p" style="display:none;"><font

color="#B58903">Please fill it!</font></div></td>

</tr>

<tr>

<td class="p">News Text :</td>

<td><textarea name="text" id="text" cols="25" rows="5"></textarea> </td>

<td><div id="dtext" class="p" style="display:none;"><font

color="#B58903">Please fill it!</font></div></td>

</tr>

<tr>

<td class="p">Upload Attachment :</td>

<td><input type="file" name="attachfile" id="attachfile" /> </td>

<td>&nbsp;</td>

</tr>

<tr>

<td colspan="3" align="center">

<input type="submit" id="submit1" name="submit1" value="Back"

class="button" />

&nbsp;&nbsp;&nbsp;&nbsp;

<input type="submit" id="submit2" name="submit2" value="Upload"

class="button" onclick="return validate();" /></td>

</tr>

</form>

</table>

<? } else { ?>

<table width="100%" border="0" cellpadding="0" cellspacing="0">

<tr>

<td align="right"><a

href="<?=SITE_URL?>index.php?m=depart&depart_id=<?=$depart_row['depart_id']?>

&n=depart_news" class="campus">Back</a> &nbsp;&nbsp;&nbsp; </td>

</tr>

<? if(isset($_GET['msg'])) { ?>

Page 199: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 217

<tr>

<td class="p">&nbsp;</td>

</tr>

<tr>

<? if($_GET['msg']==1) { ?>

<tr>

<td class="p"><div align="center"><font color="#B58903;" >Invalid

Password!</font></div></td>

</tr>

<? } ?>

<tr>

<tr>

<td class="p">&nbsp;</td>

</tr>

<tr>

<? } ?>

<td>

<table border="1" bordercolor="#82ADF0" cellpadding="0" cellspacing="0"

align="center">

<tr><td align="center" bgcolor="#6699ff" class="p" ><strong><font

color="#FFFFFF">Department Login</font></strong></tr>

<tr><td><table width="100%" border="0" cellpadding="2"

cellspacing="2" align="center" >

<form name="form1" id="form1" action="" method="post">

<tr>

<td colspan="2">&nbsp;</td>

</tr>

<tr>

<td align="center"><font color="#68B1FC" size="2" face="Arial,

Helvetica, sans-serif">Department:</font></td>

<td align="center"><select name="depart" id="depart">

<? $depart=mysql_query("Select * from departs where

depart_id=".$depart_id);

$depart_row=mysql_fetch_array($depart); ?>

<option value="<?=$depart_row['depart_id']?>">

<?=$depart_row['depart_name']?>

</option>

</select></td>

</tr>

<tr>

<td align="center"><font color="#68B1FC" size="2" face="Arial,

Helvetica, sans-serif">&nbsp; Password:</font></td>

<td align="center"><input type="password" name="password"

size="12"></td>

</tr>

Page 200: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 218

<tr><td colspan="2" align="center"><input type="image"

name="submit" src="<?=SITE_URL?>images/login_btn.gif" width="55" height="22"

border="0" alt=""></td></tr>

</form>

</table></td></tr>

</table>

</td>

</tr>

<tr>

<td height="40">&nbsp;</td>

</tr>

</table>

<? } ?>

/*******************************The End*****************************/

Results

/*******************************************************************

*Result page, which take some information from student.such as its enrollment no to

verify that he/she is the student of FUUAST.

*******************************************************************/

<script type="text/javascript" src="mootools.js" ></script>

<script type="text/javascript" src="ajax.js"></script>

<script type="text/javascript">

var ajax = new Array();

function getdepart(camp)

{

document.getElementById("woadingx").style.display='';

var camp_id = camp.options[camp.selectedIndex].value;

document.getElementById('depart').options.length = 0; // Empty city select

box

if(camp_id.length>0){

var index = ajax.length;

ajax[index] = new sack();

ajax[index].requestFile = 'admin/getdeparts.php?camp_id='+camp_id;

// Specifying which file to get

ajax[index].onCompletion = function(){ createdepart(index) }; //

Specify function that will be executed after file has been found

ajax[index].runAJAX(); // Execute AJAX function

document.getElementById("woadingx").style.display='none';

}

}

Page 201: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 219

function createdepart(index)

{

var depart_obj = document.getElementById('depart');

eval(ajax[index].response); // Executing the response from Ajax as Javascript

code

}

</script>

<script language="javascript">

function isNumberKey(evt)

{

var charCode = (evt.which) ? evt.which : evt.keyCode

if (charCode > 31 && (charCode < 48 || charCode > 57))

return false;

return true;

}

</script>

<?

if(isset($_POST['submit']))

{

$camp=$_POST['camp'];

$depart=$_POST['depart'];

$inroll_no=$_POST['inroll_no'];

$query=mysql_query("Select * from inroll where depart_id=".$depart." and

camp_id=".$camp." and inroll_no='".$inroll_no."'");

$count=mysql_num_rows($query);

if($count==0)

{

echo "<meta http-equiv=\"refresh\"

content=\"0;URL=index.php?m=result&msg=1\" />";

}

else

{

echo "<meta http-equiv=\"refresh\"

content=\"0;URL=index.php?m=show_result&depart_id=".$depart."&camp_id=".$camp.

"\" />";

}

}

?>

<table width="100%" border="0" cellpadding="2" cellspacing="2" align="center" >

Page 202: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 220

<tr><td>&nbsp;</td></tr>

<tr><td align="center" class="h1" >Results</td></tr>

<tr><td>&nbsp;</td></tr>

<tr><td class="p" >The performance of students is assessed during the semester

through mid term tests, assignments, quizzes, case studies or any other method

considered appropriate by the course instructor and the University, This shall be

communicated to the students at the start of a course.</td></tr>

<tr><td>&nbsp;</td></tr>

<tr><td><table width="80%" border="0" cellpadding="3" cellspacing="3"

align="center" >

<form action="" method="post" name="form1" id="form1"

enctype="multipart/form-data">

<? if(isset($_GET['msg'])) { ?>

<tr><td colspan="3" align="center" class="p"><font color="#B58903;" >Invalid

Enrollment No! Please enter correct Enrollment No.</font></td>

</tr>

<? } ?>

<tr><td colspan="3">&nbsp;</td></tr>

<tr>

<td width="55%" class="p">Select Campus Name :</td>

<td width="25%"><select name="camp" id="camp" onChange="getdepart(this)">

<option value="null" >--Select Campus--</option>

<? $camp=mysql_query("Select * from campuses");

while($camp_row=mysql_fetch_array($camp)) { ?>

<option value="<?=$camp_row['camp_id']?>" >

<?=$camp_row['camp_name']?>

</option>

<? } ?>

</select></td>

<td width="20%"><div id="woadingx" style="display:none;"

align="center"><img src="<?=SITE_URL?>images/loading.gif" /></div></td>

</tr>

<tr>

<td class="p">Select Department Name :</td>

<td><select name="depart" id="depart">

<option value="null" >--Select Depart--</option>

</select></td>

<td><div id="woadingxx" style="display:none;" align="center"><img

src="<?=SITE_URL?>images/loading.gif" /></div></td>

</tr>

<tr>

<td class="p">Enter Enrollment No :</td>

Page 203: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 221

<td colspan="2"><input type="text" name="inroll_no" id="inroll_no" value=""

/></td>

</tr>

<tr><td colspan="3">&nbsp;</td></tr>

<tr>

<td colspan="3" align="center"><input type="submit" id="submit" name="submit"

value=" Ok " class="button" /> </td>

</tr>

<tr><td colspan="3">&nbsp;</td></tr>

</form>

</table></td></tr>

</table>

/*******************************The End*****************************/

/*******************************************************************

*Through this page student can download the required result sheet.

*******************************************************************/

<script type="text/javascript" src="mootools.js" ></script>

<script type="text/javascript" src="ajax.js"></script>

<script type="text/javascript">

var ajax = new Array();

function getyear(course)

{

document.getElementById("woadingx").style.display='';

var course_id = course.options[course.selectedIndex].value;

document.getElementById('yearr').options.length = 0; // Empty city select

box

if(course_id.length>0){

var index = ajax.length;

ajax[index] = new sack();

ajax[index].requestFile = 'getyear.php?course_id='+course_id; //

Specifying which file to get

ajax[index].onCompletion = function(){ createyear(index) }; //

Specify function that will be executed after file has been found

ajax[index].runAJAX(); // Execute AJAX function

document.getElementById("woadingx").style.display='none';

}

}

function createyear(index)

{

var year_obj = document.getElementById('yearr');

Page 204: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 222

eval(ajax[index].response); // Executing the response from Ajax as Javascript

code

}

</script>

<script language="javascript">

function isNumberKey(evt)

{

var charCode = (evt.which) ? evt.which : evt.keyCode

if (charCode > 31 && (charCode < 48 || charCode > 57))

return false;

return true;

}

</script>

<?

$camp_id=$_GET['camp_id'];

$depart_id=$_GET['depart_id'];

$camp=mysql_query("Select * from campuses where camp_id=".$camp_id);

$camp_row=mysql_fetch_array($camp);

$depart=mysql_query("Select * from departs where depart_id=".$depart_id);

$depart_row=mysql_fetch_array($depart);

?>

<?

$sheat="";

if(isset($_POST['submit']))

{

$course_id=$_POST['course'];

$result_id=$_POST['yearr'];

$query=mysql_query("Select * from results where course_id=".$course_id." and

result_id=".$result_id);

$row=mysql_fetch_array($query);

$count=mysql_num_rows($query);

if($count==0)

{

$sheat="no";

}

else

{

$sheat="yes";

}

}

?>

<table width="80%" border="0" cellpadding="3" cellspacing="3" align="center" >

Page 205: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 223

<form action="" method="post" name="form1" id="form1"

enctype="multipart/form-data">

<tr><td colspan="3">&nbsp;</td></tr>

<tr><td align="center" class="h1" colspan="3" >Results</td></tr>

<tr><td colspan="3">&nbsp;</td></tr>

<tr>

<td class="p"><font color="#B58903;" >Campus :</font></td>

<td class="p"><?=$camp_row['camp_name']?></td>

<td class="p">&nbsp;</td>

</tr>

<tr>

<td class="p"><font color="#B58903;" >Department :</font></td>

<td class="p"><?=$depart_row['depart_name']?></td>

<td class="p">&nbsp;</td>

</tr>

<tr><td colspan="3">&nbsp;</td></tr>

<tr>

<td width="48%" class="p">Select year/semester of Course :</td>

<td width="45%"><select name="course" id="course" onChange="getyear(this)">

<option value="null" >--Select Course--</option>

<? $course=mysql_query("Select * from courses where camp_id=".$camp_id." and

depart_id=".$depart_id);

while($course_row=mysql_fetch_array($course)) { ?>

<option value="<?=$course_row['course_id']?>" >

<?=$course_row['course_name']?>

</option>

<? } ?>

</select></td>

<td width="7%"><div id="woadingx" style="display:none;" align="center"><img

src="<?=SITE_URL?>images/loading.gif" /></div></td>

</tr>

<tr>

<td class="p">Year of Examination :</td>

<td><select name="yearr" id="yearr">

<option value="null" >--Select Year--</option>

</select></td>

<td><div id="woadingxx" style="display:none;" align="center"><img

src="<?=SITE_URL?>images/loading.gif" /></div></td>

</tr>

<tr><td colspan="3">&nbsp;</td></tr>

<tr>

<td colspan="3" align="center"><input type="submit" id="submit" name="submit"

value=" Result " class="button" /> </td>

</tr>

Page 206: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 224

<tr><td colspan="3">&nbsp;</td></tr>

<? if($sheat=="yes") { ?>

<tr><td colspan="3" align="center">

<a href="<?=SITE_URL?>images/<?=$row['result_sheet'];?>" >Result Sheat is

here Download it.</a>

</td></tr>

<? } else if($sheat=="no") { ?>

<tr><td colspan="3" align="center" class="p">

<font color="#B58903;" >Sorry! No Result found.</font>

</td></tr>

<? } ?>

<tr><td colspan="3">&nbsp;</td></tr>

</form>

</table>

/*******************************The End*****************************/

Research

/*******************************************************************

*Through this page users can upload their researches.

*******************************************************************/

<script type="text/javascript">

function validate()

{

var name = document.getElementById('name').value;

var edu = document.getElementById('edu').value;

var title = document.getElementById('title').value;

var research = document.getElementById('attachfile').value;

var check=true;

if(name == '')

{document.getElementById("dname").style.display = ''; check= false;}

if(edu == '')

{document.getElementById("dedu").style.display = ''; check= false;}

if(title == '')

{document.getElementById("dtitle").style.display = ''; check= false;}

if(research == '')

{document.getElementById("dattachfile").style.display = ''; check= false;}

if( check == true )

{

return true;

}

Page 207: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 225

else return false;

}

</script>

<?

if(isset($_POST['submit2']))

{

$name=$_POST['name'];

$edu=$_POST['edu'];

$title=$_POST['title'];

if(isset($_FILES['attachfile']) AND $_FILES['attachfile']['size'] > 0 AND

$_FILES['attachfile']['error'] == 0)

{

$attach = $_FILES['attachfile'];

$allowed_attach_type = array('doc','docx','ppt','pdf');

$attachfile_name = upload($attach

,$allowed_attach_type,"images/");

}

if($attachfile_name!="")

{

mysql_query("Insert into researches set person_name='".$name."',

person_edu='".$edu."', research_topic='".$title."', research_doc='".$attachfile_name."'");

echo "<meta http-equiv=\"refresh\"

content=\"0;URL=index.php?m=research&n=all_researches&msg=1\" />";

}

else

echo "<meta http-equiv=\"refresh\"

content=\"0;URL=index.php?m=research&n=all_researches\" />";

}

if(isset($_POST['submit1']))

{

echo "<meta http-equiv=\"refresh\"

content=\"0;URL=index.php?m=research&n=all_researches\" />";

}

?>

<table width="100%" border="0" cellspacing="5" cellpadding="4">

<form action="" method="post" name="form2" id="form2" enctype="multipart/form-

data" >

<tr>

<td colspan="3" class="h2">Upload Research Paper</td>

</tr>

<tr>

<td width="38%" class="p">Person Name : </td>

Page 208: Batch 2005-2008 Project Advisor: Mam Shazia …project.esolweb.com/all-books/fyp/FUUAST Website-BS-2005.pdfBatch 2005-2008 Project Advisor: Mam Shazia Usmani Submitted By Rida Fatima

Federal Urdu University’s Website chapter-3- 226

<td width="31%"><input type="text" name="name" id="name" value="" ></td>

<td width="31%"><div id="dname" class="p" style="display:none;"><font

color="#B58903">Please fill it!</font></div></td>

</tr>

<tr>

<td width="38%" class="p">Person Education : </td>

<td width="31%"><input type="text" name="edu" id="edu" value="" ></td>

<td width="31%"><div id="dedu" class="p" style="display:none;"><font

color="#B58903">Please fill it!</font></div></td>

</tr>

<tr>

<td width="38%" class="p">Research Title : </td>

<td width="31%"><input type="text" name="title" id="title" value="" ></td>

<td width="31%"><div id="dtitle" class="p" style="display:none;"><font

color="#B58903">Please fill it!</font></div></td>

</tr>

<tr>

<td class="p">Upload Research Paper :</td>

<td><input type="file" name="attachfile" id="attachfile" /> </td>

<td><div id="dattachfile" class="p" style="display:none;"><font

color="#B58903">Please fill it!</font></div></td>

</tr>

<tr>

<td colspan="3" align="center">

<input type="submit" id="submit1" name="submit1" value="Back"

class="button" />

&nbsp;&nbsp;&nbsp;&nbsp;

<input type="submit" id="submit2" name="submit2" value="Upload"

class="button" onclick="return validate();" /></td>

</tr>

</form>

</table>

/*******************************The End*****************************/