Harsh It
Harsh It
Session: 2018-19
1
B.tech(CSE 7th sem)
RCPL INDIA
Session: 2018-19
3
Certificate
TABLE OF CONTENTS
4
Sr. no Topic Page no.
1. Introduction 5
1.1. Introduction of Institute 5-6
1.2 Introduction of Project 6-7
1.3 Objective 7
2. Feasibility Study 7
2.1 Economic Feasibility 8
2.2 Technical Feasibility 8
2.3 Behavioural Feasibility 8
3. Requirement Analysis 9
3.1 Hardware requirement 9
3.2 Software requirement 9-11
4. Designing 11
4.1 Data flow diagram 11
4.2 Sequence diagram 12-15
4.3 Module description 16
4.4 Screenshots 16-19
5. Coding 20-42
6. Testing 43
6.1 Unit testing 43
6.2 Integration testing 43
6.3 System testing 43
7. Implementation 44
8. Maintenance 44
9. Conclusion and Future Scope 45
10. References 45
1. Introduction
5
1.1 Introduction of Institute
WHAT IS RCPL?
RCPL is the largest training company in India with over 22 years of experience in the field of
education. RCPL has a dedicated team of 80 team members which provide the quality
trainings across the country. RCPL conducts trainings for students from best of the
Institutions of the country . Over 25,000 students get trained by us every year. We provide
Courses for Engineering and Non Engineering Stream like Computer Science, Information
Technology, Mechanical, Civil, M.Sc. I.T , B.Sc.IT etc. and Programs like Summer Training ,
Winter Training, Project Training, College Training to Suit students round the year
requirements. Android,AutoCAD 2D and 3D ,Embedded and Robotics, Java, .NET
Framework are few the Courses available with us.
Like other educational and training industries, at RCPL you will be offered a variety of
programs but it is the instructor that makes the difference and our instructor make RCPL
stand out from others. We have a variety of skilled and trained trainers whose approach is
different which you can see anywhere. RCPL contributes a lot to the knowledge of its
trainees and we try our level hard to contribute the best to increase our trainee's ability so
that they stand out from others and whatever they contribute to the corporate world
automatically becomes productive. Not only the fresher but also the corporates who are
not able to deal with the rising technology and software are helped here. We try our level
best to deliver our services to every corner of the world by the help of customized
education. Our motto is to deliver the best services to you and that is why we have taken
the customized approach because we do not want you to compromise with your
education.
It is not necessary that you have to leave your job in order to make-up with us. You can
contact our experts and can get the best result. To serve you we are always at your service,
you can contact us as and when you get time and clear your queries.
7
With an online restaurant menu ordering system, customers can place orders online 24 *7. Thus it is a
simple, fast and convenient food ordering system giving an edge over the competition at an affordable
price.Internet has seen a tremendous growth in terms of coverage and awareness.
So giving the business an online presence has become very crucial and important.
With [Online Ordering System], we can set up we restaurant menu online and the customers can easily
place order with a simple mouse click. Also with a food menu online we can easily track the orders,
maintain customer's database and improve the food delivery service. We can receive order through e-
mails/ fax or directly view on internet. The restaurants’ can even customize online restaurant menu and
upload images easily. Having restaurant menu on internet, potential customers can easily access it and
place order at their convenience
1.3 Objective
The proposed system is to make online Web Site for a famous Food Chain so that everyone can
get information on Menu [Items offered], Stores [Location of all the Outlets], Order Placement so
that he can order online, Hall Booking for small functions such as Birthday parties for kids and
placements [Provides user, the option for Working @ Outlet]
2. Feasibility Study
A feasibility study is conducted to select the best system that meets performance requirement. This entails
an identification description, an evaluation of candidate system and the selection of best system for the job.
The system required performance is defined by a statement of constraints, the identification of specific
system objective and a description of outputs.
All projects are Feasible given unlimited resources and infinite time. Unfortunately the development
of a computer-based system is more likely to be plagued by scarcity of resources and difficult to achieve
delivery dates. It is both necessary and prudent to evaluate the feasibility of a project at the earliest
possible time. In order to make sure that the project is feasible, following feasibility studies have been
conducted.
8
Economic analysis is most frequently used for evaluation of the effectiveness of the system. More
commonly known as cost/benefit analysis the procedure is to determine the benefit and saving that are
expected from a system and compare them with costs, decisions is made to design and implement the
system. This part of feasibility study gives the top management the economic justification for the new
system.
This is an important input to the management the management, because very often the top management
does not like to get confounded by the various technicalities that bound to be associated with a project of
this kind In the system, the organization is most satisfied by economic feasibility. Because, if the
organization implements this system, it need not require any additional hardware resources as well as it will
be saving lot of time.
3. Requirement Analysis
This section describes the software and hardware requirements of the project.
9
3.1. Hardware Requirement
It is recommended that the minimum configuration for the clients is as given below:
• Technology : php
Database : MySql
Platforms Supported
Perquisites
• PHP
• Design Skills
10
1. PHP: Hypertext Preprocessor (or simply PHP) is a server-side scripting language designed
for Web development, but also used as a general-purpose programming language.
2. It was originally created by Rasmus Lerdorf in 1994
3. PHP code may be embedded into HTML code, or it can be used in combination with
various web template systems, web content management systems, and web frameworks.
4. PHP code is usually processed by a PHP interpreter implemented as a module in the web
server or as a Common Gateway Interface (CGI) executable.
5. The standard PHP interpreter, powered by the Zend Engine, is free software released under the PHP
License. PHP has been widely ported and can be deployed on most web servers on almost
every operating system and platform, free of charge.
6. The PHP language evolved without a written formal specification or standard until 2014, with the
original implementation acting as the de facto standard which other implementations aimed to follow.
Since 2014 work has gone on to create a formal PHP specification.
HTML
1. Hypertext Markup Language (HTML) is the standard markup language for creating web
pages and web applications. With Cascading Style Sheets (CSS) and JavaScript, it forms a triad
of cornerstone technologies for the World Wide Web.
2. Web browsers receive HTML documents from a web server or from local storage and render the
documents into multimedia web pages. HTML describes the structure of a web
page semantically and originally included cues for the appearance of the document.
4. HTML can embed programs written in a scripting language such as JavaScript, which affects the
behavior and content of web pages. The World Wide Web Consortium (W3C), maintainer of both
the HTML and the CSS standards, has encouraged the use of CSS over explicit presentational
HTML since 1997
Database
11
Synchronize tables between two databases.
4. DESIGNING
Sequence diagrams, which are part of the dynamic diagrams, are used to show the sequence of
actions and interactions that take place between objects . Their main components are:
a) Create User:
13
14
b) Login activity
15
Edit Profile Activity:
16
4.3. MODULES DESCRIPTION OF PROJECT
There are 6 modules in the system which can be sequentially listed as given below:-
4.4 SCREENSHOTS
1. User page
17
2. Login page
3. Dashboard
18
4. Payment detail
5. Edit detail
19
6. Admin detail
20
7. CODING
7.1 Login-Register
<?php
require_once('connection/config.php');
error_reporting(1);
if(!$link) {
//Select database
$db = mysql_select_db(DB_DATABASE);
if(!$db) {
?>
<?php
21
//setting-up a remember me cookie
if (isset($_POST['Submit'])){
if($_POST['remember']) {
else if(!$_POST['remember']) {
if(isset($_COOKIE['remember_me'])) {
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</script>
</head>
22
<body>
<div id="page">
<div id="menu"><ul>
<li><a href="index.php">Home</a></li>
</ul>
</div>
<div id="header">
</div>
<div id="center">
<h1>Login/Register</h1>
<tr align="center">
<td style="text-align:center;">
<tr>
23
<td colspan="2" style="text-align:center;"><font color="#FF0000">*
</font>Required fields</td>
</tr>
<tr>
<td width="112"><b>Email</b></td>
</tr>
<tr>
<td><b>Password</b></td>
</tr>
<tr>
echo 'checked="checked"';
else {
echo '';
?>/>Remember me</td>
</tr>
<tr>
24
<input type="submit" name="Submit" value="Login" /></td>
</tr>
<tr><td> </td></tr>
</table>
</form>
</div>
</td>
<hr>
<td style="text-align:center;">
<tr>
</tr>
<tr>
</tr>
<tr>
25
</tr>
<tr>
<th width="124">Email</th>
</tr>
<tr>
<th>Password</th>
</tr>
<tr>
</tr>
<tr>
<?php
while ($row=mysql_fetch_array($questions)){
?>
26
</select></td>
</tr>
<tr>
<th>Security Answer</th>
</tr>
<tr>
</tr>
<tr><td> </td></tr>
</table>
</form>
</div>
</td>
</tr>
</table>
<hr>
</div>
</div>
</body>
</html>
27
7.2 Order booking
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</script>
</head>
<body>
<div id="page">
<div id="menu"><ul>
<li><a href="index.php">Home</a></li>
</ul>
</div>
28
<div id="header">
</div>
<div id="center">
<h1>Registration Failed</h1>
<p> </p>
<p>You are seeing this page because partyhall has been booked already. <a
href="partyhalls.php">Click Here</a> to try again.</p>
</div>
</div>
</div>
</body>
</html>
require_once('auth.php');
?>
<?php
require_once('connection/config.php');
29
//Connect to mysql server
if(!$link) {
//Select database
$db = mysql_select_db(DB_DATABASE);
if(!$db) {
$flag_0 = 0;
$member_id = $_SESSION['SESS_MEMBER_ID'];
//selecting particular records from the food_details and cart_details tables. Return an error if
there are no records in the tables
$result=mysql_query("SELECT
food_name,food_description,food_price,food_photo,cart_id,quantity_value,total,flag,categ
ory_name FROM food_details,cart_details,categories,quantities WHERE
cart_details.member_id='$member_id' AND cart_details.flag='$flag_0' AND
cart_details.food_id=food_details.food_id AND
food_details.food_category=categories.category_id AND
cart_details.quantity_id=quantities.quantity_id")
or die("A problem has occured ... \n" . "Our team is working on it at the moment ... \n" .
"Please check back after few hours.");
30
?>
<?php
if(isset($_POST['Submit'])){
//Function to sanitize values received from the form. Prevents SQL injection
function clean($str) {
$str = @trim($str);
if(get_magic_quotes_gpc()) {
$str = stripslashes($str);
return mysql_real_escape_string($str);
//get category id
$id = clean($_POST['category']);
//selecting all records from the food_details table based on category id. Return an error
if there are no records in the table
or die("A problem has occured ... \n" . "Our team is working on it at the moment ... \n" .
"Please check back after few hours.");
?>
<?php
31
?>
<?php
$flag_0 = 0;
?>
<?php
$flag_1 = 1;
or die("A problem has occured ... \n" . "Our team is working on it at the moment ... \n" .
"Please check back after few hours.");
?>
<html>
<head>
</head>
<body>
<div id="page">
<div id="menu"><ul>
<li><a href="member-index.php">Home</a></li>
</ul>
</div>
<div id="header">
</div>
<div id="center">
<hr>
<tr>
33
<td>Item ID</td>
<?php
while ($row=mysql_fetch_array($items)){
?>
</select>
</td>
<td>Quantity</td>
<?php
while ($row=mysql_fetch_assoc($quantities)){
?>
</select>
</td>
</tr>
34
</table>
</form>
<tr>
<th>Item ID</th>
<th>Food Photo</th>
<th>Food Name</th>
<th>Food Description</th>
<th>Food Category</th>
<th>Food Price</th>
<th>Quantity</th>
<th>Total Cost</th>
<th>Action(s)</th>
</tr>
<?php
while ($row=mysql_fetch_array($result)){
echo "<tr>";
35
echo "<td>" . $row['food_name']."</td>";
/*
echo "<form>";
<?php
while ($row=mysql_fetch_assoc($quantities)){
//$_SESSION[SESS_CART_ID] = $row[cart_id];
?>
</select></td>';
echo "</form>";
*/
/*
echo "<form>";
<option value='1'>select
36
<option value='2'>1
<option value='3'>2
<option value='4'>3
</select></td>";
echo "</form>";
*/
echo "</tr>";
mysql_free_result($result);
mysql_close($link);
?> </table>
</div>
</body>
</html>
require_once('auth.php');
?>
<?php
require_once('connection/config.php');
37
//Connect to mysql server
if(!$link) {
//Select database
$db = mysql_select_db(DB_DATABASE);
if(!$db) {
$memberId=$_SESSION['SESS_MEMBER_ID'];
?>
<?php
$flag_0 = 0;
$num_items = mysql_num_rows($items);
?>
<?php
38
$messages=mysql_query("SELECT * FROM messages")
$num_messages = mysql_num_rows($messages);
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
</script>
</head>
<body>
<div id="page">
<div id="menu"><ul>
<li><a href="member-index.php">Home</a></li>
</ul>
</div>
39
<div id="header">
</div>
<div id="center">
<h1>My Profile</h1>
<p> </p>
<p>Here you can change your password and also add a billing or delivery address. The
delivery address will be used to bill your food orders as well as providing us with details on
where to deliver your food. For more information <a href="contactus.php">Click Here</a>
to contact us.</p>
<hr>
<table width="870">
<tr>
<td>
<tr>
<tr>
</tr>
<tr>
<th>New Password</th>
</tr>
<tr>
</tr>
<tr>
<td> </td>
</tr>
</table>
</td>
</form>
<td>
41
<table width="300" border="0" align="center" cellpadding="2" cellspacing="0">
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
<th>City </th>
</tr>
<tr>
</tr>
42
<tr>
<th>Landline No</th>
</tr>
<tr>
<td> </td>
</tr>
</table>
</td>
</form>
</tr>
</table>
<p> </p>
</div>
</div>
</div>
</body>
</html>
6.TESTING
43
Software testing is a critical element of software quality assurance and represent the ultimate
review of specification design, coding, purpose of product testing is to verify and validate
various work products via unit integrated unit, final product to ensure that they meet their
requirements.
Unit testing is essentially for the verification of the code produced during the coding phase and
the goal is test the internal logic of the module/program. Into the Generic code project, the unit
testing is done during coding phase of data entry forms whether the functions are working
properly or not. In this phase all the drivers are tested they are rightly connected or not.
All the tested modules are combined into subsystems, which are then tested. The goal is to see if
the modules are properly integrated, and the emphasis being on the testing interfaces between the
modules. The generic code integration testing is done mainly on table creation module and
insertion module.
Once the entire system has been built then it has to be tested against the ‘System Specification’
to check if it delivers the features required. It is still developer focused, although specialist
developers known as system testers are normally employed to do it. In essence System Testing is
not about checking the individual parts of the design, but checking the system as a whole. In
effect it is one giant component.
7. IMPLEMENTATION
44
1. All The fields such as Department, Employee, Interview, are validated and does not take
invalid
values.
2. Each form for Department, Designation, Leave cannot accept blank values fields.
3. Avoiding errors in data.
4. Controlling amount of input.
5. Integration of all modules/ forms in the system.
6. Preparation of the test cases.
7. Preparation of the possible test data with all the validation check.
8. Actual testing done manually.
9. Recording of all the reproduced errors.
10. Functionally of the entire module/ forms.
11. Validations for user input.
12. Checking of code standards to be maintained during coding.
13. Testing the module with all the possible test data.
14. Testing of the functionality involving all type of calculation etc.
8. Maintainence
Maintenance covers a wide range of activities including correcting, coding and designing errors,
updating documentation and test data and upgrading user support. Enhancement means adding,
modifying or re-developing the code to support changes in the specifications. It is necessary to
keep up with the changing user needs and the operational environment. The software is designed
with the view of easy updating to the software.
Future advancements can be done easily through the review of product. The software
architecture is strong enough to provide enhancement in functionality, performance and
reliability. Functions in the software are designed in such a way that they dynamically update on
addition of new and revised modules. To append new features in this software, the databases for
student details, examination details are sufficient enough for the task. Thus the software is
capable enough of being enhanced easily whenever requires by the user.
45
This project aimed toward developing a mobile learning application that assists students in their
academic life by presenting all the needed material to master php from scratch. This material
includes general description of the php, information about the prerequisites, its architecture,
widgets and layouts.
Due to time constrains, the application included only some content of android that is basic.
However, if the mobile application is successful, a more complete version can be implemented as
future work to include more departments
10. References
www.w3schools.com
www.google.com
www.tutorialspoint.com
www.assignmenthelp.net
www.expertbuzz.com
46
47