Professional Documents
Culture Documents
An art gallery exhibits the works of many artists. Each artist is given a specified space
on the online webpage. The artists are charged for the space allotted to them on daily
basis. The charges vary in different months. Jan to April and August to December the
charges are Rs 200 per day per exhibit, from May to July charges are Rs 300 per day
per exhibit. Each exhibit has a name and style of painting. The exhibits can be bought
by the online customers who need to register with the art gallery. The painting is sent
to the customer, when customer orders painting. The system keeps track of the status
of delivery of the painting to the customer. This status can also be seen by the
customer.
1.0 Rationale
The restaurant management system is a java project developed for taking and
managing the restaurant orders. It assists the waiters to take the order of food
digitally and more easily than before. This whole project is developed in Java
programming language using Netbeans IDE 8.2. Here in this project, you can add
your employee and also can add the menu items to make your restaurant look
fancier. This project comes along with MySQL database as backend.
Methodology followed
5.0 Step wise work done:
1. In this micro project, first of all we have focused on selection of appropriate topic
for the micro-project.
2. We have decided our topic i.e. “Art Gallery”
3. Then we did literature survey on our topic and gained knowledge about existing
and proposed system.
4. Then we gathered all information based on the topic of micro-project.
5. We executed our code.
6. We have done analysis and study of our topic in detail.
7. By doing all the above methodologies we have successfully done our micro project
Resources
Hardware
Software
Any other resources
1. Login Page
<html>
<head>
<title>Login</title>
<style> body{
Font-size: 100%; }
} </style>
</head>
<body>
<legend><fieldset><center>
</center></fieldset></legend></form>
<?php
If(isset($_POST[“submit”])){
$pass=$_POST[‘pass’];
$con=mysqli_connect(‘localhost’,’root’,’’,’product2’) or die(mysql_error());
$numrows=mysqli_num_rows($query);
If($numrows!=0)
While($row=mysqli_fetch_assoc($query))
$dbusername=$row[‘name’];
$dbpassword=$row[‘password’];
Session_start();
$_SESSION[‘sess_user’]=$user;
/* Redirect browser */
Header(“Location: cart.php”);
} else {
} } else {
} ?>
</body>
</html>
2. Registration Page
<html>
<head>
Font-size: 100%
}</style>
</head>
<body>
<center><h2>Registration Form</h2></center>
<legend>
<fieldset>
<tr>
<td>NAME:</td>
</tr>
<tr>
<td>CONTACT:</td>
Name=”submit”
</legend>
</form> <?php
If(isset($_POST[“submit”])){
$user=$_POST[‘user’];
$num=$_POST[‘contact’];
$email=$_POST[‘email’];
$city=$_POST[‘city’];
$pass=$_POST[‘pass’];
$con=mysqli_connect(‘localhost’,’root’,’’,’product2’) or die(mysql_error());
//mysqli_select_db(‘user_registration’) or die(“cannot select DB”);
$numrows=mysqli_num_rows($query); if($numrows==0)
VALUES(‘$user’,’$num’,’$email’,’$city’,’$pass’)”;
$result=mysqli_query($con,$sql);
If($result){
} else {
Echo “Failure!”;
} else {
} else {
} }
?>
</body>
</html>
3. Cart Page
<?php session_start();
$tot=0;
If(isset($_POST[“add_to_cart”]))
$count = count($_SESSION[“shopping_cart”]);
$item_array = array(
‘item_name’ =>
$_POST[“hidden_name”],
);
$_SESSION[“shopping_cart”][$count] = $item_array;
}else{
}else{
$item_array = array(
);
$_SESSION[“shopping_cart”][0] = $item_array;}}
If(isset($_GET[“action”]))
{if($_GET[“action”] == “delete”) {
{if($values[“item_id”] == $_GET[“id”])
Unset($_SESSION[“shopping_cart”][$keys]);
echo ‘<script>alert(“Item Removed”)</script>’; //echo
‘<script>window.location=”cart.php”</script>’;
}} }}
If(isset($_POST[“submit”]))
Header(“Location:bill.php”);
?>
<html><head> </head><body>
<h2>Welcome, <?=$_SESSION[‘sess_user’];?>! <a href=”logout.php”>Logout</a></h2>
<br/><br/><br/><br/>
<?php
If(mysqli_num_rows($result) > 0)
While($row = mysqli_fetch_array($result))
?>
<div class=”col-md-4”>
</div></form></div><?php }}
?>
<h3>Order Details</h3>
<div class=”table-responsive”>
<tr>
<th>Item Name</th>
<th>Quantity</th>
<th>Price</th>
<th>Total</th>
<th>Action</th>
</tr> <?php
If(!empty($_SESSION[“shopping_cart”]))
{
$total = 0;
?>
<tr>
<?php
$_SESSION[“tot”]=$total;
?>
<tr>
<?php
?>
4. Billing page
<?php
Session_start();
$name=$num=$em=$city=” “;
If($numrows!=0)
While($row=mysqli_fetch_assoc($query)) {
$name=$row[‘name’];
$num=$row[‘contact’];
$em=$row[‘email’];
$city=$row[‘city’];
} }
H1 {
Color: indigo;
}</style>
</head>
<body>
Background-color: lightgrey”><br/>
</tr>
<tr>
<td>E-MAIL:</td>
</tr>
<tr>
<td>CITY:</td>
<tr>
<td>Total Amount:</td>
</tr>
<tr>
</tr></table></form></body></html>
<?php
If(isset($_POST[“submit”]))
$n=$_POST[“user”];
$c=$_POST[“contact”];
$e=$_POST[“email”];
$ci=$_POST[“city”];
Require_once(‘C:\xampp\lib\class.phpmailer.php’); require_once(‘C:\xampp\lib\
class.smtp.php’);
$mail->SMTPAuth = true;
$mail->Host = “smtp.gmail.com”;
$mail->Port = 25;
$mail->IsHTML(true);
$mail->Body = “
<html>
<body>
<tr>
</tr> <tr>
</tr> <tr>
<td style=’width:400px’>$c</td>
</tr> <tr>
<td style=’width:400px’>$ci</td>
</tr> <tr>
<td style=’width:400px’>$total</td>
</tr> <tr>
<td style=’width:150px’><strong>Arrival Date: </strong></td>
</tr>
</tbody>
</table>
</body>
</html>
“;
If(!$mail->send())
Else
}}
?>
Fig 1: Login Page
Fig 3: Online Art Gallery