0% found this document useful (0 votes)
24 views

PHP Common

The document discusses the system configuration requirements for a software project. It outlines that the project will require a PIV 2.8 GHz or faster processor, 40GB or more of hard disk space, 15" VGA color monitor, Logitech mouse, 512MB or more of RAM, 110-key keyboard, Windows OS, PHP for the front end, MySQL for the back end, and CSS and Dreamweaver CS4 for designing. It also provides details on PHP, MySQL, and the model-view-controller design pattern.

Uploaded by

mrithi242004
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views

PHP Common

The document discusses the system configuration requirements for a software project. It outlines that the project will require a PIV 2.8 GHz or faster processor, 40GB or more of hard disk space, 15" VGA color monitor, Logitech mouse, 512MB or more of RAM, 110-key keyboard, Windows OS, PHP for the front end, MySQL for the back end, and CSS and Dreamweaver CS4 for designing. It also provides details on PHP, MySQL, and the model-view-controller design pattern.

Uploaded by

mrithi242004
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 46

1.

SYSTEM CONFIGURATION

3.1 HARDWARE REQUIREMENTS

 System : PIV 2.8 GHz Processor and Above

 Hard disk : 40 GB and Above

 Monitor : 15 VGA Colour

 Mouse : Logitech

 Ram : 512MB and Above

 Keyboard : 110 Keys enhanced

3.2 SOFTWARE REQUIREMENTS

 Operating system : WINDOWS OS

 Front end : PHP

 Designing tool : CSS, DREAMWEAVER CS4

 Back end : MYSQL

3.3 SOFTWARE SPECIFICATION


 PHP
 MYSQL
 CASCADING STYLE SHEET, DREAMWEAVER CS4

3.3.1 FRONT END

PHP

PHP is a server-side scripting language designed for Web development but also used
as a general-purpose programming language. PHP is now installed on more than 20 million
Web sites and 1 million Web servers. Originally created by Rasmus Lerdorf in 1995, the
reference implementation of PHP is now produced by The PHP Group. While PHP originally
stood for Personal Home Page, it is now said to stand for PHP

PHP code is interpreted by a Web server with a PHP processor module which
generates the resulting Web page: PHP commands can be embedded directly into an HTML
source document rather than calling an external file to process data. It has also evolved to
include a command-line interface capability and can be used in standalone graphical
applications.

PHP is free software released under the PHP License, which is incompatible with the
GNU General Public License (GPL) due to restrictions on the usage of the term PHP. PHP
can be deployed on most Web servers and also as a standalone shell on almost every
operating system and platform, free of charge.

PHP: Hypertext Preprocessor is a widely used, general-purpose scripting language


that was originally designed for web development to produce dynamic web pages. For this
purpose, PHP code is embedded into the HTML source document and interpreted by a web
server with a PHP processor module, which generates the web page document.

As a general-purpose programming language, PHP code is processed by an interpreter


application in command-line mode performing desired operating system operations and
producing program output on its standard output channel. It may also function as a graphical
application. PHP is available as a processor for most modern web servers and as standalone
interpreter on most operating systems and computing platforms.
Hypertext Preprocessor (PHP) is a cross platform open source server side scripting
language that can be used to generate dynamic and interactive web pages. PHP scripts or
codes can be embedded within HTML pages. When a request is sent for a PHP page, the
server parses and executes the code and returns the output as plain HTML. PHP scripts can
be written to interact with databases and include a host of database connectivity features
providing support for a wide range of platforms such as My-SQL, Microsoft SQL Server,
Oracle, PostgreSQL etc. PHP can be used to create web applications ranging from personal
websites to e-commerce applications and community web portals i.e. discussion forums,
blogs etc. Apart from web applications and server side scripting, PHP can be used for
command-line scripting and client-side GUI application development.

PHP is based on an Object Oriented Architecture and most of its features, concepts
and syntax are based on the C and Perl programming languages. Being an open source
language, a large number of libraries and extensions, to extend its core functionalities, are
available for download. PHP extensions include support for features such as XML parsing,
compression utilities, dynamic generation of images, translation functions etc.

PHP scripts can run across operating systems such as Linux, Windows, Solaris, Open
BSD, Mac OSX etc and also provide support for all major web servers such as Apache, IIS, i-
Planet etc.

In the MYSQL documentation, the term connector refers to a piece of software that
allows your application to connect to the MYSQL database server. MYSQL provides
connectors for a variety of languages, including PHP.

A driver is a piece of software designed to communicate with a specific type of


database server. The driver may also call a library, such as the MYSQL Client Library or the
MYSQL Native Driver. These libraries implement the low-level protocol used to
communicate with the MYSQL database server.

By way of an example, the PHP Data Objects (PDO) database abstraction layer may
use one of several database-specific drivers. One of the drivers it has available is the PDO
MYSQL driver, which allows it to interface with the MYSQL server.

Sometimes people use the terms connector and driver interchangeably, this can be
confusing. In the MYSQL-related documentation the term "driver" is reserved for software
that provides the database-specific part of a connector package.
PHP Web Development

PHP uses a modular system of extensions to interface with a variety of libraries such
as graphics, XML, encryption, etc. In addition, programmers can extend PHP by writing their
own extensions and compiling them into the executable or they can create their own
executable and load it using PHP’s dynamic loading mechanism.

In addition to extensions, PHP has tons of server interfaces, database interfaces and
other modules available. Of the server interfaces, PHP can load into Apache, IIS, Roxen,
THTTPD and AOLserver. It can also be run as a CGI module. Database interfaces are
available for MySQL, MS SQL, Informix, Oracle and plenty of others. If a database is not
supported, ODBC is an option.

