0% found this document useful (0 votes)
8 views39 pages

E farm dbms

The document contains SQL commands to create two tables: 'items' and 'sales', which are used to manage inventory and sales transactions, respectively. The 'items' table includes various agricultural products with details such as name, brand, description, price, and stock. The 'sales' table records sales transactions, including user IDs, item IDs, quantities sold, total amounts, and timestamps for various stages of the sales process.

Uploaded by

devidaspawar4378
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views39 pages

E farm dbms

The document contains SQL commands to create two tables: 'items' and 'sales', which are used to manage inventory and sales transactions, respectively. The 'items' table includes various agricultural products with details such as name, brand, description, price, and stock. The 'sales' table records sales transactions, including user IDs, item IDs, quantities sold, total amounts, and timestamps for various stages of the sales process.

Uploaded by

devidaspawar4378
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 39

Prac cal no.

13

SQL FILE
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";

CREATE TABLE `items` (


`items_id` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`brand` varchar(255) NOT NULL,
`description` varchar(255) NOT NULL,
`types` varchar(255) NOT NULL,
`price` varchar(225) NOT NULL,
`stock` int(11) NOT NULL,
`rol` int(11) NOT NULL,
`img` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

INSERT INTO `items` (`items_id`, `name`, `brand`, `description`, `types`, `price`, `stock`, `rol`, `img`) VALUES
(1, 'DAP', 'go', 'All', 'FERTILIZER', '500', 7, 3, '1.PNG'),
(2, 'Eraser AP', 'MARTINS', 'Martins Eraser AP Herbicide 2.5gal', 'HERBICIDE', '10379', 5, 5, '3.PNG'),
(3, 'vermi compost', 'TrustBasket', 'Fertilizer Manure for Plants 5KG', 'FERTILIZER', '349', 24, 20, '2.PNG'),
(4, 'Hi Flow MX1', 'Havells', 'Havells Hi Flow MX1 Series 1HP Centrifugal Water Pump', 'MOTOR', '5950', 35, 30, '4.PNG'),
(5, 'HTP Motor', 'Generic', 'High Pressure HTP Motor 2.0HP Complete Set for car Washing and Agricultural Spraying', 'MOTOR', '17799', 39, 10,
'5.PNG'),
(6, 'Tractor Trolley', 'Vandana', 'Agriculture Tractor Trolley', 'WAGON', '50000', 15, 6, '6.PNG'),
(7, 'CROP Sprayer', 'PAD CORP by PADGILWAR CORPORATION', 'PAD CORP by PADGILWAR CORPORATION Double Bull Battery Operated
Sprayer 12VX14 Strong Tank 18 Liter', 'SPRAYER', '5299', 67, 15, '7.PNG'),
(11, 'Crop harvester', 'Bajaj', 'BAJAJ AGRICULTURE PORTABLE CROP HARVESTER 4SPN', 'HARVESTER', '9900', 15, 8, '8.PNG'),
(12, 'Combine harvester', 'Bruder', 'Bruder Claas Lexion 480 Combine Harvester', 'HARVESTER', '7649', 51, 12, '9.PNG'),
(13, 'Backhoe', 'Mahindra', 'Mahindra', 'EARTHMOVER', '240000', 5, 10, '10.PNG'),
(14, 'Mahindra 575 DI XP Plus', 'Mahindra Tractors', 'Mahindra 575 DI XP Plus 42HP', 'TRACTOR', '2500000', 1, 20, '11.PNG'),
(15, 'Mahindra Tractor', 'Mahindra', '275 TU DI SP Plus', 'TRACTOR', '250000', 7, 10, '12.PNG'),
(16, 'MF', 'Massey', 'Massey', 'TRACTOR', '350000', 2, 6, '13.PNG'),
(18, 'Acemain', 'Adama', 'Acephate 75 SP', 'INSECTICIDES', '735', 33, 5, '14.PNG'),
(19, 'Admire', 'Bayer', 'ADMIRE INSECTICIDE', 'INSECTICIDES', '748', 7, 15, '15.PNG'),
(20, 'Total plant care', 'plantic', 'Plantic Total Plant Care 3 in 1', 'INSECTICIDES', '99', 66, 22, '16.PNG'),
(21, 'Komugi', 'Komugi', 'PYRIPROXYFEN 10 EC', 'PESTICIDES', '60', 59, 10, '17.PNG'),
(34, 't', 't', 't', 'FERTILIZER', '10', 2, 100, 'Capture.PNG'),
(35, 'q', 'q', 'q', 'SPRAYER', '1', 10, 20, '1156566.jpg'),
(37, 'PVC pipe', 'Rajeswari', 'Long Lasting PVC Pipe', 'TOOLS', '1523', 10, 5, 'Capture5.PNG'),
(38, 'll', 'q', 'q', 'FERTILIZER', '1', 1, 1, '1156131.webp'),
(39, 'JP', 'JP', 'good', 'MOTOR', '1234', 5, 10, '1156131.webp');

CREATE TABLE `sales` (


`sales_id` int(11) NOT NULL,
`users_id` int(11) NOT NULL,
`items_id` int(11) NOT NULL,
`qty` int(11) NOT NULL,
`total` int(11) NOT NULL,
`date` datetime NOT NULL,
`review` longtext DEFAULT NULL,
`supplier` int(11) NOT NULL,
`status` int(11) NOT NULL,
`req_date` datetime NOT NULL,
`supplier_date` datetime NOT NULL,
`proc_date` datetime NOT NULL,
`delivery_date` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

INSERT INTO `sales` (`sales_id`, `users_id`, `items_id`, `qty`, `total`, `date`, `review`, `supplier`, `status`, `req_date`, `supplier_date`, `proc_date`,
`delivery_date`) VALUES
1
Prac cal no. 13

(1, 1, 1, 10, 3990, '2022-01-15 10:18:10', 'good', 1, 5, '2022-04-25 19:26:19', '2022-06-22 07:18:37', '2022-06-22 07:18:48', '2022-06-22 07:19:03'),
(4, 2, 2, 5, 51895, '2022-01-15 10:24:11', 'nice', 10, 2, '2022-04-24 15:40:53', '2022-04-24 15:53:03', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(5, 2, 5, 1, 17799, '2022-01-15 10:25:10', 'well suits', 1, 2, '2022-04-25 19:30:06', '2022-07-20 20:17:49', '0000-00-00 00:00:00', '0000-00-00
00:00:00'),
(6, 6, 6, 7, 350000, '2022-01-15 13:48:30', 'super', 2, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(9, 1, 2, 3, 31137, '2022-01-17 18:53:36', '', 1, 5, '2022-04-25 19:23:17', '2022-04-25 19:23:48', '2022-07-19 12:51:34', '2022-07-19 12:55:08'),
(10, 1, 10, 1, 5299, '2022-01-17 21:37:57', NULL, 10, 2, '2022-04-24 15:42:29', '2022-04-24 15:44:41', '0000-00-00 00:00:00', '0000-00-00
00:00:00'),
(12, 6, 16, 1, 350000, '2022-02-01 05:40:10', 'amazing', 0, 0, '0000-00-00 00:00:00', '2022-04-24 14:55:26', '0000-00-00 00:00:00', '0000-00-00
00:00:00'),
(13, 1, 7, 10, 52990, '2022-03-08 08:55:11', '', 1, 5, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '2022-06-20 09:20:49', '2022-06-20 13:01:37'),
(14, 1, 16, 2, 700000, '2022-03-10 15:34:33', 'goog', 1, 5, '0000-00-00 00:00:00', '2022-04-24 15:43:54', '2022-07-19 12:52:00', '2022-07-19
12:58:08'),
(15, 2, 19, 40, 29920, '2022-03-10 19:04:07', NULL, 1, 4, '2022-04-27 08:41:16', '2022-04-27 08:41:25', '2022-04-27 09:03:26', '2022-06-20
13:03:01'),
(16, 12, 12, 10, 76490, '2022-03-11 00:42:22', NULL, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00
00:00:00'),
(17, 14, 1, 2, 798, '2022-03-11 09:32:00', 'good', 12, 2, '0000-00-00 00:00:00', '2022-04-22 17:05:48', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(18, 15, 16, 3, 1050000, '2022-03-25 11:22:05', 'excellent', 11, 2, '0000-00-00 00:00:00', '2022-04-24 15:05:12', '0000-00-00 00:00:00', '0000-00-00
00:00:00'),
(19, 1, 2, 1, 10379, '2022-04-05 23:00:20', NULL, 1, 5, '2022-04-25 19:32:20', '2022-06-20 08:52:57', '2022-06-20 08:54:47', '2022-07-19 13:00:11'),
(20, 16, 3, 2, 698, '2022-04-22 14:57:36', NULL, 14, 2, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(21, 16, 13, 1, 240000, '2022-04-22 16:59:48', NULL, 14, 5, '0000-00-00 00:00:00', '2022-06-20 13:11:33', '2022-06-20 13:12:12', '2022-06-20
13:20:08'),
(22, 17, 6, 1, 50000, '2022-06-21 22:08:03', NULL, 1, 3, '2022-06-27 15:05:52', '2022-06-28 11:44:55', '2022-07-19 12:52:46', '0000-00-00
00:00:00'),
(23, 1, 16, 5, 1750000, '2022-06-28 11:47:17', NULL, 10, 5, '0000-00-00 00:00:00', '2022-06-28 11:48:29', '2022-06-28 11:52:11', '2022-06-28
11:53:09'),
(24, 1, 18, 1, 735, '2022-07-19 12:24:29', NULL, 1, 3, '2022-07-19 12:30:22', '2022-07-20 18:53:20', '2022-07-20 20:53:21', '0000-00-00 00:00:00'),
(25, 1, 4, 1, 5950, '2022-07-19 12:26:12', 'amazing', 1, 2, '2022-07-19 12:45:18', '2022-07-20 18:52:23', '0000-00-00 00:00:00', '0000-00-00
00:00:00'),
(26, 1, 18, 1, 735, '2022-07-20 20:47:15', NULL, 1, 1, '2022-07-20 21:00:03', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(27, 1, 12, 1, 7649, '2022-07-20 21:00:41', NULL, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(28, 1, 15, 2, 500000, '2022-07-23 09:55:38', NULL, 1, 5, '2022-07-23 09:57:06', '2022-07-23 09:57:25', '2022-07-23 09:57:41', '2022-07-23
09:57:56'),
(29, 1, 20, 1, 99, '2022-07-25 03:22:37', NULL, 10, 2, '0000-00-00 00:00:00', '2022-07-25 08:37:05', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(30, 1, 1, 2, 798, '2022-07-25 12:53:45', 'amazing', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(31, 18, 1, 2, 998, '2022-08-02 09:19:42', 'I AM ARTIN. SUPER', 1, 5, '2022-08-02 09:22:31', '2022-08-02 09:23:08', '2022-08-02 09:23:30', '2022-
08-02 09:24:36'),
(32, 1, 14, 2, 5000000, '2022-11-11 11:35:29', 'good', 1, 5, '0000-00-00 00:00:00', '2022-11-11 11:36:31', '2022-11-11 11:37:55', '2022-11-11
11:38:52'),
(33, 1, 1, 1, 500, '2024-02-28 19:04:07', NULL, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00');

CREATE TABLE `supplier` (


`supplier_id` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`aadhar` varchar(255) NOT NULL,
`address` varchar(255) NOT NULL,
`mobile` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
`status` int(11) NOT NULL,
`location` varchar(255) NOT NULL,
`city` varchar(255) NOT NULL,
`district` varchar(255) NOT NULL,
`state` varchar(255) NOT NULL,
`country` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

INSERT INTO `supplier` (`supplier_id`, `name`, `email`, `aadhar`, `address`, `mobile`, `password`, `status`, `location`, `city`, `district`, `state`,
`country`) VALUES
(1, 'Albert Sebastian', '[email protected]', '820370903255', 'House No 195', '8590956627', 'zxcvbnm', 1, 'KERALA', 'Thopramkudy',
'Idukki', 'KERALA', 'India'),
2
Prac cal no. 13

(2, 'Nikhil Sebastain', '[email protected]', '789678967896', 'MC road', '8989878564', '123456', 1, 'TAMIL NADU', 'town arch', 'Panaji', 'GOA',
'India'),
(4, 'Abhishek', '[email protected]', '852585258525', 'Palayam', '8569859658', '123456', 1, 'DELHI', 'shiva lenka', 'Ahmedabad', 'GUJARAT',
'India'),
(5, 'qw', 'qq@w', '111111111111', 'Choodaserry', '1111111111', '111111111111', 2, 'GOA', 'gandhi nagar', 'Gangtok', 'SIKKIM', 'India'),
(8, 'Ram Shankar', '[email protected]', '789654125874', 'qwerty', '8745962134', '123456', 0, 'MADHYA PRADESH', 'xyz city', 'Bhopal', 'MADHYA
PRADESH', 'India'),
(9, 'Sam S', '[email protected]', '734629569348', '9 House left street\r\n', '5497084376', '12334455', 1, 'GUJARAT', 'kudalur', 'Amaravathi', 'ANDHRA
PRADESH', 'India'),
(10, 'Alb Seb', '[email protected]', '945678545522', 'qwerty', '9495602791', '987654321', 1, 'KERALA', 'AC Town', 'Ahmedabad', 'GUJARAT', 'India'),
(12, 'krish ram', '[email protected]', '111111111111', '1', '8888888888', '456456', 0, 'ANDHRA PRADESH', 'kk', 'd', 'ASSAM', 'India'),
(13, 'd', 'd@d', '222222222222', '111111111\r\n', '2222222222', 'dddddd', 1, 'BIHAR', 'q', 'q', 'BIHAR', 'India'),
(14, 'f', 'f@f', '222222222222', '111\r\n', '2222222222', 'ffffff', 3, 'BIHAR', 'f', 'f', 'BIHAR', 'India'),
(15, 'q', 'qq@q', '111111111111', 'qq\r\n', '1111111111', 'qqqqqqq', 1, 'ANDHRA PRADESH', 'q', 'q', 'HIMACHAL PRADESH', 'India'),
(16, 'man man', 'man@man', '985674589655', 'Thopramkudy', '5909566277', 'ogougiouvuii', 0, 'ANDHRA PRADESH', 'Idukki', 'q', 'KERALA',
'India');

CREATE TABLE `users` (


`users_id` int(11) NOT NULL,
`firstname` varchar(255) NOT NULL,
`lastname` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`mobile` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
`adr` varchar(255) NOT NULL,
`country` varchar(100) NOT NULL,
`state` varchar(100) NOT NULL,
`district` varchar(250) NOT NULL,
`city` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

INSERT INTO `users` (`users_id`, `firstname`, `lastname`, `email`, `mobile`, `password`, `adr`, `country`, `state`, `district`, `city`) VALUES
(1, 'Albert', 'Sebastian', '[email protected]', '8590956627', 'zxcvbnm', 'Kuttikattu House\r\n685604\r\nThopramkudy', 'INDIA',
'KERALA', 'Idukki', 'Idukki'),
(2, 'Alex', 'Joseph', '[email protected]', '9999999999', 'qwerty', 'paris 65 house lass city', 'INDIA', 'KERALA', 'Durg', 'Ahiwara'),
(6, 'Alan', 'Thomas', '[email protected]', '7777777777', 'asdfghjkl', 'Idukki, house 67 southern city', 'INDIA', 'TAMIL NADU', 'Dhanbad', 'Alaghiha'),
(8, 'ram', 'raj', '[email protected]', '7896325677', '123456', 'abcd street north road Kottayam Kerala', 'INDIA', 'ODISHA', 'Jajapur', 'Anjira'),
(10, 'edd', 'joo', 'edd@edd', '9879879879', 'eddedd', 'Qwerty\r\n', 'INDIA', 'MANIPUR', 'Imphal', 'Andro'),
(11, 'Edwin', 'Johnson', 'qwerrt@6777', '7777777777', 'qweasd', '', '', '', '', ''),
(13, 'Kir', 'Lal', '[email protected]', '9998989888', '987456', '', '', '', '', ''),
(14, 'Alberttt', 'Sebb', '[email protected]', '1111111111', 'qwerty', 'kuttikananm', 'INDIA', 'ANDHRA PRADESH', 'Visakhapatnam',
'Visakhapatnam'),
(15, 'xyz', 'xyz', '[email protected]', '8590956627', 'qwerty', 'asdfghjkl', 'INDIA', 'ANDHRA PRADESH', 'Gomati', 'Udaipur'),
(17, 'Albin', 'Chacko', '[email protected]', '8597453258', 'qazwsx', 'qazwsx', 'India', 'KERALA', 'p', 'Idukki'),
(18, 'Artin', 'Joseph', '[email protected]', '9999999999', '123456', 'qwerty', 'India', 'KERALA', 'Idukki', 'QWERTY');

CREATE TABLE `vendor` (


`vendorid` int(11) NOT NULL,
`fullname` varchar(255) NOT NULL,
`companyname` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`address` varchar(255) NOT NULL,
`mobile` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
`status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

INSERT INTO `vendor` (`vendorid`, `fullname`, `companyname`, `email`, `address`, `mobile`, `password`, `status`) VALUES
(1, 'Akhil Joseph', 'ABC Comapny', '[email protected]', 'MCT Road palayam', '9856985698', 'qwertyuiop', 1),
(2, 'Albin', ' Reji Intrenational', '[email protected]', 'qwerty road', '8236541236', '123456', 1),
(3, 'Anto Antony', 'Max Infotech', '[email protected]', 'plarivattam', '7568954756', '456987', 1),
(6, 'Abhi Alex', 'Abhi Exports', '[email protected]', 'qwerty', '6589745896', '125896357', 3),
(7, 'Alex Joseph', 'XYZ Manufactures', '[email protected]', 'rani', '8569741236', 'qazxswedc', 2),
3
Prac cal no. 13

(8, 'Raj S', 'qwerty Exports and Imports', '[email protected]', 'zxcvbnmkl', '7854123000', '789987', 2),
(10, 'Albert Sebastian', 'ABC', '[email protected]', 'Kuttikattu House', '8590956627', 'zxcvbnm', 1),
(12, 'q', 'q', 'q@w', 'w', '5909566277', 'wwwwwwwwwwwww', 1),
(13, 'irin', 'IRIN Golden Sail', '[email protected]', 'Kuttikattu House', '8590956627', '1111111', 1);

CREATE TABLE `vendor_product` (


`vendor_prod_id` int(11) NOT NULL,
`vendorid` int(11) NOT NULL,
`items_id` int(11) NOT NULL,
`prize` int(11) NOT NULL,
`qty` int(11) NOT NULL,
`qty_need` int(11) NOT NULL,
`req_date` datetime NOT NULL,
`proc_date` datetime NOT NULL,
`delivery_date` datetime NOT NULL,
`status` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

INSERT INTO `vendor_product` (`vendor_prod_id`, `vendorid`, `items_id`, `prize`, `qty`, `qty_need`, `req_date`, `proc_date`, `delivery_date`,
`status`) VALUES
(1, 10, 2, 1500, 123, 23, '2022-06-22 19:23:30', '2022-07-21 13:07:42', '2022-07-21 18:08:17', 3),
(4, 10, 13, 1000000, 0, 0, '2022-06-22 19:24:13', '2022-07-20 08:34:28', '0000-00-00 00:00:00', 2),
(5, 10, 2, 1255, 5, 2, '2022-06-24 09:48:00', '2022-07-21 13:09:31', '0000-00-00 00:00:00', 1),
(6, 10, 2, 5000, 5, 2, '2022-06-28 11:59:45', '2022-07-21 16:03:13', '2022-07-21 18:08:37', 3),
(7, 10, 2, 1520, 25, 5, '2022-07-20 09:07:29', '2022-07-20 11:05:18', '0000-00-00 00:00:00', 1),
(12, 10, 14, 150000, 1, 0, '2022-07-21 11:53:56', '2022-07-21 23:59:00', '0000-00-00 00:00:00', 2),
(13, 10, 15, 150000, 3, 0, '2022-07-21 18:17:01', '2022-07-21 18:19:32', '0000-00-00 00:00:00', 2),
(14, 10, 34, 1225, 2, 1, '2022-07-21 19:04:05', '2022-07-21 22:54:43', '0000-00-00 00:00:00', 1),
(17, 0, 21, 0, 0, 0, '2022-07-21 22:53:53', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 10),
(18, 0, 2, 0, 0, 0, '2022-07-21 22:58:02', '2022-07-22 13:58:16', '0000-00-00 00:00:00', 9),
(19, 10, 2, 1000, 17, 15, '2022-07-21 23:03:57', '2022-07-21 23:49:14', '0000-00-00 00:00:00', 1),
(20, 10, 21, 1222, 1222, 10, '2022-07-21 23:18:56', '2022-07-25 12:59:35', '0000-00-00 00:00:00', 1),
(21, 1, 21, 159, 25, 1, '2022-07-21 23:22:18', '2022-07-21 23:48:56', '0000-00-00 00:00:00', 1),
(27, 0, 14, 0, 0, 0, '2022-07-21 23:35:44', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 10),
(28, 1, 14, 150000, 23, 1, '2022-07-21 23:36:04', '2022-07-21 23:50:57', '2022-07-21 23:52:59', 3),
(29, 1, 13, 150000, 4, 1, '2022-07-21 23:43:53', '2022-07-21 23:47:48', '0000-00-00 00:00:00', 1),
(30, 10, 39, 1200, 25, 20, '2022-08-02 09:29:52', '2022-08-02 09:30:40', '2022-08-02 09:34:04', 3),
(31, 0, 1, 0, 0, 0, '2022-08-02 09:30:09', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 10),
(32, 10, 2, 1111111, 11, 0, '2022-08-02 09:35:38', '2022-08-02 09:35:48', '0000-00-00 00:00:00', 2);

CREATE TABLE `wishlist` (


`wishlist_id` int(11) NOT NULL,
`items_id` int(11) NOT NULL,
`users_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

4
Prac cal no. 13

INDEX
<!DOCTYPE html>
<html>
<head>
<title>Welcome to E-FARM</title>
</head>
<body>
<style>
body{
background-image: url('css/image/img5.jpeg');
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
a.a2{
text-decoration: underline;
color: burlywood;
text-shadow: 1px 1px 2px black, 0 0 25px blue, 0 0 5px darkblue;
font-size: 75px;
}
a.a1{
text-decoration: none;
background-color:lavender;
color:blue;
font-size:20px;
padding: 20px 35px;
border-radius:12px;
border:2px solid turquoise;
margin:150px;
line-height:85px;
}
a.a1:hover {
background-color: darkgray;
padding: 25px 45px;
}
a.a2:hover {
background-color: linen;
padding: 25px 45px;
}
.topnav {
background-color: darkgreen;
overflow: hidden;
}

.topnav a {
float: left;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
}

.topnav a:hover {
background-color: #ddd;
color: black;
}

.topnav a.active {
background-color: #04AA6D;
color: white;
}

5
Prac cal no. 13

.topnav-right {
float: right;
}
.top {
color: indigo;
font-size: 25px;
}

input[type=text]
{
width: 25%;
padding: 12px 20px;
margin: 8px 0;
border: 1px solid #ccc;
border-radius: 5px;
box-sizing: border-box;
font-size: 18px;
}
input[type=submit]
{
width: 150px;
background-color: cornsilk;
color: darkblue;
padding: 14px 20px;
margin: 8px 0;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 20px;
}
</style>

<center><h1><a class="a2" href="index.php">E-FARM</a></h1></center>

<div class="top">
<!--Search Code-->
<form method="post" action="search.php">
<b>Hi, Shop With
Us!&emsp;&ensp;&emsp;&ensp;&emsp;&ensp;&emsp;&ensp;&emsp;&ensp;&emsp;&ensp;&emsp;&ensp;&emsp;&ensp;&emsp;&ensp;&emsp;&
ensp;&emsp;&ensp;&emsp;&ensp;&emsp;&ensp;&emsp;&ensp;&emsp;&ensp;&emsp;&ensp;&emsp;&ensp;
Search: </b><input type="text" name="search" placeholder="Search the Item here.">
<input type="submit" name="submit">
</form>
<!--Search End-->
</div>

<div class="topnav">
<a class="a3" href="index.php">Home</a>
<a class="a3" href="item.php">All items</a>

<div class="topnav-right">
<a class="a3" href="signup/signup.php">Sign Up</a>
<a class="a3" href="login/login.php">Login</a>
<a class="a3" href="admin/verify.php">Admin</a>
</div>
</div>
<table><center>
<tr><td><a class="a1" href="view.php?choice=FERTILIZER">FERTILIZER</a></td>
<td><a class="a1" href="view.php?choice=HERBICIDE">HERBICIDE&emsp;&ensp;</a></td>
<td><a class="a1" href="view.php?choice=INSECTICIDES">INSECTICIDES</a></td></tr>
<tr><td><a class="a1" href="view.php?choice=PESTICIDES">PESTICIDES</a></td>
<td><a class="a1" href="view.php?choice=SPICES">SPICES&emsp;&ensp;&ensp;&ensp;&ensp;&ensp;</a></td>
6
Prac cal no. 13

<td><a class="a1" href="view.php?choice=VEGETABLE">VEGETABLE&emsp;&ensp;</a></td></tr>


<tr><td><a class="a1" href="view.php?choice=FRUIT">FRUIT&emsp;&ensp;&ensp;&ensp;</a></td>
<td><a class="a1" href="view.php?choice=WAGON">WAGON&emsp;&ensp;&ensp;&ensp;&ensp;</a></td>
<td><a class="a1" href="view.php?choice=TOOLS">TOOLS&emsp;&ensp;&ensp;&ensp;&ensp;&ensp;</a></td></tr>
<tr><td><a class="a1" href="view.php?choice=MOTOR">MOTOR&emsp;&ensp;&ensp;</a></td>
<td><a class="a1" href="view.php?choice=EARTHMOVER">EARTHMOVER</a></td>
<td><a class="a1" href="view.php?choice=TRACTOR">TRACTOR&emsp;&ensp;&ensp;</a></td></tr>
<tr><td><a class="a1" href="view.php?choice=HARVESTER">HARVESTER</a></td>
<td><a class="a1" href="view.php?choice=SPRAYER">SPRAYER&emsp;&ensp;&ensp;&ensp;</a></td>
<td><a class="a1" href="view.php?choice=OTHER">OTHER&emsp;&ensp;&ensp;&ensp;&ensp;</a></td></tr>
</table></center>
</body>
</html>

INSERT INTO `wishlist` (`wishlist_id`, `items_id`, `users_id`) VALUES


(5, 2, 6),
(8, 4, 12),
(9, 11, 12),
(11, 12, 12),
(12, 1, 14),
(13, 1, 15),
(15, 0, 0),
(16, 1, 1),
(19, 1, 18),
(20, 14, 1);
ALTER TABLE `items`
ADD PRIMARY KEY (`items_id`);

ALTER TABLE `sales`


ADD PRIMARY KEY (`sales_id`);

ALTER TABLE `supplier`


ADD PRIMARY KEY (`supplier_id`);

TER TABLE `users`


ADD PRIMARY KEY (`users_id`);

TABLE `vendor`
ADD PRIMARY KEY (`vendorid`);

TABLE `vendor_product`
ADD PRIMARY KEY (`vendor_prod_id`);

TABLE `wishlist`
ADD PRIMARY KEY (`wishlist_id`);

ALTER TABLE `items`


MODIFY `items_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=40;

ALTER TABLE `sales`


MODIFY `sales_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=34;

ALTER TABLE `supplier`


MODIFY `supplier_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;

ALTER TABLE `vendor`


MODIFY `vendorid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;

TER TABLE `vendor_product`


MODIFY `vendor_prod_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=33;

ALTER TABLE `wishlist`


MODIFY `wishlist_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21;
7
Prac cal no. 13

COMMIT:
LOGIN
<!DOCTYPE html>
<html>
<head>
<title>Login | Efarm</title>
</head>
<body>
<style>
body{
background-image: url('../css/image/img4.jpg');
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
h1{
text-decoration: underline;
color: white;
text-shadow: 1px 1px 2px black, 0 0 25px blue, 0 0 5px darkblue;
font-size: 75px;
}
h2{
text-decoration: underline;
color: white;
text-shadow: 1px 1px 2px black, 0 0 25px indianred, 0 0 5px darkblue;
font-size: 35px;
}
a.a1{
text-decoration: none;
background-color:lavender;
font-size:20px;
padding: 10px 25px;
border-radius:12px;
border:2px solid turquoise;
margin:50px;
}
b{
font-size:20px;
color:darkred;
margin:25px;
}
td{
padding:5px;
}
p.error{
color:maroon;
font-size:35px;
}
a:hover {
background-color: darkgray;
padding: 15px 35px;
}
input[type=email], [type=password]
{
width: 100%;
padding: 12px 20px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
border-radius: 5px;
box-sizing: border-box;
font-size: 18px;

8
Prac cal no. 13

}
input[type=submit]
{
width: 150px;
background-color: cornsilk;
color: darkblue;
padding: 14px 20px;
margin: 8px 0;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 20px;
}
</style>
<center>
<h1>E-FARM</h1>
<h2>Login</h2>
<form action="login_connection.php" method="POST" enctype="multipart/form-data">

<table>
<tr><td><b>Email:</b></td>
<td><input type="email" name="email" required placeholder="Email" autofocus></td></tr>
<tr><td><b>Password:</td></b>
<td><input type="password" name="password" required placeholder="Password"><td></tr>
</table>
<br><input type="submit" value="Login">
<br><br><br>
<?php
session_start();
if(isset($_SESSION['tmp']))
{
echo '<br><p class="error">'.$_SESSION['tmp'].'</p>';
unset($_SESSION['tmp']);
}
?>
</center>
</body>
</html>
INDEX
<!DOCTYPE html>
<html>
<head>
<title>Forgot Password | User</title>
</head>
<body>
<style>
body{
background-image: url('../css/image/img2.jpg');
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
h1{
text-decoration: underline;
color: white;
text-shadow: 1px 1px 2px black, 0 0 25px blue, 0 0 5px darkblue;
font-size: 75px;
}
h2{
text-decoration: underline;
color: white;
text-shadow: 1px 1px 2px black, 0 0 25px indianred, 0 0 5px darkblue;

9
Prac cal no. 13

font-size: 35px;
}
a.a1{
text-decoration: none;
background-color:lavender;
font-size:20px;
padding: 10px 25px;
border-radius:12px;
border:2px solid turquoise;
margin:50px;
}
b{
font-size:20px;
color:darkred;
margin:25px;
}
td{
padding:5px;
}
p.error{
color:darkred;
font-size:35px;
}
p.msg{
color:darkred;
font-size:35px;
}
a:hover {
background-color: darkgray;
padding: 15px 35px;
}
input[type=text], [type=email]
{
width: 100%;
padding: 12px 20px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
border-radius: 5px;
box-sizing: border-box;
font-size: 20px;
}
input[type=submit]
{
width: 150px;
background-color: cornsilk;
color: darkblue;
padding: 14px 20px;
margin: 8px 0;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 20px;
}
</style>
<center>
<h1>E-FARM</h1>
<h2>Forgot Password</h2>
<form action="reset_connection.php" method="POST" enctype="multipart/form-data">
<table>
<tr><td><b>Email:</b></td><td>
<input type="email" name="email" required autofocus autocomplete="off"></td></tr>
<tr><td><b>Mobile:</b></td><td>
10
Prac cal no. 13

<input type="text" name="mobile" required minlength="10" maxlength="10" required pattern="[0-9]+" autocomplete="off"></td></tr>


</table><br>
<input type="submit" value="Submit">
<br><br><br><br><br><br><br>
<?php
session_start();
if(isset($_SESSION['tmp1']))
{
echo '<br><p class="error">'.$_SESSION['tmp1'].'</p>';
unset($_SESSION['tmp1']);
}
?>
<br><br>
<a class="a1" href="login.php">Login</a>
<a class="a1" href="../signup/signup.php">Sign Up</a>
<a class="a1" href="../index.php">Home</a>
</center>
</form>
</body>
</html>
ITEM
<!DOCTYPE html>
<html>
<head>
<title>All Items</title>
</head>
<body>

<style>
a.a2{
text-decoration: underline;
color: burlywood;
text-shadow: 1px 1px 2px black, 0 0 25px blue, 0 0 5px darkblue;
font-size: 75px;
}
a.a2:hover {
background-color: linen;
padding: 25px 45px;
}
.topnav {
background-color: darkgreen;
overflow: hidden;
}
.topnav a {
float: left;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
}
.topnav a:hover {
background-color: #ddd;
color: black;
}
.topnav a.active {
background-color: #04AA6D;
color: white;
}

.topnav-right {
float: right;

11
Prac cal no. 13

}
.top {
color: indigo;
font-size: 25px;

input[type=text]{
width: 25%;
padding: 12px 20px;
margin: 8px 0;
border: 1px solid #ccc;
border-radius: 5px;
box-sizing: border-box;
font-size: 18px;
}
input[type=submit] {
width: 150px;
background-color: cornsilk;
color: darkblue;
padding: 14px 20px;
margin: 8px 0;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 20px;
}
table {
width: 100%;
text-align: center;
}
th{
color:dodgerblue;
font-size:28px;
}
td{
font-size:25px;
}
</style>
<center><h1><a class="a2" href="../index.php">E-FARM</a></h1></center>

<div class="top">
<!--Search Code-->
<form method="post" action="search.php">
<b>Search: </b><input type="text" name="search" placeholder="Search the Item here.">
<input type="submit" name="submit">
</form>
</div>

<div class="topnav">
<a class="a3" href="index.php">Home</a>
<a class="a3" href="item.php">All items</a>

<div class="topnav-right">
<a class="a3" href="signup/signup.php">Sign Up</a>
<a class="a3" href="login/login.php">Login</a>
<a class="a3" href="admin/verify.php">Admin</a>
</div>
</div>
<br><br>
<table align="center" border="1" bgcolor="LightGoldenRodYellow">
<tr>
<th>ITEM_ID</th>
<th>NAME</th>
<th>BRAND</th>
12
Prac cal no. 13

<th>DESCRIPTION</th>
<th>TYPES</th>
<th>PRICE</th>
<th>STOCK</th>
<th>IMAGE</th>
<th>VIEW</th>
</tr><tr></tr>
<?php
$host="localhost";
$dbusername = "root";
$dbpassword = "";
$dbname = "alb";

$conn = new mysqli($host, $dbusername, $dbpassword, $dbname);

if (mysqli_connect_error()) {
die('Connect error('. mysqli_connect_error().')'. mysqli_connect_error());
}
$sql = "SELECT * from items;";
$result=mysqli_query($conn, $sql);
$resultCheck = mysqli_num_rows($result);
if($resultCheck > 0){
while ($row = mysqli_fetch_assoc($result)) {
echo "<tr>";
echo "<td>".$row['items_id'] ."</td>";
echo "<td>".$row['name'] ."</td>";
echo "<td>".$row['brand'] ."</td>";
echo "<td>".$row['description'] ."</td>";
echo "<td>".$row['types'] ."</td>";
echo "<td>₹".$row['price'] ."</td>";
echo "<td>".$row['stock'] ."</td>";
$pathx = "admin/image/";
$file = $row["img"];
echo "<td>";
echo '<img src="'.$pathx.$file.'" height=100 width=100>';
echo "</td>";
echo "<td><a href=item_individual.php?items_id=".$row['items_id']. "><button>View</button></a></td></tr>";
$items_id=$row['items_id'];
echo "<tr></tr><tr></tr></tr>";
}
}
?>

SEARCH
<!DOCTYPE html>
<html>
<head>
<title>Search | Item</title>
</head>
<body>

<style>
body{
background-image: url('../css/image/img5.jpeg');
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
a.a2{
text-decoration: underline;
color: burlywood;
text-shadow: 1px 1px 2px black, 0 0 25px blue, 0 0 5px darkblue;

13
Prac cal no. 13

font-size: 75px;
}
a.a1{
text-decoration: none;
background-color:lavender;
color:blue;
font-size:20px;
padding: 20px 35px;
border-radius:12px;
border:2px solid turquoise;
margin:150px;
line-height:85px;
}
a.a1:hover {
background-color: darkgray;
padding: 25px 45px;
}
a.a2:hover {
background-color: linen;
padding: 25px 45px;
}
.topnav {
background-color: darkgreen;
overflow: hidden;
}
.topnav a {
float: left;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
}
.topnav a:hover {
background-color: #ddd;
color: black;
}

.topnav a.active {
background-color: #04AA6D;
color: white;
}

.topnav-right {
float: right;
}
.top {
color: indigo;
font-size: 25px;
}
.a4{
width: 25%;
padding: 12px 20px;
margin: 8px 0;
border: 1px solid #ccc;
border-radius: 5px;
box-sizing: border-box;
font-size: 18px;
}
.a5 {
width: 150px;
background-color: cornsilk;
color: darkblue;
14
Prac cal no. 13

padding: 14px 20px;


margin: 8px 0;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 20px;
}
h3{
color:red;
font-size:50px;
text-align:center;
}
table {
width: 100%;
text-align: center;
}
th{
color:dodgerblue;
font-size:28px;
}
td{
font-size:25px;
}
</style>
<center><h1><a class="a2" href="../index.php">E-FARM</a></h1></center>
<div class="top">
<form method="post" action="search.php">
<b>Search: </b><input type="text" class="a4" name="search" placeholder="Search the Item here.">
<input type="submit" class="a5" name="submit">
</form>
</div>
<div class="topnav">
<a class="a3" href="index.php">Home</a>
<a class="a3" href="item.php">All items</a
<div class="topnav-right">
<a class="a3" href="signup/signup.php">Sign Up</a>
<a class="a3" href="login/login.php">Login</a>
<a class="a3" href="admin/verify.php">Admin</a>
</div>
</div>
</body>
</html>
<?php
$con = new PDO("mysql:host=localhost;dbname=alb",'root','');
if (isset($_POST["submit"])) {
$str = $_POST["search"];
$sth = $con->prepare("SELECT * FROM `items` WHERE name like '%$str%'");
$sth->setFetchMode(PDO:: FETCH_OBJ);
$sth -> execute();
if($row = $sth->fetch())
{
?>
<br><br>
<table align="center" border="1" bgcolor="LightGoldenRodYellow">

<tr><th>ITEM ID</th><td><?php echo $row->items_id; $items_id=$row->items_id;?></td></tr>


<tr><th>NAME</th><td><?php echo $row->name; ?></td></tr>
<tr><th>BRAND</th><td><?php echo $row->brand; ?></td></tr>
<tr><th>DESCRIPTION</th><td><?php echo $row->description;?></td></tr>
<tr><th>TYPES</th><td><?php echo $row->types;?></td></tr>
<tr><th>PRICE</th> <td><?php echo $row->price;?></td></tr>
<tr><th>STOCK</th> <td><?php echo $row->stock;?></td></tr>
<tr><th>IMAGE</th> <td><?php $pathx = "admin/image/";
15
Prac cal no. 13

$file = $row->img;
echo '<img src="'.$pathx.$file.'" height=100 width=100>';?></td>
</tr>
<?php
}
else{
die("<h3>Product: Not Found!</h3>");
}
}
?>
<?php
$host="localhost";
$dbusername = "root";
$dbpassword = "";
$dbname = "alb";
$conn = new mysqli($host, $dbusername, $dbpassword, $dbname);
$sql1 = "SELECT * from sales where items_id='$items_id'";
$result1=mysqli_query($conn, $sql1);
$resultCheck1 = mysqli_num_rows($result1);
if($resultCheck1 > 0){
while ($row = mysqli_fetch_assoc($result1)) {
echo "<tr><th>REVIEW </th><td>".$row['review'] ." ";
}
echo "</td></tr>";
}
?>
</table>
</body>
</html>
VIEW
<!DOCTYPE html>
<html>
<head>
<title><?php echo $_GET['choice'].' | Items' ?></title>
</head>
<body>
<style>
body{
background-image: url('../css/image/img5.jpeg');
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
a.a2{
text-decoration: underline;
color: burlywood;
text-shadow: 1px 1px 2px black, 0 0 25px blue, 0 0 5px darkblue;
font-size: 75px;
}
a.a1{
text-decoration: none;
background-color:lavender;
color:blue;
font-size:20px;
padding: 20px 35px;
border-radius:12px;
border:2px solid turquoise;
margin:150px;
line-height:85px;
}
a.a1:hover {
background-color: darkgray;

16
Prac cal no. 13

padding: 25px 45px;


}
a.a2:hover {
background-color: linen;
padding: 25px 45px;
}
.topnav {
background-color: darkgreen;
overflow: hidden;
}

.topnav a {
float: left;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
}

.topnav a:hover {
background-color: #ddd;
color: black;
}

.topnav a.active {
background-color: #04AA6D;
color: white;
}

.topnav-right {
float: right;
}
.top {
color: indigo;
font-size: 25px;
}
.a4{
width: 25%;
padding: 12px 20px;
margin: 8px 0;
border: 1px solid #ccc;
border-radius: 5px;
box-sizing: border-box;
font-size: 18px;
}
.a5 {
width: 150px;
background-color: cornsilk;
color: darkblue;
padding: 14px 20px;
margin: 8px 0;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 20px;
}
a.a1{
text-decoration: none;
background-color:lavender;
color:blue;
font-size:20px;
padding: 20px 35px;
17
Prac cal no. 13

border-radius:12px;
border:2px solid turquoise;
margin:150px;
line-height:85px;
}
a.a1:hover {
background-color: darkgray;
padding: 25px 45px;
}
table {
width: 100%;
text-align: center;
}
th{
color:dodgerblue;
font-size:28px;
}
td{
font-size:25px;
}
</style>
<center><h1><a class="a2" href="../index.php">E-FARM</a></h1></center>
</div>

<div class="topnav">
<a class="a3" href="index.php">Home</a>
<a clas<!--Search End-->s="a3" href="item.php">All items</a>

<div class="topnav-right">
<a class="a3" href="signup/signup.php">Sign Up</a>
<a class="a3" href="login/login.php">Login</a>
<a class="a3" href="admin/verify.php">Admin</a>
</div>
</div>
<br>

<table align="center" border="1" bgcolor="LightGoldenRodYellow">


<?php
if(($_SERVER["REQUEST_METHOD"] == "GET"))
{
$host="localhost";
$dbusername = "root";
$dbpassword = "";
$dbname = "alb";
$conn = new mysqli($host, $dbusername, $dbpassword, $dbname);
if (mysqli_connect_error()) {
die('Connect error('. mysqli_connect_error().')'. mysqli_connect_error());
}
$txt=$_GET['choice'];
$sql = "SELECT * from items where types='$txt'";
$result=mysqli_query($conn, $sql);
$resultCheck = mysqli_num_rows($result);

if($resultCheck > 0){


echo "<tr>";
echo "<th>ITEM_ID</th>";
echo "<th>NAME</th>";
echo "<th>BRAND</th>";
echo "<th>DESCRIPTION</th>";
echo "<th>TYPES</th>";
echo "<th>PRICE</th>";
echo "<th>STOCK</th>";
echo "<th>IMAGE</th>";
18
Prac cal no. 13

echo "<th>VIEW</th>";
echo
while ($row = mysqli_fetch_assoc($result)) {
echo "<tr>";
echo "<td>".$row['items_id'] ."</td>";
echo "<td>".$row['name'] ."</td>";
echo "<td>".$row['brand'] ."</td>";
echo "<td>".$row['description'] ."</td>";
echo "<td>".$row['types'] ."</td>";
echo "<td>₹".$row['price'] ."</td>";
echo "<td>".$row['stock'] ."</td>";
$pathx = "admin/image/";
$file = $row["img"];
echo "<td>";
echo '<img src="'.$pathx.$file.'" height=100 width=100>';
echo "</td>";
echo "<td><a href=item_individual.php?items_id=".$row['items_id']. "><button>View</button></a></td></tr>";
}
}
}
?>
</table>

<table>
<tr><td><a class="a1" href="view.php?choice=FERTILIZER">FERTILIZER</a></td>
<td><a class="a1" href="view.php?choice=HERBICIDE">HERBICIDE&emsp;&ensp;</a></td>
<td><a class="a1" href="view.php?choice=INSECTICIDES">INSECTICIDES</a></td></tr>
<tr><td><a class="a1" href="view.php?choice=PESTICIDES">PESTICIDES</a></td>
<td><a class="a1" href="view.php?choice=SPICES">SPICES&emsp;&ensp;&ensp;&ensp;&ensp;&ensp;</a></td>
<td><a class="a1" href="view.php?choice=VEGETABLE">VEGETABLE&emsp;&ensp;</a></td></tr>
<tr><td><a class="a1" href="view.php?choice=FRUIT">FRUIT&emsp;&ensp;&ensp;&ensp;</a></td>
<td><a class="a1" href="view.php?choice=WAGON">WAGON&emsp;&ensp;&ensp;&ensp;&ensp;</a></td>
<td><a class="a1" href="view.php?choice=TOOLS">TOOLS&emsp;&ensp;&ensp;&ensp;&ensp;&ensp;</a></td></tr>
<tr><td><a class="a1" href="view.php?choice=MOTOR">MOTOR&emsp;&ensp;&ensp;</a></td>
<td><a class="a1" href="view.php?choice=EARTHMOVER">EARTHMOVER</a></td>
<td><a class="a1" href="view.php?choice=TRACTOR">TRACTOR&emsp;&ensp;&ensp;</a></td></tr>
<tr><td><a class="a1" href="view.php?choice=HARVESTER">HARVESTER</a></td>
<td><a class="a1" href="view.php?choice=SPRAYER">SPRAYER&emsp;&ensp;&ensp;&ensp;</a></td>
<td><a class="a1" href="view.php?choice=OTHER">OTHER&emsp;&ensp;&ensp;&ensp;&ensp;</a></td></tr>
</table>
</body>
</html>
ADMIN
Admin home: <?php
session_start();
if(!isset($_SESSION['usr']))
{

if($_POST['CODE']=='Admin')
{
$_SESSION['usr']='ADMIN';
}
else
{
$_SESSION['tmp']="Invalid Code!";
header('Location: verify.php');
}
}
?>

<!DOCTYPE html>
<html>

19
Prac cal no. 13

<head>
<title><?php echo $_SESSION['usr']; ?> | Home</title>
</head>
<body>
<style>
body{
background-image: url('../css/image/img5.jpeg');
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
a.a2{
text-decoration: underline;
color: burlywood;
text-shadow: 1px 1px 2px black, 0 0 25px blue, 0 0 5px darkblue;
font-size: 75px;
}
a.a1{
text-decoration: none;
background-color:lavender;
color:blue;
font-size:20px;
padding: 20px 35px;
border-radius:12px;
border:2px solid turquoise;
margin:150px;
line-height:85px;
}
a.a1:hover {
background-color: darkgray;
padding: 25px 45px;
}
a.a2:hover {
background-color: linen;
padding: 25px 45px;
}
.topnav a:hover {
background-color: #ddd;
color: black;
}

.topnav a.active {
background-color: #04AA6D;
color: white;
}

.topnav-right {
float: right;
}
.top {
color: indigo;
font-size: 25px;
}

input[type=text]
{
width: 25%;
padding: 12px 20px;
margin: 8px 0;
border: 1px solid #ccc;
border-radius: 5px;
box-sizing: border-box;
font-size: 18px;
20
Prac cal no. 13

}
input[type=submit]
{
width: 150px;
background-color: cornsilk;
color: darkblue;
padding: 14px 20px;
margin: 8px 0;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 20px;
}
table {
width: 100%;
text-align: center;
}
th{
color:dodgerblue;
font-size:28px;
}
td{
font-size:25px;
}
</style>
<center><h1><a class="a2" href="../index.php">E-FARM ADMIN</a></h1></center>
<div class="top">

<form method="post" action="search.php">


<b>Search Items:</b>
<input type="text" name="search" placeholder="Enter the product name here..."autofocus>
<input type="submit" name="submit">
</form>
<?php
if(isset($_SESSION['temp']))
{
echo '<br><p class="error">'.$_SESSION['temp'].'</p>';
unset($_SESSION['temp']);
}
?>
<div class="topnav">
<a class="a3" href="admin_home.php">Home</a>
<a class="a3" href="insert_item.php">Add Item</a></li>
<a class="a3" href="insert_user.php">Add User</a>
</div>
</div>

<h2><u>ORDER DETAILS</U></h2>
<table align="center" border="1" bgcolor="LightGoldenRodYellow">

<tr>
<th>Sales ID</th>
<th>User ID</th>
<th>Item ID</th>
<th>Quantity</th>
<th>Total</th>
<th>Date</th>
<th>Review</th>
</tr>
<?php

$host="localhost";
$dbusername = "root";
21
Prac cal no. 13

$dbpassword = "";
$dbname = "alb";

$conn = new mysqli($host, $dbusername, $dbpassword, $dbname);

if (mysqli_connect_error()) {
die('Connect error('. mysqli_connect_error().')'. mysqli_connect_error());
}
$sql = "SELECT * from sales;";
$result=mysqli_query($conn, $sql);
$resultCheck = mysqli_num_rows($result);
if($resultCheck > 0){
while ($row = mysqli_fetch_assoc($result)) {
echo "<tr>";
echo "<td>".$row['sales_id'] ."</td>";
//echo "<td>".$row['users_id'] ."</td>";
echo "<td><a href=user_individual.php?users_id=".$row['users_id']. ">".$row['users_id'] ."</a></td>";
//echo "<td>".$row['items_id'] ."</td>";
echo "<td><a href=item_individual.php?items_id=".$row['items_id']. ">".$row['items_id'] ."</a></td>";
//echo "<td>".$row['price'] ."</td>";
echo "<td>".$row['qty'] ."</td>";
echo "<td>₹".$row['total'] ."</td>";
echo "<td>".$row['date'] ."</td>";
echo "<td>".$row['review'] ."</td>";
echo "</tr>";
}
}
?>
</table>
</body>
</html>

SEARCH: <?php
session_start();
if(!isset($_SESSION['usr']))
{
header('Location:verify.php');
}
?>
<!DOCTYPE html>
<html>
<head>
<title><?php echo $_SESSION['usr']; ?> | Home</title>
</head>
<body>
<style>
body{
background-image: url('../css/image/img5.jpeg');
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
a.a2{
text-decoration: underline;
color: burlywood;
text-shadow: 1px 1px 2px black, 0 0 25px blue, 0 0 5px darkblue;
font-size: 75px;
}
a.a1{
text-decoration: none;
background-color:lavender;
color:blue;
font-size:20px;
22
Prac cal no. 13

padding: 20px 35px;


border-radius:12px;
border:2px solid turquoise;
margin:150px;
line-height:85px;
}
.topnav a:hover {
background-color: #ddd;
color: black;
}
.topnav a.active {
background-color: #04AA6D;
color: white;
}
.topnav-right {
float: right;
}
.top {
color: indigo;
font-size: 25px;
}

.a7 {
width: 200px;
background-color: darkgrey;
color: darkred;
padding: 14px 20px;
margin: 8px 0;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 20px;
font-weight:bold;
}

input[type=text]
{
width: 25%;
padding: 12px 20px;
margin: 8px 0;
border: 1px solid #ccc;
border-radius: 5px;
box-sizing: border-box;
font-size: 18px;
}
input[type=submit]
{
width: 150px;
background-color: cornsilk;
color: darkblue;
padding: 14px 20px;
margin: 8px 0;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 20px;
}
table {
width: 100%;
text-align: center;
}
th{
color:dodgerblue;
23
Prac cal no. 13

font-size:28px;
}
td{
font-size:25px;
}
</style>
<center><h1><a class="a2" href="../index.php">E-FARM ADMIN</a></h1></center>
<div class="top">
<!--Search Code-->
<form method="post" action="search.php">
<b>Search Items:</b>
<input type="text" name="search" placeholder="Enter the product name here..."autofocus>
<input type="submit" name="submit">
</form>
<div class="topnav">
<a class="a3" href="admin_home.php">Home</a>
<a class="a3" href="insert_item.php">Add Item</a></li>
<a class="a3" href="insert_user.php">Add User</a>

</body>
</html>

<?php
$con = new PDO("mysql:host=localhost;dbname=alb",'root','');
if (isset($_POST["submit"])) {
$str = $_POST["search"];
$sth = $con->prepare("SELECT * FROM `items` WHERE name like '%$str%'");
$sth->setFetchMode(PDO:: FETCH_OBJ);
$sth -> execute();
if($row = $sth->fetch())
{
?>
<br>
<table align="center" border="1" bgcolor="LightGoldenRodYellow">

<tr><th>Items ID</th><td><?php echo $row->items_id; $ww=$row->items_id;?></td></tr>


<tr><th>Name</th><td><?php echo $row->name; ?></td></tr>
<tr><th>Brand</th><td><?php echo $row->brand; ?></td></tr>
<tr><th>Description</th><td><?php echo $row->description;?></td></tr>
<tr><th>Types</th><td><?php echo $row->types;?></td></tr>
<tr><th>Price</th><td><?php echo $row->price;?></td></tr>
<tr><th>Stock</th><td><?php echo $row->stock;?></td></tr>
<tr><th>Image</th><td><?php $pathx = "../admin/image/";
$file = $row->img;
echo '<img src="'.$pathx.$file.'" height=100 width=100>';?></td>
</tr>
</table>
<?php
}
else{
echo "Name Does not exist";
}
}
echo "<center>";
echo "<a href=item_image.php?items_id=".$ww."><button class=a7>UPLOAD IMAGE</button></a>&ensp;";
echo "<a href=edit_item.php?items_id=".$ww."><button class=a7>UPDATE</button></a>&ensp;";
echo "<a href=delete_item.php?items_id=".$ww."><button class=a7>DELETE</button></a>";
echo "</center>";

?>
VIEW: <?php
session_start();
if(!isset($_SESSION['usr']))
24
Prac cal no. 13

{
header('Location:verify.php');
}
?>
<!DOCTYPE html>
<html>
<head>
<title><?php echo $_SESSION['usr']; ?> | Home</title>
</head>
<body>
<style>
body{
background-image: url('../css/image/img5.jpeg');
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
a.a2{
text-decoration: underline;
color: burlywood;
text-shadow: 1px 1px 2px black, 0 0 25px blue, 0 0 5px darkblue;
font-size: 75px;
}
a.a1{
text-decoration: none;
background-color:lavender;
color:blue;
font-size:20px;
padding: 20px 35px;
border-radius:12px;
border:2px solid turquoise;
margin:150px;
line-height:85px;
}
a.a1:hover {
background-color: darkgray;
padding: 25px 45px;
}
a.a2:hover {
background-color: linen;
padding: 25px 45px;
}
.topnav {
background-color: darkgreen;
overflow: hidden;
}

.topnav a {
float: left;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
}

.topnav a:hover {
background-color: #ddd;
color: black;
}

.topnav a.active {
background-color: #04AA6D;
25
Prac cal no. 13

color: white;
}

.topnav-right {
float: right;
}
.top {
color: indigo;
font-size: 25px;
}

input[type=text]
{
width: 25%;
padding: 12px 20px;
margin: 8px 0;
border: 1px solid #ccc;
border-radius: 5px;
box-sizing: border-box;
font-size: 18px;
}
input[type=submit]
{
width: 150px;
background-color: cornsilk;
color: darkblue;
padding: 14px 20px;
margin: 8px 0;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 20px;
th{
color:dodgerblue;
font-size:28px;
}
td{
font-size:25px;
}
</style>
<center><h1><a class="a2" href="../index.php">E-FARM ADMIN</a></h1></center>
<div class="top">
<!--Search Code-->
<form method="post" action="search.php">
<b>Search Items:</b>
<input type="text" name="search" placeholder="Enter the product name here..."autofocus>
<input type="submit" name="submit">
</form>
<div class="topnav-right">
<a class="a3" href="view_item.php">Manage Products</a>
<a class="a3" href="view_user.php">Manage Users</a>
<a class="a3" href="a_logout.php">Log Out</a>
</div>
</div>
<table align="center" border="1" bgcolor="LightGoldenRodYellow">
<tr>
<th>Item_ID</th>
<th>Item Name</th>
<th>Product Brand</th>
<th>Description</th>
<th>TYPES</th>
<th>PRICE</th>
<th>STOCK</th>
26
Prac cal no. 13

<th>IMAGE</th>
<th>ACTION</th>
</tr>
<?php
$host="localhost";
$dbusername = "root";
$dbpassword = "";
$dbname = "alb";
$conn = new mysqli($host, $dbusername, $dbpassword, $dbname);
if (mysqli_connect_error()) {
die('Connect error('. mysqli_connect_error().')'. mysqli_connect_error());
}
$sql = "SELECT * from items;";
$result=mysqli_query($conn, $sql);
$resultCheck = mysqli_num_rows($result);
if($resultCheck > 0){
while ($row = mysqli_fetch_assoc($result)) {
echo "<tr>";
echo "<td>".$row['items_id'] ."</td>";
echo "<td>".$row['name'] ."</td>";
echo "<td>".$row['brand'] ."</td>";
echo "<td>".$row['description'] ."</td>";
echo "<td>".$row['types'] ."</td>";
echo "<td>₹".$row['price'] ."</td>";
echo "<td>".$row['stock'] ."</td>";
$pathx = "image/";
$file = $row["img"];
echo "<td>";
echo '<img src="'.$pathx.$file.'" height=100 width=100>';
echo "</td>";
echo "<td>
<a href=item_image.php?items_id=".$row['items_id']. "><button>UPLOAD IMAGE</button></a>
<a href=edit_item.php?items_id=".$row['items_id']. "><button>UPDATE</button></a>
<a href=delete_item.php?items_id=".$row['items_id']. "><button>DELETE</button></a></td>";

echo "</tr>";
}
}
?>
</table>
</body>
</html>
SIGNUP
<!DOCTYPE html>
<html>
<head>
<title>SignUp | Efarm</title>
</head>
<body>
<style>
body{
background-image: url('../css/image/img4.jpg');
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
h1{
text-decoration: underline;
color: white;
text-shadow: 1px 1px 2px black, 0 0 25px blue, 0 0 5px darkblue;
font-size: 75px;
}

27
Prac cal no. 13

h2{
text-decoration: underline;
color: white;
text-shadow: 1px 1px 2px black, 0 0 25px indianred, 0 0 5px darkblue;
font-size: 35px;
}
a.a1{
text-decoration: none;
background-color:lavender;
font-size:20px;
padding: 10px 25px;
border-radius:12px;
border:2px solid turquoise;
margin:50px;
}
b{
font-size:20px;
color:darkred;
margin:25px;
}
td{
padding:5px;
}
p.error{
color:darkred;
font-size:35px;
}
p.msg{
color:darkred;
font-size:35px;
}
a:hover {
background-color: darkgray;
padding: 15px 35px;
}
input[type=email], [type=password], [type=text]
{
width: 100%;
padding: 12px 20px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
border-radius: 5px;
box-sizing: border-box;
font-size: 15px;
}
input[type=submit]
{
width: 150px;
background-color: cornsilk;
color: darkblue;
padding: 14px 20px;
margin: 8px 0;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 20px;
}
</style>
<center>
<h1>Efarm</h1>
<h2>Sign Up</h2>

28
Prac cal no. 13

<!--signup successful message -->


<?php
session_start();
if(isset($_SESSION['tmp10']))
{
echo '<br><p class="error">'.$_SESSION['tmp10'].'</p>';
unset($_SESSION['tmp10']);
}
?>
<form method="post" action="signup_connection.php">
<table>
<tr><td><b>First Name:</b></td>
<td><input type="text" name="firstname" required pattern="[A-Za-z_]+" title="No Numbers and Spaces(Use _)"
autofocus></td></tr>
<tr><td><b>Last Name:</b></td>
<td><input type="text" name="lastname" required pattern="[A-Za-z_]+" title="No Numbers and Spaces,(Use _)"></td></tr>
<tr><td><b>Email:</b></td>
<td><input type="email" name="email" required></td></tr>
<tr><td><b>Mobile:</b></td>
<td><input type="text" name="mobile" required minlength="10" maxlength="10" required pattern="[0-9]+"></td></tr>
<tr><td><b>Password:</b></td>
<td><input type="password" name="password" required minlength="6" pattern="[^' ']+" title="No Spaces"
placeholder="Mininum: 6 Characters"></td></tr>
</table>
<br><input type="submit" value="Sign Up"><br><br>
<br><br>
<a class="a1" href="../login/login.php">Login</a>
<a class="a1" href="../index.php">Home</a>
</form>
</center>
</body>
</html>
USER
USER HOME:
<?php
session_start();
if(!isset($_SESSION['users_id']))
{
header('Location: ../login/login.php');
}
else
{
include 'user_config.php';
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Welcome | <?php echo $_SESSION['user'] ?></title>
</head>
<body>
<style>
body{
background-image: url('../css/image/img5.jpeg');
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
a.a2{
text-decoration: underline;
color: burlywood;
text-shadow: 1px 1px 2px black, 0 0 25px blue, 0 0 5px darkblue;

29
Prac cal no. 13

font-size: 75px;
}
a.a1{
text-decoration: none;
background-color:lavender;
color:blue;
font-size:20px;
padding: 20px 35px;
border-radius:12px;
border:2px solid turquoise;
margin:150px;
line-height:85px;
}
a.a1:hover {
background-color: darkgray;
padding: 25px 45px;
}
a.a2:hover {
background-color: linen;
padding: 25px 45px;
}
.topnav {
background-color: darkgreen;
overflow: hidden:
input[type=text]
{
width: 25%;
padding: 12px 20px;
margin: 8px 0;
border: 1px solid #ccc;
border-radius: 5px;
box-sizing: border-box;
font-size: 18px;
}
input[type=submit]
{
width: 150px;
background-color: cornsilk;
color: darkblue;
padding: 14px 20px;
margin: 8px 0;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 20px;
}
</style>
<center><h1><a class="a2" href="../index.php">E-FARM</a></h1></center>
<div class="top">
<!--Search Code-->
<form method="post" action="search.php">
<b>Hi, <?php echo $_SESSION['user'] ?>. Shop With
Us!&emsp;&ensp;&emsp;&ensp;&emsp;&ensp;&emsp;&ensp;&emsp;&ensp;&emsp;&ensp;&emsp;&ensp;&emsp;&ensp;&emsp;&ensp;
&emsp;&ensp;&emsp;&ensp;&emsp;&ensp;&emsp;&ensp;&emsp;&ensp;&emsp;&ensp;
Search: </b><input type="text" name="search" placeholder="Search the Item here.">
<input type="submit" name="submit">
</form>
</div>
<div class="topnav-right">
<a class="a3" href="user.php">My Account</a>
<a class="a3" href="u_logout.php">Log Out</a>
<a class="a3" href="../admin/verify.php">Admin</a>
</div>
30
Prac cal no. 13

</div>
<table><center>
<tr><td><a class="a1" href="view.php?choice=FERTILIZER">FERTILIZER</a></td>
<td><a class="a1" href="view.php?choice=HERBICIDE">HERBICIDE&emsp;&ensp;</a></td>
<td><a class="a1" href="view.php?choice=INSECTICIDES">INSECTICIDES</a></td></tr>
<tr><td><a class="a1" href="view.php?choice=PESTICIDES">PESTICIDES</a></td>
<td><a class="a1" href="view.php?choice=SPICES">SPICES&emsp;&ensp;&ensp;&ensp;&ensp;&ensp;</a></td>
<td><a class="a1" href="view.php?choice=VEGETABLE">VEGETABLE&emsp;&ensp;</a></td></tr>
<tr><td><a class="a1" href="view.php?choice=FRUIT">FRUIT&emsp;&ensp;&ensp;&ensp;</a></td>
<td><a class="a1" href="view.php?choice=WAGON">WAGON&emsp;&ensp;&ensp;&ensp;&ensp;</a></td>
<td><a class="a1" href="view.php?choice=TOOLS">TOOLS&emsp;&ensp;&ensp;&ensp;&ensp;&ensp;</a></td></tr>
<tr><td><a class="a1" href="view.php?choice=MOTOR">MOTOR&emsp;&ensp;&ensp;</a></td>
<td><a class="a1" href="view.php?choice=EARTHMOVER">EARTHMOVER</a></td>
<td><a class="a1" href="view.php?choice=TRACTOR">TRACTOR&emsp;&ensp;&ensp;</a></td></tr>
<tr><td><a class="a1" href="view.php?choice=HARVESTER">HARVESTER</a></td>
<td><a class="a1" href="view.php?choice=SPRAYER">SPRAYER&emsp;&ensp;&ensp;&ensp;</a></td>
<td><a class="a1" href="view.php?choice=OTHER">OTHER&emsp;&ensp;&ensp;&ensp;&ensp;</a></td></tr>
</table></center>
</body>
</html>

SEARCH: <!DOCTYPE html>


<html>
<head>
<title>Search | Item</title>
</head>
<body>
<style>
body{
background-image: url('../css/image/img5.jpeg');
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
ding: 25px 45px;
}
.topnav {
background-color: darkgreen;
overflow: hidden;
}
.topnav a {
float: left;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
}

.topnav a:hover {
background-color: #ddd;
color: black;
}

.topnav a.active {
background-color: #04AA6D;
color: white;
}

.topnav-right {
float: right;
}
.top {
color: indigo;
31
Prac cal no. 13

font-size: 25px;
}
.a4{
width: 25%;
padding: 12px 20px;
margin: 8px 0;
border: 1px solid #ccc;
border-radius: 5px;
box-sizing: border-box;
font-size: 18px;
}
.a5 {
width: 150px;
background-color: cornsilk;
color: darkblue;
padding: 14px 20px;
margin: 8px 0;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 20px;
}

h3{
color:red;
font-size:50px;
text-align:center;
}
td{
font-size:25px;
}
</style>
<center><h1><a class="a2" href="../index.php">E-FARM</a></h1></center>
<div class="top">
<form method="post" action="search.php">
<b>Search: </b><input type="text" class="a4" name="search" placeholder="Search the Item here.">
<input type="submit" class="a5" name="submit">
</form>
</div>
<div class="topnav-right">
<a class="a3" href="user.php">My Account</a>
<a class="a3" href="u_logout.php">Log Out</a>
<a class="a3" href="../admin/verify.php">Admin</a>
</div>
</div>
</body>
</html>
<?php
$con = new PDO("mysql:host=localhost;dbname=alb",'root','');
if (isset($_POST["submit"])) {
$str = $_POST["search"];
$sth = $con->prepare("SELECT * FROM `items` WHERE name like '%$str%'");
$sth->setFetchMode(PDO:: FETCH_OBJ);
$sth -> execute();
if($row = $sth->fetch())
{
?>
<br><br><br>
<table align="center" border="1" bgcolor="LightGoldenRodYellow">
<tr><th>ITEM ID</th><td><?php echo $row->items_id; $items_id=$row->items_id;?></td></tr>
<tr><th>NAME</th><td><?php echo $row->name; ?></td></tr>
<tr><th>BRAND</th><td><?php echo $row->brand; ?></td></tr>
<tr><th>DESCRIPTION</th><td><?php echo $row->description;?></td></tr>
32
Prac cal no. 13

<tr><th>TYPES</th><td><?php echo $row->types;?></td></tr>


<tr><th>PRICE</th> <td><?php echo $row->price;?></td></tr>
<tr><th>STOCK</th> <td><?php echo $row->stock;?></td></tr>
<tr><th>IMAGE</th> <td><?php $pathx = "../admin/image/";
$file = $row->img;
echo '<img src="'.$pathx.$file.'" height=100 width=100>';?></td>
</tr>
<?php
}
else{
die("<h3>Product: Not Found!</h3>");
}
}
?>
<?php
$host="localhost";
$dbusername = "root";
$dbpassword = "";
$dbname = "alb";
$conn = new mysqli($host, $dbusername, $dbpassword, $dbname);
$sql1 = "SELECT * from sales where items_id='$items_id'";
$result1=mysqli_query($conn, $sql1);
$resultCheck1 = mysqli_num_rows($result1);
if($resultCheck1 > 0){
while ($row = mysqli_fetch_assoc($result1)) {
echo "<tr><th>REVIEW </th><td>".$row['review'] ." ";
}
echo "</td></tr>";
}
echo "</table>";

33
Prac cal no. 13

34
Prac cal no. 13

35
Prac cal no. 13

36
Prac cal no. 13

37
Prac cal no. 13

38
Prac cal no. 13

39

You might also like