User Management System Saurabh Bhandari
00113702014
CHAPTER – 1: Introduction
1.1 Organiza Orga nization tion Descripti Descr iption on User management system provides functionality functionality to manage personal profiles and users. users. Personal profiles contain information such as profile identification number, email, first and last name, etc. Personal profiles are used for personal information such as names, addresses, etc. In order to access personal profile for reading and modification PIN number is used for authentication. User information contains user identification number, username, password and session for authentication.
1.2 About te t e proposed propos ed s!ste" s!s te"
1.2.1 Ai" The main aims of the system are:
• • • •
To provide online user registration To manage user database. To edit user’s details. To delete user form database.
1
User Management System Saurabh Bhandari
1.2.2 1.2. 2 #$oc # $oc% % Diagra" Diag ra"
2
00113702014
User Management System Saurabh Bhandari –
3
00113702014
User Management System Saurabh Bhandari
00113702014
&ig. 1.1
1.2.' 1.2 .' (odu$e (od u$ess The odules of the !ystem are as follows: "
AD(I)
•
to $ogin to manage the whole website. *ogin: #dmin has to
•
(anage +ser, #dmin manages all the users in the database.
•
De$ete +ser" #dmin can delete user from database.
•
*ogin: User has to $ogin to listen and download the songs.
•
Edit Proi$e: User can view and edit their profile after registering and logging in
+-ER
on the website. •
Registration : This module is accessible by the user to register on the website to
access all the features.
1.' -cope -cop e o te s!ste" s!st e"
4
User Management System Saurabh Bhandari
00113702014
This product provides a simple user management page that lets you view, search users, create new user accounts, and edit e%isting ones. #lso provides tools to disable or delete users, manage permissions, and issue password resets.
1./ (etodo$og! or Data Co$$ection 1./.1
Pri"ar! Data Co$$ection This involves collecting data by means of direct interactions with the human sub&ect. No primary data collection method is used in ma'ing this system.
1./.2
-econdar! Data Co$$ection
!econdary (ata )ollection is an e%isting data from a prior published study.
*oo's:
•
•
•
+. eith, -%tending /0uery1,2rd edition
•
3. *rian P.,13tml 4 5 )!!21, 6th edition
•
7. Peter,1The *oo' of )!!21,6th edition
•
/. Terry 5 T. Nicholas 3., -$earning /0uery(eferreds1, 4th edition
•
aithey and !erra,13ead 8irst1, 9nd edition
•
7. /ason, )harlton,1 Pure /ava!cript1,4th edition
Internet:
•
www.daniweb.com
•
www.techenclave.com
•
www.&sptut.com
•
www.w2schools.com www.broo'ings.edu
•
www.redboo's.com
•
www.tutorialspoint.com
•
www.corewebprogramming.com
•
5
User Management System Saurabh Bhandari
00113702014
1.0 (etodo$og! or Ana$!sis Design and Dee$op"ent 1.0.1 -tages o Iteratie 3atera$$ (ode$
•
Re4uire"ent 5atering and ana$!sis: #ll possible re0uirements of the system to be
developed are captured in this phase and documented in a re0uirement specification doc. •
-!ste" Design: The re0uirement specifications from first phase are studied in this
phase and system design is prepared. !ystem (esign helps in specifying hardware and system re0uirements and also helps in defining overall system architecture. •
I"p$e"entation: +ith inputs from system design, the system is first developed in
small programs called units, which are integrated in the ne%t phase. ach unit is developed and tested for its functionality which is referred to as Unit Testing. •
Integration and Testing: #ll the units developed in the implementation phase are
integrated into a system after testing of each unit. Post integration the entire system is tested for any faults and failures. •
Dep$o!"ent o s!ste": nce the functional and non"functional testing is done, the
product is deployed in the customer environment or released into the mar'et. •
(aintenance: There are some issues which come up in the client environment. To fi%
those issues patches are released. #lso, to enhance the product some better versions are released. aintenance is done to deliver these changes in the customer environment. #ll these phases are cascaded to each other in which progress is seen as flowing steadily downwards ;li'e a waterfall< through the phases. The ne%t phase is started
6
User Management System Saurabh Bhandari
00113702014
only after the defined set of goals are achieved for previous phase and it is signed off, so the name =+aterfall odel=. In this model phases do not overlap.
1.0.2 #$oc% Diagra" o Iteratie 3atera$$ (ode$
7
User Management System Saurabh Bhandari
00113702014
&ig 1.2 #$oc% Diagra" or Iteratie 3atera$$ (ode$
1.0.' Reasons or coosing coosi ng Iteratie 3atera$$ (ode$ The iterative waterfall development model allows for departmentali>ation and control. # schedule can be set with deadlines for each stage of development and a product can proceed through the development process model phases one by one. (evelopment moves from concept, through design, implementation, testing, and ends up at operation and maintenance. maintenanc e. ach phase of development develop ment proceeds in strict order. !ome other reasons for choosing the model are: •
?e0uirements are very well documented, clear and fi%ed.
•
Product definition is stable.
•
Technology is understood and is not dynamic.
•
There are no ambiguous re0uirements.
•
#mple resources with re0uired e%pertise are available to support the product.
•
The pro&ect is short.
1.0./ -!ste" Too$s Re4uire"ents 1.0./.1 -ot6are re4uire"ents: 8
User Management System Saurabh Bhandari
00113702014
perating !ystem +eb !erver
icrosoft +indows CP or 3igher C#PP
[email protected]
8ront"nd Tech
3T$, /ava!cript, )!!
*ac'"nd Tech
P3P 4.@, y!D$ 4.B
1.0./.2 Hard6are re4uire"ents: ?#
94@ *
Processor
Pentium;?< (ual )ore )PU, A.@B 73>
3ard (is' (rive;3((<
9 7*
1.0.0 Pro7ect P$anning 5antt Cart
9
User Management System Saurabh Bhandari Tab$e. 1.'
Tab$e. 1./
CHAPTER 2 -8-TE( RE9+IRE(E)T A)A*8-I2.1 Process and description
AD(I)
•
to $ogin to manage the whole website. *ogin: #dmin has to
•
(anage +ser, #dmin manages all the users in the database.
•
De$ete +ser" #dmin can delete user from database.
+-ER
10
00113702014
User Management System Saurabh Bhandari
00113702014
•
*ogin: User has to $ogin to listen and download the songs.
•
Edit Proi$e: User can view and edit their profile after registering and logging in
on the website. •
Registration : This module is accessible by the user to register on the website to
access all the features.
2. 2 -!ste" Processes and inputoutput identiications 2.2.1 -!ste" processes •
?egister
•
$ogin
•
anage user
•
dit user
•
(elete user
2.2.2 Inputoutput data description
11
User Management System Saurabh Bhandari
00113702014
PROCE--
I)P+T
O+TP+T
)O.
8or Username, Password, 1.
Registration
)ourse, contact number, mail Id, #ddress. User’s $ogin Id and
2.
*ogin
'.
(anage +ser
/.
De$ete +ser
$ogin Id
$ogin )onfirmation.
Password, #dmin’s Id and password anage users and edit user details (elete e%isting user
User (etails updated User removed
2.' +se Case Diagra" The Use case describes what of a system not -how1. They only give functional view of the system. Use cases are structured outline or templates for the description of user re0uirement, model in a structured language li'e nglish. Use case diagrams are graphical representation that may be decomposed into further levels of the abstraction. Actor
#n #ctor models a type of role played by an entity that interacts with the sub&ect ;e.g., by e%changing signals and data<, but which is e%ternal to the sub&ect ;i.e., in the sense that an instance of an actor is not a part of the instance of its corresponding sub&ect<. #ctors may represent roles played by human users, e%ternal hardware, or other sub&ects. Association
#n association specifies a semantic relationship that can occur between typed instances. It has at least two ends represented by properties, each of which is 12
User Management System Saurabh Bhandari
00113702014
connected to the type of the end. ore than one end of the association may have the same type. •
-!ste"
If a sub&ect ;or system boundary< is displayed, the use case ellipse is visually located inside the system boundary rectangle. Note that this does not necessarily mean that the sub&ect classifier owns the contained use cases, but merely that the use case applies to that classifier.
+se Case
# use case is the specification of a set of actions performed by a system, which yields an observable result that, is, typically, of value for one or more actors or other sta'eholders of the system.
13
User Management System Saurabh Bhandari
00113702014
&ig. 2.1 +-E CA-E DIA5RA(
2./ Identiication and description o "ate"atica$ procedures. N#
2.0 Identiication and description o arious securit! cec%s and a$idations cec%s in te s!ste". 14
User Management System Saurabh Bhandari
00113702014
2.0.1 Registration ;a$idations
&ie$ds User Name
Description 8ull Name of the !tudent is mandatory.
Pass6ord
!ecurity 'ey of the person for future reference. Ealid mail Id of the !tudent.
E"ai$ Address
Ealid Number of the !tudent
Contact )u"ber
-ecurit! cec%s Name should have only #lphabets. No numeric 'ey is allowed. )an’t be left blan' and can have #lphanumeric 'eys. mail Id should have correct se0uence of special 'eywords used. )an be #lphanumeric. ust be of AB Numeric 'eys
Tab$e 2.1
2.0.2 *ogin ;a$idations &ie$ds +ser )a"e
Description # valid User IdF#dmin Id of the person.
Pass6ord
# Ealid Password of the person.
Tab$e 2.2
CHAPTER ' -8-TE( DE-I5) '.1. PH8-ICA* DE-I5) 15
-ecurit! cec%s !hould be same as provided during the registration. atched from the database. !hould be same as provided during the registration. atched from the database.
User Management System Saurabh Bhandari
00113702014
The physical design relates to the actual input and output processes of the system. This is laid down in terms of how data is input into a system, how it is verified F authenticated, how it is processed, and how it is displayed as output.
Physical design, in this conte%t, does not refer to the tangible physical design of an information system. To use an analogy, a personal computerGs physical design involves input via a 'eyboard, processing within the )PU, and output via a monitor, printer, etc. It would not concern the actual layout of the tangible hardware, which for a P) would be a monitor, )PU, motherboard, hard drive, modems, videoFgraphics cards, U!* slots, etc.
'.1.1. C*A-- DIA5RA(
In software engineering, a class diagram in the Unified Modeling Language (UML) is a type of static structure diagram that describes the structure of a system by showing the system's classes, their attributes, operations (or methods), and the relationships among objects. he class diagram is the main building bloc! of object"oriented modelling. It is used both for general conceptual modelling of the systematics of the application, and for detailed modelling translating the models into programming code. #lass diagrams can also be used for data modeling. he classes in a class diagram represent both the main elements, interactions in the application, and the classes to be programmed.
16
User Management System Saurabh Bhandari
&ig. '.1
17
00113702014
User Management System Saurabh Bhandari
18
00113702014
User Management System Saurabh Bhandari
00113702014
'.1.2.ER, Diagra" #n Entit! Re$ationsip Diagra"
e a relational database: each entity represents a database table and the relationship lines represents the 'ey in one table that point to specific records in related tables. Adantages o ER Diagra" H
Professional and faster (evelopment.
H
Productivity Improvement.
H
8ewer 8aults in (evelopment.
H
aintenance becomes easy.
19
User Management System Saurabh Bhandari &ig. '.2
'.2 Processing *ogic
'.2.1. Actiit! Diagra"
20
00113702014
User Management System Saurabh Bhandari
&ig. '.' Actiit! Diagra" or +ser '.2.2-e4uence Diagra"
21
00113702014
User Management System Saurabh Bhandari
&ig. './ -e4uence Diagra" or *ogin
22
00113702014
User Management System Saurabh Bhandari
'.2.' &$o6 Cart
&ig. '.0 23
00113702014
User Management System Saurabh Bhandari
00113702014
'.' Interace Design 3.3.1 Output Design The output specifications of the e%isting information system include the detailed characteristics of contents included in each ?eport. The description for each Eisual *asic utput ?eport has been mentioned E>I-TI)5 -8-TE( DE-I5) <5rapica$ +ser Interace= 1. *ogin Page
24
User Management System Saurabh Bhandari
2. Ad"in *ogin
'. (anage +sers
25
00113702014
User Management System Saurabh Bhandari
/. Edit +ser Detai$s
26
00113702014
User Management System Saurabh Bhandari
0. +ser Detai$s +pdated
?. De$ete +ser
27
00113702014
User Management System Saurabh Bhandari
@. +ser Re"oed
'.'.2 Input Design 28
00113702014
User Management System Saurabh Bhandari TABLE NAME
USE!S
COLUMN
FIELD
SIE
NAME
TYPE
id
int
11
%name
&ar'har
255
P!IMA!Y
00113702014 NULL
DESC!IPTION
YS
!"
#rimary $ey
!"
!"
(rst name )%
"EY
the user *name
+ar'har
255
!"
!"
*ast name )% the user,
emai*
+ar'har
255
!"
!"
e-mai* id )% the user,
.ass/)rd
+ar'har
300
!"
!"
.ass/)rd )% the user
')nta'tn)
&ar'har
11
!"
!"
m)bi*e number )% the user,
A#min
.)stingdate
date
id
int
username
&ar'har
!"
!"
)ining date
11
!"
!"
#rimary $ey
255
!"
!"
user-id )% admin
.ass/)rd
&ar'har
255
!"
!"
#ass/)rd )% the admin
Tab$e '.1
'.2 Database and &i$e Design '.2.1 Ad"in Database
29
User Management System Saurabh Bhandari
'.2.2 +ser Database
CHAPTER / -8-TE( DE;E*OP(E)T 30
00113702014
User Management System Saurabh Bhandari
00113702014
/.1. -O+RCE CODE I)DE>.PHP
Jphp sessionKstart;
FF)ode for ?egistration if;isset;MKP!TOGsignupG<< Q MfnameMKP!TOGfnameGL MlnameMKP!TOGlnameGL MemailMKP!TOGemailGL MpasswordMKP!TOGpasswordGL McontactMKP!TOGcontactGL MencKpasswordmd4;Mpassword
31
User Management System Saurabh Bhandari
00113702014
Mmsgmys0lK0uery;=insert into users;fname,lname,email,password,contactno,postingKdate< values;GMfnameG,GMlnameG,GMemailG,GMencKpasswordG,GMcontactG,GMaG<=
FF )ode for login system if;isset;MKP!TOGloginG<< Q MpasswordMKP!TOGpasswordGL MdecKpasswordmd4;Mpassword
User Management System Saurabh Bhandari
00113702014
MhostMK!?E?OG3TTPK3!TGL Murirtrim;dirname;MK!?E?OGP3PK!$8G<,GFVVG
FF)ode for 8orgot Password
if;isset;MKP!TOGsendG<< Q MrowAmys0lK0uery;=select email,password from users where emailG=. MKP!TOGfemailG.=G=
33
User Management System Saurabh Bhandari
00113702014
Mrow9mys0lKfetchKarray;MrowA
JS W()TRP htmlS htmlS headS titleS$ogin !ystemFtitleS lin' href=cssFstyle.css= relGstylesheetG typeGte%tFcssG FS 34
User Management System Saurabh Bhandari
00113702014
meta name=viewport= content=widthdevice"width, initial"scaleA=S meta http"e0uiv=)ontent"Type= content=te%tFhtmlL charsetutf"X= FS meta name='eywords= content=legent Tab 8orms,$ogin 8orms,!ign up 8orms,?egistration 8orms,News latter 8orms,lements=.FS script type=applicationF%"&avascript=S addvent$istener;=load=, function;< Q setTimeout;hideU?$bar, BontalTabG<.easy?esponsiveTabs;Q type: GdefaultG, width: GautoG, fit: true
User Management System Saurabh Bhandari
00113702014
bodyS div class=main=S hAS?egistration and $ogin !ystemFhAS div class=sapKtabs=S div id=hori>ontalTab= style=display: bloc'L width: ABB]L margin: Bp%L=S ul class=resp"tabs"list=S li class=resp"tab"item= aria"controls=tabKitem"B= role=tab=Sdiv class=top"img=Simg src=imagesFtop"note.png= alt==FSFdivSspanS?egisterFspanS
FliS li class=resp"tab"item= aria"controls=tabKitem"A= role=tab=Sdiv class=top"img=Simg src=imagesFtop"loc'.png= alt==FSFdivSspanS$oginFspanSFliS li class=resp"tab"item lost= aria"controls=tabKitem" 9= role=tab=Sdiv class=top"img=Simg src=imagesFtop"'ey.png= alt==FSFdivSspanS8orgot PasswordFspanSFliS div class=clear=SFdivS FulS
div class=resp"tabs"container=S div class=tab"A resp"tab"content= aria" labelledby=tabKitem"B=S div class=facts=S 36
User Management System Saurabh Bhandari
00113702014
div class=register=S form name=registration= method=post= action== enctype=multipartFform"data=S pS8irst Name FpS input type=te%t= class=te%t= value== name=fname= re0uired S pS$ast Name FpS input type=te%t= class=te%t= value== name=lname= re0uired S pSmail #ddress FpS input type=te%t= class=te%t= value== name=email= S pSPassword FpS input type=password= value== name=password= re0uiredS pS)ontact No. FpS input type=te%t= value== name=contact= re0uiredS div class=sign"up=S input type=reset= value=?eset=S input type=submit= name=signup= value=!ign Up= S
37
User Management System Saurabh Bhandari
00113702014
div class=clear=S FdivS FdivS FformS
FdivS FdivS FdivS div class=tab"9 resp"tab"content= aria"labelledby=tabKitem" A=S div class=facts=S div class=login=S div class=buttons=S
FdivS form name=login= action== method=post=S input type=te%t= class=te%t= name=uemail= value== placeholder=nter your registered email= Sa href=Y= class= icon email=SFaS
input type=password= value== name=password= placeholder=nter valid password=Sa href=Y= class= icon loc'=SFaS 38
User Management System Saurabh Bhandari
00113702014
div class=p"container=S
div class=submit two=S input type=submit= name=login= value=$7 IN= S FdivS div class=clear=S FdivS FdivS
FformS FdivS FdivS FdivS div class=tab"9 resp"tab"content= aria" labelledby=tabKitem"A=S div class=facts=S div class=login=S div class=buttons=S
FdivS 39
User Management System Saurabh Bhandari
00113702014
form name=login= action== method=post=S input type=te%t= class=te%t= name=femail= value== placeholder=nter your registered email= re0uired Sa href=Y= class= icon email=SFaS
div class=submit three=S input type=submit= name=send= on)lic'=my8unction;<= value=!end mail= S FdivS FformS FdivS
FdivS FdivS
FdivS
FdivS
FdivS FdivS
FbodyS FhtmlS
40
User Management System Saurabh Bhandari
00113702014
CHEC*O5I).PHP
Jphp function chec'Klogin;< Q if;strlen;MK!!!INOGloginG<B< Q MhostMK!?E?OG3TTPK3!TGL Muri rtrim;dirname;MK!?E?OGP3PK!$8G<, GFVVG
Jphp sessionKstart;
User Management System Saurabh Bhandari
Mret mys0lK0uery;=!$)T 8? users +3? emailG=. MKP!TOGuemailG.=G and passwordGMdecKpasswordG=
Me%tra=welcome.php=L MK!!!INOGloginGMKP!TOGuemailGL MK!!!INOGidGMnumOGidGL MhostMK!?E?OG3TTPK3!TGL Murirtrim;dirname;MK!?E?OGP3PK!$8G<,GFVVG
00113702014
User Management System Saurabh Bhandari
00113702014
3E*CO(E.PHP
Jphp sessionKstart;
JSW()TRP htmlS html lang=en=S
headS
meta charset=utf"X=S meta http"e0uiv=C"U#")ompatible= content=Iedge=S meta name=viewport= content=widthdevice"width, initial"scaleA=S meta name=description= content==S meta name=author= content==S
titleS+elcome FtitleS lin' href=cssFbootstrap.min.css= rel=stylesheet=S lin' href=cssFheroic"features.css= rel=stylesheet=S FheadS 43
User Management System Saurabh Bhandari
00113702014
bodyS nav class=navbar navbar"inverse navbar"fi%ed"top= role=navigation=S div class=container=S div class=navbar"header=S button type=button= class=navbar"toggle= data"toggle=collapse= data"target=Ybs"e%ample"navbar"collapse"A=S span class=sr"only=SToggle navigationFspanS span class=icon"bar=SFspanS span class=icon"bar=SFspanS span class=icon"bar=SFspanS
FbuttonS a class=navbar"brand= href=Y=S+elcome WFaS
FdivS div class=collapse navbar"collapse= id=bs"e%ample"navbar"collapse"A=S ul class=nav navbar"nav=S
liS a href=Y=SJphp echo MK!!!INOGnameGLJSFaS
FliS
liS a href=logout.php=S$ogoutFaS
FliS
FulS 44
User Management System Saurabh Bhandari
00113702014
FdivS FdivS
FnavS div class=container=S header class=&umbotron hero"spacer=S hAS# +arm +elcomeWFhAS pS$orem ipsum dolor sit amet, consectetur adipisicing elit. Ipsa, ipsam, eligendi, in 0uo sunt possimus non incidunt odit vero ali0uid simili0ue 0uaerat nam nobis illo aspernatur vitae fugiat num0uam repellat.FpS pSa href=logout.php= class=btn btn"primary btn"large=S$ogout FaS
FpS
FheaderS
hrS
FdivS
hrS
45
User Management System Saurabh Bhandari
FdivS script src=&sF&0uery.&s=SFscriptS script src=&sFbootstrap.min.&s=SFscriptS FbodyS
FhtmlS *O5O+T.PHP
Jphp sessionKstart;
sessionKunset;
46
00113702014
User Management System Saurabh Bhandari
00113702014
AD(I) *O5I).PHP
Jphp sessionKstart;
47
User Management System Saurabh Bhandari
00113702014
e%it;
titleS#dmin \ $oginFtitleS lin' href=assetsFcssFbootstrap.css= rel=stylesheet=S lin' href=assetsFfont"awesomeFcssFfont"awesome.css= rel=stylesheet= FS lin' href=assetsFcssFstyle.css= rel=stylesheet=S lin' href=assetsFcssFstyle"responsive.css= rel=stylesheet=S FheadS
bodyS
48
User Management System Saurabh Bhandari
00113702014
div id=login"page=S div class=container=S
form class=form"login= action== method=post=S h9 class=form"login"heading=Ssign in nowFh9S p style=color:Y8BBL padding"top:9Bp%L= align=center=SJphp echo MK!!!INOGactionAGLJSJphp echo MK!!!INOGactionAG==LJSFpS div class=login"wrap=S input type=te%t= name=username= class=form"control= placeholder=User I(= autofocusS
brS
input type=password= name=password= class=form" control= placeholder=Password=Sbr S input name=login= class=btn btn"theme btn"bloc'= type=submit=S FdivS
FformS
FdivS FdivS script src=assetsF&sF&0uery.&s=SFscriptS script src=assetsF&sFbootstrap.min.&s=SFscriptS script type=te%tF&avascript= src=assetsF&sF&0uery.bac'stretch.min.&s=SFscriptS scriptS 49
User Management System Saurabh Bhandari
00113702014
M.bac'stretch;=assetsFimgFlogin"bg.&pg=, Qspeed: 4BB
Jphp sessionKstart;
User Management System Saurabh Bhandari
00113702014
meta name=author= content=(ashboard=S meta name='eyword= content=(ashboard, *ootstrap, #dmin, Template, Theme, ?esponsive, 8luid, ?etina=S titleS#dmin \ anage UsersFtitleS lin' href=assetsFcssFbootstrap.css= rel=stylesheet=S lin' href=assetsFfont"awesomeFcssFfont"awesome.css= rel=stylesheet= FS lin' href=assetsFcssFstyle.css= rel=stylesheet=S lin' href=assetsFcssFstyle"responsive.css= rel=stylesheet=S FheadS bodyS section id=container= S header class=header blac'"bg=S div class=sidebar"toggle"bo%=S div class=fa fa"bars tooltips= data"placement=right= data"original" title=Toggle Navigation=SFdivS
FdivS a href=Y= class=logo=SbS#dmin (ashboardFbSFaS div class=nav notify"row= id=topKmenu=S
FulS FdivS div class=top"menu=S ul class=nav pull"right top"menu=S liSa class=logout= href=logout.php=S$ogoutFaSFliS
FulS 51
User Management System Saurabh Bhandari
00113702014
FdivS FheaderS asideS div id=sidebar= class=nav"collapse =S ul class=sidebar"menu= id=nav"accordion=S
p class=centered=Sa href=Y=Simg src=assetsFimgFui"sam.&pg= class=img"circle= width=@B=SFaSFpS h4 class=centered=SJphp echo MK!!!INOGloginGLJSFh4S
li class=mt=S a href=change"password.php=S i class=fa fa"file=SFiS spanS)hange PasswordFspanS
FaS FliS
li class=sub"menu=S a href=manage"users.php= S i class=fa fa"users=SFiS spanSanage UsersFspanS
FaS FliS
FulS 52
User Management System Saurabh Bhandari
FdivS
FasideS
00113702014
section id=main"content=S section class=wrapper=S h2Si class=fa fa"angle"right=SFiS anage UsersFh2S div class=row=S div class=col"md"A9=S div class=content"panel=S table class=table table"striped table"advance table"hover=S h6Si class=fa fa"angle"right=SFiS #ll User (etails Fh6S
hrS
theadS
trS
thS!no.FthS th class=hidden"phone=S8irst NameFthS thS $ast NameFthS thS mail IdFthS thS)ontact no.FthS thS?eg. (ateFthS
FtrS
FtheadS
53
User Management System Saurabh Bhandari
00113702014
tbodyS Jphp Mretmys0lK0uery;=select from users=
trS tdSJphp echo McntLJSFtdS tdSJphp echo MrowOGfnameGLJSFtdS tdSJphp echo MrowOGlnameGLJSFtdS tdSJphp echo MrowOGemailGLJSFtdS
tdSJphp echo MrowOGcontactnoGLJSFtdS tdSJphp echo MrowOGpostingKdateGLJSFtdS
tdS a href=update"profile.phpJuidJphp echo MrowOGidGLJS=S
button class=btn btn"primary btn"%s=Si class=fa fa" pencil=SFiSFbuttonSFaS a href=manage"users.phpJidJphp echo MrowOGidGLJS=S button class=btn btn"danger btn"%s= on)lic'=return confirm;G(o you really want to deleteG
FtdS FtrS Jphp McntMcntZAL JS
54
User Management System Saurabh Bhandari
00113702014
FtbodyS
FtableS
FdivS
FdivS
FdivS FsectionS
Fsection
SFsectionS script src=assetsF&sF&0uery.&s=SFscriptS script src=assetsF&sFbootstrap.min.&s=SFscriptS script class=include= type=te%tF&avascript= src=assetsF&sF&0uery.dc&0accordion.9.[.&s=SFscriptS script src=assetsF&sF&0uery.scrollTo.min.&s=SFscriptS script src=assetsF&sF&0uery.nicescroll.&s= type=te%tF&avascript=SFscriptS script src=assetsF&sFcommon"scripts.&s=SFscriptS scriptS
M;function;
FscriptS FbodyS FhtmlS
55
User Management System Saurabh Bhandari
00113702014
+PDATE,PRO&I*E.PHP
Jphp sessionKstart;
W()TRP htmlS html lang=en=S headS meta charset=utf"X=S
56
User Management System Saurabh Bhandari
00113702014
meta name=viewport= content=widthdevice"width, initial"scaleA.B=S meta name=description= content==S meta name=author= content=(ashboard=S meta name='eyword= content=(ashboard, *ootstrap, #dmin, Template, Theme, ?esponsive, 8luid, ?etina=S
titleS#dmin \ Update ProfileFtitleS lin' href=assetsFcssFbootstrap.css= rel=stylesheet=S lin' href=assetsFfont"awesomeFcssFfont"awesome.css= rel=stylesheet= FS lin' href=assetsFcssFstyle.css= rel=stylesheet=S lin' href=assetsFcssFstyle"responsive.css= rel=stylesheet=S FheadS
bodyS
section id=container= S header class=header blac'"bg=S div class=sidebar"toggle"bo%=S div class=fa fa"bars tooltips= data"placement=right= data"original" title=Toggle Navigation=SFdivS
FdivS a href=Y= class=logo=SbS#dmin (ashboardFbSFaS div class=nav notify"row= id=topKmenu=S 57
User Management System Saurabh Bhandari
00113702014
FulS
FdivS div class=top"menu=S ul class=nav pull"right top"menu=S liSa class=logout= href=logout.php=S$ogoutFaSFliS
FulS FdivS FheaderS asideS div id=sidebar= class=nav"collapse =S ul class=sidebar"menu= id=nav"accordion=S
p class=centered=Sa href=Y=Simg src=assetsFimgFui"sam.&pg= class=img"circle= width=@B=SFaSFpS h4 class=centered=SJphp echo MK!!!INOGloginGLJSFh4S
li class=mt=S a href=change"password.php=S i class=fa fa"file=SFiS spanS)hange PasswordFspanS 58
User Management System Saurabh Bhandari
00113702014
FaS FliS
li class=sub"menu=S a href=manage"users.php= S i class=fa fa"users=SFiS spanSanage UsersFspanS
FaS
FliS
FulS
FdivS
FasideS Jphp Mretmys0lK0uery;=select from users where idG=.MK7TOGuidG.=G=
QJS section id=main"content=S section class=wrapper=S h2Si class=fa fa"angle"right=SFiS Jphp echo MrowOGfnameGLJSGs InformationFh2S 59
User Management System Saurabh Bhandari
00113702014
div class=row=S
div class=col"md"A9=S div class=content"panel=S p align=center= style=color:Y8BBL=SJphp echo MK!!!INOGmsgGLJSJphp echo MK!!!INOGmsgG==L JSFpS form class=form"hori>ontal style"form= name=formA= method=post= action== on!ubmit=return valid;
FdivS FdivS
div class=form"group=S label class=col"sm"9 col"sm"9 control"label= style=padding" left:6Bp%L=S$ast nameFlabelS 60
User Management System Saurabh Bhandari
00113702014
div class=col"sm"AB=S input type=te%t= class=form"control= name=lname= value=Jphp echo MrowOGlnameGLJS= S
FdivS FdivS
div class=form"group=S label class=col"sm"9 col"sm"9 control"label= style=padding" left:6Bp%L=Smail FlabelS div class=col"sm"AB=S input type=te%t= class=form"control= name=email= value=Jphp echo MrowOGemailGLJS= readonly S
FdivS FdivS div class=form"group=S
label class=col"sm"9 col"sm"9 control"label= style=padding" left:6Bp%L=S)ontact no. FlabelS div class=col"sm"AB=S input type=te%t= class=form"control= name=contact= value=Jphp echo MrowOGcontactnoGLJS= S
FdivS FdivS div class=form"group=S
61
User Management System Saurabh Bhandari
00113702014
label class=col"sm"9 col"sm"9 control"label= style=padding" left:6Bp%L=S?egistration (ate FlabelS div class=col"sm"AB=S input type=te%t= class=form"control= name=contact= value=Jphp echo MrowOGpostingKdateGLJS= readonly S
FdivS
FdivS div style=margin"left:ABBp%L=S
input type=submit= name=!ubmit= value=Update= class=btn btn"theme=SFdivS
FformS FdivS FdivS FdivS FsectionS Jphp JS
FsectionSFsectionS script src=assetsF&sF&0uery.&s=SFscriptS script src=assetsF&sFbootstrap.min.&s=SFscriptS
script class=include= type=te%tF&avascript= src=assetsF&sF&0uery.dc&0accordion.9.[.&s=SFscriptS script src=assetsF&sF&0uery.scrollTo.min.&s=SFscriptS script src=assetsF&sF&0uery.nicescroll.&s= type=te%tF&avascript=SFscriptS
62
User Management System Saurabh Bhandari
00113702014
script src=assetsF&sFcommon"scripts.&s=SFscriptS scriptS
M;function;
FscriptS FbodyS FhtmlS CHA)5E,PA--3ORD.PHP Jphp
sessionKstart;
User Management System Saurabh Bhandari
MK!!!INOGmsgG=Password )hanged !uccessfully WW=L FFheader;Glocation:user.phpG
00113702014
User Management System Saurabh Bhandari
00113702014
return falseL else if;document.formA.confirmpassword.value==< Q alert;= ?e"Type Password 8ield mpty WW=
User Management System Saurabh Bhandari
00113702014
alert;=Password and ?e"Type Password 8ield do not match WW=
titleS#dmin \ )hange PasswordFtitleS lin' href=assetsFcssFbootstrap.css= rel=stylesheet=S lin' href=assetsFfont"awesomeFcssFfont"awesome.css= rel=stylesheet= FS lin' href=assetsFcssFstyle.css= rel=stylesheet=S lin' href=assetsFcssFstyle"responsive.css= rel=stylesheet=S
66
User Management System Saurabh Bhandari
00113702014
FheadS
bodyS
section id=container= S header class=header blac'"bg=S div class=sidebar"toggle"bo%=S div class=fa fa"bars tooltips= data"placement=right= data"original" title=Toggle Navigation=SFdivS
FdivS a href=Y= class=logo=SbS#dmin (ashboardFbSFaS div class=nav notify"row= id=topKmenu=S
FulS
FdivS div class=top"menu=S ul class=nav pull"right top"menu=S liSa class=logout= href=logout.php=S$ogoutFaSFliS
FulS FdivS FheaderS 67
User Management System Saurabh Bhandari
00113702014
asideS div id=sidebar= class=nav"collapse =S ul class=sidebar"menu= id=nav"accordion=S
p class=centered=Sa href=Y=Simg src=assetsFimgFui"sam.&pg= class=img"circle= width=@B=SFaSFpS h4 class=centered=SJphp echo MK!!!INOGloginGLJSFh4S
li class=mt=S a href=change"password.php=S i class=fa fa"file=SFiS spanS)hange PasswordFspanS
FaS FliS
li class=sub"menu=S a href=manage"users.php= S i class=fa fa"users=SFiS spanSanage UsersFspanS
FaS
FliS
68
User Management System Saurabh Bhandari
00113702014
FulS
FdivS
FasideS section id=main"content=S section class=wrapper=S h2Si class=fa fa"angle"right=SFiS )hange Password Fh2S div class=row=S
div class=col"md"A9=S div class=content"panel=S form class=form"hori>ontal style"form= name=formA= method=post= action== on!ubmit=return valid;
FdivS 69
User Management System Saurabh Bhandari
00113702014
FdivS
div class=form"group=S label class=col"sm"9 col"sm"9 control"label= style=padding" left:6Bp%L=SNew PasswordFlabelS div class=col"sm"AB=S input type=password= class=form"control= name=newpass= value== S
FdivS FdivS
div class=form"group=S label class=col"sm"9 col"sm"9 control"label= style=padding" left:6Bp%L=S)onfirm PasswordFlabelS div class=col"sm"AB=S input type=password= class=form"control= name=confirmpassword= value== S
FdivS FdivS div style=margin"left:ABBp%L=S
input type=submit= name=!ubmit= value=)hange= class=btn btn"theme=SFdivS
FformS FdivS 70
User Management System Saurabh Bhandari
00113702014
FdivS
FdivS FsectionS
FsectionSFsectionS script src=assetsF&sF&0uery.&s=SFscriptS script src=assetsF&sFbootstrap.min.&s=SFscriptS
script class=include= type=te%tF&avascript= src=assetsF&sF&0uery.dc&0accordion.9.[.&s=SFscriptS script src=assetsF&sF&0uery.scrollTo.min.&s=SFscriptS script src=assetsF&sF&0uery.nicescroll.&s= type=te%tF&avascript=SFscriptS script src=assetsF&sFcommon"scripts.&s=SFscriptS scriptS
M;function;
FscriptS
FbodyS FhtmlS DATA#A-EB-9*
"" phpy#dmin !D$ (ump
71
User Management System Saurabh Bhandari
00113702014
"" version 6.6.A6 "" http:FFwww.phpmyadmin.net "" "" 3ost: A9[.B.B.A "" 7eneration Time: Nov A9, 9BA4 at B4:9[ # "" !erver version: [email protected]@ "" P3P Eersion: 4.4.9X
!T !D$K( =NK#UTKE#$UKNK^?=L !T timeK>one =ZBB:BB=L
FW6BABA !T _$(K)3#?#)T?K!TK)$INT__)3#?#)T?K!TK)$INT FL FW6BABA !T _$(K)3#?#)T?K!TK?!U$T!__)3#?#)T?K!TK?!U$T! FL FW6BABA !T _$(K)$$#TINK)NN)TIN__)$$#TINK)NN)TIN FL FW6BABA !T N#! utfXmb6 FL
"" "" (atabase: `loginsystem` "" 72
User Management System Saurabh Bhandari
00113702014
"" """"""""""""""""""""""""""""""""""""""""""""""""""""""""
"" "" Table structure for table `admin` ""
)?#T T#*$ I8 NT CI!T! `admin` ; `id` int;AA< NT NU$$, `username` varchar;944< NT NU$$, `password` varchar;944< NT NU$$ < N7INInno(* #UTKIN)?NT9 (8#U$T )3#?!TlatinAL
"" "" (umping data for table `admin` ""
IN!?T INT `admin` ;`id`, `username`, `password`< E#$U! ;A, GadminG, GA9264@G
User Management System Saurabh Bhandari
00113702014
"" )?#T T#*$ I8 NT CI!T! `users` ; `id` int;AA< NT NU$$, `fname` varchar;944< NT NU$$, `lname` varchar;944< NT NU$$, `email` varchar;944< NT NU$$, `password` varchar;2BB< NT NU$$, `contactno` varchar;AA< NT NU$$, `postingKdate` date NT NU$$ < N7INInno(* #UTKIN)?NTAB (8#U$T )3#?!TlatinAL "" "" (umping data for table `users` "" IN!?T INT `users` ;`id`, `fname`, `lname`, `email`, `password`, `contactno`, `postingKdate`< E#$U! ;, G(emoG, GUserG, Gdemouser_gmail.comG, GfeBAce9a[fbacXfafaed[cX9aB6e99G, GA9464@X[4@G, G9BA["B6"B6G
User Management System Saurabh Bhandari
#$T? T#*$ `admin` #(( P?I#?R R ;`id`
75
00113702014
User Management System Saurabh Bhandari
00113702014
FW6BABA !T )3#?#)T?K!TK)$INT_$(K)3#?#)T?K!TK)$INT FL FW6BABA !T )3#?#)T?K!TK?!U$T!_$(K)3#?#)T?K!TK?!U$T! FL FW6BABA !T )$$#TINK)NN)TIN_$(K)$$#TINK)NN)TIN FL
/.2 Testing Debugging T!pes o testing 1. 3ite #o Testing 3ite,bo testing ;also 'nown as c$ear bo testing , g$ass bo testing , transparent bo testing , and structura$ testing < is a method of testing software that tests internal structures
or wor'ings of an application, as opposed to its functionality ;i.e. blac'"bo% testing<. In white"bo% testing an internal perspective of the system, as well as programming s'ills, are used to design test cases. The tester chooses inputs to e%ercise paths through the code and determine the appropriate outputs. This is analogous to testing nodes in a circuit, e.g. in" circuit
testing ;I)T<.
+hite"bo%
testing
can
be
the unit, integration and system levels of the software testing process.
76
applied
at
User Management System Saurabh Bhandari
77
00113702014
User Management System Saurabh Bhandari
00113702014
2. #$ac% #o Testing
#$ac%,bo testing is a method of software testing that e%amines the functionality of an
application without peering into its internal structures or wor'ings. This method of test can be
applied
to
virtually
every
level
of
software
testing: unit, integration, system and acceptance. It typically comprises most if not all higher"level testing, but can also dominate unit testing as well.
'. Acceptance Testing
Acceptance Testing is a level of the software testing where a system is tested for
acceptability. The purpose of this test is to evaluate the systemGs compliance with the business re0uirements and assess whether it is acceptable for delivery. 8ormal testing with respect to user needs, re0uirements, and business processes conducted to determine whether or not a system satisfies the acceptance criteria and to enable the user, customers or other authori>ed entity to determine whether or not to accept the system.
78
User Management System Saurabh Bhandari
00113702014
/. A$pa,#eta Testing A$pa testing #lpha testing is a type of acceptance testingL performed to identify all possible issuesFbugs before releasing the product to everyday users or public. The focus of this testing is to simulate real users by using blac' bo% and white bo% techni0ues. The aim is to carry out the tas's that a typical user might perform. #lpha testing is carried out in a lab environment and usually the testers are internal employees of the organi>ation.
#eta Testing *eta Testing of a product is performed by =real users= of the software application in a =real environment= and can be considered as a form of e%ternal user acceptance testing. *eta version of the software is released to a limited number of end"users of the product to obtain feedbac' on the product 0uality. *eta testing reduces product failure ris's and provides increased 0uality of the product through customer validation. It is the final test before shipping a product to the customers. (irect feedbac' from customers is a ma&or advantage of *eta Testing. This testing helps to tests the product in real time environment.
0. ;a$idation Testing
79
User Management System Saurabh Bhandari
00113702014
The process of evaluating software during the development process or at the end of the development process to determine whether it satisfies specified business re0uirements. Ealidation Testing ensures that the product actually meets the clientGs needs. It can also be defined as to demonstrate that the product fulfils its intended use when deployed on appropriate environment.
80
User Management System Saurabh Bhandari
00113702014
CHAPTER 0 -+((AR8 CO)C*+-IO)
0.1 CO)C*+-IO) )omputer has got clear advantage over the manual system. The computeri>ed system is more reliable, efficient and fast at the end of the pro&ect, I can say that computer play a very crucial role in the development of firm. #ll the daily reports generated by the system are to be chec'ed by the concerned official so as to ensure that all the transactions have been put through in appropriate accounts and this is tallied with the new vouchers. )omputer does ma%imum wor' with in minimum time. *ecause it is used in every field so that it provides comfort and suitability to everyone. Providing ma%imum facilities and comfort to customers to customers is main goal of the firm. To achieve this goal, other modern facilities relating to computer should have to be provided.
0.2. &+T+RE -COPE The scope of the proposed pro&ect is to provide a simple user management page that lets you view, search users, create new user accounts, and edit e%isting ones. #lso provides tools to disable or delete users, manage permissions, and issue password resets. #dding up, our system will also help in upgrading the already e%isting system to a new automated one which has the following benefits" -ecure
The data which will be accessed such as the personal details of a customer will be safe and secure. Cost reduction
(ue to the new automated system, reduction of paper wor' will definitely save e%penses of the company as compared to the manual systems *ess ti"e Consu"ing
!ince user won’t have to go to different websites and then determine the best deal it’d be less time consuming and much easier for them. 81