html body { margin-top: 50px !important; } #top_form { position: fixed; top:0; left:0; width: 100%; margin:0; z-index: 2100000000; -moz-user-select: none; -khtml-user-select: none; -webkit-user-select: none; -o-user-select: none; border-bottom:1px solid #151515; background:#FFC8C8; height:45px; line-height:45px; } #top_form input[name=url] { width: 550px; height: 20px; padding: 5px; font: 13px "Helvetica Neue",Helvetica,Arial,sans-serif; border: 0px none; background: none repeat scroll 0% 0% #FFF; }
and provides a simple example of an HTML page structure. It also describes what HTML elements and attributes are, giving examples of common attributes like href and src.">
Training File
Training File
On
Zamindar Kesar Mehal
Submitted to GIANI ZAIL SINGH CAMPUS COLLEGE OF ENGINEERING AND
TECHNOLOGY in partial fulfillment of the requirement for the award of the
degree of
B.TECH
In
COMPUTER SCIENCE & ENGINEERING
Submitted By
Deepak Rout (190280034)
Paras Mishra (190280150)
1
TRAINING REPORT
On
2
3
4
PREFACE
Project is an integral part of B.Tech and each and every student has to undergo the
report for in a institute.
This record is concerned about our practical training during the 7th semester of our
B.Tech. I have taken my Practical Training in web development .During this
training, We got to learn many new things about web development and the current
requirements of companies. This project proved to be a milestone in our
knowledge of present industry. Every say and every moment was an experience in
itself, an experience which theoretical study can’t provide.
5
ACKNOWLEDGEMENT
It is my pleasure to be indebted to various people, who directly or indirectly contributed in the
development of this work and who influenced my thinking, behavior and acts during the course
of study.
I express my sincere gratitude to Er. Jyoti Rani worthy HOD and Er.Manpreet , Department
Training & Placement In-charge for providing me an opportunity to undergo summer training at
Inert IT Pvt Ltd
I am thankful to Adhitya Gupta sir for his support, cooperation, and motivation provided to me
during the training for constant inspiration, presence and blessings.
I also extend my sincere appreciation to all my friends who provided his valuable suggestions
and precious time in accomplishing my training report.
Lastly, I would like to thank the almighty and my parents for their moral support and my friends
with whom I shared my day-to-day experience and received lots of suggestions that my quality
of work.
DEEPAK ROUT
PARAS MISHRA
6
DECLARATION
I, PARAS MISHRA AND DEEPAK ROUT, Roll No. 190280150, 190280034 respectively,
B.Tech (Semester- VII) of the Gaini Zail Singh Campus College of Engineering &
Technology, Bathinda hereby declare that the Training Report entitled “Zamindar Kesar
Mehal” is an original work and data provided in the study is authentic to the best of my
knowledge. This report has not been submitted to any other Institute for the award of any other
degree.
This is certify that the above statement made by the candidate is correct to the best of my
knowledge.They are permitted to appear in the External Project Examination
7
ABSTRACT
8
CONTENTS
9
CHAPTER 1:Introduction to Web development
There are different types of web developers who focus on different areas. These include:
• Frontend developers: Frontend developers implement web page designs using HTML and
CSS. They make sure the website looks pretty on different devices, and that the forms and
buttons work.
• Backend developers: Backend developers create the backbone of the web application. They
write code logic that handles a user’s input (for example, what should happen when you click
the signup button after filling in a form).
• Full stack developers: Full stack developers do bits of both backend and frontend. Depending
on the problem at hand, they can switch cape 🦸♀️🦸♂️ and move stacks.
10
CHAPTER 2:- INDRODUCTION TO HTML
</body>
</html>
11
• The <title> element specifies a title for the HTML page (which is shown in the
browser's title bar or in the page's tab)
• The <body> element defines the document's body, and is a container for all the visible
contents, such as headings, paragraphs, images, hyperlinks, tables, lists, etc.
• The <h1> element defines a large heading
• The <p> element defines a paragraph
The HTML element is everything form start tag to the end tag:
The <a>tag defines a hyperlink.the href attributes specifies the URL of the page
The <img> tag is used to embed an image in an HTML page. The src attribute specifies the path
to the image to be displayed:
12
Example:
<img src="food.jpg">
The <img> tag should also contain the width and height attributes, which specifies the width and height of the
image (in pixels):
Example:
The required alt attribute for the <img> tag specifies an alternate text for an image, if the image for
some reason cannot be displayed. This can be due to slow connection, or an error in the src attribute, or
if the user uses a screen reader.
Example
HTML headings are defined with the <h1> to <h6> tags. <h1> defines the most important
heading. <h6> defines the least important heading.
Example:
Output:
Heading 1
13
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
2.4.1:HTML Paragraph
The HTML <p> element defines a paragraph.
A paragraph always starts on a new line, and browsers automatically add some white space (a margin)
before and after a paragraph.
Example:
The <hr> tag defines a thematic break in an HTML page, and is most often displayed as a horizontal
rule. The <hr> element is used to separate content (or define a change) in an HTML page:
Example:
<hr>
<hr>
Use <br> if you want a line break (a new line) without starting a new paragraph:
14
Example:
Output: This is
2.7.1:HTML Styles
The HTML style attribute is used to add styles to an element, such as color, font, size, and more.
Example:
I am Red
I am Blue
I am Big
Syntax: <tagname style="property:value;">
# HTML Fonts
The CSS font-family property defines the font to be used for an HTML element:
Example:
<h1 style="font-family:Algerian;">This is a heading</h1>
# HTML Colour
The CSS color property defines the text color for an HTML element:
Example:
<h1 style="color:blue;">This is a heading</h1>
<p style="color:red;">This is a paragraph.</p>
Output:
This is a heading
This is a heading
15
# HTML Size
The CSS font-size property defines the text size for an HTML element:
Example:
<h1 style="font-size:160%;">This is a heading</h1>
<p>This is a paragraph.</p>
HTML links are hyperlinks. You can click on a link and jump to another document.
When you move the mouse over a link, the mouse arrow will turn into a little hand.
Example:
Images can improve the design and the appearance of a web page.
Example:
16
HTML lists allow web developers to group a set of related items in lists.
Example:
• Item 1.Item
• Item 2.Item
• Item 3.Item
• Item 4.Item
HTML Description list is also a list style which is supported by HTML and XHTML. It is also known
as definition list where entries are listed like a dictionary or encyclopedia.
Example:
<dl>
<dt>Coffee</dt>
</dl>
The HTML class attribute is used to specify a class for an HTML element.
Example:
17
<h class=”headd ”>this is heading</h>
2.13:HTML ids
You cannot have more than one element with the same id in an HTML document.
Example:
HTML tables allow web developers to arrange data into rows and columns.
Example:
<table>
<tr>
<th>Company</th>
<th>Contact</th>
<th>Country</th>
</tr>
<tr>
<td>Alfreds Futterkiste</td>
<td>Maria Anders</td>
<td>Germany</td>
</tr>
<tr>
<td>Centro comercial Moctezuma</td>
<td>Francisco Chang</td>
<td>Mexico</td>
</tr>
</table>
18
Output:
2.15:HTML Forms
An HTML form is used to collect user input. The user input is most often sent to a server for
processing.
Example:
First name:
Paras
Last name:
Deepak
An <input> element can be displayed in many ways, depending on the type attribute.
Example:
<input type=”text”>
<input type=”radio”>
<input type=”checkbox”>
19
3.0: Introduction
Example:
body {
background-color: lightblue;
}
h1{
color: white;
text-align: center;
}
p{
font-family: verdana;
font-size: 20px;
}
CSS selectors are used to "find" (or select) the HTML elements you want to style.
The id selector uses the id attribute of an HTML element to select a specific element.
The id of an element is unique within a page, so the id selector is used to select one unique element!
To select an element with a specific id, write a hash (#) character, followed by the id of the element.
Example:
20
#para1 {
text-align: center;
color: red;
}
The class selector selects HTML elements with a specific class attribute.
To select elements with a specific class, write a period (.) character, followed by the class name.
Example:
.center {
text-align: center;
color: red;
}
The universal selector (*) selects all HTML elements on the page.
Example:
*{
margin: 0px;
padding: 0px;
}
Comments are used to explain the code, and may help when you edit the source code at a later date.
A CSS comment is placed inside the <style> element, and starts with /* and ends with */:
Example:
p{
color: red; /* Set text color to red */
}
21
3.3.0: CSS Background
The CSS background properties are used to add background effects for elements.
In these chapters, you will learn about the following CSS background properties:
• background-color
• background-image
• background-repeat
• background-attachment
• background-position
• background (shorthand property)
Example:
body {
background-color: lightblue;
}
The CSS border properties allow you to specify the style, width, and color of an element's border.
The CSS margin properties are used to create space around elements, outside of any defined borders.
With CSS, you have full control over the margins. There are properties for setting the margin for each
side of an element (top, right, bottom, and left).
CSS has properties for specifying the margin for each side of an element:
• margin-top
• margin-right
• margin-bottom
• margin-left
Padding is used to create space around an element's content, inside of any defined borders. The
CSS padding properties are used to generate space around an element's content, inside of any defined
borders.
With CSS, you have full control over the padding. There are properties for setting the padding for each
side of an element (top, right, bottom, and left).
CSS has properties for specifying the padding for each side of an element:
• padding-top
23
• padding-right
• padding-bottom
• padding-left
Example:
div {
padding-top: 50px;
padding-right: 30px;
padding-bottom: 50px;
padding-left: 80px;
}
The height and width properties are used to set the height and width of an element.
The height and width properties do not include padding, borders, or margins. It sets the height/width of
the area inside the padding, border, and margin of the element.
The height and width properties may have the following values:
• auto - This is default. The browser calculates the height and width
• length - Defines the height/width in px, cm etc.
• % - Defines the height/width in percent of the containing block
• initial - Sets the height/width to its default value
• inherit - The height/width will be inherited from its parent value
24
example:
div {
height: 200px;
width: 50%;
background-color: powderblue;
}
with max-width
div {
max-width: 500px;
height: 100px;
background-color: powderblue;
}
25
Chapter 4: Bootstrap
It is an open-source and free CSS framework, which helps in directing a responsive device-friendly
mobile-first front-end web page development tool. Bootstrap includes the CSS (Cascading Style
Sheets), and an optional JavaScript supported design template (plug-ins) that deals with typography,
implementation of buttons, forms, and various other components user interface. This framework helps
in faster web development and supports developers in creating responsive web pages faster.
Also, Bootstrap needs jQuery for functioning. jQuery is an exceptionally admired and commonly used
JavaScript library which simplifies the cross-browser compatible functionality.
Example:
26
<form action="/html/tags/html_form_tag_action.cfm">
<div class="form-group">
</div>
<div class="form-group">
</div>
</form>
5.0.1: INTRODUCTION
Syntax:
• Fixed values
• Variable values
• Using var
• Using let
• Using const
• Using nothing
Example of var:
var x = 5;
var y = 6;
var z = x + y;
If statement
Use the if statement to specify a block of JavaScript code to be executed if a condition is true.
Syntax: if (condition) {
// block of code to be executed if the condition is true
}
Example:
28
if (hour < 18) {
greeting = "Good day";
}
if else:
Use the else statement to specify a block of code to be executed if the condition is false.
Syntax: if (condition) {
// block of code to be executed if the condition is true
} else {
// block of code to be executed if the condition is false
}
Example:
for loop:
example:
29
for (let i = 0; i < 5; i++) {
text += "The number is " + i + "<br>";
}
While loop:
The while loop loops through a block of code as long as a specified condition is true.
Example:
5.4.0: Functions
Syntax:
Example:
1. By array literal
2. By creating instance of Array directly (using new keyword)
30
3. By using an Array constructor (using new keyword)
Syntax:
var arrayname=[value1,value2.....valueN];
Example:
<script>
var emp=["Sonoo","Vimal","Ratan"];
for (i=0;i<emp.length;i++)
{
document.write(emp[i] + "<br/>");
}
</script>
In many situations, using cookies is the most efficient method of remembering and tracking
preferences, purchases, commissions, and other information required for better visitor experience or site
statistics.
31
The simplest way to create a cookie is to assign a string value to the document.cookie object, which
looks like this.
• Encapsulation − the capability to store related information, whether data or methods, together
in an object.
• Aggregation − the capability to store one object inside another object.
• Inheritance − the capability of a class to rely upon another class (or number of classes) for
some of its properties and methods.
• Polymorphism − the capability to write one function or method that works in a variety of
different ways.
Object properties can be any of the three primitive data types, or any of the abstract data types, such as
another object. Object properties are usually variables that are used internally in the object's methods,
but can also be globally visible variables that are used throughout the page.
32
Chapter 6: PHP
6.0: Introduction
In PHP, a variable starts with the $ sign, followed by the name of the variable:
• A variable starts with the $ sign, followed by the name of the variable
• A variable name must start with a letter or the underscore character
• A variable name cannot start with a number
• A variable name can only contain alpha-numeric characters and underscores (A-z, 0-9, and _ )
• Variable names are case-sensitive ($age and $AGE are two different variables)
33
Example:
<?php
$txt = "Hello world!";
$x = 5;
$y = 10.5;
?>
echo and print are more or less the same. They are both used to output data to the screen.
The differences are small: echo has no return value while print has a return value of 1 so it can be used
in expressions. echo can take multiple parameters (although such usage is rare) while print can take one
argument. echo is marginally faster than print.
Example:
Echo statement:
<?php
echo "<h2>PHP is Fun!</h2>";
echo "Hello world!<br>";
echo "I'm about to learn PHP!<br>";
echo "This ", "string ", "was ", "made ", "with multiple parameters.";
?>
Print statement:
<?php
print "<h2>PHP is Fun!</h2>";
print "Hello world!<br>";
print "I'm about to learn PHP!";
?>
34
6.3.0: PHP Data Types
Variables can store data of different types, and different data types can do different things.
• String
• Integer
• Float (floating point numbers - also called double)
• Boolean
• Array
• Object
• NULL
• Resource
Example:
<?php
$x = 5985;
echo $y;
?>
PHP if Statement
35
Syntax: If (condition) {
code to be executed if condition is true;
}
Example:
<?php
$t = date("H");
The if...else statement executes some code if a condition is true and another code if that condition is
false.
Syntax: if (condition) {
code to be executed if condition is true;
} else {
code to be executed if condition is false;
}
Example:
<?php
$t = date("H");
else {
echo "Have a good night!";
}
?>
36
PHP if elseif else Statement
The if...elseif...else statement executes different codes for more than two conditions.
Syntax: if (condition) {
code to be executed if this condition is true;
} elseif (condition) {
code to be executed if first condition is false and this condition is true;
} else {
code to be executed if all conditions are false;
}
Example:
<?php
$t = date("H");
6.5.0:PHP Loops
Loops are used to execute the same block of code again and again, as long as a certain condition is true
• while - loops through a block of code as long as the specified condition is true
• do...while - loops through a block of code once, and then repeats the loop as long as the
specified condition is true
• for - loops through a block of code a specified number of times
• foreach - loops through a block of code for each element in an array
•
6.5.1:While loop
37
The while loop - Loops through a block of code as long as the specified condition is true.
Example:
<?php
$x = 1;
while($x <= 5) {
echo "The number is: $x <br>";
$x++;
}
?>
{
code to be executed for each iteration;
}
Example:
<?php
for ($x = 0; $x <= 10; $x++)
{
echo "The number is: $x <br>";
}
?>
38
Example: <?php
$colors = array("red", "green", "blue", "yellow");
PHP has over 1000 built-in functions that can be called directly, from within a script, to perform a
specific task.
Besides the built-in PHP functions, it is possible to create your own functions.
Example:
<?php
function writeMsg() {
echo "Hello world!";
}
6.7.0:PHP Arrays
Syntax: array();
Example:
<?php
$cars = array("Volvo", "BMW", "Toyota");
echo count($cars);
?>
6.8.0:PHP Strings
NOTE − Built-in string functions is given in function reference PHP String Functions
Example: http://www.test.com/index.htm?name1=value1&name2=value2
• The GET method produces a long string that appears in your server logs, in the browser's
Location: box.
• The GET method is restricted to send upto 1024 characters only.
40
• Never use GET method if you have password or other sensitive information to be sent to the
server.
• GET can't be used to send binary data, like images or word documents, to the server.
• The data sent by GET method can be accessed using QUERY_STRING environment variable.
• The PHP provides $_GET associative array to access all the sent information using GET
method.
The POST method transfers information via HTTP headers. The information is encoded as described in
case of GET method and put into a header called QUERY_STRING.
• The POST method does not have any restriction on data size to be sent.
• The POST method can be used to send ASCII as well as binary data.
• The data sent by POST method goes through HTTP header so security depends on HTTP
protocol. By using Secure HTTP you can make sure that your information is secure.
• The PHP provides $_POST associative array to access all the sent information using POST
method.
41
The data in a MySQL database are stored in tables. A table is a collection of related data, and it
consists of columns and rows.
<?php
$servername = "localhost";
$username = "username";
$password = "password";
// Create connection
$conn = new mysqli($servername, $username, $password);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
echo "Connected successfully";
?>
// Create database
$sql = "CREATE DATABASE myDB";
if ($conn->query($sql) === TRUE) {
echo "Database created successfully";
} else {
echo "Error creating database: " . $conn->error;
}
42
$sql = "INSERT INTO MyGuests (firstname, lastname, email)
VALUES ('kashif', 'quamar', 'kashif@example.com')";
7.1.1 Introduction
I am working on a RED STORE project.
*HTML
*CSS
*BOOTSTRAP
*JAVASCRIPT
*PHP+MYSQL
• Title Name
• About US
43
• Contact
• Profile
• Add to cart
• View to Know more
• Our specials
• Logout
8. Created Table using 11 rows using name customers using column name like name ,email
mobile_no ,road_name,city_name etc;
Result:
Finally applying many operations and many programming language this project has been
completed.
This project(Red Store)include many pages through which any number of traffic can come ade
44
can do their operation according to their requirements. The PHP pages that it consists of:
1. Home page
2. Profile page
3. Signin page
4. Login page
5. About us page
6. All Admin
7. Contact us page
8. Users page
9. Admins page
I think the test did went smoothly and I had no problems,except for the fact that the some
operations that I could not do .
Discussion:
This site is used for buying sports related things this website redstore helps user to buy all
equipments used in sports & Gymming. Your priority is our First work.This plateform provides
many facilities to our users or customers by both ways offline and online ways (expect for 11pm
to 7am).we hope you all feel better experience to this site
45
Chapter 9:- Conclusion and future Scope
46
47
Conclusion:
During making of this project I learned so many things. This project is completed on VS code
48
using Frontend Languages like ,HTML ,CSS, Javascript and backend languge PHP. One of the
most beneficial work of this site that delivery of foods id free of cost and fresh within 7km.
49