A huge advantage that PHP offers is its community. Since PHP is an open source
project, the PHP community is willing to share. If you’re looking for a particular script,
chances are another user has already created something similar. Check within the PHP
community for availability. Likewise, if you have created a function that others might enjoy,
be sure to post the code for others.

If you’re ready to add dynamic content to your Webpages, consider the use of PHP.
It’s free, easy to learn (especially if you have some programming background) and integrates
well across many platforms and with various software programs.

Model view controller

Model View Controller or MVC as it is popularly called, is a software design pattern


for developing web applications. A Model View Controller pattern is made up of the
following three parts:

Model - The lowest level of the pattern which is responsible for maintaining data.

View - This is responsible for displaying all or a portion of the data to the user.

Controller - Software Code that controls the interactions between the Model and View.

MVC is popular as it isolates the application logic from the user interface layer and
supports separation of concerns. Here the Controller receives all requests for the application
and then works with the Model to prepare any data needed by the View. The View then uses
the data prepared by the Controller to generate a final presentable response. The MVC
abstraction can be graphically represented as follows.

The model

The model is responsible for managing the data of the application. It responds to the
request from the view and it also responds to instructions from the controller to update itself.

The view

A presentation of data in a particular format, triggered by a controller's decision to


present the data. They are script based templating systems like JSP, ASP, PHP and very easy
to integrate with AJAX technology.

The controller

The controller is responsible for responding to user input and perform interactions on
the data model objects. The controller receives the input, it validates the input and then
performs the business operation that modifies the state of the data model.Struts2 is a MVC
based framework. In the coming chapters, let us see how we can use the MVC methodology
within Struts2.

Php Advantages:

Open Source

PHP is an open source technology, which means its source code, development
environment etc. are freely available. Also, PHP community is continually developing new
functionalities of this language thus improving its code package, base libraries and various
classes.

Simple & Easy


PHP developed websites or applications have much simple code to write or
understand. The level of complexity of a php code is much lesser than its competing
technologies for developing web applications or dynamic sites.

Platform Independent

Applications developed in PHP are platform independent and can be executed on a


variety of platforms and web servers. Websites developed using PHP can be hosted on nearly
all the web-servers available in the market. The only constraint which can be considered is
the version incompatibility, which is also not a major issue because most of the time servers
are back-compatible with the language versions.

Enhanced graphics

PHP can be used to generate images dynamically or at run-time. Using the image
functionalities, more number of image formats could be supported in a website or web
application.

Power

Several web tasks can now be easily perform using PHP. For example now we can
develop from small websites to giant business and organizational websites, informative
forums, chatting platforms, CRM solutions, e-commerce shopping carts, community
websites, e-business, shopping carts and gigantic database driven sites.

User Friendly

Designed in a user friendly manner, PHP gives more flexibility than C, C++ and ASP
and overall helps in increasing traffic to the site.

Quick
PHP is designed to work well with the web, and so things like accessing the GET and
POST and working with HTML and URLs are built-ins in the PHP language. This makes it
really concise and straightforward to make a website.

Easy Deployment

There are many hosting companies that will, for a few dollars a month, give you a
server running PHP so you can make a website really easily.

Community Support

A huge advantage that PHP offers is its community. If you are looking for a particular
script, chances are another user has already created something similar. Check within the PHP
community for availability. Likewise, if you have created a function that others might enjoy,
be sure to post the code for others.

Php Admin

Php Admin is a free software tool written in PHP, intended to handle the
administration of MySQL over the World Wide Web. PhpMyAdmin supports a wide range of
operations with MySQL. The most frequently used operations are supported by the user
interface (managing databases, tables, fields, relations, indexes, users, permissions, etc),
while you still have the ability to directly execute any SQL statement.

Php Admin comes with a wide range of documentation and users are welcome to
update our wiki pages to share ideas and how-to’s for various operations. The php MyAdmin
team will try to help you if you face any problem; you can use a variety of support channels
to get help.

Php Admin is also very deeply documented in a book written by one of the developers
– Mastering phpMyAdmin for Effective MySQL Management, which is available in English
and Spanish.

To ease usage to a wide range of people, phpMyAdmin is being translated into 69


languages and supports both LTR and RTL languages.Since version 3.0.0, phpMyAdmin
joined the GoPHP5 initiative and dropped compatibility code for older PHP and MySQL
versions; version 3 and later requires at least PHP 5.2 and MySQL 5.
Php Admin has won several awards. Among others, it was chosen as the best PHP
application in various awards and has won every year the SourceForge.net Community
Choice Awards as "Best Tool or Utility for System Admins".

3.3.2 BACK END

My SQL

A database management, or DBMS, gives the user access to their data and helps them
transform the data into information. Such database management systems include dBase,
paradox, IMS, My SQL and SQL Server. These systems allow users to create, update and
extract information from their database.
A database is a structured collection of data. Data refers to the characteristics of
people, things and events. SQL Server stores each data item in its own fields. In My SQL,
the fields relating to a particular person, thing or event are bundled together to form a single
complete unit of data, called a record (it can also be referred to as raw or an occurrence).
Each record is made up of a number of fields. No two fields in a record can have the same
field name.

During an SQL Server Database design project, the analysis of your business needs
identifies all the fields or attributes of interest. If your business needs change over time, you
define any additional fields or change the definition of existing fields.

SQL server tables

