Beruflich Dokumente
Kultur Dokumente
IT Practicum - Thesis
A Project
Presented to
In Partial Fulfillment
of the Requirements for the Degree of
Bachelor of Science in Information Technology
by:
Cortez, Marvic C.
Dimaun, MM U.
Gutierrez, Kier Clinton D.
Malig, Ian Karl Sydney, L.
October 2017
by:
Cortez, Marvic C.
Dimaun, MM U.
Gutierrez, Kier Clinton D.
Malig, Ian Karl Sydney, L.
October 2017
developed by:
Cortez, Marvic C.
Dimaun, MM U.
Gutierrez, Kier Clinton D.
Malig, Ian Karl Sydney, L.
October 2017
by:
Cortez, Marvic C.
Dimaun, MM U.
Gutierrez, Kier Clinton D.
Malig, Ian Karl Sydney, L.
October 2017
TABLE OF CONTENTS
Abstract
Preface
Chapter 1 INTRODUCTION
Bibliography
Acknowledgement
Appendices
Appendix A (Certification) A-1
Appendix B (Transcript of Interview) B-1
Appendix C (Survey Form) C-1
Appendix D (Resource Person) D-1
Appendix E (Personal Technical Vitae) E-1
Appendix F (Screen Shots) F-1
Appendix G (User Manual) G-1
Appendix H (Program Listing) H-1
ABSTRACT
The On-Line Ordering with Billing System for Xhang’s Shoppers aims to lessen
time consumed in processing the transaction, lessen paper works and promote their
products easily. To achieve the objectives of the system the developers has designed,
developed different modules that involve in the on-line system.
Currently the Xhang’s Shoppers is using manual system in all of their business
transaction such as inquiry, purchasing, payment and sales report. All this processes are
time consuming that usually caused problem in the part of the customer that a prospective
buyer must wait to entertain if ever someone had comes first on the store. For people who
live far from the store they will have a hard time in buying the products they wanted to
buy. In sales report the employee will also have a hard time in doing their sales report and
it might cause errors and data redundancy because of using the manual system.
Upon analyzing the system and process of the company, the developers concluded
that the on-line ordering system with billing is a big help in productivity of the business
especially in ordering process and promoting or advertising the products on-line is
concerned.
PREFACE
On-Line Ordering will help the Xhang’s Shoppers in improving and enhancing
the current system used by the said company. The said system allow customers to order
and pay their purchased products via on-line transaction, this will speed up the ordering
process and gain more satisfaction from the customer in acquiring information and
purchasing products from the company.
The implementation of the developed on-line ordering system with billing for
Xhang’s Shoppers will significantly benefit the company, employees and especially the
customers because it will give more convenient by means of acquiring information and
transact easily by just visiting the site. In addition some people such as the developers,
future thesis student and researcher would also gain benefit upon the completion of the
developed system. The developers’ knowledge will be enhanced and developed at the
same time. All the knowledge that the developers learned during the entire college years
will now be used in completing this thesis project.
These documents include the Chapter 1 that contains the introduction, statement
of the problem, current state of the technology, objectives, scope and limitation of the
project. The Chapter 2 discussed about all the theories that were applied in the
completion of the project. Chapter 3 discussed about system design and specification
wherein all the system requirements were stated. Chapter 4 discussed about the
performance analysis wherein developers conducted an experiment or testing and survey.
And lastly, the Chapter 5 that contain summary of the problem, the developed system, the
major result of the performance analysis and the recommendation for further works were
all stated.
Chapter 1 INTRODUCTION
1. INTRODUCTION
Internet has a great contribution on how technology transformed the world to
digitalization. Many individuals use internet in order to communicate, do business
transactions, purchase products, and even watch videos for entertainment purposes.
More businesses make use of today’s technology to make their business more
productive, attract more potential customers and gain their satisfaction through the fast
accessibility and high reliability of their transactions.
Business-minded people have brought their business process to a new platform
via on-line. Through this innovation, on-line shopping has paved its way to the digital
world with the use of internet that makes it available anytime and anywhere.
In the early days of the Internet, most people connected to the Internet using a
home computer. Mobile devices, such as tablets and smart phones, make it possible for
people to be connected to the Internet at all times. The internet has turned common
appliances and home systems into smart devices that can be monitored and controlled
over the Internet. As the Internet continues to grow and evolve, you can expect it to
become an even more integral part of daily life.[SNOW2013]
Internet sometimes referred to as cyberspace, is a collection of local, regional,
national, and international computer networks linked together to exchange data and
distribute processing tasks. Most people are familiar with its capability to carry e-mail
messages, store all sorts of useful information, and provide access to online
shopping.[PARS2004]
An online ordering with billing system, in the most basic definition, it's the
heart of any ecommerce website. Running on the web server where your online store is
located, this advanced application allows customers to find and buy products and
services on the Internet without any hassles. [VARI2009]
Xhang’s Shoppers is a fashion boutique that offers variety of dresses that fit
perfectly on every customer’s fashion statement. It is owned by Ms. Jean Paula
Estrella and it is located at Brgy. Lagundi Mexico, Pampanga. It has one supplier
which is Rissa Tan. The shop is only receiving cash and they also do shipping by
money transfer. The online shop of Mrs. Jean started last 2013 but started selling
fashion products in her boutique last 2011.Xhang’s shoppers has three employees: the
supervisor, the online handler and the saleslady. The boutique is open from Monday to
Sunday, 7:30AM up to 8:00PM.
also limited which means more difficult to find anything from this site.
More ungenuine users for this site that when we post any ads in this site so
many chats would come but from that we would find only one or two
persons who personally wants to buy a product.
The said on-line site can be accessed through its web address
ofwww.olx.com.ph and contains the following features:
-Up - this is where the customer creates an account for
transactions.
- this is where the customer can
select a product according to its category.
- this is where the system verifies
the member accounts for security purposes and accounts integrity
Lazada
AI Online Shop
AI Online Shop appears too good to be true. And well, it is. The
shop offers very low prices for items such as clothing, earrings, necklaces,
and rings that are directly bought from China. But as with other wholesale
sites from China, the products appear only nice in
photographs.[MORR2012]
The problem of ai online shop is that the website has not created a
way to edit orders once a user sends the form. In other online shops, you
can add orders even after the order form is sent. This makes sense because
it helps the shop earn more. Some even allow users to cancel an order
from their database if they see that better items have been made available.
The reason they give when customer suggested this to a customer service
representative is this: our invoices will be messy.
The said on-line site can be accessed through its web address
ofwww.aionlineshop.com.ph and contains the following features:
1.3 Objectives
1.3.1 General Objective
To design, develop and implement an online ordering system for
Xhang’s Shoppers.
The main objective of this study is to design, develop and
implement an online ordering system for Xhang’s Shoppers. The
proposed online system will help the company to advertise their
product with the use of the technology which is the internet, to help
expand their business advertisement, to make it accessible to customers
to seldom go out for shopping fashion products they wanted to buy, to
make their products more appealing to the taste of the customers, and to
operate their sales transaction and inventory faster, more accurate and
reliable than the manual system.
Category Maintenance
This will maintain the category of the products.
Employee Maintenance
This will maintain the employee information of the company.
FAQ Maintenance
This will maintain the frequently asked questions of the
applicants.
Product Maintenance
This will maintain the products of the company.
Customer Maintenance
Transactions
List of Orders
This module contains the list of all orders that are needed to
provide by the company, it also contains the detailed
information about the orders.
Shipping
This module will display information about the orders that
are subject for deliver. Only orders that are paid can be seen on
this page.
Billing
This module will form as a payment module that displays
information about the payment transaction of the customer.
Reports
Sales Report
This report allows user to view all record of the products done
in every transaction and the products that are being purchased
and sold.
List of Employee
This report allow user to view all the list of employees.
Product Master List
This report views the list of products with their corresponding
descriptions and details.
Inventory Report
This report displays all the available products of the system.
Utilities
Archive
This module contains the data that have been deleted in the
system.
Audit Trail
This module keeps track of all the activities that the user has-
been doing in the system
Back-Up and Restore
This module will help the company to back-up and restore
their records in case of system failure.
Level of Access
This module will allow the administrator to adjust the
permission of a certain employee to the system.
User Management
This module will allow the administrator to add, edit, delete,
update and search user’s information of the system.
Limitations:
2.1 Introduction
The theoretical framework is most often not something readily found within
the literature. You must review course readings and pertinent research studies for
theories and analytic models that are relevant to the research problem you are
investigating. The selection of a theory should depend on its appropriateness, ease of
application, and explanatory power.[LABA2017]
The Internet is a global wide area network that connects computer systems
across the world. It includes several high-bandwidth data lines that comprise the
Internet "backbone." These lines are connected to major Internet hubs that distribute
data to other locations, such as web servers and ISPs.[CHRI2017]
The developers used the internet to gather information on how the system can
be develop and designed according to what the clients need. By the use of the
internet, the developers downloaded some tutorials and free web template that can
help in developing the system.
The World Wide Web, or just "the Web," as ordinary people call it, is a subset
of the Internet. The Web consists of pages that can be accessed using a Web browser.
The Internet is the actual network of networks where all the information resides.
Things like Telnet, FTP, Internet gaming, Internet Relay Chat (IRC), and e-mail are
all part of the Internet, but are not part of the World Wide Web. The Hyper-Text
Transfer Protocol (HTTP) is the method used to transfer Web pages to your
computer. With hypertext, a word or phrase can contain a link to another Web site.
All Web pages are written in the hyper-text markup language (HTML), which works
in conjunction with HTTP.[ CHRI2017]
The developers used the World Wide Web to access some of the resources
need and available over the net. By the use of the World Wide Web, it will enable to
spread of information over the internet through an easy-to-use and flexible format.
2.4 Hypertext Markup Language (HTML)
financial records. Each of these tables would have different fields that are relevant to
the information stored in the table [TECH2009].
Once basic user and system design has begun, the construction
phase is where most of the actual application coding, testing, and
integration takes place. Along with User Design, the Rapid
Construction phase is repeated as often as necessary, as new
components are required or alterations are made to meet the needs of
the project.
2.12.4 Cutover
2.13 Summary
3.1 INTRODUCTION
The developer studied further more to improve the current transaction of the
company. With the use of the proposed system, the company will be able to have a
fast transaction and reduce the errors that may arise during each transaction. Storage
of files is accurate and protected with the use of database.
The proposed system will also help the company to promote their products
over the internet that attracts more customers. A module which accepts question and
answers question of the customers will also be implemented.
The other sections that have been discussed in the previous chapters are
connected with each other that can be classified as a step by step process in
designing, developing and implementing the proposed system of the company.
Different analysis, research and studies are to be applied to complete the project in
developing process.
Today, ideas from design methods and systems design may be more
relevant to designers than ever before—as more and more designers collaborate
on designing software and complex information spaces. Frameworks suggested
by systems design are especially useful in modeling interaction and
conversation. They are also useful in modeling the design process itself
[LAUR2006].
3.2.1 Resources
Hardware Resources
In information technology, hardware is the physical aspect of
computers, telecommunications, and other devices. The term arose as
a way to distinguish the "box" and the electronic circuitry and
components of a computer from the program you put in it to make it
do things. Hardware includes not only the computer proper but also
the cables, connectors, power supply units, and peripheral devices
such as the keyboard, mouse, audio speakers, and printers
[ROUS2000].
Getting down to the technical data, more than 4.9 million
computers of all sizes, shapes and colors make up the hardware part
of the Internet.[ENGS1993]
Hardware Requirements:
Processor
Intel® Core™ i-3-7320 CPU @ 4.10GHz
Memory
4GB of RAM
LAN card
Gigabit Ethernet, Wake-on-LAN readyBluetooth® 4.0
Video card
PHP
This programming language will be used in coding the said
online ordering system with Email Technology for Xhang’s
Shoppers.
XAMPP
This program is a collection of easy to install web servers
that let the developers test web pages locally.
MySql
This software will be used to managed and create database
storage of files and information of the proposed system. This
database software can handle a large amount of data.
Notepad ++ and Sublime
This software will be used for the coding of the project.
Context Diagram
Registration Form
This is where the customer can create an account in the system. The
customers must fill up the required fields in order to have their records
saved in the database.
Log In and Log Out
This is where customer and user entering their information an email and
password in order to access the system.
Home Page
This is the starting point or the front page of a website. It often
describes and provides information on the purpose of the system.
Search Engine
This engine will be used in locating and accessing specific products.
Product Catalog
This module will display the products of Xhang’s Shopperswith
product description and price.
Ordering
Customer will be able to make an order through online to lessen the
time and effort in making orders and to help the customer in saving money.
Online Module for Payment
This module will let customer pay through on-line using their PayPal
account. The customer is required to have an account on PayPal if he/she
wishes to pay on-line.
Email Notification
The system will send Email notifications when the orders of the
customer are currently on delivered.
Contact Us and About Us
This module will contain information about Xhang’s Shoppersand how
Category Maintenance
This will maintain the category of the products.
Employee Maintenance
This will maintain the employee information of the company.
FAQ Maintenance
This will maintain the frequently asked questions of the applicants.
Product Maintenance
This will maintain the products of the company.
Customer Maintenance
This will maintain the information of the customer.
About Us
Transaction
List of Orders
This module contains the list of all orders that are needed to
provide by the company, it also contains the detailed
information about the orders.
Shipping
This module will display information about the orders that are
subject for deliver. Only orders that are paid can be seen on
this page.
Billing
This module will form as a payment module that displays
information about the payment transaction of the customer.
Reports
Sales Report
This report will allow user to view all the products that are
being purchased and sold.
List of Employee
This report will display all the list of the employee.
Product Master List
This report views the list of products with their
corresponding descriptions and details
Inventory Report
Utilities
Archive
This module contains the data that have been deleted in the
system.
Audit Trail
This module keeps track of all the activities that the user has-
Level of Access
User Management
3.5 Summary
4.1 Introduction
The developers ensures that the system entitled An Online Ordering with
Billing System for Xhang’s Shoppers will functions properly and correctly by
conducting some testing. The purpose of this testing is to help the developers
determine and evaluate if the system work appropriately as it expected.
The different criteria in evaluating the overall output of the system are as
follows: Accuracy, Consistency, Completeness, Design, Functionality, Software
Performance, Usability and Maintainability. The developers have tested the different
module to check if the system meets all the requirements needed or not.
To be able to perform the different test, the developers presented the system to
the possible users that suggest and give feedback through survey. These users are the
employees of Xhang’s Shoppers. The suggestions of the users will help to improve
the function of the system and meet all the requirements needed.
4.2 Experimental
Different test were conducted by the developers to trace for some errors and to
check if the system performance meet the requirements and produces the right output.
This test will help the developers to understand the different functionalities of the
modules. The developers conducted the following testing below.
The developers conduct a beta testing this is the final testing phase
where the system is test by the end-user. Developers also conduct survey
to gather information including suggestions, comments and feedbacks of
the users.
The table below contains list of criteria that based on survey forms
that were given to the end-user or the employees of Xhang’s Shoppers
regarding the presented system.
Consistency
Design
Functionality
Software
Performance
Usability
Maintainability
Table 4.2.1 Survey Form
4.4 Summary
In this chapter the different testing in every module of the system is conducted
to ensure that the developed system met all the expectations of the host company. The
system is tested by the users or employees of the company after the testing, users
provide suggestions, comments and feedback that used to improve the developed
system. The result of the testing provide the developers an idea on what modules are
need to be improved to met the satisfaction of the host company and customers.
Chapter 5 CONCLUSION
BIBLIOGRAPHY
Books:
ACKNOWLEDGEMENT
First of all the developers would like to thank our Almighty God for giving as all
the wisdom and strength in accomplishing the thesis project. To our adviser and thesis
coordinator Ms. Fides Celeste C. Arceo who inspired, encourage and helped us all
throughout the thesis. To our thesis adviser Mr. Ian Jasper Santos who provides things we
need and help us accomplish our thesis project. And to all the instructor of STI College
San Fernando Pampanga for the support and enthusiasm they’ve showed to us, especially
to Mr. Reynold DeAla who share his knowledge to us.
Secondly the developers would like to think our family for supporting us, giving
us courage and financial help throughout this thesis project, and also to our fellow
classmates and friends who encourage us to strive more to come up a good project.
And lastly, the developers would like to think Xhang’s Shoppers in San Fernando
Pampanga for letting us use their branch as our host company to fulfill this project. The
developers would like to give their deepest gratitude to Ms. Jean Paula Estrella who give
us time, patient and shared her knowledge regarding to their business transaction.
Appendix A
(Certification)
Appendix B
(Transcript of
Interview)
Appendix C
(Survey Forms)
Appendix D
(Resource Person)
Resource Person
Appendix E
(Personal Technical
Vitae)
Cortez, Marvic C.
marviccortez0221@gmail.com
09758426814
Brgy. Sta Catalina, San Luis Pampanga
Dimaun, MM U.
mm.dimaun.bsit4b2017@gmail.com
09066552839
Brgy. San Lorenzo, Mexico Pampanga
Appendix F
(Screen Shots)
Backend Log-in
This module will log-in you to access the system
Dashboard
This module will show you the statistics of the company
Stock Adjustment
This module will let you update the stocks
File Maintenance
This module will let you access of the database
List of orders
This module will let you show the list of orders of the customers
Audit Trail
This module will let you show all of the transactions of the user of the system
Archive
This module will let you to backup and restore the files in your system
Transaction – Cart
This module will let you start the transaction
Transaction – Checkout
This module will proceed you to the checkout
Gallery
This module will show you the gallery of the products
About us
This module will show you about the company
Vicinity Map
This module is the map where the company is located
User’s Profile
This module is the user’s profile where your information can be found
Order History
This module will show the transaction history of the customer
Appendix G
(User’ Manual)
2
3
3 2
1. Type to search
2. Click to update quantity of the product
3. Enter physical quant
2 3
1. Type to search
2. Click to order product
3. Click to see previous page
4. Click to see next page
3
2
1
2
1 1
3
6
4
7
5
9
10 11
2 3
1. Select Cashier
2. Select Date From
3. Select Date to
4. Print Reports
2 2
1 1
2
1
4
2
5 6
8 1
7 3
9
10
5
1 4
2
7
3
6 9
8 11
10
12
13
14
3
4
1. Choose Category
2. Choose Price range
3. Click to apply filter
4. Click to add product to cart
2 3
4 5
6
1
7 8
Appendix H
(Program Listing)
Customer’s }
if (isset($_POST['g-recaptcha-response'])
Login/Registration && $_POST['g-recaptcha-response']) {
<?php $secret =
include'db-controller.php'; "6Lc8Si4UAAAAAJuS72fyluZT1-
86j4dg4fwJaVsG";
include("PHPMailer/PHPMailer.php");
$ip = $_SERVER['REMOTE_ADDR'];
$active = 'login';
$captcha = $_POST['g-recaptcha-
response'];
if (isset($_POST['btnLogin'])) { $rsp =
file_get_contents("https://www.google.com/
$user = $_POST['txtEmail'];
recaptcha/api/siteverify?secret=$secret&resp
$pass = $_POST['txtPassword']; onse=$captcha&remoteip$ip");
$arr = json_decode($rsp, true);
$queryLog = mysqli_query($dbCon, if ($arr['success']) {
"SELECT * FROM customer_tbl WHERE
cust_email = '$user' AND cust_password = if (isset($_POST['btnReg'])) {
'$pass' AND cust_active = 1"); $txtFname = $_POST['txtFname'];
$sessionLog = $txtLname = $_POST['txtLname'];
mysqli_fetch_assoc($queryLog);
$txtEmailReg =
$fetchLog = $_POST['txtEmailReg'];
mysqli_num_rows($queryLog);
$txtPass = $_POST['txtPass'];
if ($fetchLog == 1) {
$txtConPass = $_POST['txtConPass'];
$_SESSION['login'] =
$sessionLog['cust_id']; $txtContact = $_POST['txtContact'];
$checkLogin = 1; $sessionCheck =
mysqli_num_rows($queryCheck);
}
if ($sessionCheck == 1) {
<li><a href="#">Luggage</a></li>
<li><a href="#">Wallets</a></li> <!-- Remove ".navbar-sticky" class to
make navigation bar scrollable with the
<li><a href="#">View page.-->
All</a></li>
<header class="navbar navbar-sticky">
</ul>
<!-- Main Navigation-->
</li>
<li class="has-children"><span><a
href="#">Accessories</a><span class="sub- <?php include'html/head-nav.php';?>
menu-toggle"></span></span>
<ul class="offcanvas-submenu"> <!-- Toolbar-->
<li><a
href="#">Sunglasses</a></li>
<?php include'html/toolbar.php';?>
<li><a href="#">Hats</a></li>
<li><a href="#">Watches</a></li>
</header>
<li><a href="#">Jewelry</a></li>
<!-- Off-Canvas Wrapper-->
<li><a href="#">Belts</a></li>
<div class="offcanvas-wrapper">
<li><a href="#">View
All</a></li> <!-- Page Title-->
<?php </div>
}else{ <div class="col-md-6">
?> <div class="padding-top-3x hidden-
md-up"></div>
<div class="form-group input-
group"> <h3 class="margin-bottom-1x">No
Account? Register</h3>
<input class="form-control"
type="email" id="txtEmail" <p>Registration takes less than a
name="txtEmail" placeholder="Email" minute but gives you full control over your
required><span class="input-group- orders.</p>
addon"><i class="icon-mail"></i></span>
<p>All fields are required.</p>
</div>
<form class="row" method="post">
<div class="form-group input-
<div class="col-sm-6">
group">
<div class="form-group">
<input class="form-control"
type="password" id="txtPassword" <label for="reg-fn"><span
name="txtPassword" style="color: red;">*</span> First
placeholder="Password" required><span Name</label>
class="input-group-addon"><i class="icon-
lock"></i></span> <input class="form-control"
type="text" maxlength="255"
</div> id="txtFname" name="txtFname" required>
<div class="d-flex flex-wrap </div>
justify-content-between padding-bottom-
1x"> </div>
} </div>
?> </div>
</div> $('#modal_form').modal('show');
</form> })
</div> </script>
</div> <?php
</div> }
$filterMin = $_POST['filterMin']; }
<body> </ul>
<!-- Google Tag Manager (noscript)--> </li>
<noscript> <li class="has-children"><span><a
href="#">Women's Shoes</a><span
<iframe
class="sub-menu-toggle"></span></span>
src="http://www.googletagmanager.com/ns.
html?id=GTM-T4DJFPZ" height="0" <ul class="offcanvas-submenu">
width="0" style="display: none; visibility:
<li><a href="#">Sandals</a></li>
hidden;"></iframe>
<li><a href="#">Flats</a></li>
</noscript>
<li><a href="#">Sneakers</a></li>
<!-- Template Customizer-->
<li><a href="#">Heels</a></li>
<li><a href="#">View
All</a></li>
<!-- Off-Canvas Category Menu-->
</ul>
<div class="offcanvas-container"
</li>
id="shop-categories">
<li class="has-children"><span><a
<div class="offcanvas-header">
href="#">Men's Clothing</a><span
<h3 class="offcanvas-title">Shop class="sub-menu-toggle"></span></span>
Categories</h3>
<ul class="offcanvas-submenu">
</div>
<li><a href="#">Shirts &
<nav class="offcanvas-menu"> Tops</a></li>
<ul class="menu"> <li><a href="#">Pants</a></li>
<li class="has-children"><span><a <li><a href="#">Jackets</a></li>
href="#">Men's Shoes</a><span
<li><a href="#">View
class="sub-menu-toggle"></span></span>
All</a></li>
<ul class="offcanvas-submenu">
</ul>
<li><a href="#">Sneakers</a></li>
</li>
<li><a href="#">Loafers</a></li>
<li class="has-children"><span><a
<li><a href="#">Boat href="#">Women's Clothing</a><span
Shoes</a></li> class="sub-menu-toggle"></span></span>
<li><a href="#">Sandals</a></li> <ul class="offcanvas-submenu">
<li><a href="#">View <li><a href="#">Dresses</a></li>
All</a></li>
<div class="shop-sorting">
<?php include'html/head-nav.php';?> <?php
if (isset($_POST['btnFilter'])) {
<!-- Toolbar--> $filterMin1 =
$_POST['filterMin'];
$filterMax1 =
<?php include'html/toolbar.php';?>
$_POST['filterMax'];
$queryFilter1 =
</header> mysqli_query($dbCon, "SELECT
COUNT(*) FROM product_tbl WHERE
<!-- Off-Canvas Wrapper--> prod_delete = 0 AND prod_price
<div class="offcanvas-wrapper"> BETWEEN $filterMin1 AND $filterMax1
ORDER BY prod_price ASC");
<!-- Page Title-->
$fetchFilter1 =
<div class="page-title"> mysqli_fetch_array($queryFilter1);
<div class="container"> if ($fetchFilter1[0] == 0) {
<div class="column"> echo "<span class='text-
<h1>Products</h1> muted'>No items within the price
range.</span>";
</div>
}
</div>
elseif ($fetchFilter1[0] == 1) {
</div>
echo "<span class='text-
<!-- Page Content--> muted'>Showing: </span><span>$fet
<div class="container padding-bottom- chFilter1[0] item</span>";
3x mb-1"> }
<div class="row"> else{
<!-- Products--> echo "<span class='text-
<div class="col-xl-9 col-lg-8 push-xl- muted'>Showing: </span><span>1 -
3 push-lg-4"> $fetchFilter1[0] items</span>";
</div> $fetchRate =
mysqli_fetch_array($queryRate);
</div>
$numReview =
<!-- Products Grid--> mysqli_num_rows($queryDivide);
<div class="isotope-grid cols-3 mb- if ($fetchDivide != 0) {
2">
$rate = $fetchRate[0] /
<div class="gutter-sizer"></div> $fetchDivide;
<div class="grid-sizer"></div> }
<!-- Product--> else{
<?php $rate = 0;
while($fetch = }
mysqli_fetch_assoc($sqlCategory))
?>
{
<div class="grid-item">
$sale_id = $fetch['prod_id'];
<div class="product-card">
$querySale =
mysqli_query($dbCon, "SELECT * FROM <div class="product-badge
sale_tbl JOIN products_insale_tbl ON text-danger">
sale_products = ps_sale_uid WHERE
</aside>
</div>
</div>
</div>
<!-- Site Footer-->
<?php include'html/footer.php';?>
</div>
<!-- Back To Top Button--><a
class="scroll-to-top-btn" href="#"><i
class="icon-arrow-up"></i></a>
<!-- Backdrop-->
<div class="site-backdrop"></div>
<!-- JavaScript (jQuery) libraries, plugins
and custom scripts-->
<script src="js/vendor.min.js"></script>
<script src="js/scripts.min.js"></script>
<!-- Customizer scripts-->
<script
src="customizer/customizer.min.js"></script
>
</body>
$fetchDivide =
Adding Product to Cart mysqli_num_rows($queryDivide);
<?php $fetchRate =
include'db-controller.php'; mysqli_fetch_array($queryRate);
$fetchSale = }
mysqli_fetch_assoc($querySale);
$fetchSaleRow =
if (isset($_POST['btnSubRev'])) {
mysqli_num_rows($querySale);
$name = $_POST['txtCustName'];
$rating = $_POST['txtRating'];
$query = mysqli_query($dbCon, "SELECT
* FROM product_tbl JOIN category_tbl ON $subject = $_POST['txtSubject'];
cat_id = prod_cat_id WHERE prod_id =
$review = $_POST['txtReview'];
$id");
if (isset($_SESSION['login'])) {
$fetch = mysqli_fetch_assoc($query);
$custID = $_SESSION['login'];
mysqli_query($dbCon, "INSERT INTO
$queryReview = mysqli_query($dbCon,
review_tbl() VALUES(null, $id, $custID,
"SELECT * FROM review_tbl LEFT JOIN
'$name', '$rating', '$subject', '$review',
customer_tbl ON rev_cust_id = cust_id
NOW(), 0)");
WHERE rev_delete = 0 AND rev_prod_id =
$id ORDER BY rev_id DESC LIMIT 5"); }else{
$queryRate = mysqli_query($dbCon, mysqli_query($dbCon, "INSERT INTO
"SELECT SUM(rev_rating) FROM review_tbl() VALUES(null, $id, 0, '$name',
review_tbl WHERE rev_delete = 0 AND '$rating', '$subject', '$review', NOW(), 0)");
rev_prod_id = $id");
}
$queryDivide = mysqli_query($dbCon,
header("location:shop.php?prod_id=$id");
"SELECT * FROM review_tbl WHERE
rev_delete = 0 AND rev_prod_id = $id"); }
} mysqli_query($dbCon, "UPDATE
product_tbl SET prod_quantity =
if (isset($_SESSION['login'])) { prod_quantity - $txtquantity WHERE
$custID = $_SESSION['login']; prod_id = $id");
}else{ }
$custID = 0; ?>
} <!DOCTYPE html>
<html lang="en">
if (isset($_SESSION['login'])) {
$cust_id = $_SESSION['login']; <!-- Mirrored from
themes.rokaux.com/unishop/shop-
$queryCheckProduct = single.html by HTTrack Website Copier/3.x
mysqli_query($dbCon, "SELECT * FROM [XR&CO'2014], Sat, 19 Aug 2017 04:25:00
cart_tbl WHERE cart_prod_id = $id AND GMT -->
cart_cust_id = $cust_id");
<head>
}else{
<meta charset="utf-8">
$queryCheckProduct =
mysqli_query($dbCon, "SELECT * FROM <title>Single Product
cart_tbl WHERE cart_prod_id = $id AND </title>
cart_cust_id = $custID");
<!-- SEO Meta Tags-->
}
<meta name="description"
$fetchCheckProduct = content="Unishop - Universal E-Commerce
mysqli_num_rows($queryCheckProduct); Template">
if ($fetchCheckProduct == 0) {
<body> </ul>
<!-- Google Tag Manager (noscript)--> </li>
<noscript> <li class="has-children"><span><a
href="#">Women's Shoes</a><span
<iframe
class="sub-menu-toggle"></span></span>
src="http://www.googletagmanager.com/ns.
html?id=GTM-T4DJFPZ" height="0" <ul class="offcanvas-submenu">
width="0" style="display: none; visibility:
<li><a href="#">Sandals</a></li>
hidden;"></iframe>
<li><a href="#">Flats</a></li>
</noscript>
<li><a href="#">Sneakers</a></li>
<!-- Template Customizer-->
<li><a href="#">Heels</a></li>
<li><a href="#">View
All</a></li>
<!-- Off-Canvas Category Menu-->
</ul>
<div class="offcanvas-container"
</li>
id="shop-categories">
<li class="has-children"><span><a
<div class="offcanvas-header">
href="#">Men's Clothing</a><span
<h3 class="offcanvas-title">Shop class="sub-menu-toggle"></span></span>
Categories</h3>
<ul class="offcanvas-submenu">
</div>
<li><a href="#">Shirts &
<nav class="offcanvas-menu"> Tops</a></li>
<ul class="menu"> <li><a href="#">Pants</a></li>
<li class="has-children"><span><a <li><a href="#">Jackets</a></li>
href="#">Men's Shoes</a><span
<li><a href="#">View
class="sub-menu-toggle"></span></span>
All</a></li>
<ul class="offcanvas-submenu">
</ul>
<li><a href="#">Sneakers</a></li>
</li>
<li><a href="#">Loafers</a></li>
<li class="has-children"><span><a
<li><a href="#">Boat href="#">Women's Clothing</a><span
Shoes</a></li> class="sub-menu-toggle"></span></span>
<li><a href="#">Sandals</a></li> <ul class="offcanvas-submenu">
<li><a href="#">View <li><a href="#">Dresses</a></li>
All</a></li>
<div class="product-gallery"><!--
<span class="product-badge text-
<?php include'html/head-nav.php';?>
danger">30% Off</span> -->
<div class="gallery-wrapper">
<!-- Toolbar-->
<div class="gallery-item
active"><a href="Image/Product/<?php
print $fetch['prod_image'];?>" data-
<?php include'html/toolbar.php';?> hash="one" data-
size="700x667"></a></div>
</header> </div>
} <input class="form-control
form-control-rounded" <?php
}
if(isset($_SESSION['login'])){ print
?> "value='".$_SESSION['name']."'"."
"."readonly"; }?> type="text"
</div> id="txtCustName" name="txtCustName"
</div> required>
</div> </div>
<script type="text/javascript"> })
<!DOCTYPE html>
Shopping Cart
<html lang="en">
<?php
include'db-controller.php';
<!-- Mirrored from
$active = ''; themes.rokaux.com/unishop/cart.html by
if (isset($_POST['btnClearCart'])) { HTTrack Website Copier/3.x
[XR&CO'2014], Sat, 19 Aug 2017 04:25:33
if (isset($_SESSION['login'])) { GMT -->
$id = $_SESSION['login']; <head>
mysqli_query($dbCon, "DELETE <meta charset="utf-8">
FROM cart_tbl WHERE cart_cust_id =
$id"); <title>Cart
}else{ </title>
</li> </div>
</td> </div>
<td class="text-center"> </form>
<div class="count-input"> <div class="shopping-cart-footer">
<input type="number" <div class="column text-lg">Subtotal:
min="1" class="form-control" <span class="text-medium">₱<?php
value="<?php print print number_format($fetchTotalAmount[0],
$fetchGetCart['cart_qty'];?>" name=""> 2);?></span></div>
</div> </div>
</td> <div class="shopping-cart-footer">
<td class="text-center text-lg <div class="column"><a class="btn
text-medium"> btn-outline-secondary"
href="products.php"><i class="icon-arrow-
₱<?php
left"></i> Back to
if($fetchSaleRow == 1){ print
Shopping</a></div>
$fetchSale['ps_sale_price']; }else{ print
$fetchGetCart['prod_price']; }?> <div class="column"><a class="btn
btn-primary" href="#">Update Cart</a><a
</td>
class="btn btn-success"
<form method="post"> href="checkout.php">Checkout</a></div>
<td class="text-center"> </div>
<?php include'html/footer.php';?>
</div>
<!-- Back To Top Button--><a
class="scroll-to-top-btn" href="#"><i
class="icon-arrow-up"></i></a>
<!-- Backdrop-->
<div class="site-backdrop"></div>
<!-- JavaScript (jQuery) libraries, plugins
and custom scripts-->
<script src="js/vendor.min.js"></script>
<script src="js/scripts.min.js"></script>
<!-- Customizer scripts-->
<script
src="customizer/customizer.min.js"></script
>
</body>
Check Out
?>
<?php
<!DOCTYPE html>
include'db-controller.php';
<html lang="en">
$active = '';
<li><a
href="#">Sunglasses</a></li> </header>
<li><a href="#">Hats</a></li> <!-- Off-Canvas Wrapper-->
<li><a href="#">Watches</a></li> <div class="offcanvas-wrapper">
<li><a href="#">Jewelry</a></li> <!-- Page Title-->
<li><a href="#">Belts</a></li> <div class="page-title">
<li><a href="#">View <div class="container">
All</a></li>
<div class="column">
</ul>
<h1>Checkout</h1>
</li>
</div>
</ul>
<div class="column">
</nav>
<ul class="breadcrumbs">
</div>
</div> class="custom-control-description">Same
as billing address</span>
<div class="col-sm-12">
</label>
<div class="form-group">
</div>
<label for="checkout-
address2">Shipping Address</label> </div>
<textarea class="form- </div>
control" id="txtShippingAddress"
</div>
rows="2"></textarea>
</div>
</div>
<div class="checkout-footer margin-
</div>
top-1x">
<div class="col-sm-12">
<div class="column"><a class="btn
<div class="form-group"> btn-outline-secondary" href="checkout-
shipping.html"><i class="icon-arrow-
<label for="checkout-
left"></i><span class="hidden-xs-
address2">Shipping Date</label>
down"> Back</span></a></div>
<input type="Date"
<div class="column"><a class="btn
id="txt_shippingDate" min="<?php echo
btn-primary" href="checkout-
date('Y-m-d', strtotime(' + 3 days')); ?>"
review.html"><span class="hidden-xs-
value="<?php echo date('Y-m-d', strtotime('
down">Continue </span><i
+ 3 days')); ?>" class="form-control">
class="icon-arrow-right"></i></a></div>
</div>
</div>
</div>
</div>
</div>
<!-- Sidebar -->
<h4>Shipping Address</h4>
<hr class="padding-bottom-
<!--CHECKOUT PAYPAL-->
1x">
<div class="col-xl-3 col-lg-4">
<div class="form-group">
<aside class="sidebar">
<label class="custom-control
custom-checkbox"> <div class="padding-top-2x hidden-
lg-up"></div>
<input class="custom-
control-input" type="checkbox" <!-- Order Summary Widget-->
id="sameAddress"><span class="custom-
<section class="widget widget-
control-indicator"></span><span
order-summary">
<script var c =
src="customizer/customizer.min.js"></script document.getElementById('txtAddress').val
> ue;
<script src="../input- var a =
mask/jquery.inputmask.js"></script> document.getElementById('txt_fname').valu
e;
<script type="text/javascript">
var b =
$('[data-mask]').inputmask();
document.getElementById('txt_lname').valu
</script> e;
}) }
</script> }
<option selected
disabled>Select Month</option> <option>2018</option>
<option>January</option> <option>2019</option>
<option>February</option> <option>2020</option>
<option>March</option> <option>2021</option>
<option>April</option> <option>2022</option>
<option>May</option> </select>
<option>June</option> </div>
<option>July</option> <div class="col-md-4">
<input type="text"
<option>August</option> style="font-size: 20px;" id="ccv"
class="form-control" data-
inputmask="'mask': '9999'" data-mask
<option>September</option>
name="">
</div>
<option>October</option>
</div>
<option>November</option> </div>
<div class="modal-footer">
<option>December</option>
<button type="button" class="btn
</select> btn-primary" data-dismiss="modal"
onclick="return backToCash();"><i
</div>
class="fa fa-close"></i> Close</button>
<div class="col-md-4">
<a id="btnCard" href="payment-
<select required success.php" type="button" class="btn btn-
class="form-control" style="font-size: success"><i class="fa fa-arrow-circle-
15px;"> right"></i> Submit</a>
<option selected </div>
disabled>Select Year</option>
</div>
</div>
<option>2017</option>
</form>
</div>
<!DOCTYPE html>
<html lang="en"> <!--[if lte IE 9]>
<link rel="stylesheet" type="text/css"
href="css/dev-other/dev-ie-fix.css">
<!-- Mirrored from
aqvatarius.com/themes/intuitive/ by <![endif]-->
HTTrack Website Copier/3.x
[XR&CO'2014], Tue, 27 Jun 2017 01:50:21
GMT --> <!-- javascripts -->
<div class="table-
responsive">
<!-- page sidebar -->
<form method="post">
<table id="example2"
<?php include'html/side-bar.php'
class="table table-bordered table-striped">
?>
<thead>
<!-- ./page sidebar -->
<tr>
<th>Product
<!-- page content -->
Id</th>
<div class="dev-page-content">
<th>Product
Name</th>
<th>Category</th>
<th>Size</th>
<div class="container">
<th>Stocks</th>
<!-- page title --> <th>Physical
<div class="page-title"> Count</th>
<h1>Stock
Adjustment</h1> <th>Action</th>
</div> </tr>
<?php </td>
include'db-controller.php'; </tr>
if (isset($_POST['stock'])) { <?php
$query = mysqli_query($dbCon, }
"SELECT * FROM product_tbl JOIN
category_tbl ON cat_id = prod_cat_id }
WHERE prod_delete = 0 ORDER BY if (isset($_POST['update'])) {
prod_id DESC");
$id = $_POST['id'];
while ($fetch =
mysqli_fetch_assoc($query)) { $qty = $_POST['qty'];
?>
<tr> $query = mysqli_query($dbCon,
"SELECT * FROM product_tbl WHERE
<td><?php print prod_id = $id");
$fetch['prod_uid'];?></td>
$fetch = mysqli_fetch_assoc($query);
$prev = $fetch['prod_quantity'];
mysqli_query($dbCon, "INSERT
INTO stock_tbl() VALUES(null, $id, $prev,
$qty, NOW(), NOW())");
mysqli_query($dbCon, "UPDATE
product_tbl SET prod_quantity = $qty
WHERE prod_id = $id");
}
?>
<script>
$(function () {
$('#example2').DataTable({
"paging": true,
"lengthChange": false,
"searching": true,
"ordering": false,
"info": true,
"autoWidth": false,
"pageLength": 10
});
});
</script>
<head>
Walk-In Cart
<!-- meta section -->
<?php
<title>Xhang's Shoppers</title>
include'db-controller.php';
$active = "walkin";
<meta http-equiv="Content-Type"
content="text/html; charset=utf-8" >
if (isset($_POST['deletePro'])) { <meta http-equiv="X-UA-Compatible"
foreach ($_POST['selectedItems'] as content="IE=edge" >
$prod_id) { <meta name="viewport"
$queryVoid = content="width=device-width, initial-
mysqli_query($dbCon, "SELECT * FROM scale=1, user-scalable=no" >
cart_tbl WHERE cart_prod_id = $prod_id");
$fetchVoid = <link rel="icon" href="favicon.ico"
mysqli_fetch_assoc($queryVoid); type="image/x-icon" >
$quantity = $fetchVoid['cart_qty']; <!-- /meta section -->
mysqli_query($dbCon, "DELETE
FROM cart_tbl WHERE cart_cust_id = 0
AND cart_prod_id = $prod_id"); <!-- css styles -->
<h1>Transaction (Walk-
In)</h1>
<style>.dev-page{visibility:
hidden;}</style> </div>
</head> <!-- ./page title -->
<body>
<!-- page wrapper -->
<div class="dev-page"> <!-- datatables plugin -->
<div class="col-md-8">
<?php include'html/header.php'; ?> <form method="post">
<div class="wrapper
wrapper-white">
<!-- page container -->
<div class="page-
<div class="dev-page-container"
subtitle">
style="min-height: 700px;">
<h4>Shopping
Cart</h4>
<!-- page sidebar -->
<?php
$query =
<?php include'html/side-bar.php' mysqli_query($dbCon, "SELECT * FROM
?> cart_tbl WHERE cart_cust_id = 0");
</div> <th
style="font-size: 11px;">Image</th>
<div style="float:
left;"> <th
style="font-size: 11px;">Product name</th>
<a
href="shop.php"><button style="height: <th
30px; line-height: 12px; background-color: style="font-size: 11px;">Size</th>
gray; color: white;" type="button"
<th
id="addnew" class="btn">
style="font-size: 11px;">Unit Price</th>
<i class="fa fa-
<th
arrow-circle-left"></i> Continue Shopping
style="font-size: 11px;">Qty.</th>
</button></a>
<th
<button style="font-size: 11px;">Amount</th>
style="height: 30px; line-height: 12px;"
</tr>
type="submit" id="deletePro"
name="deletePro" class="btn btn-danger"> </thead>
<i class="fa fa- <tbody
trash"></i> Remove Selected Items id="aloadcart">
</button>
</div> </tbody>
<?php </table>
} </div>
?> </div>
</div> </form>
<div class="table- </div>
responsive">
<div class="col-md-4">
<table id="products"
class="table table-bordered table-striped"> <div class="wrapper
wrapper-white">
<thead>
<div class="page-
<tr> subtitle">
<th><input <h4>Payment
type="checkbox" id="selectAll" Breakdown</h4>
name="selectAll"></th>
</div>
<th>#</th>
</form> </div>
</div> </div>
</div> <div class="dev-search-
results"></div>
</div>
</div>
<!-- page search -->
</div>
<!--END END NED MODALS
HERE --> <!-- ./page wrapper -->
compute: 1,
prod: a, // This code is for payment
breakdown
quantity: qty,
function loadBreakdown(){
price: price,
$.ajax({
id: id
url: "loadcart.php",
},
type: "POST",
success: function(a){
data: {
loadCart();
breakdown: 1
loadBreakdown();
},
}
success: function(data){
});
}
$("#breakdown").html(data);
// End
}
});
// This Code will load all the items
}
in the shopping cart
// END
function loadCart(){
</script>
$.ajax({
<script type="text/javascript">
url: "loadcart.php",
$(document).on('change',
type: "POST",
'#selectAll', function(){
data: {
if
display: 1 ($('#selectAll').prop('checked')) {
}, $('.try').prop('checked', true);
} }
}); })
} </script>
</body> ?>
<tr>
<!-- Mirrored from <td><input
aqvatarius.com/themes/intuitive/ by type="checkbox" id="selectedItems[]"
HTTrack Website Copier/3.x name="selectedItems[]" class="try"
[XR&CO'2014], Tue, 27 Jun 2017 01:51:26 value="<?php print
GMT --> $fetch['prod_id'];?>"><input type="hidden"
id="ID<?php print $ctr = $ctr + 1;?>"
</html>
value="<?php print
$fetch['cart_id'];?>"></td>
<?php <td><span
id="num"><?php print $ctr;?></span></td>
include'db-controller.php';
<td><img
$ctr = 0; alt="<?php print $fetch['prod_image'];?>"
if (isset($_POST['display'])) { style="border-radius: 30%; height: 40px;
width: 40px;" src="image/Product/<?php
$query1 = print $fetch['prod_image'];?>"></td>
mysqli_query($dbCon, "SELECT * FROM
cart_tbl JOIN product_tbl ON cart_prod_id <td><?php
= prod_id WHERE cart_cust_id = 0"); print $fetch['prod_name']; ?></td>
$row = <td><?php
mysqli_num_rows($query1); print $fetch['prod_size']; ?></td>
if ($row == 0) {
<td>₱<span id="price<?php
?> print $ctr;?>"><?php print
<tr> number_format($fetch['prod_price'], 2);
?></span></td>
<td
colspan="8" align="center">Shopping Cart <td><input
is empty. Click <a type="number" name="txtQuantity"
href="shop.php"><u>here</u></a> to id="qty<?php print $ctr;?>"
shop.</td> onchange="return totalAmount(<?php print
$ctr; ?>);" value="<?php print
</tr> $fetch['cart_qty'];?>" min="1" style="width:
<?php 40px;"></td>
}
<td>₱<span
else{ id="amount<?php print $ctr;?>"><?php
while ($fetch = print number_format($fetch['cart_amount'],
mysqli_fetch_assoc($query1)) { 2); ?></span></td>
<td>Tax(12%): </td>
<td id="tax"
align="right">₱<?php print
number_format($tax, 2); ?></td>
</tr>
<tr>
<td style="font-weight:
bolder;">Total: </td>
<td id="total"
align="right">₱<?php print
number_format($total, 2);?></td>
</tr>
<?php
}
?>
<!-- END -->
mysqli_query($dbCon, "INSERT
Walk-In Shopping INTO cart_tbl() VALUES(null, 0, '$id',
<?php '$quantity', '$price')");
include'db-controller.php'; }
if ($fetchAdd != 0) {
mysqli_query($dbCon, "UPDATE <meta http-equiv="Content-Type"
cart_tbl SET cart_qty = cart_qty + content="text/html; charset=utf-8" >
$quantity, cart_amount = cart_amount + <meta http-equiv="X-UA-Compatible"
$price WHERE cart_prod_id = $id"); content="IE=edge" >
} <meta name="viewport"
else{ content="width=device-width, initial-
scale=1, user-scalable=no" >
<div class="container">
<!-- javascripts -->
<script type="text/javascript"
src="js/plugins/modernizr/modernizr.js"></s <!-- page title -->
cript>
<div class="page-title">
<!-- ./javascripts -->
<h1>Xhang's
Shoppers(Products)</h1>
<style>.dev-page{visibility: </div>
hidden;}</style>
<!-- ./page title -->
</head>
<body>
<!-- page wrapper -->
<!-- datatables plugin -->
<div class="dev-page">
<div class="wrapper">
<form method="post">
<div style="float: ?>
left;">
<option
<div class="col- value="<?php print
md-3"> $fetchCat['cat_id'];?>"><?php print
$fetchCat['cat_name']?></option>
<button
class="btn" style="border: none; <?php
background:
}
none;"><strong>SEARCH</strong></butto
n> ?>
</div> </select>
<div class="col- </div>
md-9">
</div>
<input
type="text" class="form-control" name="" <div style="float:
id="txtSearch"> left;">
<div class="modal-footer">
$(document).on('change', },
'#searchCategory', function(){
success: function(data){
var search =
$('#searchCategory').val();
$('#prodPRICE').val(data.prod_price);
$.ajax({
url: "shopLoad.php", document.getElementById('stocks').innerHT
ML = data.prod_quantity;
type: "POST",
}
data: {
})
displaySearchCategory: 1,
}
search: search
</script>
},
<script type="text/javascript">
success: function(data){
function checkQuantity(){
$('#searchResult').html(data); var id = $('#addID').val();
} var qty = $('#qty').val();
}) var stocks =
document.getElementById('stocks').innerHT
})
ML;
</script>
if (parseInt(qty) >
<script type="text/javascript"> parseInt(stocks)) {
if (isset($_POST['btnTender'])) {
Walk-In Payment
$txtFname = $_POST['txtFname'];
<?php
$txtLname = $_POST['txtLname'];
include'db-controller.php';
$txtAddress = $_POST['txtAddress'];
$active = "walkin";
$txtShipAdd = $_POST['shipAdd'];
$txtShipDate = $_POST['shipDate'];
$values = mysqli_query($dbCon,
"SELECT SUM(cart_amount) FROM $txtTotalAmount = $_POST['amount'];
cart_tbl WHERE cart_cust_id = 0");
$txtTotalAmount = str_replace(',', '',
$fetch = mysqli_fetch_array($values); $txtTotalAmount);
$alpaNumeric =
"0123456789ABCDEFGHIJKLMNOPQRS
$queryCount = mysqli_query($dbCon,
TUVWXYZabcdefghijklmnopqrstuvwxyz";
"SELECT COUNT(*) FROM
transaction_tbl");
do { $fetchCount =
mysqli_fetch_row($queryCount);
$generateCode =
substr(str_shuffle($alpaNumeric), -10);
$id = $fetchCount[0] + 1;
</div>
<?php include'html/header.php'; ?> <div class="row">
<div class="col-md-3">
<!-- page container --> <div class="form-
group">
<div class="dev-page-container"
style="min-height: 700px;"> <label>Customer's
Name</label>
</div>
<!-- page sidebar -->
</div>
<div class="col-md-5">
<?php include'html/side-bar.php'
?> <div class="form-
group">
<!-- ./page sidebar -->
<input type="text"
style="border-color: gray;" class="form-
<!-- page content --> control" placeholder="First name"
name="txtFname" id="txtFname">
<div class="dev-page-content">
</div>
</div>
<div class="col-md-4">
<div class="form-
<div class="container"> group">
<form method="post" <input
id="paymentForm"> style="border-color: gray;" type="text"
<!-- datatables plugin --> class="form-control" placeholder="Last
name" name="txtLname" id="txtLname">
<div class="col-md-8">
</div>
<div class="wrapper
wrapper-white"> </div>
<div class="row">
<label>Address</label>
<div class="col-md-3">
</div>
<div class="form-
</div> group">
<div class="col-md-9"> <label>Shipping
Date</label>
<div class="form-
group"> </div>
<textarea </div>
style="border-color: gray;" rows="4"
<div class="col-md-9">
class="form-control" name="txtAddress"
id="txtAddress"></textarea> <div class="form-
group">
</div>
<input
</div>
style="border-color: gray; cursor: not-
</div> allowed;" min="<?php print date("Y-m-
d");?>" id="shipDate" type="date"
<div class="row">
class="form-control" name="shipDate">
<div class="col-md-3">
</div>
<div class="form-
</div>
group">
</div>
<label>Shipping
Address</label> <div class="row">
</div> <div class="col-md-3">
</div> <div class="form-
group">
<div class="col-md-9">
</div>
<div class="form-
group"> </div>
<textarea <div class="col-md-9">
style="border-color: gray; cursor: not-
<div class="form-
allowed;" name="shipAdd" id="shipAdd"
group">
rows="4" class="form-control"></textarea>
<div
</div>
class="checkbox checkbox-inline">
</div>
<input
</div> type="checkbox" id="check_1"/>
<label <td
for="check_1">This transaction will be align="right"><span
shipped</label> id="shipping"></span></td>
</div> <input
type="hidden" name="txtShippingFee"
</div>
id="txtShippingFee">
</div>
</tr>
</div>
<tr>
</div>
<td>Discount:
</div> </td>
<tr> </tr>
<td>Subtotal: <tr>
</td> <td
<td style="font-weight: bolder;">Total: </td>
id="subtotal" align="right"><?php print <td
number_format($sub, 2);?></td> align="right"><span id="total"
</tr> name="total"><?php print
number_format($total, 2);?></span></td>
<tr>
</tr>
<td>Shipping
Fee: </td> </tbody>
</table>
<button
type="button" class="btn-danger"
<!--MODALS HERE -->
id="btnClear" style="padding: 5px; width:
70px;">Clear</button> <div class="modal fade"
id="modalNotif" tabindex="-1"
</div>
role="dialog" aria-
</div> labelledby="myModalLabel" aria-
hidden="true">
<div class="col-md-
3"> <div class="modal-dialog modal-
sm">
<div class="form-
group"> <div class="modal-content">
<button <div class="modal-header">
class="btn-primary" type="button"
<button type="button"
style="padding: 5px; width: 70px;"
class="close" data-dismiss="modal" aria-
onclick="document.location.href = 'walk-in-
label="Close"><span aria-
transaction.php'">Cancel</button>
hidden="true">×</span></button>
</div>
<h4 class="modal-title"
</div> id="myModalLabel"><i class="fa fa-
warning"></i> WARNING</h4>
</div>
</div>
</div>
<div class="modal-body">
</div>
<form method="post"
<!-- ./datatables plugin -->
role="form">
</form>
<p id="txtNotif"> Are you
</div> sure you want to Cancel? </p>
<label>Expiry
Month</label> <option>July</option>
</div>
<option>August</option>
<div class="col-md-4">
<label>Expiry
<option>September</option>
Year</label>
</div>
<option>October</option>
<div class="col-md-4">
<label>CCV</label> <option>November</option>
</div>
<option>December</option>
</div>
</select>
<div class="row">
</div>
<div class="form-
group"> <div class="col-md-
4">
<div class="col-md-
4"> <select required
class="form-control" style="font-size:
<select required 15px;">
class="form-control" style="font-size:
15px;"> <option selected
disabled>Select Year</option>
<option selected
disabled>Select Month</option>
<option>2017</option>
<option>January</option>
<option>2018</option>
<option>February</option>
<option>2019</option>
<option>March</option>
<option>2020</option>
<option>April</option>
<option>2021</option>
<option>May</option>
<option>2022</option>
<option>June</option> </select>
$(document).on('change', else{
'#check_1', function(){
$('#shipDate').val(null);
if ($('#check_1').is(':checked'))
$('#shipAdd').val(null);
{
$('#shipDate').css('cursor',
$('#shipDate').css('cursor',
'not-allowed');
'pointer');
$('#shipAdd').css('cursor',
$('#shipAdd').css('cursor',
'not-allowed');
'text');
$('#shipDate').prop('readonly', true);
$('#shipDate').prop('readonly', false);
$('#shipAdd').prop('readonly',
$('#shipAdd').prop('readonly',
true);
false);
$('#shipping').text('0.00');
$('#shipping').text('200.00');
var amount =
var number =
$('#amount').val();
$('#amount').val();
var amount1 =
var holder =
Number(amount.replace(/[^0-9\.-]+/g,""))
Number(number.replace(/[^0-9\.-]+/g,""));
var holder = amount1 - 200;
var ship =
document.getElementById('shipping').inner
HTML; document.getElementById('amount').value
= parseFloat(holder,
var total = parseFloat(ship) +
10).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g,
parseFloat(holder);
"$1,").toString();
document.getElementById('amount').value
document.getElementById('txtShippingFee')
= parseFloat(total,
.value = 0;
10).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g,
"$1,").toString();
document.getElementById('total').innerHT
ML = parseFloat(holder,
document.getElementById('txtShippingFee')
10).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g,
.value = 200.00;
"$1,").toString();
}
document.getElementById('total').innerHT
ML = parseFloat(total, });
10).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g,
"$1,").toString(); })
} </script>
<?php
$('#modalDisc').modal('hide');
if ($_SESSION['position'] ==
'Administrator') { }
?> })
<script type="text/javascript"> </script>
$(document).on('click', <?php
'#btnDiscount', function(){
}
var disc =
?>
$('#txtDiscounted').val();
<script type="text/javascript">
var number =
$('#amount').val(); $(function(){
var amount = if ($('#sukli').val() == 0) {
Number(number.replace(/[^0-9\.-]+/g,""));
$('#btnTender').css({'cursor':
if (disc != 0) { 'not-allowed'});
var discount =
(parseFloat(amount) * parseFloat(disc))/100; $('#btnTender').prop('disabled', true);
var discounted = }
parseFloat(amount) - parseFloat(discount);
})
document.getElementById('amount').value </script>
= parseFloat(discounted, <script type="text/javascript">
10).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g,
"$1,").toString(); function compute(){
var amount =
$('#txtDiscount').val(discount.toFixed(2)); $('#amount').val();
var cash = $('#cash').val();
document.getElementById('total').innerHT var changed = $('#sukli').val();
ML = parseFloat(discounted,
10).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, var totalAmount =
"$1,").toString(); Number(amount.replace(/[^0-9\.]+/g,""));
var change = cash -
document.getElementById('discount').inner totalAmount;
HTML = parseFloat(discount, if (totalAmount > cash) {
10).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g,
"$1,").toString();; $('#sukli').val(0);
$('#btnTender').css({'cursor':
'not-allowed'}); document.getElementById('total').innerHT
ML = $('#amount').val();
$('#btnTender').prop('disabled', true); $('#shipping').text('0.00');
} $('#discount').text('0.00');
else{ $('#txtDiscounted').val('');
$('#txtDiscName').val('');
$('#sukli').val(change.toFixed(2));
})
$('#btnTender').css({'cursor':
$(document).on('click',
'pointer'});
'#btnClose', function(){
$('#modalDiscForm')[0].reset();
$('#btnTender').prop('disabled', false);
$('#txtDiscName').val('');
}
})
}
</script>
$(document).on('keypress', '#cash',
function(){ <script type="text/javascript">
if ($('#cash').val() == 0) { function CashOrCard(){
$('#cash').val(''); if
($('#modePCard').is(':checked')) {
}
})
$('#CardModal').modal('show');
$(document).on('click',
$('#btnCard').prop('disabled',
'#btnClear', function(){
true);
$('#btnTender').css({'cursor':
$('#btnMode').val('Card');
'not-allowed'});
}else{
$('#btnTender').prop('disabled',
true); $('#cash').val(0);
}) $('#cash').prop('readonly',
false);
</script>
}
<script type="text/javascript">
}
$(document).on('click',
'#btnClear', function(){ function backToCash(){
$('#paymentForm')[0].reset();
$('#modePCash').prop('checked', true);
$('#card')[0].reset();
$('#btnMode').val('Cash');
}
</script>
<script type="text/javascript">
$(document).on('click', '#btnCard',
function(){
$('#cash').val($('#amount').val());
$('#cash').prop('readonly', true);
$('#CardModal').modal('hide');
})
$(document).on('input', '#ccv',
function(){
$('#btnCard').prop('disabled',
false);
})
</script>
<!-- ./javascripts -->
</body>
?>
Back-Order
<!DOCTYPE html>
<?php
<html lang="en">
include'db-controller.php';
$active = "purchase";
<!-- Mirrored from
if (isset($_POST['btnModalOrder'])) { aqvatarius.com/themes/intuitive/ by
$id = $_POST['id']; HTTrack Website Copier/3.x
[XR&CO'2014], Tue, 27 Jun 2017 01:50:21
$order = $_POST['qty']; GMT -->
<!-- Added by HTTrack --><meta http-
$queryCheckOrder = equiv="content-type"
mysqli_query($dbCon, "SELECT * FROM content="text/html;charset=utf-8" /><!--
purchase_order_tbl WHERE po_id = $id"); /Added by HTTrack -->
$fetchCheckOrder = <head>
mysqli_fetch_assoc($queryCheckOrder); <!-- meta section -->
$quantity = <title>Xhang's Shoppers</title>
$fetchCheckOrder['po_order'];
$prod_id =
$fetchCheckOrder['po_prod_id']; <meta http-equiv="Content-Type"
content="text/html; charset=utf-8" >
if ($quantity == $order) {
<meta http-equiv="X-UA-Compatible"
mysqli_query($dbCon, "UPDATE content="IE=edge" >
purchase_order_tbl SET po_order = 0,
po_remarks = 'FINISH' WHERE po_id = <meta name="viewport"
$id"); content="width=device-width, initial-
scale=1, user-scalable=no" >
}else{
mysqli_query($dbCon, "UPDATE
purchase_order_tbl SET po_order = <link rel="icon" href="favicon.ico"
po_order - $order, po_remarks = type="image/x-icon" >
'BACKORDER' WHERE po_id = $id"); <!-- /meta section -->
}
mysqli_query($dbCon, "UPDATE <!-- css styles -->
product_tbl SET prod_quantity =
prod_quantity + $order WHERE prod_id = <link rel="stylesheet" type="text/css"
$prod_id"); href="css/default-blue-white.css" id="dev-
css">
}
<div class="container">
<!-- javascripts -->
<script type="text/javascript"
<!-- page title -->
src="js/plugins/modernizr/modernizr.js"></s
cript> <div class="page-title">
<!-- ./javascripts --> <h1>Back Order</h1>
</div>
<style>.dev-page{visibility: <!-- ./page title -->
hidden;}</style>
</head>
<body>
<!-- datatables plugin -->
<!-- page wrapper -->
<div class="wrapper
<div class="dev-page"> wrapper-white">
<button
<th>Name</th> type="button" name="btnOrder"
id="btnOrder" onclick="return order(<?php
print $fetch['po_id'];?>,<?php print
<th>Category</th>
$fetch['po_order'];?>);" class="btn btn-xs
<th>Size</th> btn-rounded btn-success btnrestore"><i
class="fa fa-truck"></i> Order
<th>No. of Now</button>
Orders</th>
<th>Action</th> </td>
</tr> </tr>
</thead> <?php
<tbody> }
<?php ?>
$query = </tbody>
mysqli_query($dbCon, "SELECT * FROM
</table>
product_tbl JOIN category_tbl ON cat_id =
prod_cat_id JOIN purchase_order_tbl ON </form>
po_prod_id = prod_id WHERE prod_delete
</div>
= 0 AND po_remarks = 'BACKORDER'
ORDER BY prod_id DESC"); </div>
while ($fetch <!-- ./datatables plugin -->
= mysqli_fetch_assoc($query)) {
</div>
?>
</div>
<tr>
<!-- ./page content -->
<td><?php
print $fetch['prod_name'];?></td> </div>
<form method="post"
role="form"> <!--PAGE FOOTER HERE -->
<input type="number"
class="form-control" name="qty" id="qty"
oninput="return check();"> <?php include 'html/footer.php'; ?>
<input type="hidden"
name="id" id="id">
<input type="hidden"
name="rec" id="rec">
<div class="dev-search- }
field">
</script>
<input type="text"
<script>
placeholder="Search..." value="Nature">
$(function () {
</div>
$('#example2').DataTable({
</form>
"paging": true,
</div>
"lengthChange": false,
<div class="dev-search-
results"></div> "searching": true,
</div> "ordering": false,
</div> "info": true,
<!-- page search --> "autoWidth": false,
</div> "pageLength": 10
<!-- ./page wrapper --> });
});
<!-- javascripts --> </script>
<?php include'html/js.php'; ?> <!-- ./javascripts -->
<script type="text/javascript"> </body>
function order(a,b){
$('#modalNotif').modal('show'); <!-- Mirrored from
aqvatarius.com/themes/intuitive/ by
$('#id').val(a);
HTTrack Website Copier/3.x
$('#rec').val(b); [XR&CO'2014], Tue, 27 Jun 2017 01:51:26
GMT -->
}
</html>
function check(){
var a = $('#qty').val();
var b = $('#rec').val();
if (parseInt(a) > parseInt(b)) {
$('#qty').val(b);
}
List of Orders
<!-- css styles -->
<?php
<link rel="stylesheet" type="text/css"
include'db-controller.php'; href="css/default-blue-white.css" id="dev-
$active = "purchase"; css">
<!DOCTYPE html>
<html lang="en"> <!--[if lte IE 9]>
<link rel="stylesheet" type="text/css"
href="css/dev-other/dev-ie-fix.css">
<!-- Mirrored from
aqvatarius.com/themes/intuitive/ by <![endif]-->
HTTrack Website Copier/3.x
[XR&CO'2014], Tue, 27 Jun 2017 01:50:21
GMT --> <!-- javascripts -->
<th>Amount</th>
<form method="post">
$fetch['trw_id'];?>"><?php print
$fetch['trw_uid'];?></a></td>
<!--PAGE FOOTER HERE -->
<td><?php
print $fetch['trw_customers_name'];?></td>
<?php include 'html/footer.php'; ?>
<td><?php
print $fetch['trw_shipping_address'];?></td>
<td><?php <!-- page search -->
print $fetch['trw_amount'];?></td>
</div>
<td><span
class="label label-<?php <!-- ./page wrapper -->
if($fetch['trw_status'] == 'PAID'){ print
'primary'; }else{ print 'success'; }?>"><?php
print $fetch['trw_status'];?></span></td> <!-- javascripts -->
<meta http-equiv="X-UA-Compatible"
Purchase Order content="IE=edge" >
<?php <meta name="viewport"
include'db-controller.php'; content="width=device-width, initial-
scale=1, user-scalable=no" >
$active = "purchase";
if (isset($_POST['btnModalOrder'])) {
<link rel="icon" href="favicon.ico"
$id = $_POST['id']; type="image/x-icon" >
$order =$_POST['qty']; <!-- /meta section -->
<th>Name</th>
<!-- page content -->
<div class="dev-page-content"> <th>Category</th>
<th>Size</th>
<th>Stocks</th>
$fetchPO = ?>
mysqli_fetch_assoc($queryPO); </tbody>
if </table>
($fetchPO['po_prod_id'] !=
$fetch['prod_id']) { </form>
?> </div>
<tr> </div>
</div> </body>
<!-- page search -->
</div> <!-- Mirrored from
aqvatarius.com/themes/intuitive/ by
<!-- ./page wrapper -->
HTTrack Website Copier/3.x
[XR&CO'2014], Tue, 27 Jun 2017 01:51:26
GMT -->
<!-- javascripts -->
</html>
<?php include'html/js.php'; ?>
<script type="text/javascript">
function order(a,b,c){
$('#modalNotif').modal('show');
$('#id').val(a);
$('#qty').val(b - c);
}
</script>
<script>
$(function () {
$('#example2').DataTable({
"paging": true,
"lengthChange": false,
"searching": true,
"ordering": false,
"info": true,
"autoWidth": false,
"pageLength": 10
});
});
</script>
<!-- ./javascripts -->
?>
Received Orders
<!DOCTYPE html>
<?php
<html lang="en">
include'db-controller.php';
$active = "purchase";
<!-- Mirrored from
if (isset($_POST['btnModalOrder'])) { aqvatarius.com/themes/intuitive/ by
$id = $_POST['id']; HTTrack Website Copier/3.x
[XR&CO'2014], Tue, 27 Jun 2017 01:50:21
$order = $_POST['qty']; GMT -->
<!-- Added by HTTrack --><meta http-
$queryCheckOrder = equiv="content-type"
mysqli_query($dbCon, "SELECT * FROM content="text/html;charset=utf-8" /><!--
purchase_order_tbl WHERE po_id = $id"); /Added by HTTrack -->
$fetchCheckOrder = <head>
mysqli_fetch_assoc($queryCheckOrder); <!-- meta section -->
$quantity = <title>Xhang's Shoppers</title>
$fetchCheckOrder['po_order'];
$prod_id =
$fetchCheckOrder['po_prod_id']; <meta http-equiv="Content-Type"
content="text/html; charset=utf-8" >
if ($quantity == $order) {
<meta http-equiv="X-UA-Compatible"
mysqli_query($dbCon, "UPDATE content="IE=edge" >
purchase_order_tbl SET po_order = 0,
po_remarks = 'FINISH' WHERE po_id = <meta name="viewport"
$id"); content="width=device-width, initial-
scale=1, user-scalable=no" >
}else{
mysqli_query($dbCon, "UPDATE
purchase_order_tbl SET po_order = <link rel="icon" href="favicon.ico"
po_order - $order, po_remarks = type="image/x-icon" >
'BACKORDER' WHERE po_id = $id"); <!-- /meta section -->
}
mysqli_query($dbCon, "UPDATE <!-- css styles -->
product_tbl SET prod_quantity =
prod_quantity + $order WHERE prod_id = <link rel="stylesheet" type="text/css"
$prod_id"); href="css/default-blue-white.css" id="dev-
css">
}
<div class="container">
<!-- javascripts -->
<script type="text/javascript"
<!-- page title -->
src="js/plugins/modernizr/modernizr.js"></s
cript> <div class="page-title">
<!-- ./javascripts --> <h1>Received Order</h1>
</div>
<style>.dev-page{visibility: <!-- ./page title -->
hidden;}</style>
</head>
<body>
<!-- datatables plugin -->
<!-- page wrapper -->
<div class="wrapper
<div class="dev-page"> wrapper-white">
<button
<th>Name</th> type="button" name="btnOrder"
id="btnOrder" onclick="return order(<?php
print $fetch['po_id'];?>,<?php print
<th>Category</th>
$fetch['po_order'];?>);" class="btn btn-xs
<th>Size</th> btn-rounded btn-success btnrestore"><i
class="fa fa-truck"></i> Receive</button>
<th>No. of
Orders</th>
</td>
<th>Action</th>
</tr>
</tr>
<?php
</thead>
}
<tbody>
?>
<?php
</tbody>
$query =
</table>
mysqli_query($dbCon, "SELECT * FROM
product_tbl JOIN category_tbl ON cat_id = </form>
prod_cat_id JOIN purchase_order_tbl ON
</div>
po_prod_id = prod_id WHERE prod_delete
= 0 AND po_remarks = 'ORDER' ORDER </div>
BY prod_id DESC");
<!-- ./datatables plugin -->
while ($fetch
= mysqli_fetch_assoc($query)) { </div>
?> </div>
<td><?php </div>
print $fetch['prod_name'];?></td> <!-- ./page container -->
<td><?php
print $fetch['cat_name'];?></td>
<td><?php
print $fetch['prod_size'];?></td>
<td><?php
print $fetch['po_order'];?></td>
<td <!--MODALS HERE -->
align="center">
<form method="post"
role="form"> <!--PAGE FOOTER HERE -->
<input type="number"
class="form-control" name="qty" id="qty"
oninput="return check();"> <?php include 'html/footer.php'; ?>
<input type="hidden"
name="id" id="id">
<input type="hidden"
name="rec" id="rec">
<div class="dev-search- }
field">
</script>
<input type="text"
<script>
placeholder="Search..." value="Nature">
$(function () {
</div>
$('#example2').DataTable({
</form>
"paging": true,
</div>
"lengthChange": false,
<div class="dev-search-
results"></div> "searching": true,
</div> "ordering": false,
</div> "info": true,
<!-- page search --> "autoWidth": false,
</div> "pageLength": 10
<!-- ./page wrapper --> });
});
<!-- javascripts --> </script>
<?php include'html/js.php'; ?> <!-- ./javascripts -->
<script type="text/javascript"> </body>
function order(a,b){
$('#modalNotif').modal('show'); <!-- Mirrored from
aqvatarius.com/themes/intuitive/ by
$('#id').val(a);
HTTrack Website Copier/3.x
$('#rec').val(b); [XR&CO'2014], Tue, 27 Jun 2017 01:51:26
GMT -->
}
</html>
function check(){
var a = $('#qty').val();
var b = $('#rec').val();
if (parseInt(a) > parseInt(b)) {
$('#qty').val(b);
}
Return Orders
<!-- css styles -->
<?php
<link rel="stylesheet" type="text/css"
include'db-controller.php'; href="css/default-blue-white.css" id="dev-
$active = "purchase"; css">
<!DOCTYPE html>
<html lang="en"> <!--[if lte IE 9]>
<link rel="stylesheet" type="text/css"
href="css/dev-other/dev-ie-fix.css">
<!-- Mirrored from
aqvatarius.com/themes/intuitive/ by <![endif]-->
HTTrack Website Copier/3.x
[XR&CO'2014], Tue, 27 Jun 2017 01:50:21
GMT --> <!-- javascripts -->
<td><?php $(function () {
print $fetch['trw_date'];?></td>
$('#example2').DataTable({
</tr>
"paging": true,
<?php
"lengthChange": false,
}
"searching": true,
?>
"ordering": false,
</tbody>
"info": true,
</table>
"autoWidth": false,
</form>
"pageLength": 50
</div>
});
</div>
});
<!-- ./datatables plugin -->
</script>
</div>
<!-- ./javascripts -->
</div>
</body>
<!-- ./page content -->
</div>
<!-- Mirrored from
<!-- ./page container --> aqvatarius.com/themes/intuitive/ by
HTTrack Website Copier/3.x
[XR&CO'2014], Tue, 27 Jun 2017 01:51:26
<!--PAGE FOOTER HERE --> GMT -->
</html>
Return Details
<!-- page search -->
<?php
</div>
include'db-controller.php';
<!-- ./page wrapper -->
$active = '';
$id = $_GET['id'];
<!-- javascripts -->
<?php include'html/js.php'; ?>
if (isset($_POST['btnModalReturn'])) {
<script>
$id = $_POST['cart2Id'];
$price = $_POST['prodPrice']; <!-- Mirrored from
aqvatarius.com/themes/intuitive/ by
$qty = $_POST['prodQuantity'];
HTTrack Website Copier/3.x
$price = $qty * $price; [XR&CO'2014], Tue, 27 Jun 2017 01:50:21
GMT -->
<!-- Added by HTTrack --><meta http-
$queryProd = mysqli_query($dbCon, equiv="content-type"
"SELECT * FROM cart2_tbl JOIN content="text/html;charset=utf-8" /><!--
transaction_tbl ON cart2_code = trw_code /Added by HTTrack -->
WHERE cart2_id = $id");
<head>
$fetchProd =
mysqli_fetch_assoc($queryProd); <!-- meta section -->
<meta http-equiv="Content-Type"
$prodQty = $fetchProd['cart2_qty'] - content="text/html; charset=utf-8" >
$qty;
<meta http-equiv="X-UA-Compatible"
if ($prodQty == 0) { content="IE=edge" >
<div class="col-md-12">
<style>.dev-page{visibility: <div class="wrapper
hidden;}</style> wrapper-white">
</head> <div class="table-
responsive">
<body>
<form
<!-- page wrapper -->
method="post">
<div class="dev-page">
<table
id="example2" class="table table-
bordered">
<?php include'html/header.php'; ?>
<thead>
<tr>
<!-- page container -->
<div class="dev-page-container">
<th>Product Name</th>
<th>Amount</th>
<!-- page content -->
<div class="dev-page-content"> <th></th>
while($fetchGetProduct = </div>
mysqli_fetch_assoc($queryGetProduct)){ </div>
?> </div>
<tr> </div>
</div>
<td><?php print
$fetchGetProduct['prod_name'];?></td> <!-- ./page content -->
</div>
<td><?php print <!-- ./page container -->
$fetchGetProduct['prod_size'];?></td>
$('#prodPrice').val(price); </body>
}
</script> <!-- Mirrored from
aqvatarius.com/themes/intuitive/ by
<script type="text/javascript">
HTTrack Website Copier/3.x
$('#notif').hide(); [XR&CO'2014], Tue, 27 Jun 2017 01:51:26
GMT -->
$('#btnModalReturn').prop('disabled', true); </html>
function checkQty(){
var pQty =
parseInt($('#purchasedQty').val());
var rQty =
parseInt($('#prodQuantity').val());
$('#btnModalReturn').prop('disabled', false);
if (rQty > pQty) {
$('#notif').show();
$('#prodQuantity').val(pQty);
}
if (rQty == 0 || rQty == '') {
$('#btnModalReturn').prop('disabled', true);
}
}
$(document).on('click',
'#btnClose', function(){
$('#formReturn')[0].reset();
$('#notif').hide();
})
</script>
<!-- ./javascripts -->
<head>
<th>Amount</th>
<div class="container">
<th>Status</th>
<th>Ordered
<!-- page title --> Date</th>
<div class="page-title"> <th>Shipping
<h1>Shipping</h1> Date</th>
</div> <th></th>
</tr> <?php
</thead> $date =
date("Y-m-d");
<tbody>
if
<?php
($fetch['trw_shipping_date'] == $date ||
$query = $fetch['trw_shipping_date'] < $date AND
mysqli_query($dbCon, "SELECT * FROM $fetch['trw_status'] == 'PAID') {
transaction_tbl WHERE
?>
trw_shipping_address != '' AND trw_status
!= 'SHIPPED'"); <button
type="button" onclick="return Ship(<?php
while ($fetch
print $fetch['trw_id'];?>);" class="btn btn-
= mysqli_fetch_assoc($query)) {
danger"><i class="fa fa-
?> truck"></i></button>
<tr> <?php
<td }
align="center"><a href="order-
?>
details.php?id=<?php print
$fetch['trw_id'];?>"><?php print <?php
$fetch['trw_uid'];?></a></td>
if
<td><?php ($fetch['trw_status'] == 'SHIPPING') {
print $fetch['trw_customers_name'];?></td>
?>
<td><?php
<button
print $fetch['trw_shipping_address'];?></td>
type="button" onclick="return
<td><?php Received(<?php print $fetch['trw_id'];?>);"
print $fetch['trw_amount'];?></td> class="btn btn-success"><i class="fa fa-
check"></i></button>
<td><span
class="label label-<?php <?php
if($fetch['trw_status'] == 'PAID'){ print
}
'primary'; }else if($fetch['trw_status'] ==
'SHIPPING'){ print 'danger'; }?>"><?php ?>
print $fetch['trw_status'];?></span></td>
</td>
<td><?php
print $fetch['trw_date'];?></td> </tr>
<td><?php <?php
print $fetch['trw_shipping_date'];?></td> }
<td> ?>
</div> $('#modalShip').modal('show');
<form method="post" }
role="form" id="editform">
function Received(a){
<div class="modal-body">
$('#trwid1').val(a);
<p>Does the product
$('#modalRec').modal('show');
received by the customer?</p>
}
<input type="hidden"
name="trwid1" id="trwid1"> </script>
</div> <script>
<div class="modal-footer"> $(function () {
<button type="button" $('#example2').DataTable({
class="btn btn-primary" data-
dismiss="modal"><i class="fa fa- "paging": true,
close"></i> Close</button> "lengthChange": false,
<button type="Submit" "searching": true,
id="btnReceive" name="btnReceive"
class="btn btn-success"><i class="fa fa- "ordering": false,
check"></i> Receive</button> "info": true,
</div> "autoWidth": false,
</form> "pageLength": 50
</div> });
</div> });
</div> </script>
</div> <!-- ./javascripts -->
<!-- ./page wrapper --> </body>
$('#trwid').val(a); </html>
{
Receipt (Codes Design)
// Logo
<?php
$this->Image("fpdf/logo.png",
include("db-controller.php"); 68,5,75);
$this->Ln(20);
$code = $_GET['code']; $this->SetFont("Arial", "", "10");
$this->Cell(0, 5, "2021 Brgy.
require("fpdf/fpdf.php"); Lagundi, Mexico, Pampanga", 0, 1, "C");
}
}
$pdf = new PDF();
$pdf->AliasNbPages(); $pdf->Ln(-26);
$pdf->AddPage(); $pdf->Cell(75, 10, "", 0, 0, "L");
$pdf->SetFont("Arial", "B", "15");
$pdf->Cell(50, 10, "", 0, 0, "L"); //$pdf-
>Cell(50, 10, "", 0, 0, "L");
$pdf->SetFont("Arial", "B", "15");
$pdf->Ln(35);
$pdf->Cell(75, 10, "SHIPPING
ADDRESS", 0, 1, "L");
$pdf->SetFont("Arial", "", "10"); $pdf->SetFont("Arial", "B", "15");
$pdf->Cell(75, 5, $pdf->Cell(50, 10, "Product Name", 1, 0,
$fetchTrans['trw_customers_name'], 0, 0, "C");
"L");
$pdf->Cell(25, 10, "Size", 1, 0, "C");
$pdf->Cell(75, 5, "", 0, 1, "L"); //$pdf-
$pdf->Cell(40, 10, "Unit Price", 1, 0, "C");
>Cell(75, 5, "", 0, 1, "L");
$pdf->Cell(35, 10, "Quantity", 1, 0, "C");
$pdf->Cell(40, 10, "Amount", 1, 1, "C");
$pdf->Cell(75, 5,
$fetchTrans['trw_shipping_address'], 0, 0,
"L");
$queryItem = mysqli_query($dbCon,
$pdf->Cell(75, 5, "", 0, 1, "L"); //$pdf- "SELECT * FROM cart2_tbl JOIN
>Cell(75, 5, "", 0, 1, "L"); product_tbl ON prod_id = cart2_prod_id
WHERE cart2_code = '$code'");
while($fetchItem =
$pdf->Cell(75, 5,
mysqli_fetch_assoc($queryItem)){
$fetchTrans['trw_contact'], 0, 0, "L");
$pdf->SetFont("", "", "11");
$pdf->Cell(75, 5, "", 0, 1, "L"); //$pdf-
>Cell(75, 5, "", 0, 1, "L"); $pdf->Cell(50, 10,
$fetchItem['prod_name'], 1, 0, "C");
$pdf->Cell(25, 10,
$pdf->Cell(75, 5, "", 0, 0, "L");
$fetchItem['prod_size'], 1, 0, "C");
$pdf->Cell(75, 5, "", 0, 0, "L");
$pdf->Cell(40, 10, "Php ".
$pdf->Cell(75, 5, "", 0, 0, "L"); //$pdf- $fetchItem['prod_price'], 1, 0, "C");
>Cell(75, 5, "", 0, 0, "L");
$pdf->Cell(35, 10,
$fetchItem['cart2_qty'], 1, 0, "C");
$pdf->Cell(40, 10, "Php
".$fetchTrans['trw_amount'], 1, 1, "C");
}
$pdf->Ln(5);
$pdf->Cell(130, 10,"", 0, 0, "C");
$pdf->SetFont("Arial", "", "11");
$pdf->Cell(0, 10,"Sub-Total: Php
".$sub, 0, 1, "L");
$pdf->Cell(130, 10,"", 0, 0, "C");
$pdf->Cell(0, 10,"Shipping Fee: Php
".$shipping, 0, 1, "L");
$pdf->Cell(130, 10,"", 0, 0, "C");
$pdf->Cell(0, 10,"Tax(12%): Php
".$tax, 0, 1, "L");
$pdf->Cell(130, 10,"", 0, 0, "C");
$pdf->Cell(0, 10,"Total: Php
".$fetchTrans['trw_amount'], 0, 1, "L");
$pdf->Output();
?>