CISC 4900 Syllabus Fall 2021 (Draft) Fall 2021 Page 4 Class Calendar All Dropbox uploaded documents should go to the file request links specified below. Please note that there are three separate...

1 answer below »
I will like to create a website that involves food. There will have to be be a program and a powerpoint / word document explaining what was done and everything. Java Programming, html etc


CISC 4900 Syllabus Fall 2021 (Draft) Fall 2021 Page 4 Class Calendar All Dropbox uploaded documents should go to the file request links specified below. Please note that there are three separate links. Timeframe Description Weeks 1-2 Aug 25 & 26 - Onboarding orientation Week 3 Project Acquisition Sept 10 - Submit the following items to: https://www.dropbox.com/request/cOfKWv34wJG6Cn61iuhQ Form 1 Project Proposal Weeks 5-9 Work on your project with regular check-ins with your technical supervisor Maintain weekly project log Week 11 Project Status Review Nov 5th - Submit the following items to: https://www.dropbox.com/request/Ur7IEmG7qRei0jz6wjRJ Form 2 Interim report Weekly Logs Nov 12th - Supervisor Evaluation (by email) Weeks 12-15 Continue working on your project with regular check-ins with your technical supervisor Maintain weekly project log Week 16-17 Final Report Status Dec 15 - Submit the following items to: https://www.dropbox.com/request/pOGbXws1JiArjoWdMb4f Form 3 Final report Weekly Logs (since the beginning of the semester) Presentation Final day for submission of any items Dec 23 - Supervisor Evaluation Final Report (by email) https://www.dropbox.com/request/cOfKWv34wJG6Cn61iuhQ https://www.dropbox.com/request/Ur7IEmG7qRei0jz6wjRJ https://www.dropbox.com/request/pOGbXws1JiArjoWdMb4f CISC 4900 Syllabus Fall 2021 (Draft) Fall 2021 Page 1 CISC 4900/4905 Independent and Group Projects I, II 3 credits Bulletin Description Planning and development of a real computer systems project supervised by a faculty member or similar. Achievement measured by demonstrable attainment of the project’s goals. Written report. Objective By the end of this course, students should: 1. Be able to develop algorithms and transform algorithms into a plan for solution. 2. Have gained breadth in several areas in computer science. 3. Be able to identify the goals, methods, tools and outcomes of a project. 4. Be able to record and document the results of a project. 5. Understand the project life cycle, including how milestones are noted, monitored and revised. Course Details CISC 4900 or CISC 5001 is required of all CIS majors. They both require department permission for registration. CISC 4900 requires completion of a major computer science project. Students may find their own project, within or outside the school. Many students use projects at work for their 4900 project. Students who are unable to find a project and are seniors will be assigned a project and must arrange their schedule so that they have two complete days a week available for project-related activities. Instructors’ Contact Information For coordinating administrative related details, please contact the instructor on record for your section with a subject line containing 4900 and your emplid within the message. ● VC1A - Chuang [email protected] ● VC1B - Lapid [email protected] ● VC1C - Chuang [email protected] For general questions about project resources, advice on seeking projects, and enrollment in future semesters please reach out to Professor Chuang. mailto:[email protected] mailto:[email protected] mailto:[email protected] Fall 2021 Page 2 Course Requirements This document describes the requirements for students enrolled in CISC 4900/4905. All students enrolled in these courses are responsible for the contents of this document. These are the documents to be handed in throughout the semester to both your instructor and supervisor. 1. Project Proposal 2. Project logs 3. Project interim status report 4. Final report and Presentation 5. Supervisor's reports (completed by your supervisor) Deliverable Description Project Proposal The project proposal document describes objectives of the project along with contact information of stakeholders, a tentative schedule, data source(s), and sample use cases. There is no required format or length to this document so long as you can convey what will be done and why, when, how, and by whom. Weekly Project Log A student in the 4900/05 course is expected to undertake and complete a significant computer-related project. You should expect to spend at least 15 hours per week on project related activities. You are required to maintain a log of all time spent on your project including data preparation, study time for languages or systems not included in your previous experience, design, programming, debugging, documentation including all reports, etc. The log contains a record of all project-related activities; should indicate both the time spent and the nature of the activity. This log must be updated throughout the semester and submitted with the final report. Interim Report This report serves as a project status review update that reports on your progress since the proposal, of the work completed thus far and remaining work. In general, the interim report should be an update to the project proposal. They should also include a statement of specific progress already made, and a sharper definition and the outline of the project. Final Report A collection of documents that describe the resulting project in a production ready form, including source code and documentation, and logs. In general, the final report should be the final item in a series consisting of the proposal, the interim report(s) and the final report. Each successive document should be an enhanced version of the previous one. Final Presentation Recording Slides, Demo, Source Code, etc to demonstrate the work that you have completed. There is no required format or length, though the suggested time frame is 10-15 minutes in length. Fall 2021 Page 3 IMPORTANT GENERAL CONSIDERATIONS 1. It is the student's responsibility to keep a copy of any items submitted, including copies of proposals, waivers, reports, listings, etc. The student should be prepared to resubmit a copy at any time after the item’s due date. 2. All reports should be submitted to the Dropbox links shown on the course calendar. All files should be named according to the file-naming conventions list. 3. Under very exceptional circumstances deadlines may be waived. The student must complete a special waiver form and submit it for approval by the instructor before the due date. 4. Any change in contact person, supervisor, or nature of the project should be reported via email to instructor and an updated form to Dropbox immediately. 5. All documents and reports must contain all the header information and a title describing the nature of the document. 6. Grades will be assigned on the basis of project suitability, work accomplished, time spent, promptness of report submission, and quality of documentation. Neatness and proper use of the English language will be given strong consideration. Length of reports will not be given consideration, per se, but their quality and completeness are extremely important. Conciseness is a virtue. 7. Students should take note of the dates to drop a course without penalty or with a W. If you feel that you will not be able to fulfill the course requirements, then you are urged to drop the course by the deadline given by the Registrar. Students are responsible for dropping the course. 8. In certain circumstances, a student will receive a grade of INC. If in the view of the instructors the material does not constitute a "gradable" project, the grade of INC will be assigned. Also, if a student requests a grade of INC, that request will usually be accommodated as well. Under most other circumstances, a regular grade will be assigned based on the material submitted. 9. One factor in determining grades is the suitability of the project completed. It is possible to complete a project satisfactorily and receive a grade below A if the project is a simple and straightforward application of elementary programming techniques. Fall 2021 Page 4 Class Calendar All Dropbox uploaded documents should go to the file request links specified below. Please note that there are three separate links. Timeframe Description Weeks 1-2 Aug 25 & 26 - Onboarding orientation Week 3 Project Acquisition Sept 10 - Submit the following items to: https://www.dropbox.com/request/cOfKWv34wJG6Cn61iuhQ Form 1 Project Proposal Weeks 5-9 Work on your project with regular check-ins with your technical supervisor Maintain weekly project log Week 11 Project Status Review Nov 5th - Submit the following items to: https://www.dropbox.com/request/Ur7IEmG7qRei0jz6wjRJ Form 2 Interim report Weekly Logs Nov 12th - Supervisor Evaluation (by email) Weeks 12-15 Continue working on your project with regular check-ins with your technical supervisor Maintain weekly project log Week 16-17 Final Report Status Dec 15 - Submit the following items to: https://www.dropbox.com/request/pOGbXws1JiArjoWdMb4f Form 3 Final report Weekly Logs (since the beginning of the semester) Presentation Final day for submission of any items Dec 23 - Supervisor Evaluation Final Report (by email) https://www.dropbox.com/request/cOfKWv34wJG6Cn61iuhQ https://www.dropbox.com/request/Ur7IEmG7qRei0jz6wjRJ https://www.dropbox.com/request/pOGbXws1JiArjoWdMb4f Fall 2021 Page 5 University Policies Important Dates for Fall 2021 Wednesday, August 25 First day of Fall classes Tuesday, August 31 Last day to add a course Monday, December 13 Last day to withdraw with a “W” grade Tuesday, December 14 Reading Day Wednesday, December 15 Final Examinations Begin Tuesday, December 21 Final Examinations End / Last day of Fall Semester Academic Integrity The faculty and administration of Brooklyn College support an environment free from cheating and plagiarism. Each student is responsible for being aware of what constitutes cheating and plagiarism and for avoiding both. The complete text of the CUNY Academic Integrity Policy and the Brooklyn College procedure for policy implementation can be found at www.brooklyn.cuny.edu/bc/policies. If a faculty member suspects a violation of academic integrity and, upon investigation, confirms that violation, or if the student admits the violation, the faculty member MUST report the violation. Students should be aware that faculty may use plagiarism detection software. Disabilities The Center for Student Disability Services (CSDS) is currently working remotely. In order to receive disability-related academic accommodations students must first be registered with CSDS. Students who have a documented disability or suspect they may have a disability are invited to schedule an interview by calling (718) 951-5538 or by emailing [email protected]. If you have already registered with CSDS, email [email protected] or [email protected] to ensure the accommodation email is sent to your professor. Student Bereavement Policy Students who experience the death of a loved one must contact the Division of Student Affairs, 2113 Boylan Hall, 718.951.5352, [email protected], if they wish to implement either the Standard Bereavement Procedure or the Leave of Absence Bereavement Procedure. The Division of Student Affairs has the right to request a document that verifies the death (e.g., a funeral program or death notice). More at http://www.brooklyn.cuny.edu/web/about/initiatives/policies/bereavement.php Religious Observances State law regarding non-attendance because of religious beliefs (p. 66 in the Undergraduate Bulletin). The New York State Education Law provides that no student shall be expelled or refused admission to an institution of higher education because he or she is unable to attend classes or participate in examinations or study or work requirements on any particular day or days because of religious beliefs. Students who are unable to attend classes on a particular day or days because of religious beliefs will be excused from any examination or study or work requirements. Faculty must make good-faith efforts to provide students absent from class because of religious beliefs equivalent opportunities to make up
Answered 17 days AfterSep 05, 2021