SQL Server stores records relating to each other in a table. Different tables are
created for the various groups of information. Related tables are grouped together to form a
database.

Primary key

Every table in SQL Server has a field or a combination of fields that uniquely
identifies each record in the table. The Unique identifier is called the Primary Key, or simply
the Key. The primary key provides the means to distinguish one record from all other in a
table. It allows the user and the database system to identify, locate and refer to one particular
record in the database.

Relational database
Sometimes all the information of interest to a business operation can be stored in one
table. SQL Server makes it very easy to link the data in multiple tables. Matching an
employee to the department in which they work is one example. This is what makes SQL
Server a relational database management system, or RDBMS. It stores data in two or more
tables and enables you to define relationships between the table and enables you to define
relationships between the tables.

Foreign key

When a field is one table matches the primary key of another field is referred to as a
foreign key. A foreign key is a field or a group of fields in one table whose values match
those of the primary key of another table.

Referential integrity

Not only does SQL Server allow you to link multiple tables, it also maintains
consistency between them. Ensuring that the data among related tables is correctly matched
is referred to as maintaining referential integrity.

Data abstraction

A major purpose of a database system is to provide users with an abstract view of the
data. This system hides certain details of how the data is stored and maintained. Data
abstraction is divided into three levels.

Physical level: This is the lowest level of abstraction at which one describes how the
data are actually stored.

Conceptual Level: At this level of database abstraction all the attributed and what
data are actually stored is described and entries and relationship among them.

View level: This is the highest level of abstraction at which one describes only part
of the database.

Advantages of RDBMS
 Redundancy can be avoided
 Inconsistency can be eliminated
 Data can be Shared
 Standards can be enforced
 Security restrictions ca be applied
 Integrity can be maintained
 Conflicting requirements can be balanced
 Data independence can be achieved.

Disadvantages of dbms

A significant disadvantage of the DBMS system is cost. In addition to the cost of


purchasing of developing the software, the hardware has to be upgraded to allow for the
extensive programs and the workspace required for their execution and storage. While
centralization reduces duplication, the lack of duplication requires that the database be
adequately backed up so that in case of failure the data can be recovered.

Features of SQL server (rdbms)

SQL Server is one of the leading database management systems (DBMS) because it is
the only Database that meets the uncompromising requirements of today’s most demanding
information systems. From complex decision support systems (DSS) to the most rigorous
online transaction processing (OLTP) application, even application that require simultaneous
DSS and OLTP access to the same critical data, SQL Server leads the industry in both
performance and capability.

SQL Server is a truly portable, distributed, and open DBMS that delivers unmatched
performance, continuous operation and support for every database.

SQL Server RDBMS is high performance fault tolerant DBMS which is specially
designed for online transactions processing and for handling large database application.

No I/O bottlenecks, SQL Server’s fast commit groups commit and deferred write
technologies dramatically reduce disk I/O bottlenecks. While some database write whole data
block to disk at commit time, SQL Server commits transactions with at most sequential log
file on disk at commit time, On high throughput systems, one sequential writes typically
group commit multiple transactions. Data read by the transaction remains as shared memory
so that other transactions may access that data without reading it again from disk. Since fast
commits write all data necessary to the recovery to the log file, modified blocks are written
back to the database independently of the transaction commit, when written from memory to
disk.

3.3.3 DESIGNING TOOLS

CASCAING STYLE SHEET

Cascading Style sheets(CSS) is a style sheet language used for describing the look
and formatting of a document written in a markup language. While most often used to style
web pages and interfaces written in HTML and XHTML, the language can be applied to any
kind of XML document, including plain XML, SVBG and XUL. CSS is a cornerstone
specification of the web and almost all web pages use css style sheets to describe their
presentation.

CSS is designed primarily to enable the separation of document content from


document presentation, including elements such as the layout, colors, and fonts. This
separation can improve content accessibility, provide more flexibility and control in the
specification of presentation characteristics, enable multiple pages to share formatting, and
reduce complexity and repetition in the structural content (such as by allowing for tableless
web design).
CSS can also allow the same markup page to be presented in different styles for
different rendering methods, such as on-screen, in print, by voice and on Braille-based tactile
devices. It can also be used to allow the web page to display differently depending on the
screen size or device on which it is being viewed. While the author of a document typically
links that document to a CSS file, reader can use a different style sheet, perhaps one on their
own computer, to override the one the author has specified. However if the author or the
reader did not link the document to a specific style sheet the default style of the browser will
be applied.

SERVER : XAMPP

XAMPP is a free and open source cross-plateform web server solution stack
package,consisting mainly of the apache HTTP server, MYSQL database, and interpreters
for scripts written in the PHP and Perl programming languages.

