Skip to content
Permalink
Browse files
Add files via upload
first commit
  • Loading branch information
pandaraths committed Apr 15, 2023
0 parents commit f8457f867a265fe94189db57d52cb36406006fbe
Show file tree
Hide file tree
Showing 82 changed files with 4,173 additions and 0 deletions.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,71 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<!-- By default, only the Clean and Build commands use this build script. -->
<!-- Commands such as Run, Debug, and Test only use this build script if -->
<!-- the Compile on Save feature is turned off for the project. -->
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
<!-- in the project's Project Properties dialog box.-->
<project name="Ecommerce" default="default" basedir=".">
<description>Builds, tests, and runs the project Ecommerce.</description>
<import file="nbproject/build-impl.xml"/>
<!--
There exist several targets which are by default empty and which can be
used for execution of your tasks. These targets are usually executed
before and after some main targets. They are:
-pre-init: called before initialization of project properties
-post-init: called after initialization of project properties
-pre-compile: called before javac compilation
-post-compile: called after javac compilation
-pre-compile-single: called before javac compilation of single file
-post-compile-single: called after javac compilation of single file
-pre-compile-test: called before javac compilation of JUnit tests
-post-compile-test: called after javac compilation of JUnit tests
-pre-compile-test-single: called before javac compilation of single JUnit test
-post-compile-test-single: called after javac compilation of single JUunit test
-pre-dist: called before archive building
-post-dist: called after archive building
-post-clean: called after cleaning build products
-pre-run-deploy: called before deploying
-post-run-deploy: called after deploying
Example of pluging an obfuscator after the compilation could look like
<target name="-post-compile">
<obfuscate>
<fileset dir="${build.classes.dir}"/>
</obfuscate>
</target>
For list of available properties check the imported
nbproject/build-impl.xml file.
Other way how to customize the build is by overriding existing main targets.
The target of interest are:
init-macrodef-javac: defines macro for javac compilation
init-macrodef-junit: defines macro for junit execution
init-macrodef-debug: defines macro for class debugging
do-dist: archive building
run: execution of project
javadoc-build: javadoc generation
Example of overriding the target for project execution could look like
<target name="run" depends="<PROJNAME>-impl.jar">
<exec dir="bin" executable="launcher.exe">
<arg file="${dist.jar}"/>
</exec>
</target>
Notice that overridden target depends on jar target and not only on
compile target as regular run target does. Again, for list of available
properties which you can use check the target you are overriding in
nbproject/build-impl.xml file.
-->
</project>
@@ -0,0 +1,44 @@
<%--
Document : Login
Created on : Apr 13, 2023, 8:18:28 PM
Author : ADMIN
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Cloths4Men</title>
</head>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
<div class="container">
<div class="row">
<form action="Login.jsp" method="POST">
<div class="form-group"><!-- comment -->
<h2>Admin Login</h2>
</div>

<div class="form-group"><!-- comment -->
<label> User name </label>
<input type="text" class="form-control" id="uname" name="uname">
</div>

<div class="form-group"><!-- comment -->
<label> Password </label>
<input type="Password" class="form-control" id="pass" name="pass">
</div>
</form>

<a href="Adminpanel.jsp"><br>
<button type="submit" class="btn btn-success"> Submit</button>

<a href="forgot.jsp"><br>
<button type="submit" class="btn btn-success"> forgot password</button>
</div>

</div>


</html>
@@ -0,0 +1,26 @@
<%--
Document : Adminpanel
Created on : Apr 14, 2023, 8:31:45 PM
Author : ADMIN
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
<link href="admin.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="topnav">
<a href="index.jsp">HOME</a>
<a class="active" href="#admin">ADMIN</a>
<a href="myorders.jsp">ORDERS</a>
<a href="#new item">ADD NEW ITEM</a>
<a href="#new item">FEED BACKS</a>
<a href="#new item">REPORTS</a>

</div>
</body>
</html>
@@ -0,0 +1,24 @@

<%
String fname = request.getParameter("fname");
String number = request.getParameter("number");
String code = request.getParameter("code");
if(number.equals("1234567890") && password.equals("1234"))
{
out.println("Check out failed please enter the secret code in the car");
}
else(number.equals("123456789") && password.equals("123"))
{
out.println("Check out failed please enter the 10 digit number in the card");
}
else{
out.println("Check out Success");
}
%>
@@ -0,0 +1,2 @@
Manifest-Version: 1.0

@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<Context path="/Ecommerce"/>
@@ -0,0 +1,35 @@
/*
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
Click nbfs://nbhost/SystemFileSystem/Templates/JSP_Servlet/CascadeStyleSheet.css to edit this template
*/
/*
Created on : Apr 14, 2023, 8:34:26 PM
Author : ADMIN
*/

.topnav {
background-color: #333;
overflow: hidden;
}

/* Style the links inside the navigation bar */
.topnav a {
float: left;
color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
}

/* Change the color of links on hover */
.topnav a:hover {
background-color: #ddd;
color: black;
}

/* Add a color to the active/current link */
.topnav a.active {
background-color: #04AA6D;
color: white;
}
@@ -0,0 +1,53 @@

<%--
Document : Login
Created on : Apr 13, 2023, 8:18:28 PM
Author : ADMIN
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Cloths4Men</title>
</head>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
<div class="container">
<div class="row">
<h2>Check out</h2>
<form>
<div class="form-group"><!-- comment -->
</div>

<div class="form-group"><!-- comment -->
<label> Name </label>
<input type="text" place holder="Please enter the name on number" class="form-control" id="fname" name="fname">
</div>

<div class="form-group"><!-- comment -->
<label> Card Number </label>
<input type="text" place holder="Please enter the card number" class="form-control" id="num" name="num">
<span style="display: none;"> Enter Minimum 10 character </span>

</div>

<div class="form-group"><!-- comment -->
<label> Secret Code </label>
<input type="text" place holder="Please enter secret code on card" class="form-control" id="code" name="code">
</div>
</form>

<a href="checkout.jsp"><br>
<button type="submit" class="btn btn-success"> Submit</button>
<a href="shop.jsp"><br>
<button type="submit" class="btn btn-success"> Back</button>


</div>

</div>


</html>
@@ -0,0 +1,12 @@
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
<link href="admin.css" rel="stylesheet" type="text/css">
</head>
<body>
<h2>Checkout Successful</h2>
</body>
</html>
@@ -0,0 +1,17 @@
<%--
Document : forgot
Created on : Apr 14, 2023, 4:33:32 AM
Author : ADMIN
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<h1>Oops forgot the Password!</h1>
</body>
</html>

0 comments on commit f8457f8

Please sign in to comment.