Answer To: CISC 4900 Syllabus Fall 2021 (Draft) Fall 2021 Page 4 Class Calendar All Dropbox uploaded documents...

Shashi Kant answered on Sep 23 2021
139 Votes
snap/pizza.odt


    
    
    
Project Report
Done By
Daron
‌Under the guidance of:
XYZ
INTRODUCTION
This project is about a food(Pizza) website.Here shopkeeper can visit on the website and can make pizza order for his customers.
Shopkeeper will be able to add new products(Pizza type) and can edit or delete also after some time.
Once the Shopkeeper is ready to complete the order for his/her customers he will be able to make the order and can print the bill for that order.
This project will help the Shopkeepers to make the order for their customers easily.
    OBJECTIVE
The main objective of the entire activity is to automate the process of day to day.
Activities of Project like:
        Pizza details on the website.
        Can add diffrent types of pizza.
        Add to cart.
        Remove from cart.
        Make the order food.
        Finally compute the bill etc.
        Can add or delete products from website.
        Can edit the product price, name.
Tool Kits
Tool Kits Which Is Used For The Project Are :-
    HTML (For UI)
    Java Script & CSS (For Designing)
    
    XAMPP (For Server)
    PHP Language(For Backend)
    PHPMyAdmin (For Database)
REGISTATION
This is Registration page from where new Staffs will be able to join this company for the work.
Here new staff will give his:
    Name
    Email Id
    Password a