Officiall, XAMPP’s designers intended it for use only as a development tool, to allow
website designers and programmers to test their work on their own computers without any
access to the internet. To make this as easy as possible, many important security features are
disabled by default. In practice, however, XAMPP is sometimes used to actually server web
pages on the World Wide Web. A special tool is provided to password-product the mst
imp[ortant parts of the package.

XAMPP also provides support for creationg and manipulating database in MYSQL
and SQL Lite among ohers.

Once Xampp is installed, it is possible to treat a localhost like a remote host by


connecting using an FTP client. Using a program like FileZilla has many advantages when
installing a content management system (CMS) like joomla or Wordpress. It is also possible
to connect to localhost via FTP with an HTML editor.

The default Ftp user is “newuser”, the default FTP password is “wampp”. The Default
MYSQL user is “root” while there is no default MYSQL password.
4. SYSTEM DESIGN

4.1 INPUT DESIGN:

Input design is the part of overall system design, which requires very careful attention
in terms of both equipments used and number of peoples involved in it. If data that is given as
input entering into system is incorrect, then the processing and the output will be incorrect.
Input design is the processing of Converting an external user oriented description of input
system in to machine oriented format.

Objectives of Input Design:


Input design consists of developing specifications and procedures for data
preparation, the steps necessary to put transaction data into a usable from for processing and
data entry, the activity of data into the computer processing. The five objectives of input
design are:

 Controlling the amount of input


 Avoiding delay
 Avoiding error in data
 Avoiding extra steps

 Keeping the process simple

4.2 OUTPUT DESIGN

One of the most important features of an information system for users is the output
produced, without quality output the entire system might appear to be so unnecessary that
users will avoid using it, possibly causing the system to fail. Right output must be developed
while ensuring that output system is designed so that the user will find the system easy to use
it effectively.
In any application output is the most and direct source of the information to the user.
In output design the emphasis is given to design to the hard copy and soft copy of
information needed for the users. Efficient, intelligent and friendly screens improve the
relationship between client the system for design making.

Definition Of DFD
DATA FLOW DIAGRAMS

A data flow diagram (DFD) is a graphical representation of the “flow” of data through
an information system. A data flow diagram can also be used for the visualization of data
processing (structured design). It is common practice for a designer to draw a context-level
DFD first which shows the interaction between the system and system entities. This context-
level DFD is then “exploded” to show more detail of the system being modeled. Data Flow
Diagram was invented by Larry Constantine, the original developer of structured design,
based on Martin and Estrin’s “Data Flow Graph” model of computation.

TYPES OF DFD
In analyzing a business, several sets of DFD’s are drawn. Initial DFD’s might model
the existing system (flaws and all), while later DFD’s may model a solution to the problem
being analyzed. For these solution DFD’s a logical and physical DFD is drawn. Physical
DFD’s represent physical files and transaction, while logical or conceptual DFD’s can be
used to represent business function or processes.

COMPONENTS
A data flow diagram illustrates the processes, data stores, and external entities in a
business or other system and the data flows between these things. Four diagrammatical
components are used to develop a DFD.
These are:

 Data Flow (Represented by an Arrow)


 Data Process (Represented by a Circle or Rounded Rectangle)
 External Entity (Represented by a Square or Oval, also called a ‘Source/Sink’)
 Data Store (Represented by Two Parallel Lines, Sometimes connected by a vertical
line)

DATA PROCESS
A Data Process represents the transformation of data in the system. Generally, this
represents something that happens in the system, such as ‘student enrolment’. Data that flows
into a process should be different than the data that flows out of the process.

DATA STORE

A Data Store is a repository for data. Data stores can be manual, digital, or temporary.

EXTERNAL ENTITIES
External entity has been replicated. An external entity represents the source or sink of
data external to the system. When modeling a DFD, the designer is not interested in the inner
workings of the external entity, but only what data is produced / needed by the entity.

DUPLICATION
External entities and data store can be duplicated in the system for more clarity, while
processes cannot. External entities that have been replicated are marked by an asterisk (*) in
the lower right of the oval that represents that entity. Data stores have a double line of the left
side of their box.

DEVELOPING A DFD
A system is modeled using a DFD in several stages. At first, the system designer
makes a context-level DFD, which shows the interaction between the system and external
entities. This context-level DFD is then blown up into Level 0 DFD, which shows the main
processes that contribute to the system. Each process is then expanded into a lower-level
diagram. This process then continues on the subsequent processes.

5. SYSTEM TESTING

5.1 TESTING
Testing is an important part of the Development Life Cycle. It performs a very critical
role for quality assurance and for enduring the reliability of the Software. It is the process of
finding errors and missing operations and complete verification to determine whether the
objectives are met and the user requirements are satisfied. The amount of testing required is
related to the size and complexity of the application. In this chapter, various testing strategies
adopted in testing are explained.
The goal of testing is to uncover requirements, design or coding errors in the
programs. Consequently different levels of testing are employed in Software systems. The
results of testing phase are used later on during maintenance.

5.2 TESTING OBJECTIVES:


Testing is a process of executing a program with the intent of finding an error. A good
test is one that has the high profitability of finding an undiscovered error. A successful test is
the one that uncovers as a yet undiscovered process. Testing demonstrates that Software
functions will work the way they should be working. The general approach for testing the
product is to find the requirements, design document details and then plan the test case. We
should also consider the environment and design the test case for specialized environments.

TESTING METHODOLOGIES:
The following are the testing methodologies:

 Unit Testing
 Integration Testing
 Validation Testing

 Unit Testing:
Unit testing focuses verification effort on the smallest unit of Software design i.e. the
module. Unit Testing exercises a specific path in a module’s control structure, to ensure
complete coverage and maximum error detection. This test focuses on each module
individually, ensuring that it functions properly as a unit. Hence, the naming is Unit
Testing.
 Integration Testing:
Integration testing addresses the issues associated with the dual problems of
verification and program construction. After the Software has been integrated a set of
high order tests are conducted. The main objective in this testing process is to take
unit tested modules and builds a program structure that has been dictated by design.

 Validation Testing:
This testing runs the system in live environment using real data. During this
validation, we are testing a number of items.

6. SYSTEM IMPLEMENTATION
Implementation is the process of converting a new or revised system design into an
operational one when the initial design was done by the system; a demonstration was given to
the end user about the working system. This process is uses to verify and identify any logical
mess working of the system by feeding various combinations of test data.

When the management of the system approves the system implemented in the
concern, initially the system was run parallel with existing manual system. The system has
been tested with live data and has proved to be error free and user friendly. System
implementation is made up of many activities. Coding is the process of whereby the physical
design specifications created by the analysis team turned into working computer code by the
programming team.

Training plan is a strategy for training user so they quickly learn to the new system.
The development of the training plan probably began earlier in the project. The
implementation of product software, as the final link in the deployment chain of software
production, is in a financial perspective of a major issue. The Implementation methodology
includes the following phases - discovery, system development, and user acceptance testing
and production rollout.

A strategy for software testing may also be viewed in the context of the spiral. Unit testing
begins at the vertex of the spiral and concentrates on each unit of the software as
implemented in source code. Testing will progress by moving outward along the spiral to
integration testing, where the focus is on the design and the construction of the software
architecture. Talking another turn on outward on the spiral , it encounter validation testing
where requirements established as part of software requirements analysis are validated
against the software that has been constructed. Finally, it arrives at system testing, where the
software and other system elements are tested as a whole.

SAMPLE CODE

7. SAMPLES
7.1 SOURCE CODE

PERSONAL DETAIL ENTRY CODE:

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Intranet</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link rel="stylesheet" href="content.css" type="text/css"/>

<link rel="stylesheet" href="style.css" type="text/css" media="screen"/>

<script>

function ins()

var t=confirm("please... check the field you have entered otherwise you can't redo it");

if(t==true)

document.f.action="pinsert.php";

else

alter("cancel the fields");

function vie()

document.f.action="pview.php";

}
</script>

