Final Obb
Final Obb
INTRODUCTION
1 VI SEM, BCA
Online Blood Bank
Purpose
In the existing system the transactions are done only in single user
environment but in proposed system we have to computerize all the Blood
Distribution System in a multiuser software environment. The proposed
system consists of the following modules:
2 VI SEM, BCA
Online Blood Bank
Scope
system of improved facilities. The proposed system can overcome all the
organization’s day to day tasks as it moves forward and helps ensure that
articulates what the project entails so that all stakeholders can understand
3 VI SEM, BCA
Online Blood Bank
Description
In the existing system the transactions are done only in single user
environment but in proposed system we have to computerize all the Blood
Distribution System in a multiuser software environment. The proposed
system consists of the following modules:
4 VI SEM, BCA
Online Blood Bank
Product functions
User login:
This module mainly useful for the users where as they can order the
blood packets and they can even add , delete, and find the exact
requirement. The following are the few modules under user login:
Customer Details:
This module stores the information about the customers who orders the
blood packets. This includes recording customer details, modifying as and
when required with option for deleting a customer record if it is no longer
required. In customers module there is an option for all operations such as
adding, deleting, modifying and finding the exact orders.
Order Details:
This module informs us the order details which are booked by the
customers. The order records detail such as order date, order id, customer
id , delivery status and total cost. This module is mainly used for ordering
the blood packets which are available for the users.
Payment Module:
This module stores the information about the consumers who have placed
orders for the blood packets. This includes recording customer payment
details, modifying any requirement in the customer requirements as a final
option if any for the customers. This module collects the necessary data
for payment process.
5 VI SEM, BCA
Online Blood Bank
User Characteristics
6 VI SEM, BCA
Online Blood Bank
7 VI SEM, BCA
Online Blood Bank
MODULES:
Administrative Module:
This module is the main module which performs all the main operations
in the system. The major operations in this module are processing
customer orders, tracking orders and delivering on time.
This module displays the information about blood details like type of
blood, quantity and source of location which are available for the
customer through this module. It is easy to find the orders which are
placed by the customer. In this module the operations that can be
performed include as adding, deleting, updating and storing the details of
different blood types, source of location and quantities.
8 VI SEM, BCA
Online Blood Bank
Order Details:
This module displays the information of the orders which are used for
delivering the blood for appropriate customer. Carts are assigned with
unique order codes for individuals as well as other hospitals with unique
order codes to keep track of the orders. This module is also used to display
the orders which are may be pending for delivering the blood for the
intended consumers.
User login:
This module mainly useful for the users where as they can order the
blood packets and they can even add , delete, and find the exact
requirement. The following are the few modules under user login:
Customer Details:
This module stores the information about the customers who orders the
blood packets. This includes recording customer details, modifying as and
when required with option for deleting a customer record if it is no longer
required. In customers module there is an option for all operations such as
adding, deleting, modifying and finding the exact orders.
9 VI SEM, BCA
Online Blood Bank
Order Details:
This module informs us the order details which are booked by the
customers. The order records detail such as order date, order id, customer
id , delivery status and total cost. This module is mainly used for ordering
the blood packets which are available for the users.
Payment Module:
This module stores the information about the consumers who have placed
orders for the blood packets. This includes recording customer payment
details, modifying any requirement in the customer requirements as a final
option if any for the customers. This module collects the necessary data
for payment process.
10 VI SEM, BCA
Online Blood Bank
Limitations
of the existing single user system. The system provides proper security
and reduces the manual and single user limitation. Although the system
designed is well suited for multiuser environments and with remote access
there are a few limitations that the project can be enhanced for:
To keep online projects at its best the most important aspect is data
sophisticated higher standards like use of third party tools like online
11 VI SEM, BCA
Online Blood Bank
Specific Requirements
Administrative functionalities:
User Functionalities:
12 VI SEM, BCA
Online Blood Bank
Software:
13 VI SEM, BCA
Online Blood Bank
Software Review
AngularJS
14 VI SEM, BCA
Online Blood Bank
the code you currently have to write. And it all happens within the
browser, making it an ideal partner with any server technology.
General Features
15 VI SEM, BCA
Online Blood Bank
Core Features
16 VI SEM, BCA
Online Blood Bank
17 VI SEM, BCA
Online Blood Bank
Concepts
The following diagram depicts some important parts of AngularJS which
we will discuss in detail in the subsequent chapters.
18 VI SEM, BCA
Online Blood Bank
19 VI SEM, BCA
Online Blood Bank
Disadvantages of AngularJS:
Though AngularJS comes with a lot of merits, here are some points of
concern:
Not secure : Being JavaScript only framework, application written
in AngularJS are not safe. Server side authentication and
authorization is must to keep an application secure.
Not degradable: If the user of your application disables
JavaScript, then nothing would be visible, except the basic page.
AngularJS Directives:
The AngularJS framework can be divided into three major parts:
ng-app : This directive defines and links an AngularJS application
to HTML.
ng-model : This directive binds the values of AngularJS
application data to HTML input controls.
ng-bind : This directive binds the AngularJS application data to
HTML tags.
20 VI SEM, BCA
Online Blood Bank
Example
Now let us write a simple example using AngularJS library. Let us
create an HTML file myfirstexample.html shown as below:
<!doctype html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-
beta.17/angular.min.js"></script>
</head>
<body ng-app="myapp">
<div ng-controller="HelloController" >
<h2>Welcome {{helloTo.title}} to the world of Tutorialspoint!</h2>
</div>
<script>
angular.module("myapp", [])
.controller("HelloController", function($scope) {
$scope.helloTo = {};
$scope.helloTo.title = "AngularJS";
});
</script>
</body>
</html>
Let us go through the above code in detail:
Include AngularJS
We include the AngularJS JavaScript file in the HTML page so that we
can use it:
<head>
<script
src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.15/angular.
min.js"></script>
</head>
You can check the latest version of AngularJS on its official website.
21 VI SEM, BCA
Online Blood Bank
<body ng-app="myapp">
</body>
View
ng-controller tells AngularJS which controller to use with this view. helloTo.title tells AngularJS to write
the model value named helloTo.title in HTML at this location.
<script>
angular.module("myapp", [])
.controller("HelloController", function($scope) {
$scope.helloTo = {};
$scope.helloTo.title = "AngularJS";
});
</script>
22 VI SEM, BCA
Online Blood Bank
Controller
The controller part is:
<script>
angular.module("myapp", [])
.controller("HelloController", function($scope) {
$scope.helloTo = {};
$scope.helloTo.title = "AngularJS";
});
</script>
Execution
Save the above code as myfirstexample.html and open it in any browser.
You get to see the web page built over angular js.
23 VI SEM, BCA
Online Blood Bank
3. MVC Architecture
Model View Controller or MVC as it is
popularly called, is a software design
pattern for developing web applications. A
Model View Controller pattern is made up
of the following three parts:
Model - It is the lowest level of the
pattern responsible for maintaining
data.
View - It is responsible for
displaying all or a portion of the data
to the user.
Controller - It is a software Code
that controls the interactions between the Model and View.
MVC is popular because it isolates the application logic from the user
interface layer and supports separation of concerns. The controller
receives all requests for the application and then works with the model to
prepare any data needed by the view. The view then uses the data prepared
by the controller to generate a final presentable response. The MVC
abstraction can be graphically represented as follows.
24 VI SEM, BCA
Online Blood Bank
The Model
The model is responsible for managing application data. It responds to the
request from view and to the instructions from controller to update itself.
The View
A presentation of data in a particular format, triggered by the controller's
decision to present the data. They are script-based template systems such
as JSP, ASP, PHP and very easy to integrate with AJAX technology.
The Controller
The controller responds to user input and performs interactions on the data
model objects. The controller receives input, validates it, and then
performs business operations that modify the state of the data model.
25 VI SEM, BCA
Online Blood Bank
Node.js
26 VI SEM, BCA
Online Blood Bank
or more commonly, the thread, will stay idle, consuming system resources
while it waits for other processes.
To solve this issue, many web platforms have implemented a thread pool
system that usually issues a single thread per connection. This kind of
multithreading may seem intuitive at first, but has some significant
disadvantages.
Node modules
27 VI SEM, BCA
Online Blood Bank
Common JS modules
28 VI SEM, BCA
Online Blood Bank
Core modules are modules that were compiled into the Node binary. They
come prebundled with Node and are documented in great detail in its
documentation. The core modules provide most of the basic
functionalities of Node, including ilesystem access, HTTP and HTTPS
interfaces, and much more. To load a core module, you just need to use
the require method in your JavaScript ile. An example code, using the fs
core module to read the content of the environment hosts ile, would look
like the following code snippet:
fs = require('fs');
fs.readFile('/etc/hosts', 'utf8', function (err, data) {
if (err) {
return console.log(err);
}
console.log(data);
});
When you require the fs module, Node will ind it in the core modules
folder. You'll then be able to use the fs.readFile() method to read the ile's
content and print it in the command-line output.
29 VI SEM, BCA
Online Blood Bank
30 VI SEM, BCA
Online Blood Bank
To start your web server, use your command-line tool, and navigate to
your working folder. Then, run the node CLI tool and run the server.js ile
as follows:
$ node server
Now open http://localhost:3000 in your browser, and you'll see the Hello
World response.
31 VI SEM, BCA
Online Blood Bank
Express.js
"Express is a fast, unopinionated minimalist web framework for Node.js"
- official web site: Expressjs.com
32 VI SEM, BCA
Online Blood Bank
Advantages of Express.js
new code should also be familiar to you because it resembles the code you
used in the previous Connect example. This is because Express wraps the
Connect module in several ways. The app.use() method is used to mount
a middleware function, which will respond to any HTTP request made to
the root path. Inside the middleware function, the res.send() method is
then used to send the response back. The res.send() method is basically an
Express wrapper that sets the Content-Type header according to the
response object type and then sends a response back using the Connect
res.end() method.
Express presents three major objects that you'll frequently use. The
application object is the instance of an Express application you created
in the first example and is usually used to configure your application.
The request object is a wrapper of Node's HTTP request object and is
used to extract information about the currently handled HTTP request.
The response object is a wrapper of Node's HTTP response object and is
used to set the response data and headers.
34 VI SEM, BCA
Online Blood Bank
For instance, you can map logic to any request that includes the userId
parameter using app.param('userId', callback).
There are many more application methods and properties you can use, but
using these common basic methods enables developers to extend Express
in whatever way they find reasonable.
36 VI SEM, BCA
Online Blood Bank
The response object also contains many more methods and properties to
handle different response scenarios
37 VI SEM, BCA
Online Blood Bank
MongoDB
Derived from the word humongous, MongoDB was able to support
complex data storage, while maintaining the high-performance approach
of other NoSQL stores. The community cheerfully adopted this new
paradigm, making MongoDB one of the fastest-growing databases in the
world. With more than 150 contributors and over 10,000 commits, it also
became one the most popular open source projects.
38 VI SEM, BCA
Online Blood Bank
One of the other MongoDB design goals was to expand the abilities of
ordinary key-value stores. The main issue of common key-value stores is
their limited query capabilities, which usually means your data is only
queryable using the key ield, and more complex queries are mostly
predeined. To solve this issue, MongoDB drew its inspiration from the
relational databases dynamic query language.
MongoDB indexing
Indexes are a unique data structure that enables the database engine to
efficiently resolve queries. When a query is sent to the database, it will
have to scan through the entire collection of dcuments to ind those that
match the query statement. This way, the database engine processes a
large amount of unnecessary data, resulting in poor performance.
39 VI SEM, BCA
Online Blood Bank
"_id": ObjectId("52d02240e4b01d67d71ad577"),
"title": "First Blog Post",
"comments": [
],
"commentsCount": 12
}
So, a MongoDB query that requests for documents with more than 10
comments
would be as follows
db.posts.find({ commentsCount: { $gt: 10 } });
40 VI SEM, BCA
Online Blood Bank
MongoDB sharding
41 VI SEM, BCA
Online Blood Bank
42 VI SEM, BCA
Online Blood Bank
Level - 0 Blood
Packet
Request
Blood Type Payment
Storage
Customer
Submit
Booked Blood
Category
43 VI SEM, BCA
Online Blood Bank
ER Diagram
44 VI SEM, BCA
Online Blood Bank
Admin Registration
User Registration
Blood Table
45 VI SEM, BCA
Online Blood Bank
Blood Sold
Sales Details
46 VI SEM, BCA
Online Blood Bank
DATABASE DESIGN
The database design is a two level process. In the first step, user
requirements are gathered together and a database is designed which will
meet these requirements as clearly as possible. This step is called
Information Level Design and it is taken independent of any individual
DBMS.
47 VI SEM, BCA
Online Blood Bank
48 VI SEM, BCA
Online Blood Bank
TEST PLAN
A test plan implies a series of desired course of action to be followed in
accomplishing various testing methods. The Test Plan acts as a blue print
for the action that is to be followed. The software engineers create a
computer program, its documentation and related data structures. The
software developers is always responsible for testing the individual units
of the programs, ensuring that each performs the function for which it was
designed. There is an independent test group (ITG) which is to remove
the inherent problems associated with letting the builder to test the thing
that has been built. The specific objectives of testing should be stated in
measurable terms. So that the mean time to failure, the cost to find and fix
the defects, remaining defect density or frequency of occurrence and test
work-hours per regression test all should be stated within the test plan.
UNIT TESTING
49 VI SEM, BCA
Online Blood Bank
are tested to ensure that all statements in a module have been executed at
least once. Finally, all error handling paths are tested.
Tests of data flow across a module interface are required before any other
test is initiated. If data do not enter and exit properly, all other tests are
moot. Selective testing of execution paths is an essential task during the
unit test. Good design dictates that error conditions be anticipated and
error handling paths set up to reroute or cleanly terminate processing
when an error does occur. Boundary testing is the last task of unit testing
step. Software often fails at its boundaries.
INTEGRATION TESTING
After unit testing in Sell-Soft System all the modules were integrated to
test for any inconsistencies in the interfaces. Moreover differences in
program structures were removed and a unique program structure was
evolved.
50 VI SEM, BCA
Online Blood Bank
This is the final step in testing. In this the entire system was tested as a
whole with all forms, code, modules and class modules. This form of
testing is popularly known as Black Box testing or System testing.
The system considered is tested for user acceptance; here it should satisfy
the firm's need. The software should keep in touch with perspective
system; user at the time of developing and making changes whenever
required. This done with respect to the following points
Input Screen Designs,
Output Screen Designs,
Online message to guide the user and the like.
The above testing is done taking various kinds of test data. Preparation of
test data plays a vital role in the system testing. After preparing the test
data, the system under study is tested using that test data. While testing
the system by which test data errors are again uncovered and corrected by
using above testing steps and corrections are also noted for future use.
51 VI SEM, BCA
Online Blood Bank
Conclusion
track of a huge number of online customers for online blood booking. The
software records each entry and maintains a records of all the transactions
related to the blood sales and stock. The transactions can be kept track by
the administrator for the orders placed and corresponding sales and
interfaces for mobile system, third party utilities like OTPs, Payment
international standards.
52 VI SEM, BCA
Online Blood Bank
CODING
53 VI SEM, BCA
Online Blood Bank
<html>
<head>
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="css/prettyPhoto.css" rel="stylesheet">
<link href="css/price-range.css" rel="stylesheet">
<link href="css/animate.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">
<link href="css/responsive.css" rel="stylesheet">
<script
src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script>
<script
src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>
<script src="js/adminlogin.js"></script>
</head>
<main>
<section id="form"><!--form-->
<div class="container">
<div class="row">
<div class="col-sm-4 col-sm-offset-1">
<h1>Administrator Login</h1>
<!-- <h1>Welcome Dear: <%=username%></h1> -->
<div class="login-form"><!--login form-->
<h2>Login to your account</h2>
<form method="post" action="/adminapparels">
<!-- <input type="text" name="userid" placeholder="userid"
required value=""/> -->
<input type="email" name="email" placeholder="Enter email"
required value=""/>
<input type="password" name="userPassword"
placeholder="Enter Password" required value=""/>
<button type="submit" class="btn btn-default" >Login</button>
</form>
</div><!--/login form-->
</div>
<div class="col-sm-1">
<h2 class="or">OR</h2>
54 VI SEM, BCA
Online Blood Bank
</div>
<div class="col-sm-4">
<div class="signup-form"><!--sign up form-->
<h2>New Admin Signup!</h2>
<form method ="post" action="/adminregister">
<button type="submit" class="btn btn-default">Signup</button>
</form>
</div><!--/sign up form-->
</div>
</div>
</div>
</section><!--/form-->
<!--
<form method="post" action="/billing">
<input type="hidden" id="prods" name="prods" value="Nothing">
<button type="button" ng-click="store()">Call store values</button>
</body>
</html>
Module2. Adminregister:
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="css/prettyPhoto.css" rel="stylesheet">
<link href="css/price-range.css" rel="stylesheet">
<link href="css/animate.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">
<link href="css/responsive.css" rel="stylesheet">
55 VI SEM, BCA
Online Blood Bank
<script
src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script>
<script
src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>
<script src="js/adminregister.js"></script>
</head>
<style>
body { padding-top:50px; }
</style>
<main>
<!--
<input type="hidden" id="fname" name="fname" value="">
<input type="hidden" id="sname" name="sname" value="">
<input type="hidden" id="email" name="email" value="">
<input type="hidden" id="password" name="password" value="">
<input type="hidden" id="phone" name="phone" value="">
<input type="hidden" id="dob" name="dob" value="">
-->
<div class="container">
</div>
</div>
<div class="row">
<div class="thumbnail">
<img src="images/apparels/hospitalBlood2.jpg" alt="Light House"
style="width:100%">
<div class="caption">
<p>National Blood Bank: Bangalore</p>
</div>
</div>
</div>
<div class="row">
<div class="thumbnail">
<img src="images/apparels/hospitalBlood3.jpg" alt="Penguins"
style="width:100%">
<div class="caption">
<p>Blood Bank Society of India: Chennai</p>
</div>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="signup-form">
56 VI SEM, BCA
Online Blood Bank
<div class="checkbox-inline">
<label class="btn btn-sm">
<input type="radio" class="custom-control-input" ng-model="Gen" id="Male"
value="Male" ng-checked="true">Male
</label>
</div>
<div class="checkbox-inline">
<label class="btn btn-sm">
<input type="radio" class="custom-control-input" ng-model="Gen" id="Female"
value="Female">Female
</label>
</div>
<div class="checkbox-inline">
<label class="btn btn-sm">
<input type="radio" class="custom-control-input" ng-model="Gen" id="Others"
value="Others">Others
</label>
</div>
57 VI SEM, BCA
Online Blood Bank
</div>
</form>
</main>
</body>
</html>
58 VI SEM, BCA
Online Blood Bank
Module3.Appareal:
<html>
<head>
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="css/prettyPhoto.css" rel="stylesheet">
<link href="css/price-range.css" rel="stylesheet">
<link href="css/animate.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">
<link href="css/responsive.css" rel="stylesheet">
<script
src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script>
<script
src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>
<script src="js/prod.js"></script>
</head>
<style>
body { padding-top:50px; }
</style>
<body class="container" ng-app="myApp" ng-controller="MainCtrl">
<header>
<nav class="navbar navbar-default">
<div class="container-fluid" style="background-color:green;">
<div class="navbar-header" >
<ul class="nav navbar-nav">
<li><img src="images/products/abPos.jpg" alt="Logo" width="50%"
height="25%"></li>
<li><img src="images/products/oPos.jpg" alt="Apparels" width="200%"
height="25%"></li>
</ul>
</div>
</div>
</nav>
</header>
<main>
<div class="container">
</div>
59 VI SEM, BCA
Online Blood Bank
</div>
<div class="row">
<div class="thumbnail">
<img src="images/apparels/hospitalBlood2.jpg" alt="Light House"
style="width:100%">
<div class="caption">
<p>National Blood Bank: Andhra</p>
</div>
</div>
</div>
<div class="row">
<div class="thumbnail">
<img src="images/apparels/hospitalBlood3.jpg" alt="Penguins"
style="width:100%">
<div class="caption">
<p>Society of Blood Donors: Chennai</p>
</div>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="signup-form">
<form method="post" action="/adminlogin">
<h1>Add product and accessories details</h1>
<input type="text" name="pCode" id="pCode" placeholder="Product Code" required value=""
/>
<!--
<input type="file" id="fileInput" multiple onchange="showname()"/>
File onchange event triggers only if we add directive in angularjs
60 VI SEM, BCA
Online Blood Bank
61 VI SEM, BCA
Online Blood Bank
</div>
</div>
</div>
<!--
-->
</main>
</body>
</html>
Module4.Billing:
<html>
<head>
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="css/prettyPhoto.css" rel="stylesheet">
<link href="css/price-range.css" rel="stylesheet">
<link href="css/animate.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">
<link href="css/responsive.css" rel="stylesheet">
<script
src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script>
<script
src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>
<script src="js/billing.js"></script>
</head>
<style>
body { padding-top:50px; }
</style>
</header>
62 VI SEM, BCA
Online Blood Bank
<main>
<div class="container" ng-init="getData()">
<div class="row">
<div class="col-lg-8" style="background-color:lavender;">
<form method="post" action="/payment" ng-submit="payment()" >
<!--
<h1> Accepting only 82 characters </h1>
<input type="hidden" id="prods" name="prods" value=<%=products%>>
-->
<input type="hidden" id="products" name="products" value="nothing">
<div class="features_items"><!--features_items-->
<h2 class="title text-center">Sales Details</h2>
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th>Code</th>
<th>Price</th>
<th>Hospital Name</th>
<th>Quantity</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="prodToAdd in prodsSold track by $index">
<td>{{prodToAdd.pCode}}</td><td>{{prodToAdd.pCost}}</td> <td>{{prodToAdd.hosName}}</td>
<td>{{prodToAdd.pQuantity=quantity}}</td>
<td><input type="number" ng-model="quantity" value="1" min="1" id="quantity"
name="quantity"</td>
<td><button type="button" ng-click="del($index)">Remove</button> </td>
</tr>
</tbody>
</table>
</div>
</div>
</form>
</div>
</div>
</div>
</main>
</body>
</html>
63 VI SEM, BCA
Online Blood Bank
Module5.Home:
<html>
<head>
<title>
Online Mart
</title>
</head>
<body class="container">
<main>
<div class="sidebar">
<h2>Latest News</h2>
<div class="blog_posts">
</div>
<br />
<span style="font-weight:bold"><b>World Blood Donor Day: Poor health
reduces women blood donors in India</b>
<p>While the overall number of blood donors in India has grown over the years, women
constitute only a tiny 10 percent share owing to health problems like pernicious anaemia
and low haemoglobin levels or being underweight</p></span>
</div>
</td></tr>
</table></marquee>
</div>
</div>
</main>
</body>
</html>
64 VI SEM, BCA
Online Blood Bank
Module6.Order:
<html>
<head>
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="css/prettyPhoto.css" rel="stylesheet">
<link href="css/price-range.css" rel="stylesheet">
<link href="css/animate.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">
<link href="css/responsive.css" rel="stylesheet">
<script
src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script>
<script
src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>
<script src="js/order.js"></script>
</head>
<style>
body { padding-top:50px; }
</style>
<header>
<nav class="navbar navbar-default">
<div class="container-fluid" style="background-color:green;">
<div class="navbar-header" >
<ul class="nav navbar-nav">
<li><img src="images/apparels/hospitalBlood1.jpg" alt="Logo" width="50%"
height="25%"></li>
<li><img src="images/apparels/hospitalBlood2.jpg" alt="Apparels" width="200%"
height="25%"></li>
</ul>
</div>
</div>
</nav>
</header>
<main>
<div class="container">
<div class="row">
<div class="col-lg-12">
<form method="post" action="/homepage">
<div class="features_items"><!--features_items-->
<input type="text" name="billNum" id="billNum" placeholder="Enter bill Number"
required value="" />
<button type="button" class="btn btn-default" ng-click="getData()" >Get Order
Details</button>
65 VI SEM, BCA
Online Blood Bank
</form>
</div>
</div>
</div>
</main>
</body>
</html>
Module7.Payments:
<html>
<head>
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="css/prettyPhoto.css" rel="stylesheet">
<link href="css/price-range.css" rel="stylesheet">
<link href="css/animate.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">
<link href="css/responsive.css" rel="stylesheet">
<script
src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script>
<script
src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>
<script src="js/payment.js"></script>
66 VI SEM, BCA
Online Blood Bank
</head>
<style>
body { padding-top:50px; }
</style>
<header>
<nav class="navbar navbar-default">
<div class="container-fluid" style="background-color:green;">
<div class="navbar-header" >
<ul class="nav navbar-nav">
<li><img src="images/products/abPos.jpg" alt="Logo" width="50%"
height="25%"></li>
<li><img src="images/products/oPos.jpg" alt="Apparels" width="200%"
height="25%"></li>
</ul>
</div>
</div>
</nav>
</header>
<main>
<div class="container" ng-init="getData()">
<div class="row">
<div class="col-lg-8" style="background-color:lavender;">
<form method="post" action="/makePayment" ng-submit=makePayment()>
<div class="features_items"><!--features_items-->
67 VI SEM, BCA
Online Blood Bank
<div class="features_items"><!--features_items-->
<h2 class="title text-center">Total Amount: {{totalAmount}}</h2>
<h3 class="title text-center">Enter Card Details:</h3>
<div class="col-lg-4" style="background-color:lavender;">
</div>
</div>
</form>
</div>
</div>
</div>
</main>
</body>
</html>
Module8.Register:
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
68 VI SEM, BCA
Online Blood Bank
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="css/prettyPhoto.css" rel="stylesheet">
<link href="css/price-range.css" rel="stylesheet">
<link href="css/animate.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">
<link href="css/responsive.css" rel="stylesheet">
<script
src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script>
<script
src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>
<script src="js/register.js"></script>
</head>
<style>
body { padding-top:50px; }
</style>
<main>
<!--
<input type="hidden" id="fname" name="fname" value="">
<input type="hidden" id="sname" name="sname" value="">
<input type="hidden" id="email" name="email" value="">
<input type="hidden" id="password" name="password" value="">
<input type="hidden" id="phone" name="phone" value="">
<input type="hidden" id="dob" name="dob" value="">
-->
<div class="container">
</div>
</div>
<div class="row">
<div class="thumbnail">
<img src="images/products/lakme.jpg" alt="Light House" style="width:100%">
<div class="caption">
<p>Lakme Total Products</p>
</div>
</div>
</div>
<div class="row">
<div class="thumbnail">
<img src="images/products/lancome.jpg" alt="Penguins" style="width:100%">
<div class="caption">
<p>Lancome International Products</p>
</div>
69 VI SEM, BCA
Online Blood Bank
</div>
</div>
</div>
<div class="col-sm-4">
<div class="signup-form">
<form method="post" action="/registered" onsubmit="return alert('You will be
redirected to login to confirm registration')" >
<input type="hidden" id="gender" name="gender" value="{{Gen}}" >
<div class="checkbox-inline">
<label class="btn btn-sm">
<input type="radio" class="custom-control-input" ng-model="Gen" id="Male"
value="Male" ng-checked="true">Male
</label>
</div>
<div class="checkbox-inline">
<label class="btn btn-sm">
<input type="radio" class="custom-control-input" ng-model="Gen" id="Female"
value="Female">Female
</label>
</div>
<div class="checkbox-inline">
<label class="btn btn-sm">
<input type="radio" class="custom-control-input" ng-model="Gen" id="Others"
value="Others">Others
</label>
</div>
70 VI SEM, BCA
Online Blood Bank
</div>
</form>
</main>
</body>
</html>
71 VI SEM, BCA
Online Blood Bank
Module9.Registration:
<html>
<head>
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="css/prettyPhoto.css" rel="stylesheet">
<link href="css/price-range.css" rel="stylesheet">
<link href="css/animate.css" rel="stylesheet">
<link href="css/main.css" rel="stylesheet">
<link href="css/responsive.css" rel="stylesheet">
<script
src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script>
<script
src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js"></script>
<script src="js/register.js"></script>
</head>
<style>
body { padding-top:50px; }
</style>
<header>
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">Online shopping</a>
</div>
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="categories">Categories</a></li>
<li><a href="loginpage.html">Login Page</a></li>
<li><a href="contact us.html">Contact us</a></li>
</ul>
</div>
</nav>
</header>
<main>
<form method="post" action="/registered">
<input type="hidden" id="prods" name="prods" value="Nothing">
First Name: <input type="text" ng-model="firstname">
72 VI SEM, BCA
Online Blood Bank
<br>
Select Degree:
<input type="radio" ng-model="myDeg" value="Bachelors">Bachelors
<input type="radio" ng-model="myDeg" value="Masters">Masters
<input type="radio" ng-model="myDeg" value="Others">Others
Select a topic:
<select ng-model="myTopic">
<option value="">
<option value="Science">Science
<option value="Commerce">Commerce
<option value="Arts">Arts
</select>
</form>
<h2>Qualification</h2>
<h1 ng-show="myDeg">{{myDeg}}</h1>
<h2>Qualification</h2>
<h1 ng-show="myTopic">{{myTopic}}</h1>
</main>
</body>
</html>
73 VI SEM, BCA
Online Blood Bank
Screenshot
74 VI SEM, BCA
Online Blood Bank
75 VI SEM, BCA
Online Blood Bank
76 VI SEM, BCA
Online Blood Bank
77 VI SEM, BCA
Online Blood Bank
78 VI SEM, BCA
Online Blood Bank
79 VI SEM, BCA
Online Blood Bank
80 VI SEM, BCA
Online Blood Bank
81 VI SEM, BCA
Online Blood Bank
82 VI SEM, BCA
Online Blood Bank
83 VI SEM, BCA
Online Blood Bank
84 VI SEM, BCA
Online Blood Bank
85 VI SEM, BCA
Online Blood Bank
86 VI SEM, BCA
Online Blood Bank
Bibliography
Text Books:
Websites:
www.modulecouns.com
www.githut.info
www.paypal-engineering.com/2013/11/22/node-js-at-paypal
www.w3schools.com
www.codementor.io
87 VI SEM, BCA