And after that he/she have to click on the REGISTER button.
REGISTATION SUCCESSFUL
This is showing that registration has been successful.
Now staff have to go on Login Page.
To go on Login Page user have to click on Login which is below REGISTER button.
LOGIN
From here staff can now login and can manage the website.
Login Page will ask:

Email Id(From which the new staff has registered).
Password(Which was given by the staff at                     registration time).
Now staff have to click on Login button.
ORDER
This is Cashier Page from here staff will be able to take the order from the coustomer.
From here staff will make the bill.
Once the order is clear staff will print the bill.
Here it will show:
    Product(Pizza) Name,
    Price,
    Total Quantity,
    Total Price,
    Invoice Id,
    Time of the bill,
    Cashier Name.
PRODUCTS
This is Products Page from here staff can tell to the customer that what items we have and what will be the prices for that.
Customer will be able to see the image of the of the product as well.
SALES
This is Sale Page from here staff can see the chart of the sale like is it increasing or not and they can act according to the chart which will them to grow their business.
UPDATE PASSWORD
This is Users Page from here staff(User) will be able to change his/her password in future.
UPDATE PROUCT
This is Update Products Page from here staff will be able to update the products like:
    Update Price
    Update Product Name
    Change Image For The Product
Once the user completed the update operation he/she will have to click on the UPDATE PRODUCT button and the product will be updated.
INVOICE RECORD
This is Record Page here all data will be available like:
    Invoice Number
    Staff name(Who completed this order)
    Product Name
    Price of the Product.
Here users can se how many orders have been done and who has done what order.
snap/snap9.png
snap/snap8.png
snap/snap7.png
snap/snap6.png
snap/snap5.png
snap/snap4.png
snap/snap3.png
snap/snap2.png
snap/snap11.png
snap/snap10.png
snap/snap1.png
snap/PizzaApp.zip
PizzaApp/cashier/cashier.php
include '../connection/connection.php';