</head>

<body>

<body id="top">

<div class="wrapper row1">

<div id="header" class="clear">

<div class="fl_center"><img src="header1.jpg" width="1000" height="150"


pagespeed_url_hash="2401204"/></div>

<div class="wrapper row2">

<nav>

<ul class="nav">

<li><a href="home.html">Home</a></li>

<li><a href="staff.html">Staff Login</a></li>

<li><a href="login.html">Admin Login</a>

<li><a href="">Department</a>

<li><a href="">Fess Structure</a>

<li><a href="">Feed Back</a></li>

</ul></div>

<br><br>

<br><br>

<form name="f" method="post">

<fieldset bgcolor="black">

<legend>Student's Personal Detail</legend>

<table cellpadding="10">

<tr>

<td><font color="#FFFFFF">Student I'D</td>


<td><input type="text" name="t1"></td>

</tr>

<tr>

<td><font color="#FFFFFF">Student Name</td>

<td><input type="text" name="t2"></td>

</tr>

<tr>

<td><font color="#FFFFFF">Father's Name</td>

<td><input type="text" name="t3"></td>

</tr>

<tr>

<td><font color="#FFFFFF">Mother's Name</td>

<td><input type="text" name="t4"></td>

</tr>

<tr>

<td><font color="#FFFFFF">Address</td>

<td><textarea row="5" cols="20" name="t5"></textarea></td>

</tr>

<tr>

<td><font color="#FFFFFF">DOB</td>

<td><select name="month">

<option>January</option>

<option>Feburary</option>

<option>March</option>

<option>April</option>

<option>May</option>

<option>June</option>
<option>July</option>

<option>August</option>

<option>September</option>

<option>October</option>

<option>November</option>

<option>December</option>

</select>

<select
name="date"><option>1<option>2<option>3<option>4<option>5<option>6<option>7<opti
on>8<option>9<option>10<option>11<option>12<option>13<option>14<option>15<option
>16<option>17<option>18<option>19<option>20<option>21<option>22<option>23<option
>24<option>25<option>26<option>27<option>28<option>29<option>30<option>31</
option></option></option></option></option></option></option></option></option></
option></option></option></option></option></option></option></option></option></
option></option></option></option></option></option></option></option></option></
option></option></option></option></select><select
name="year"><option>1970<option>1971<option>1972<option>197<option>1974<option>
1975<option>1976<option>1977<option>1978<option>1979<option>1980<option>1981<o
ption>1982<option>1983<option>1984<option>1985<option>1986<option>1987<option>1
988<option>1989<option>1990<option>1991<option>1992<option>1993<option>1994<opt
ion>1995<option>1996<option>1997<option>1998<option>1999<option>2000<option>200
1<option>2002<option>2003<option>2004<option>2005<option>2006<option>2007<optio
n>2008<option>2009<option>2010<option>2011<option>2012<option>2013<option>2014
<option>2015</option></option></option></option></option></option></option></
option></option></option></option></option></option></option></option></option></
option></option></option></option></option></option></option></option></option></
option></option></option></option></option></option></option></option></option></
option></option></option></option></option></option></option></option>3</option></
option></option></option></select></td>

</tr>

<tr>

<td><font color="#FFFFFF">Blood Group</td>

<td><input type="text" name="t6"></td>

</tr>

<tr>
<td><font color="#FFFFFF">Last Studied Info</td>

<td><input type="text" name="t7"></td>

</tr>

<tr>

<td><font color="#FFFFFF">Family Background</td>

<th><select name="fa">

<option>---select---</option>

<option>High-Class</option>

<option>Middle-class</option>

<option>Low-class</option>

</select>

</th>

</tr>

<tr>

<th>

<input type="submit" value="Save" onclick="ins()">

<input type="submit" value="View" onclick="vie()">

</th>

</tr>

</table>

</fieldset>

</form>

</body>

</html>

SAMPLE INSERT CODING:

<?php

$sname=$_POST['t1'];
$fname=$_POST['t2'];

