Beruflich Dokumente
Kultur Dokumente
ON
Of
BACHELOR OF TECHNOLOGY
In
By
K.RAMAKRISHNA (13K91A0597)
Of
Mr. T.MADHU Sir
Assistant Professor
CERTIFICATE
verified and found satisfactory. The results embodied in this thesis have
not been submitted to any other University or Institution for the award of
SYSTEM is done under the guidance of MR. T MADHU, Dept. of CSE, TKR
and Technology.
K.RAMAKRISHNA (13K91A0597)
Department of CSE,
TKR College of Engineering and Technology,
Hyderabad.
ACKNOWLEDGEMENT
CONTENTS
S.NO Page.No
1. INTRODUCTION 1
1.1 INTRODUCTION TO PROJECT
1.2 PURPOSE OF THE PROJECT 2
1.3 EXISTING SYSTEM & ITS DISADVANTAGES
1.4 PROPOSED SYSTEM & ITS ADVANTAGES
2. SYSTEM ANALYSIS 3
2.1 PROCESS MODELS USED WITH JUSTIFICATION 4
2.2 SYSTEM ARCHITECTURE 8
3. FEASIBILITY STUDY 10
3.1 OPERATIONAL FEASIBILITY
3.2 TECHNICAL FEASIBILITY
3.3 ECONOMIC FEASIBILITY
4. REQUIREMENT SPECIFICATIONS 11
4.1 FUNCIONAL REQUIREMENTS 12
4.2 PERFORMANCE REQUIREMENTS
4.3 SOFTWARE &HARDWARE REQUIREMENTS
4.3.1 html
4.3.2 php
4.3.3 ionic frameworks
4.3.4 android sdk 13
.
28
5. SYSTEM DESIGN 29
5.1 INTRODUCTION
5.2 UML DIAGRAMS
6. IMPLEMENTATION 39
6.1 SAMPLE CODE
6.2 SCREEN SHOTS 52
7. SYSTEM TESTING 55
7.1 INTRODUCTION TO TESTING
7.2 TESTING STRATEGIES
8. SYSTEM SECURITY 58
8.1 INTRODUCTION
8.2 SECURITY IN SOFTWARE
9. BIBLIOGRAPHY 60
1. INTRODUCTION
1.1 ABSTRACT
This project is aimed to develop an online Blood Donation
Information. The entire project has been developed keeping in
view of the distributed client server computing technology, in
mind. The Blood Donation Agent is to create an e-Information
about the donor that are related to donate the blood. Through
this application any person who is interested in donating the
blood can register himself by entering required details.
Moreover if any general consumer wants to make request blood
online , he can also take the help of this application. Admin is
the main authority who can do addition, deletion, and
modification if required.
The project has been planned to be having
the view of distributed architecture, with centralized storage of
the database. The application for the storage of the data has been
planned. Using the constructs of MS-SQL Server and all the
user interfaces have been designed using the ASP.Net
technologies. The database connectivity is planned using the
SQL Connection methodology. The standards of security and
mechanism have been given a big choice for proper usage. The
application takes care of different modules and their associated
reports, which are produced as per the applicable strategies and
standards that are put forwarded by the administrative staff.
1.2 PURPOSE
The purpose of this project to eradicate the unavailability of
blood during emergency situations with the provision of e-blood
application. Minimization of deaths due to lack of blood during
operations and also to provide awareness among people about
blood donation. This application also creates an online platform
for blood exchange among donors and acceptors.
Advantages:
User friendly atmosphere is provided in the application with
various controls.
This system makes the overall project management much
easier and flexible.
Readily upload the latest updates ,allows user to download
the alerts by clicking the url.
It provides a decent level of security with different level of
authentication
2. SYSTEM ANALYSIS
Software Requirement Specification (SRS)
SOFTWARE REQUIREMENT SPECIFICATION
What is SRS?
1) Problem/Requirement Analysis:
The process is order and more nebulous of the two, deals with
understand the problem, the goal and constraints.
2) Requirement Specification:
Waterfall Model:
Advantages:
Architecture Flow:
URL Pattern:
User
SERVER
Data
Base
Request Response
URL pattern represents how the requests are flowing through one layer
to another layer and how the responses are getting by other layers to
presentation layer through server in architecture diagram.
3. Feasibility Study
The main objective of the feasibility study is to test the Technical,
Operational and Economical feasibility for adding new modules and
debugging old running system. All system is feasible if they are unlimited
resources and infinite time. There are aspects in the feasibility study
portion of the preliminary investigation:
Technical Feasibility
Operation Feasibility
Economical Feasibility
4. REQUIREMENTS SPECIFICATION
4.1 functional requirements
The system is proposed to have the following modules:
1. Administration
2. Donor
3.acceptor
Administrator:-
In this module the Administrator has the privileges to add all the Blood
Groups, Blood Type, City, and Location. He can search all the info about the
Donor.
Donor:-
Donor is that person who is interested in donating his blood, so they can
register themselves through this application. If any requirement comes then
they will be contacted and they can donate their blood. Along with it they can
also make request for blood if needed.
ACCEPTOR:-
acceptor is that person who is in need of a particular blood.In this module any
general user who is not registered can also make request for blood if needed.
He can visit all the static pages and can get information about the various
issues related with blood donation.
4.2 PERFORMANCE REQUIREMENTS
SOFTWARE REQUIREMENTS:
Windows OS
Ionic framework
Cordova Platform
Jdk
Android SDK
Node.js
Apache ANT
SQL server
4.3.5 HTML
Webpages are written in HTML - a simple scripting language.
Since HTML documents are just text files they can be written in
even the simplest text editorA more popular choice is to use a
special HTML editor - maybe even one that puts focus on the visual
result rather than the codes - a so-called WYSIWYG editor ("What
You See Is What You Get").
Some of the most popular HTML editors, such as FrontPage or
Dreamweaver will let you create pages more or less as you write
documents in Word or whatever text editor you're using.
However, there are some very good reasons to create your own pages - or
parts of them - by hand...
There are excellent editors on the market that will take care of the HTML
parts. All you need to do is layout the page.
HTML Tags
HTML tags are surrounded by the two characters < and >
The first tag in a pair is the start tag, the second tag is the end tag
The text between the start and end tags is the element content
HTML tags are not case sensitive, <b> means the same as <B>
Ionic is a complete open-source SDK for hybrid mobile app development.[4] Built
on top of AngularJS and Apache Cordova, Ionic provides tools and services for
developing hybrid mobile apps using Web technologies like CSS, HTML5,
and Sass. Apps can be built with these Web technologies and then distributed
through native app stores to be installed on devices by leveraging Cordova. Ionic
was created by Max Lynch, Ben Sperry, and Adam Bradley of Drifty Co. in 2013.
Using Angular, Ionic provides custom components and methods for interacting with them.
One such component, collection repeat, allows users to scroll through a list of thousands
of items without any performance hits. Another component, scroll-view, creates a
scrollable container with which users can interact using a native-influenced delegate
system.
<ion-content>
</ion-content>
Developers can programmatically control the scroll-view to get the scroll position, scroll to
bottom/top, zoom, or get information about the current scroll-view instances.
$ionicScrollDelegate.scrollTop();
$ionicScrollDelegate.scrollBottom();
$ionicScrollDelegate.zoomTo(1.5);
$ionicScrollDelegate.getScrollView();
Besides the SDK, Ionic also provides services that developers can use to enable
features, such as push notifications, A/B testing, analytics, code deploys, and automated
builds.
Ionic also provides a powerful command-line interface (CLI), so developers can get
started and create a project with a simple command. The CLI also allows developers to
add Cordova plugins and additional front-end packages, enable push notifications,
generate app Icons and Splash screens, and build native binaries.
Supported platforms[edit]
Ionic is focused on building for modern Web standards and for modern mobile devices.
For Android, Ionic supports Android 4.1 and up. For iOS, Ionic supports iOS 7 and up.
[6]
Ionic 2 supports the Universal Windows Platform for building Windows 10 apps.[7] Ionic
Framework, powered by Angular.js, supports BlackBerry 10 apps.[8]
Performance[edit]
Compared to hybrid apps, mixing Ionic code with native mobile app code
in PhoneGap allows for higher performance of the resulting product:
utilizing AngularJS (rather than jQuery) allows Ionic to rely on native hardware
acceleration (rather than extensive DOM manipulation). Ionic leverages CSS transitions
and transforms for animation as a way to leverage the GPU and maximize available
processor time.
Installation[edit]
Ionic is an npm module and requires Node.js.
Android SDK[edit]
Android SDK
Developer(s) Google
Written in Java
Operating Cross-platform
system
Available in English
Website developer.android.com/tools/sdk/eclipse-
adt.html, developer.android.com/sdk/index.ht
ml
Until around the end of 2014, the officially supported integrated development
environment (IDE) was Eclipse using the Android Development Tools (ADT) Plugin,
though IntelliJ IDEA IDE (all editions) fully supports Android development out of the box,
[7]
and NetBeans IDE also supports Android development via a plugin. [8] As of
2015, Android Studio,[9] made by Google and powered by IntelliJ, is the official IDE;
however, developers are free to use others. Additionally, developers may use any text
editor to edit Java and XML files, then use command line tools (Java Development
Kit and Apache Ant are required) to create, build and debug Android applications as well
as control attached Android devices (e.g., triggering a reboot, installing software
package(s) remotely).[10]
Enhancements to Android's SDK go hand in hand with the overall Android platform
development. The SDK also supports older versions of the Android platform in case
developers wish to target their applications at older devices. Development tools are
downloadable components, so after one has downloaded the latest version and platform,
older platforms and tools can also be downloaded for compatibility testing. [11]
Android applications are packaged in .apk format and stored under /data/app folder on
the Android OS (the folder is accessible only to the root user for security reasons). APK
package contains .dex files[12] (compiled byte code files called Dalvik executables),
resource files, etc.
4.3.4 php
PHP is a server-side scripting language designed for web development but also used as
a general-purpose programming language. Originally created byRasmus Lerdorf in 1994,
[4]
the PHP reference implementation is now produced by The PHP Group.[5] PHP
originally stood for Personal Home Page,[4] but it now stands for
the recursive backronym PHP: Hypertext Preprocessor.[6]
PHP code may be embedded into HTML code, or it can be used in combination with
various web template systems, web content management systems andweb frameworks.
PHP code is usually processed by a PHP interpreter implemented as a module in the
web server or as a Common Gateway Interface (CGI) executable. The web server
combines the results of the interpreted and executed PHP code, which may be any type
of data, including images, with the generated web page. PHP code may also be executed
with a command-line interface (CLI) and can be used to implement standalone graphical
applications.[7]
The standard PHP interpreter, powered by the Zend Engine, is free software released
under the PHP License. PHP has been widely ported and can be deployed on most web
servers on almost every operating system and platform, free of charge.[8]
The PHP language evolved without a written formal specification or standard until 2014,
leaving the canonical PHP interpreter as a de facto standard. Since 2014 work has gone
on to create a formal PHP specification.[9]
During the 2010s there have been increased efforts towards standardisation and code
sharing in PHP applications by projects such as PHP-FIG in the form of PSR-
initiatives as well as Composer dependency manager and the Packagist repository.
5. SYSTEM DESIGN
Introduction: Systems Design is the process or art of defining the architecture, components, modules,
interfaces, and data for a system to satisfy specified requirements. One could see it as the application of
systems theory to product development. There is some overlap and synergy with the disciplines of
systems analysis, systems architecture and systems engineering.
Unified Modeling Language: The Unified Modeling Language allows the software engineer to express
an analysis model using the modeling notation that is governed by a set of syntactic semantic and
pragmatic rules.
A UML system is represented using five different views that describe the system from distinctly different
perspective. Each view is defined by a set of diagram, which is as follows.
User Model View i. This view represents the system from the users perspective. ii. The analysis
representation describes a usage scenario from the end-users perspective.
Structural model view i. In this model the data and functionality are arrived from inside the system. ii.
This model view models the static structures.
Behavioral Model View It represents the dynamic of behavioral as parts of the system, depicting the
interactions of collection between various structural elements described in the user model and structural
model view.
Implementation Model View In this the structural and behavioral as parts of the
system are represented as they are to be built.
Environmental Model View In this the structural and behavioral aspects
of the environment in which the system is to be implemented are represented.
UML is specifically constructed through two different domains they are:
UML Analysis modeling, this focuses on the user model and structural model
views of the system. UML design modeling, which focuses on the behavioral
modeling, implementation modeling and environmental model views.
Use case Diagrams represent the functionality of the system from a users point
of view. Use cases are used during requirements elicitation and analysis to
represent the functionality of the system. Use cases focus on the behavior of the
system from external point of view.
Actors are external entities that interact with the system. Examples of actors
include users like administrator, bank customer etc., or another system like
6. IMPLEMENTATION
// Connect to MySQL
$mysqli = new mysqli( 'localhost', 'eblood', '8099322060', 'eblood' );
// Checking connection
if ( $mysqli->connect_error ) {
die( 'Connect Error: ' . $mysqli->connect_errno . ': ' . $mysqli-
>connect_error );
}
$sql = "INSERT INTO user ( name, email, gender, bloodgroup, phoneno, city)
VALUES ( '{$mysqli->real_escape_string($_POST['name'])}', '{$mysqli-
>real_escape_string($_POST['email'])}', '{$mysqli-
>real_escape_string($_POST['gender'])}','{$mysqli-
>real_escape_string($_POST['bloodgroup'])}','{$mysqli-
>real_escape_string($_POST['phoneno'])}', '{$mysqli-
>real_escape_string($_POST['city'])}')";
$insert = $mysqli->query($sql);
if ( $insert ) {
echo "Registration Successful";
header("Location:http://www.atozdownload.in/eblood/search/");
} else {
die("Error: {$mysqli->errno} : {$mysqli->error}");
}
// Close our connection
$mysqli->close();
}
?>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width; height=device-
height; user-scalable=yes; initial-scale=1.0" >
</head>
</html>
search
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width; user-scalable=yes;
initial-scale=1.0">
</head>
<link rel = "stylesheet" type = "text/css" href = "style.css">
<link rel = "stylesheet" type = "text/css" href = "bootstrap.css">
<body>
<center><form id="search" action="searchfunction.php" method="post" >
<label>Blood Group</label>
<div class="element-select" title="Blood Group"><label
class="title"></label><div class="large"><span><select name="bloodgroup"
required>
<option value="select">select</option>
<option value="A+">A+</option>
<option value="A-">A-</option>
<option value="B+">B+</option>
<option value="B-">B-</option>
<option value="AB+">AB+</option>
<option value="AB-">AB-</option>
<option value="O+">O+</option>
<option value="O-">O-</option>
</select><i></i></span></div></div>
<label>City</label>
<div class="element-select" title="Choose Your City"><label
class="title"></label><div class="large"><span><select name="city" required>
<option value="select">select</option>
<option value="Adilabad">Adilabad</option>
<option value="Hyderabad">Hyderabad</option>
<option value="Karimnagar">Karimnagar</option>
<option value="Khammam">Khammam</option>
<option value="Mahbubnagar">Mahbubnagar</option>
<option value="Medak">Medak</option>
<option value="Nalgonda">Nalgonda</option>
<option value="Nizamabad">Nizamabad</option>
<option value="RangaReddy">RangaReddy</option>
<option value="Warangal">Warangal</option>
</select><i></i></span></div></div>
<button type="submit" class="btn">Search</button>
</form></center>
</body>
</html>
Search function
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width; user-scalable=yes;
initial-scale=1.0">
</head>
<body>
<?php
$bloodgroup = $_POST['bloodgroup'];
$city = $_POST['city'];
$mysql_host='localhost';
$mysql_user='eblood';
$mysql_pass='8099322060';
$mysql_database='eblood';
$connect=mysql_connect($mysql_host,$mysql_user, $mysql_pass);
mysql_select_db("eblood") or die("no db :'(");
$query="SELECT name,email,gender,bloodgroup,phoneno,city FROM user
WHERE bloodgroup='$bloodgroup' AND city='$city' ";
$result=mysql_query($query);
$numrows=mysql_num_rows($result);
?>
<table class="table table-hover table-striped">
<thead>
<tr>
<th><font face="Arial, Helvetica, sans-serif">Name</font></th>
</tr>
</thead>
<tbody>
<?php
$i=0;
while ($i < $numrows) {
$r2=mysql_fetch_array($result);
$f1=$r2['name'];
$f3=$r2['gender'];
$f4=$r2['bloodgroup'];
$f5=$r2['phoneno'];
$f6=$r2['email'];
$f7=$r2['city'];
$i++;
?>
<tr>
<td><font face="Arial, Helvetica, sans-serif"><?php echo $f1; ?></font></td>
</tr>
<?php
}
mysql_close();
?>
</tbody>
</table>
</div>
</body>
</html>
About us
7. testing
7.1Introduction to Testing:
Testing is a process, which reveals errors in the program. It is the
major quality measure employed during software development. During
testing, the program is executed with a set of test cases and the output
of the program for the test cases is evaluated to determine if the
program is performing as it is expected to perform.
In order to make sure that the system does not have errors, the
different levels of testing strategies that are applied at differing phases
of software development are:
Unit Testing:
Integrating Testing :
System Testing:
Acceptance Testing :
Bottom up approach
Top down approach
Bottom Up Approach:
Validation:
System security