if(empty($_SESSION['email']))
{
echo "";
}
$products=[];
$sql="select * from products";
$query=mysqli_query($con,$sql);
while ($row= mysqli_fetch_array($query,MYSQLI_ASSOC))
{
$products[]=$row;
}
$sql2 = "select billid from bill ORDER by billid DESC LIMIT 1";
$query2=mysqli_query($con,$sql2);
while ($row2= mysqli_fetch_array($query2,MYSQLI_ASSOC))
{
$invoiceid[]=$row2;
foreach($invoiceid as $invoiceid){
if(empty($invoiceid)){
$invoiceid = 1;
}else{
$invoiceid = $invoiceid['billid']+1;
}

}
}
$sql3="select * from products";
$query3=mysqli_query($con,$sql3);
while ($row3= mysqli_fetch_array($query3,MYSQLI_ASSOC))
{
$productslist[]=$row3;
foreach($productslist as $productslist2){
$productslist2;
}
}
if(isset($_POST['search'])){
$searchtext = $_POST['searchtext'];
$products=[];
$sql="select * from products where productname = '".$searchtext."' ";
$query=mysqli_query($con,$sql);
while ($row= mysqli_fetch_array($query,MYSQLI_ASSOC))
{
$products[]=$row;
foreach($products as $product){
//echo $product['productname'];
}
}
}
?>







Cashier


integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">















Listed products for sale




























Select Product Product Name Product Price Product Image User Uploaded















Order products list





















Select Product ProductName ProductPrice User Uploaded





































PizzaApp/cashier/js/cashier.js
function billheight(){
var d = new Date(); // for now
d.getHours()+'-'+d.getMinutes()+'-'+d.getSeconds();
document.getElementById("time").innerHTML = d;
document.getElementById("BillViewer").style.display = 'flex';
}
function tableArray(){
var TableData = new Array();
$('#table2 tr').each(function(row, tr){
TableData[row]={
"ProductName" :$(tr).find('td:eq(1)').text()
, "ProductPrice" : $(tr).find('td:eq(2)').text()
, "UserUploaded" : $(tr).find('td:eq(3)').text()
}
});
TableData.shift();
bill(TableData);
return TableData;
}
function bill(TableData){
var html = "";
html+="";
html+="";
html+="";
html+="";
for(var i = 0; i < TableData.length; i++) {
html+="";
html+="";
html+="";
html+="";
}
html+="
Product NamePrice
"+TableData[i].ProductName+""+TableData[i].ProductPrice+"
";
document.getElementById("box").innerHTML = html;
var cls = document.getElementById("res").getElementsByTagName("td");
var sum = 0;
for (var i = 0; i < cls.length; i++){
if(cls[i].className == "countable"){
sum += isNaN(cls[i].innerHTML) ? 0 : parseInt(cls[i].innerHTML);
}
document.getElementById("total").innerHTML = sum ;
document.getElementById("totalqty").innerHTML = cls.length/2 ;
}
}
function tab1_To_tab2()
{
var table1 = document.getElementById("table1"),
table2 = document.getElementById("table2"),
checkboxes = document.getElementsByName("check-tab1");
for(var i = 0; i < checkboxes.length; i++)
if(checkboxes[i].checked)
{
var newRow = table2.insertRow(table2.length),
cell1 = newRow.insertCell(0),
cell2 = newRow.insertCell(1),
cell3 = newRow.insertCell(2),
cell4 = newRow.insertCell(3);

cell1.innerHTML = "";
cell2.innerHTML = table1.rows[i+1].cells[1].innerHTML;
cell3.innerHTML = table1.rows[i+1].cells[2].innerHTML;
cell4.innerHTML = table1.rows[i+1].cells[4].innerHTML;
tableArray();
}
}
function tab2_To_tab1()
{
var table1 = document.getElementById("table1"),
table2 = document.getElementById("table2"),
checkboxes = document.getElementsByName("check-tab2");
for(var i = 0; i < checkboxes.length; i++)
if(checkboxes[i].checked)
{
var index = table2.rows[i+1].rowIndex;
table2.deleteRow(index);
i--;
tableArray();
}
}
function save(){
var TableData = new Array();
$('#table2 tr').each(function(row, tr){
TableData[row]={
"ProductName" :$(tr).find('td:eq(1)').text()
, "ProductPrice" : $(tr).find('td:eq(2)').text()
, "UserUploaded" : $(tr).find('td:eq(3)').text()
}
});
TableData.shift();

var name2 = document.getElementById("name2").innerHTML;
var time = document.getElementById("time").innerHTML;
var invoiceid = document.getElementById("invoiceid").innerHTML;
var totalqty = document.getElementById("totalqty").innerHTML;
var total = document.getElementById("total").innerHTML;

var info = new Array();
var info = {name2,time,invoiceid,totalqty,total};

console.log("Done");
const toSend= TableData.concat(info);

const jSonString = JSON.stringify(toSend);
const xhr = new XMLHttpRequest();
xhr.open("POST","recieve.php");
xhr.setRequestHeader("Content-Type","application/json");
xhr.send(jSonString);
}
PizzaApp/cashier/recieve.php
include '../connection/connection.php';
$requestPayload = file_get_contents("php://input");
$object = json_decode($requestPayload, true);
$serialized = serialize($object);
$array = unserialize($serialized);