$mname=$_POST['t3'];

$add=$_POST['t4'];

$month=$_POST['month'];

$date=$_POST['date'];

$year=$_POST['year'];

$dob="$month,$date/$year";

$bg=$_POST['t5'];

$last=$_POST['t6'];

$familybg=$_POST['fa'];

include('conn.php');

mysql_query("insert into cssec


values('$sname','$fname','$mname','$add','$dob','$bg','$last','$familybg')",$con) or
die(mysql_error());

echo "Record Inserted";?>

SAMPLE VIEW CODING:

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Intranet</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link rel="stylesheet" href="content.css" type="text/css"/>

<link rel="stylesheet" href="style.css" type="text/css" media="screen"/>

</head>

<body>

<body id="top">

<div class="wrapper row1">

<div id="header" class="clear">


<div class="fl_center"><img src="header1.jpg" width="1000" height="150"
pagespeed_url_hash="2401204"/></div>

<div class="wrapper row2">

<nav>

<ul class="nav">

<li><a href="home.html">Home</a></li>

<li><a href="staff.html">Staff Login</a></li>

<li><a href="login.html">Admin Login</a>

<li><a href="">Department</a>

<li><a href="">Fess Structure</a>

<li><a href="">Feed Back</a></li>

</ul></div>

<br><br>

<?php

include('conn.php');

$r=mysql_query("select * from cssec",$con) or die(mysql_error());

?>

<table cellpadding="20" bgcolor="tan" border="10" bordercolor="black">

<tr><th>Student Name</th><th>Father's Name</th><th>Mother's


Name</th><th>Address</th><th>Date Of Birth<th>Blood Group</th></th><th>Last
Studied Information</th><th>Family Background</th></tr>

<?php

while($row=mysql_fetch_array($r))

?>

<tr>

<?php
for($i=0;$i<=7;$i++)

?>

<th>

<?php

echo "$row[$i]";

?>

</th>

<?php

?>

</tr>

<?php

?>

</table>

<br><br>

<br><br>

<div class="wrapper row4">

<div id="container" class="clear">

<div align="center">

<h2>Vision</h2>

<h6>

To become a premier institution of higher education </h6>

<h6>and to serve the community and the nation.</h6>

<h6>Mission</h6>

<h6>The Mission is to provide need-based quality education, </h6>


<h6>enhance the skills,competitiveness and employability of </h6>

<h6>students,shape their character and make them respon</h6>

<h6>sible citizens of India. </h6>

</body>

</html>

COURSE DETAILS ENTRY CODE:

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Intranet</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link rel="stylesheet" href="content.css" type="text/css"/>

<link rel="stylesheet" href="style.css" type="text/css" media="screen"/>

<script>

function ins()

var t=confirm("please... check the field you have entered otherwise you can't redo it");

if(t==true)

document.f.action="citinsert.php";

else

alter("cancel the fields");


}

function vie()

document.f.action="citview.php";

</script>

</head>

<body>

<body id="top">

<div class="wrapper row1">

<div id="header" class="clear">

<div class="fl_center"><img src="header1.jpg" width="1000" height="150"


pagespeed_url_hash="2401204"/></div>

<div class="wrapper row2">

<nav>

<ul class="nav">

<li><a href="home.html">Home</a></li>

<li><a href="staff.html">Staff Login</a></li>

<li><a href="login.html">Admin Login</a>

<li><a href="">Department</a>

<li><a href="">Fess Structure</a>

<li><a href="">Feed Back</a></li>

</ul></div>

<br><br>

<br><br>
<form name="f" method="post">

<fieldset bgcolor="black">

<legend>Student's Course Detail</legend>

<table cellpadding="10">

<tr>

<td><font color="#FFFFFF">Student I'd</td>

<td><input type="text" name="t1"></td>

</tr>

<tr>

<td><font color="#FFFFFF">Course Name</td>

<td><input type="text" name="t2"></td>

</tr>

<tr>

<td><font color="#FFFFFF">Batch</td>

<td><input type="text" name="t3"></td>

</tr>

<tr>

<td><font color="#FFFFFF">DOJ</td>

<td><select name="month">

<option>January</option>

<option>Feburary</option>

<option>March</option>

<option>April</option>

<option>May</option>

<option>June</option>

<option>July</option>

<option>August</option>
<option>September</option>

<option>October</option>

<option>November</option>

<option>December</option>

</select>

<select
name="date"><option>1<option>2<option>3<option>4<option>5<option>6<option>7<opti
on>8<option>9<option>10<option>11<option>12<option>13<option>14<option>15<option
>16<option>17<option>18<option>19<option>20<option>21<option>22<option>23<option
>24<option>25<option>26<option>27<option>28<option>29<option>30<option>31</
option></option></option></option></option></option></option></option></option></
option></option></option></option></option></option></option></option></option></
option></option></option></option></option></option></option></option></option></
option></option></option></option></select><select
name="year"><option>1970<option>1971<option>1972<option>197<option>1974<option>
1975<option>1976<option>1977<option>1978<option>1979<option>1980<option>1981<o
ption>1982<option>1983<option>1984<option>1985<option>1986<option>1987<option>1
988<option>1989<option>1990<option>1991<option>1992<option>1993<option>1994<opt
ion>1995<option>1996<option>1997<option>1998<option>1999<option>2000<option>200
1<option>2002<option>2003<option>2004<option>2005<option>2006<option>2007<optio
n>2008<option>2009<option>2010<option>2011<option>2012<option>2013<option>2014
<option>2015</option></option></option></option></option></option></option></
option></option></option></option></option></option></option></option></option></
option></option></option></option></option></option></option></option></option></
option></option></option></option></option></option></option></option></option></
option></option></option></option></option></option></option></option>3</option></
option></option></option></select></td>