$end = end($object);
$invoiceid = $end['invoiceid'];
$totalprice = $end['total'];
$totalqty = $end['totalqty'];
$time = $end['time'];
$username = $_SESSION['username'];
$count = count($object)-1;
$i = $count;
$Products = $object;
$ProductName = array_column($Products, 'ProductName');
$ProductPrice= array_column($Products, 'ProductPrice');
foreach($object as $objects) {
$sql = "insert into bill(billid,username,productname,productprice)
VALUES ('".$invoiceid."','".$username."','".$objects['ProductName']."','".$objects['ProductPrice']."') ";

$query=mysqli_query($con,$sql);
}
if($query){
echo 'success';
$sql = "Delete from bill where productname = '' ";
$query=mysqli_query($con,$sql);
if($query){
echo "success removing null row";
$current_date = date("Y/m/d");
date_default_timezone_set('Asia/karachi');
$current_time = date('h:i:s');
$sql = "insert into bill_total(billid,totalqty,totalprice,date_time,time,date)
VALUES ('".$invoiceid."','".$totalqty."','".$totalprice."','".$time."','".$current_time."','".$current_date."') ";

$query=mysqli_query($con,$sql);
if($query){
echo "new table record insert";
header("location: cashier.php");
}else{
echo mysqli_error($con);

}

}else{
echo mysqli_error($con);

}

}else{
echo mysqli_error($con);

}

?>
PizzaApp/cashier/style/style.css
.FixedHeightContainer
{
height: 560px;
width:100%;
padding:3px;
background:rgb(36, 35, 35);
color: #fff;
}
.FixedHeightContainer2
{
height: 100%;
/*width:100%;*/
padding:3px;
}
.Content
{
height: 480px;
overflow:auto;
}
.Content2
{
height: 100%;
overflow:auto;
}
h5{
width: 100%;
text-align: center;
padding: 0.5rem;
}
.buttons{
width: 100%;
}
PizzaApp/connection/connection.php
        session_start();
        define('HOST', 'localhost');
        define('USERNAME', 'root');
        define('PASSWORD', '');
        define('DB', 'pizzaapp');
        
        $con=mysqli_connect(HOST,USERNAME,PASSWORD,DB)
        or die(mysqli_connect_error());    
?>
PizzaApp/css/style.css
body{
background: rgb(36, 35, 35);
color: #fff;
overflow: hidden;
}
/**/
/**/
.container{
height: 80vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 1rem;
}
.needs-validation{
background: rgb(22, 22, 22);
color: #fff;
padding: 1rem;
display: flex;
flex-direction: column;
width: 500px;
height: 350px;
padding: 2rem;
}
#register{
height: 450px;
padding: 2rem;
}
@media only screen and (max-width: 1100px){
.container{
height: 60vh;
}

}
@media only screen and (max-width: 780px){
.container{
height: 80vh;
}
}
@media only screen and (max-width: 700px){
.container{
height: 80vh;
}
.needs-validation{
width: 400px;
height: 350px;
}
}
@media only screen and (max-width: 500px){
.needs-validation{
width: 350px;
height: 350px;
}
}
@media only screen and (max-width: 360px){
.needs-validation{
width: 300px;
height: 350px;
}
}
PizzaApp/Db_file/pizzaapp.sql
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
CREATE TABLE `appuser` (
`id` int(11) NOT NULL,
`username` varchar(50) NOT NULL,
`password` varchar(255) NOT NULL,
`email` varchar(80) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `bill` (
`billid` int(11) NOT NULL,
`username` varchar(255) NOT NULL,
`productname` varchar(255) NOT NULL,
`productprice` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `bill_total` (
`billid` int(255) NOT NULL,
`totalprice` int(255) NOT NULL,
`totalqty` int(255) NOT NULL,
`date_time` varchar(255) NOT NULL,
`time` time NOT NULL,
`date` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `products` (
`id` int(11) NOT NULL,
`username` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`productname` varchar(255) NOT NULL,
`productprice` varchar(255) NOT NULL,
`productimage` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
ALTER TABLE `appuser`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `email` (`email`);
ALTER TABLE `products`
ADD PRIMARY KEY (`id`);
ALTER TABLE `appuser`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=27;
ALTER TABLE `products`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=49;
COMMIT;
PizzaApp/images/pizzaapp.png
PizzaApp/images/user.png
PizzaApp/images/user_icon.png
PizzaApp/index.php
include 'connection/connection.php';
if(isset($_POST['login'])){
$email = $_POST['email'];
$password = $_POST['password'];
$sql = "select * from appuser where email='".$email."'
and password='".$password."' ";
$query = mysqli_query($con,$sql);
$row = mysqli_fetch_array($query,MYSQLI_ASSOC);
if($row){

$_SESSION['id']= $row['id'];
$_SESSION['username'] = $row['username'];
$_SESSION['email'] = $row['email'];
echo '

Login successfull.

';
header("location: cashier/cashier.php");
}
else{
echo mysqli_error($con);
echo '

Incorrect username or password

';
}
}
?>









Welcome







Please enter a valid email address.





Please enter your password to continue.



Register








PizzaApp/login/login.js
(function() {
'use strict';
window.addEventListener('load', function() {

var forms = document.getElementsByClassName('needs-validation');

var validation = Array.prototype.filter.call(forms, function(form) {
form.addEventListener('submit', function(event) {
if (form.checkValidity() === false) {
event.preventDefault();
event.stopPropagation();
}
form.classList.add('was-validated');
}, false);
});
}, false);
})();
PizzaApp/logout/logout.php
session_start();
session_destroy();
echo ""
?>
PizzaApp/mainregister.php
include 'connection/connection.php';

?>










Register


if (isset($_POST['insert'])) {
$username = $_POST['username'];
$email = $_POST['email'];
$password = $_POST['password'];

$sql = "insert into appuser(username,password,email)
VALUES ('".$username."','".$password."','".$email."')";

$query=mysqli_query($con,$sql);
if($query){
echo '

User Registered successfully.

';
}else{
echo '

Already a user registered on this email address try using another email address.

';
}
}
?>






Please enter a username.





Please enter a valid email address.





Please enter your password to continue.



Login








PizzaApp/orders/orders.php
include '../connection/connection.php';
if(empty($_SESSION['email']))
{
echo "";
}
$bill=[];
$sql="select * from bill";
$query=mysqli_query($con,$sql);
while ($row= mysqli_fetch_array($query,MYSQLI_ASSOC))
{
$bill[]=$row;
}
?>







Orders
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">








Customer Invioce Record



























Invoice ID Cashier Product Name Product Price












PizzaApp/prices/prices.php
include '../connection/connection.php';
if(empty($_SESSION['email']))
{
echo "";
}
$products=[];
$sql="select * from products";
$query=mysqli_query($con,$sql);
while ($row= mysqli_fetch_array($query,MYSQLI_ASSOC))
{
$products[]=$row;
}
?>







Prices
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">


























Product Name Product Price Product Image









PizzaApp/products/editproduct.php
include '../connection/connection.php';
if(empty($_SESSION['email']))
{
echo "";
}
$connect = mysqli_connect('localhost','root','','pizzaapp');
if (isset($_GET['edit'])) {
$id = $_GET['edit'];
$query = mysqli_query($connect,"Select id,username,email,productname,productprice,productimage from products where id = $id ");
$row = mysqli_fetch_array($query,MYSQLI_ASSOC);
if($row){
$id = $row['id'];
$username = $row['username'];
$email = $row['email'];
$productname = $row['productname'];
$productprice = $row['productprice'];
$productimage = $row['productimage'];

}
else{
echo "Error";
}
}

?>







Edit Product




integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">





if (isset($_POST['update'])) {

$connect = mysqli_connect('localhost','root','','pizzaapp');
$productname = $_POST['productname'];
$productprice = $_POST['productprice'];
$tmp_name = $_FILES['productimage']['tmp_name'];
$org_name = $_FILES['productimage']['name'];
move_uploaded_file($tmp_name, "../serverimages/".$org_name);
$sql = "update products set username = '".$username."',email = '".$email."',productname = '".$productname."',productprice = '".$productprice."',productimage = '".$org_name."' where id = '".$id."' ";

$query=mysqli_query($connect,$sql);
if($query){
echo'

Product Updated successfully.

';
}else{
echo '

Error Updating Product.

';
}
}
?>





Please enter a product name.





Please enter a product price.



Image :

Please choose an Image.













PizzaApp/products/js/enscroll-0.4.2.min.js
!function(a){if(!a.browser){var b={},c=navigator.userAgent.toLowerCase(),d=/(chrome)[ \/]([\w.]+)/.exec(c)||/(webkit)[ \/]([\w.]+)/.exec(c)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(c)||/(msie) ([\w.]+)/.exec(c)||c.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(c)||[],e={browser:d[1]||"",version:d[2]||0};e.browser&&(b[e.browser]=!0,b.version=e.version),b.chrome?b.webkit=!0:b.webkit&&(b.safari=!0),a.browser=b}}(jQuery),function(a,b,c){var d={getEvent:function(a){return a||b.event},preventDefault:function(a){a.preventDefault?a.preventDefault():a.returnValue=!1}},e=b.requestAnimationFrame||b.mozRequestAnimationFrame||b.webkitRequestAnimationFrame||b.oRequestAnimationFrame||b.msRequestAnimationFrame||function(a){setTimeout(a,1e3/60)},f=function(b){var c=a(this).data("enscroll"),d=this,e=c.settings,f=function(){var b=a(this).data("enscroll"),c=b.settings;b&&c.showOnHover&&(c.verticalScrolling&&"none"!==a(b.verticalTrackWrapper).css("display")&&a(b.verticalTrackWrapper).stop().fadeTo("fast",0),c.horizontalScrolling&&"none"!==a(b.horizontalTrackWrapper).css("display")&&a(b.horizontalTrackWrapper).stop().fadeTo("fast",0),b._fadeTimer=null)};c&&e.showOnHover&&(c._fadeTimer?clearTimeout(c._fadeTimer):(e.verticalScrolling&&"none"!==a(c.verticalTrackWrapper).css("display")&&a(c.verticalTrackWrapper).stop().fadeTo("fast",1),e.horizontalScrolling&&"none"!==a(c.horizontalTrackWrapper).css("display")&&a(c.horizontalTrackWrapper).stop().fadeTo("fast",1)),b!==!1&&(c._fadeTimer=setTimeout(function(){f.call(d)},1500)))},g=function(b,c){var d=a(b),e=d.data("enscroll"),g=d.scrollTop();e&&e.settings.verticalScrolling&&(d.scrollTop(g+c),e.settings.showOnHover&&f.call(b))},h=function(b,c){var d=a(b),e=d.data("enscroll"),g=d.scrollLeft();e&&e.settings.horizontalScrolling&&(d.scrollLeft(g+c),e.settings.showOnHover&&f.call(b))},i=function(b){if(1===b.which){var d,g,h,i,j,k,l,m,n,o=b.data.pane,p=a(o).data("enscroll"),q=!0,r=function(){q&&(h!==i&&(a(o).scrollTop(h*n/m),i=h),e(r),f.call(o))},s=function(a){return q&&(h=a.clientY-k-j,h=Math.min(0>h?0:h,m)),!1},t=function(){return q=!1,c.body.style.cursor=l,this.style.cursor="",d.removeClass("dragging"),a(c.body).off("mousemove.enscroll.vertical").off("mouseup.enscroll.vertical"),a(c).off("mouseout.enscroll.vertical"),!1};return d=a(p.verticalTrackWrapper).find(".enscroll-track"),g=d.children().first()[0],h=parseInt(g.style.top,10),n=o.scrollHeight-a(o).innerHeight(),j=b.clientY-a(g).offset().top,m=d.height()-a(g).outerHeight(),k=d.offset().top,a(c.body).on({"mousemove.enscroll.vertical":s,"mouseup.enscroll.vertical":function(a){t.call(g,a)}}),a(c).on("mouseout.enscroll.vertical",function(a){a.target.nodeName&&"HTML"===a.target.nodeName.toUpperCase()&&t.call(g,a)}),d.hasClass("dragging")||(d.addClass("dragging"),l=a(c.body).css("cursor"),this.style.cursor=c.body.style.cursor="ns-resize"),r(),!1}},j=function(b){if(1===b.which){var d,g,h,i,j,k,l,m,n,o=b.data.pane,p=a(o).data("enscroll"),q=!0,r=function(){q&&(h!==i&&(a(o).scrollLeft(h*j/n),i=h),e(r),f.call(o))},s=function(a){return q&&(h=a.clientX-l-k,h=Math.min(0>h?0:h,n),f.call(o)),!1},t=function(){return q=!1,d.removeClass("dragging"),c.body.style.cursor=m,this.style.cursor="",d.removeClass("dragging"),a(c.body).off("mousemove.enscroll.horizontal").off("mouseup.enscroll.horizontal"),a(c).off("mouseout.enscroll.horizontal"),!1};return d=a(p.horizontalTrackWrapper).find(".enscroll-track"),g=d.children().first()[0],h=parseInt(g.style.left,10),j=o.scrollWidth-a(o).innerWidth(),k=b.clientX-a(g).offset().left,n=d.width()-a(g).outerWidth(),l=d.offset().left,a(c.body).on({"mousemove.enscroll.horizontal":s,"mouseup.enscroll.horizontal":function(a){t.call(g,a)}}),a(c).on("mouseout.enscroll.horizontal",function(a){a.target.nodeName&&"HTML"===a.target.nodeName.toUpperCase()&&t.call(g,a)}),d.hasClass("dragging")||(d.addClass("dragging"),m=a("body").css("cursor"),this.style.cursor=c.body.style.cursor="ew-resize"),r(),!1}},k=function(a){var b,c,e,f,i=this.data("enscroll");i&&(a=d.getEvent(a),e=a.detail?-a.detail:window.client&&window.client.engine.opera&&window.client.engine.opera<9.5?-a.wheelDelta:a.wheelDelta,f=i.settings.scrollIncrement,a.wheelDelta&&a.wheelDeltaX&&a.wheelDelta===a.wheelDeltaX||a.axis&&a.HORIZONTAL_AXIS&&a.axis===a.HORIZONTAL_AXIS?(b=this.scrollLeft(),h(this,0>e?f:-f),b!==this.scrollLeft()&&d.preventDefault(a)):(c=this.scrollTop(),g(this,0>e?f:-f),c!==this.scrollTop()&&d.preventDefault(a)))},l=function(){var b,c,d,e=a(this),f=e.data("enscroll");f&&(f.settings.verticalScrolling&&(c=a(f.verticalTrackWrapper).find(".enscroll-track")[0],b=c.firstChild,d=e.scrollTop()/(this.scrollHeight-e.innerHeight()),d=isNaN(d)?0:d,b.style.top=d*(a(c).height()-a(b).outerHeight())+"px"),f.settings.horizontalScrolling&&(c=a(f.horizontalTrackWrapper).find(".enscroll-track")[0],b=c.firstChild,d=e.scrollLeft()/(this.scrollWidth-e.innerWidth()),d=isNaN(d)?0:d,b.style.left=d*(a(c).width()-a(b).innerWidth())+"px"))},m=function(b){var c,d=a(this),e=d.data("enscroll");if(b.target===this&&e){switch(c=e.settings.scrollIncrement,b.keyCode){case 32:case 34:return g(this,d.height()),!1;case 33:return g(this,-d.height()),!1;case 35:return g(this,this.scrollHeight),!1;case 36:return g(this,-this.scrollHeight),!1;case 37:return h(this,-c),!1;case 38:return g(this,-c),!1;case 39:return h(this,c),!1;case 40:return g(this,c),!1}return!0}},n=function(a){var b,c,d,f,i,j,k,l=this,m=function(a){b=a.touches[0].clientX,c=a.touches[0].clientY,d||(d=c===i&&b===f?void 0:Math.abs(i-c)>Math.abs(f-b)?"y":"x"),a.preventDefault()},n=function(){j&&("y"===d?(g(l,i-c),k=i-c,i=c):"x"===d&&(h(l,f-b),k=f-b,f=b),e(n))},o=function(){var a=0,b=Math.round(Math.abs(1.75*k)),c=10*k*Math.log(2);this.removeEventListener("touchmove",m,!1),this.removeEventListener("touchend",o,!1),j=!1,e(function f(){if(a!==b&&!j){var i=Math.round(c/b*Math.pow(2,-10*a/b+1));isNaN(i)||0===i||(a+=1,"y"===d?g(l,i):h(l,i),e(f))}})};1===a.touches.length&&(f=a.touches[0].clientX,i=a.touches[0].clientY,j=!0,this.addEventListener("touchmove",m,!1),this.addEventListener("touchend",o,!1),e(n))},o={reposition:function(){return this.each(function(){var b,c,d,e,f,g=a(this),h=g.data("enscroll"),i=function(a,b,c){a.style.left=b+"px",a.style.top=c+"px"},j=function(b,c){var d=a(b).css(c),e=/^-?\d+/.exec(d);return...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here