</tr>

<tr>

<td><font color="#FFFFFF">Register Number</td>

<td><input type="text" name="t4"></td>

</tr>

<tr>

<td><font color="#FFFFFF">Roll Number</td>

<td><input type="text" name="t5"></td>


</tr>

<tr>

<td><font color="#FFFFFF">Bank A/C Number</td>

<td><input type="text" name="t6"></td>

</tr>

<tr>

<th>

<input type="submit" value="Save" onclick="ins()">

<input type="submit" value="View" onclick="vie()">

</th>

</tr>

</table>

</fieldset>

</form>

</body>

</html>

INTERNAL MARK ENTRY CODING:

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Intranet</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link rel="stylesheet" href="content.css" type="text/css"/>

<link rel="stylesheet" href="style.css" type="text/css" media="screen"/>

<script>

function cal()

{
var a,b,c;

a=parseInt(document.f.t7.value);

b=parseInt(document.f.t8.value)

c=parseInt(document.f.t9.value);

if(a>b)

document.f.t10.value=a;

else

document.f.t10.value=b;

if(b>c)

document.f.t11.value=b;

else

document.f.t11.value=c;

if(c>a)

document.f.t11.value=c;

else

document.f.t11.value=a;
}

if(c>b)

document.f.t11.value=c;

else

document.f.t11.value=b;

function cons()

var p=parseFloat(document.f.t10.value);

var q=parseFloat(document.f.t11.value);

var r=parseFloat(document.f.t12.value);

var t13;

t13=((p+q)/2)+r;

document.f.t13.value=t13;

function ins()

var t=confirm("please... check the field you have entered otherwise you can't redo it");

if(t==true)

document.f.action="insert.php";

else
{

alter("cancel the fields");

function vie()

document.f.action="view.php";

</script>

</head>

<body>

<body id="top">

<div class="wrapper row1">

<div id="header" class="clear">

<div class="fl_center"><img src="header1.jpg" width="1000" height="150"


pagespeed_url_hash="2401204"/></div>

<div class="wrapper row2">

<nav>

<ul class="nav">

<li><a href="home.html">Home</a></li>

<li><a href="staff.html">Staff Login</a></li>

<li><a href="login.html">Admin Login</a>

<li><a href="">Department</a>

<li><a href="">Fess Structure</a>

<li><a href="">Feed Back</a></li>

</ul></div>
<br><br>

<br><br>

<form name="f" method="post">

<fieldset bgcolor="black">

<legend>Student Internal Mark</legend>

<table cellpadding="10">

<tr>

<td><font color="#FFFFFF">Student I'D</td>

<td><input type="text" name="t1"></td>

</tr>

<tr>

<td><font color="#FFFFFF">Student Name</td>

<td><input type="text" name="t2"></td>

</tr>

<tr>

<td><font color="#FFFFFF">Year</td>

<td><input type="text" name="t3"></td>

</tr>

<tr>

<td><font color="#FFFFFF">Department</td>

<td><input type="text" name="t4"></td>

</tr>

<tr>

<td><font color="#FFFFFF">Subject Name</td>

<td><input type="text" name="t5"></td>

</tr>

<tr>
<td><font color="#FFFFFF">Subject code</td>

<td><input type="text" name="t6"></td>

</tr>

<tr>

<td><font color="#FFFFFF">Internal-I</td>

<td><input type="text" name="t7"></td>

</tr>

<tr>

<td><font color="#FFFFFF">Internal-II</td>

<td><input type="text" name="t8"></td>

</tr>

<tr>

<td><font color="#FFFFFF">Internal-III</td>

<td><input type="text" name="t9"></td>

</tr>

<tr>

<td><font color="#FFFFFF">Highest Mark-I</td>

<td><input type="text" name="t10"></td>

</tr>

<tr>

<td><font color="#FFFFFF">Highest Mark-II</td>

<td><input type="text" name="t11"></td>

</tr>

<tr>

<td><font color="#FFFFFF">Assignment Mark</td>

<td><input type="text" name="t12"></td>

</tr>
<tr>

<td><font color="#FFFFFF">Consolidated Mark</td>

<td><input type="text" name="t13"></td>

</tr>

<tr>

<th>

<input type="submit" value="Save" onclick="ins()">

<input type="button" value="Process" onclick="cal()">

<input type="submit" value="View" onclick="vie()">

<input type="button" value="Calculate" onclick="cons()">

</th>

</tr>

</table>

</fieldset>

</form>

</body>

</html>

EXTERNAL MARK ENTRY CODE:

<?php

include('conn.php');

$myquery=("select * from inter where sid='$_POST[t1]'");

$fetched=mysql_query($myquery);

while($rowvalue=mysql_fetch_array($fetched))

$sid=$rowvalue['sid'];

$sname=$rowvalue['sname'];

$year=$rowvalue['year'];
$dept=$rowvalue['dept'];

$subj=$rowvalue['subj'];

$subc=$rowvalue['subc'];

$cons=$rowvalue['cons'];

?>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Intranet</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link rel="stylesheet" href="content.css" type="text/css"/>

<link rel="stylesheet" href="style.css" type="text/css" media="screen"/>

<script>

function cal()

var a,b;

a=parseFloat(document.f1.t13.value);

b=parseFloat(document.f1.e.value);

var c;

c=a+b;

document.f1.t.value=c;

if(c<40)

document.f1.d.value="fail"

else
{

document.f1.d.value="Pass"

function ins1()

document.f1.action="einsert.php";

function vie1()

document.f1.action="eview.php";

</script>

</head>

<body bgcolor="tan">

<body id="top">

<div class="wrapper row1">

<div id="header" class="clear">

<div class="fl_center"><img src="header1.jpg" width="1000" height="150"


pagespeed_url_hash="2401204"/></div>

<div class="wrapper row2">

<nav>

<ul class="nav">

<li><a href="home.html">Home</a></li>

<li><a href="staff.html">Staff Login</a></li>

<li><a href="login.html">Admin Login</a>


<li><a href="">Department</a>

<li><a href="">Fess Structure</a>

<li><a href="">Feed Back</a></li>

</ul></div>

<br><br>

<br><br>

<form name="f1" method="POST">

<fieldset bgcolor="black">

<legend>Student's External Mark</legend>

<table cellpadding="10">

<tr>

<td><font color="#FFFFFF">Student I'D</td>

<td><input type="text" name="t1" value='<?php echo $sid; ?>'/></td>

</tr>

<tr>

<td><font color="#FFFFFF">Student Name</td>

<td><input type="text" name="t2" value='<?php echo $sname; ?>'/></td>

</tr>

<tr>

<td><font color="#FFFFFF">Year</td>

<td><input type="text" name="t3" value='<?php echo $year; ?>'/></td>

</tr>

<tr>

<td><font color="#FFFFFF">Department</td>

<td><input type="text" name="t4" value='<?php echo $dept; ?>'/></td>

</tr>

<tr>
<td><font color="#FFFFFF">Subject Name</td>

<td><input type="text" name="t5" value='<?php echo $subj; ?>'/></td>

</tr>

<tr>

<td><font color="#FFFFFF">Subject Code</td>

<td><input type="text" name="t6" value='<?php echo $subc; ?>'/></td>

</tr>

<tr>

<td><font color="#FFFFFF">Internal Mark</td>

<td><input type="text" name="t13" value='<?php echo $cons; ?>'/></td>

</tr>

<tr>

<td><font color="#FFFFFF">External Mark</td>

<td><input type="text" name="e"></td>

</tr>

<tr>

<td><font color="#FFFFFF">Total Mark</td>

<td><input type="text" name="t"></td>

</tr>

<tr><td><font color="#FFFFFF">Status</td>

<td><input type="text" name="d"></td>

</tr>

<tr><td><font color="#FFFFFF">Year of Passing</td>

<td><input type="text" name="y"></td>

</tr>

<tr>

<td><input type="button" value="Process" onclick="cal()"></td>


</tr>

<tr>

<td><input type="submit" value="Save" onclick="ins1()"></td>

</tr>

<tr>

<td><input type="submit" value="View" onclick="vie1()"></td>

</tr>

</table>

</legend>

</fieldset>

</form>

</body>

</html>

RESULT PROGRESS CODE:

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Intranet</title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link rel="stylesheet" href="content.css" type="text/css"/>

<link rel="stylesheet" href="style.css" type="text/css" media="screen"/>

</head>

<body>

<body id="top">

<div class="wrapper row1">

<div id="header" class="clear">


<div class="fl_center"><img src="header1.jpg" width="1000" height="150"
pagespeed_url_hash="2401204"/></div>

<div class="wrapper row2">

<nav>

<ul class="nav">

<li><a href="home.html">Home</a></li>

<li><a href="staff.html">Staff Login</a></li>

<li><a href="login.html">Admin Login</a>

<li><a href="">Department</a>

<li><a href="">Fess Structure</a>

<li><a href="">Feed Back</a></li>

</ul></div>

<br><br>

<br><br>

<?php

include('conn.php');

$r=mysql_query("select subj,subc,cons,exter,tot,status,yop from tot where


sid='$_POST[t1]'",$con) or die(mysql_error());

?>

<center><h4>Summative Exam Result</h4></center>

<table align="center" cellpadding="20" bgcolor="tan" border="10" bordercolor="black">

<tr><th>Subject Name<th>Subject Code</th></th><th>Internal Mark</th><th>External


Mark</th><th>Total</th><th>Status</th><th>Year Of Passing</tr>

<?php

while($row=mysql_fetch_array($r))

?>
<tr>

<?php

for($i=0;$i<=6;$i++)

?>

<th>

<?php

echo "$row[$i]";

?>

</th>

<?php

?>

</tr>

<?php

?>

</table>

</body>

</html>

8. FUTURE ENHANCEMENT
Now the system is beingable to run on local host. Import option to import internal
mark processing for a class rather than student provision to store details of staff, research
scholar in a database storing fee structure into a database to view fees structure according to
course in order to update fee in future.

Now I done this process for particular deparment.In furure, I will do the same process
for all other department and also, I will implement website for this concern and host it. With
these Echnacements the project can be fullfilled in future.

10. BIBILIOGRAPHY

TEXT BOOKS

1. The complete Reference JAVA SCRIPT 2.0 Phil Hanna Tata McGraw-Hill
Publishing Company Limited Second Edition.
2. PHP for the Web Larry Ullman Cambridge University Fourth Edition.
3. Beginning PHP and Mysql Matt Doyle Tata McGraw-Hill Publishing
Company Limited Fifth Edition.

WEB REFERENCES

1. www.w3school.com

2. www.codeproject.com

3. www.stackoverflow.com

4. www.php.net

You might also like