Management System (My Tollo) I
I
I
t
F F
C*E -- l*#e?.t
Design and r)evelopment an online Daily Tasks
by
Shahed Masud Rebbi ID No. CSEl60l00T050 Fede Rabbi
ID No. CSEl6010A7079 Salvin fshm
ID No. CSE 1601007056
Fateha Binte Amin ID No. CSE1601007A70 Parveen Akter
ID No. CSEI60l00704t
A Project submiued in Partial Fulfillment to the Requirements for the Degree of
Bachelor of science ia computer science
andEngineering
DEPARTMENT OF COMPUTER SCIENCE ANI} ENGINEERING SONARGAON rrNryERSrTY (SrD
September 2A19
\
/
APPROVAL
;:i.::::T::i.:::,aii1 ,.:*y:.1
11 onrine Daily rask
Management system rv[! uJ t]Lr[(My
\r.vrJroDo)
submittedby
shahed Masud Rabbi ,uaID u rrv. vl)ljruuluu/uJU, No. csEl601007050,
Fateha -r atenaBinte ljmte Amin rn
No.--sE1601007070, Fazle
prv Rabbi
rrouurID ry No. r\u- (-DErouruu/ury, csEr601007079,
>arvtn Isram sarvin IsramID ID No. No- cI
csE1601007056,l:n'een Akter ID No' csE1601007Ml to
the Departmentof
computer Science and Ensineerins-and Engineering,E rv lu6urvvrruEi, :__l-**" .u{verlitx .(su),
has been accepted as satisfactoryfor the parrial fulfillmenr of
the ::qurrementsfor the
degreeof
Bachelorof
Sciencein computer
science and Engineering and=proved as to its style and contents.
:
--d
of Examiners/^
-+-2
I-ffi-lllyzlzw
: Afit![ P"],qr^c"" L.t-:q, Ldg
(Examiner)116nd.;30. 1lla"'r.
(Examiner)
R ^J,[^l *'pr^Ed
(Supervisor)
flruffirmuur
utanaed
rrn;u".r. : J:-
:;SSOf& Head
;tr::'tl--:E-- -: (-omputer Science & Engineering
:i , 1:,;ilI;*C-r]-
i
_ :-.',efSity (SU)
(i)
--1T,2.Ie
!
I
I
i^
I
I
I
DECLARATION
We, herebp
declarethat
thewort
presentedin this
Projectis the
outcomeof the
investigation performedbyus underthesrryervisionofBulbulAhamed,
Associate Professor and Head, Deparhnent of Computer Science and Fnginecring, Sonargaon University (sU). We also declare thatno partofthis
Project aad thereof has been or is being submitted elsewhere for the award of any degree or diploma.
Countssignd
Signature(Bulbul
Ahamed) Supervisor(Shahed Masud
Rabbi)
f^Zt
"4H
(Fade RebbD
S"Lr;n
(Sahrh
Islam)
Candidates I
I
t
I
['
(Fateha Binte
Amin)
(ii)
ABSTRACT
A
good to-do list web application is not just a dashboard of ourlife's
obligations - it can be the control room that makes it possible to keep chaos atbay. Our web application software (My ToDo) has flexible organizafion schemes and thoughtfrrl designs that makeit
easy to duck in, check on obligations, enter new tasks, and then get back to the doing.My
ToDo web application includes a powerful systernfor
logging and reportingtime
spelrt on tasks. Task lists can also be printedor
savedin
various other formats for display md reportingtrrposes. For developing this web applicatiorl we have used a varietyoftools
e.g.HTML,
CS$, JavaScript, pHp,MySeL, XAMpp
etc.r
L
(iii)ACKNOWLEDGEMENTS
We are most grateful to
al;dtrty Allah
for His loyal help, which is most effective tool for all kindof
achievements of all tirne and enable us to complete the successfully.
We are also auspicious that we had the kind association as well as supervision of honorable supervisor
BuIbuI
Ahamed, Associate hofessor and Head, Department of Computer Science and Engineering, Sonargaon University (SUL for his continuous guidance, encouragement, and patience, and for grving us the opportunity to do rfiiswodc
His valuable suggestions and strict guidance madeit
possible to prepare a well+rganizedr€port
We would like to cnrvey our
sp*ial
gratitude to Prof.Dr. M.A.
Mabud, Dean, Faculty of Science&
Engineering Smqgaou University (SU), for his kind concern and valuable suggestions.
We
tc
also tftankful to all our teachers during our whole education, for exposing us to the beautyof
leuning.
I-ast of all we are grateful to
ourfmily
who are alwayswithus
in every step of life.F.
I
(iv)TABLE OF CONTENTS
Paee No Abstract
Chapter I : Introduction
Acknowledgements
1.1 1.2 1.3 1.4 1.5
Intro&rctim
of &e project Objectives of the Froject Project Overview Diagram Descriptions of the project Design and ImplementationChapter 2: Object{riented Desigu
2.1
Introduction of Object4rieirted Design2.2
Use Case Diagram2.3 ActivityDiagram
2-4
Class Diagram2.5
EntityRelationshipDiagramChapter 3: User Interface Design
3.1
lntooduction of User Interface DesignChapter 4: Conclusion and Future Work
4.1
Conclusion4.2
FutureWork
2 2 3 3 6
8 8 10
t2
13
22 22 23 25
References Appendix
I
CHAPTER.l
INTEROI}UCTION
I
I
I
i
I
I
l.
L
I
I
I
I
I
I
l
l.L lntroduction of the Project
Most
of the people have many moreactivities
ontheir "wish lists"
than thetime available to work
on them.By
choosingactivities intelligently, they
can make the very mostof their time
andopportunities.
However,by
choosingbadly,
theycan bog
themselvesdown in time-depleting, low-yield projects that stop
usmoving forward. This is where an "Online Daily
Tasks Management System(My ToDo)" can be useful. This helps us to
choosethe activities we
shouldprioritize
and the ones we shouldavoid if
we want to make the mostof
ourtime
andopportunities.
1.2 Obiectives of the proiect
Thee
major objectives are listed below-. Organization: Organizing your
taskswith a list
canmake everything
muchmore
manageable and makeyou feel
grounded. Seeing aclear outline of your
ccmpleted anduncompleted taskswill
helpycu
feel organized and staymentally
focused.. Improved Memory: Keeping this "online Task Management system"
imFroves
your memory by giving you
permissionto forget. Feeling forgetful?
Nobody is
capableof remembering everyihing at all times. To-do lists are
auseful external memory aid that give you
permissionto forget. As long
asyou
ean rememberto look
atyour to-do list, you will
never loseanything that
you have recorded onit.
. Productivit5r: If you
recordall your
tasksin
ato-do list, you
can easilyreview the list
andprioritize
the mostimportant
tasksPage No: 02
I
1.3
Project Overview Iliagram
Figure: My Tollo
OverviewDiagram My ToDo
systemcarry
on three-part1. Add
TasksModel
2. View Model
3.
ReportModel
1.4 Descriptions of the project
1.4.1 Product Descriptions
My
ToDois
an online-based solution. The objectiveof
this systemwill
help ..Daily Tasks" to improve their Taskingskill.
This system includes all the system sets needed for the daily tasks. In this syste,m, the features are easily managed and navigate, so users get the report very short time. The user can easily register to the site and complete.My
ToDo able to usefrom
any device. User canindepend*tly
manage edit, delete and completed their daily Tasks.Page No: 03
1.4.2 Project Features
1.
Recorded Tasks: This one is really simple. One of the advantage of a web based todo list is that you are not limited by ink on paper.Ye!
many appswon't
let you easily re- organizs the order of the todos on your list.2. Ouick
Enfiry:My
ToDo list should always be ready quickly capfire a random task.It
shouldn't requirE morc sfiep to enter a todo. They should be quick to allow you to add a todo aad get it *ortr of yotrr head',.
3. Ilree rnd DmD: In coryuter
graphical user interfaces, drag and dropis
a pointing device 8esfire in which the user selects a virtual objectby'grabbingu it
and draggingit to
a different location on onto anothervirnral
object.[n
general,it
can be used to invoke many kindsof
actions,or
create various typesof
associations between two abstact objects.As
a featurg drag-and-drop supportis not
foundin all
softwarg thoughit
is sometimesa
fast and easy-to-learn technique. However,it
is not always clear to users that an item can bedraggd
and dropped, or what is the command performed by the drag and drop, which can decrease usability.The basic sque,lrce involved in drag and drop is:
.
Move the pointer to the object'
Press, and hold down, the button on the mouse or otherpointing device, to"grub" the object
'
"lDragu the object to the desired location by moving the pointer to this one. "flrop*
the object by releasing the buttonliry{e tII: Following
onfrom qui"k
capture, overall the system should be simple.Simple to use- SimFle user interface. Too many features just ciutter things up. Ard,99yo of those extra bells and whistles never get used.
Todav
Lisk
Youcm't
do it all. And one of the best ways to "get work done,' is to only concentrate on your top tasks for today.Yiew completed
tasks: users can easily view your completed tasks.Edit
and Delete: ToDo user easily accesses his tasks edit and delete.Previpus dav
Taslc;
ToDo system automatically previews uncompleted tasks to the next day.4.
5.
6.
7.
8.
I
PageNo:041.4.3 Project Benefits
I
have had many bossEs by now. Some have been good and inspiring while some have pretty much made me resolve to look at other paths of revenue rather than a corporate job. However, there was one who wfls scaq/ yet inspiring and left mewith
a lot of impressioaable moments.I
still remember her "'lmonishiag me for coming to a meeting without a notebook tojot
downnotes. one of the times
I
alsolerat
from her though was the time that she would march up to me, and demand to see mytodo
listjust
to easureI
had made one. That beingmy
firstjob,
some learnings got imbibed in me for life.Before my firsr
job, I
used to take pride in the fact thatI
was an impulsive free spirit, or soI
liked to imagine myself-
An
impulsive free spirit could obviously not be boggeddo*o
by the shackles of a to-do [ist- However, after the fore mentioned encounters and through most of my professimallife, I
have come to recognizejust
how important and surprisingly liberating adailytsdo
list actually is.1' BRINGS
STRUCT'URETO I'gE DAY:
There are two ways to go about one,s day-
either be at sea md just wing
it with
whatever Gomes or go aboutwith
alist
of things to be done-I
have realized that my peace of mind is higber whenI
have a plan rather than swimming around accomplishing anything thrown at my direction. Having a to-dolist is like
having GPsto
reacha
destination rather thanwalking
down a road not knowing your destination but just setting on paths shouted out by onlookers.2' LEss To HOLI) IN THE HEAI):
Eveaif
we choose not to write downa daily to-do
list,
mentallywe
often keepmulling
about the tasks that needto
be lookedinto
or closed'Fot
me, a to-dolist
acts almostlike
the pen sievein Harry
potter-For
the rrninitiated, pen sieve is a fabulous device in Albus Dumbledore,s officeo using whichhe can extract his memories and anyone can view them as though they are experiencing
it'
While somewhat ditrerent, a daily to-dolist
helps you extract the tasks floatingin
your head to find another more concrete place,
with
less remaining up there.3'
REDUCESAITXIETY:
Remember Sheldoa in Big Bang Theory who has a knackof doing things a certain u/ay and cannot bear the idea of tasks
remaining incomplete? Take a look at his obsession for yourself in this video clip. While he might be the epitome of zeigarnikeffec!
the impact is for real. As discovered by Lithuanian psychologist Bluma Zeigamik, waiters remembered even complex orderstill
the time they were incomplete while failing to recall any detail ouce an order had been delivered.Probing further, she
was
ableto
concludethat our brain
focusses much more on incomplete tasks. Incomplete tasks have a way ofpopping up in ourhead at unexpected timesor to
continue brewingin your
sub conscious, compounding and leading to aoxiety.A
daily to-do list helps on cutting down that anxiety1' BETTER TrME MANAGEMENT:
Io*y
experiencsk".pire
daily to-do lists has helped me be better with my time. There was a time when every MondayI
would look back and wonder what didI
do over the weekend. Gradually,I
gave up on my hang upPage No: 05
i
t,
of not
keepinga to-do list for my
personallife. I
realizedif
something could be beneficial io-y
professionallife, it
could very well help in my personallife
too. AsI
started organizing +hings in my personal life and keeping a list, be it putting clothes into the washing machine, organizing pins
on Tailwind or
ordering groceries,I
startedgettlng far more done in the same time over a weekend.
5. BREAKS GOAIS INTO ACTION POINTS: Most of
us set ambitious goalsfor
oumelves. These could be over difrere,nt periods, beit a
month, quarteror
a year.However,
vfrilc
gmls are the result, the tasks that go into channeling the effort towards the goal have a highcr probability of getting done when they find their way on a to-dolist
f.5 De$ig! and Implementation
our
web application is being developed byHTML,
cSS,jeuery,
Javascript,pHp
and MySQL, we have usedXryp
senrer to run our application. We designed thefollowing
XAMPP
is a free and open-source cross-platform web server solution stack package developed by Apache Frie,nds, consisting mainly ofthe Apache HTTP Server, MariaDB database,and
interpretersfor
scriptswritten in the PIIP and Perl
programming languages. Since most acfual web server deployments use the same coffiponents asXAMPP, it makes transitioaing from a local test server to a live server possible.
XAMPP's ease of deploymeirt mems a WAMP or
LAMP
stack can be installed quickly and simply on an operating systemby
a developer.With
the advantage a numberof
cofilmon add-in applications such as WordPress aod Joomla! can also be instatled
with
similar ease using Bitnami.
I
Page No: 06CHAPTER.2
OBJECT ORIENTED DESIGN
i
I
I
I
I
I
I
I
2.1 Introduction of Object-Oriented Design
Object-Oriented Design is rhe process of planning a system of interacting objects for the purpose of solving a software problem. It is one approach to software design.
An
object contains encapsulated data and procedures grouped together to present an entity. The 'object interface'.htrn the.rbject
can be interactedwith, is
also defined.An
object-oriented program is descnbedlr
the inleraction of these objects. Object-Oriented designed is the discipline of defining the obre;'i-< andther
interactions to solve a problem that was identi{ied and documented during obi e ci-.r n ented ariaivsis.Some :'prcal urput artifacts for objecr-oriented design
o
Use Case Diaeramr
Activity Diagramso
Class Diagramo
Entiry Relarionship Diagram2.2 Use
CaseDiagram
ln
sofrware and system engineenng a use case a casenpicallv
defining interactions benveen a role (known achieve a goal. The actor can be a human or an extemalin
the useof
a systemis
alist of
steps,in UML
as an "actor") and a system, to system.ln sYstems engineering, use cases are used at a higher level than within software engineering, often representing missions or stakeholder soals.
2.2.1 Use
caseof user Registration
Figure: User Registration
'i'-<
:
u-ser respondent open the website then register their account, and finally complete their :e:r.:rarion then login into My ToDo.08
2.2.2 Use
caseof user
Logged USER
i
I
I
.J
User is the most important person. Valid rrser login into
My
ToDo and they can use usuallyMy
ToDo feaares. It's very simple foruser, no hard task in this system. Users can easily view his taslq add new tasks,
edit
tasks, delete tasks,view
complete tasks andfrnally view
report as his rogircments.Figure: User Use Case
PageNo:09
l
) i
2.3 Activity Diagram
Activity
diagram meansto
describe sequencing and conditionsof
actiors.commonly are work flow, control flow and object flow models.
Simple
ActivityDiagrms
cmsist of;o
Initialnodeo
Activity finel asde.
Activitybe*ryeen23.f Adivity diegrem of User Registration
Such descriptions
Register Page
Figure: Registration
Activity
DiagramRegiskation activity diagram shows the entire process of user registration. A registered user is one
cfio
uses a programor
a website and provides his/her credentials, effectively proving hislheridcatity'
Generally speaking any person can becomea
registered userby providing
somecr&tials,
usually in the form of a useltame (or email) und password. After that, one can accessidmation
and privileges unavailable to noa-registered users. The action of providing the proper crcdmials for a website is called loggrng in, or signing in.Page No:
l0
23.2 Activity diagram of User
r o8r. Page
l
I
I
Ftr'igure: User Activity Diagram
user activity diagram shows the entire activities of a register user. Firstly, the user can view our site then the user easily creates his account. Ifalready create his account he/she is ready to access our daily task management system. A valid user always perrritted to access our system.
The user can permission to log in to his valid user narne and valid password- when a user inputs his username and password submifted to our system, our prograrn checked his data and cross- match his data with the database, the'n the program automatically decided his data is wrong or right
ifthe
program found right data then he can rog in into this system.VicwPrcvlxDeyT*
Page No: I I
2.4 Class Diagram
In
software engineering, a cla^ss diagram in theunified
Modeling Language(uML)
is a typeof
static struchfe diagram that describes the skucture of a system by showing the system,s classes, their atkibutes, operations (ormefrods), and the relation*hips amorg the classes.
2.4.1: Class Dilgrrm of User
I
t
!Register
Logrn
Figure: Class Diagram of User
Control
Register_view
Login_view
Password_reset_view regist€r
Irgn
@at€
delete
Page No: 12
l
I
i
2.4.1: Class Diagram of Add Tasks
Create
Update
Delete
Figure: Class Diagram of add tasks
2.5 Entity Relationship Diagram
In software engineering, an Entity
-
Relationship model @R model for short) is an abstract way to describe a database. It usually starts with a relational database, which stores data in tables. some of the data in these tables point to data in other tables-
for instance, your eotity in the database could point to several enkies for each of the phone numbers that are yours. The ER model would say that you are an entity, and each phone number is an entity, and the relationship between yourd tre
phone numbersis
'has a phone number'. Diagrams created to design these entities anduumsuips
are called entity-relationship diagrams o,rn
diagrams. There are four Types of ERDigam
in our system:create
update
delete
tasks_view
create_view
edit view
PageNo:13
2.5.1 ER Diagram of our system:
3
- _a
-:
u5€.I .eG *sI
t i li t:
\
I
Figure: ER Diagram of
My
TODO Datahase There are two tables in our database.L
User Registrations2.
User tasksusgr Reeistration: The user registration table collects user registration information and user active status.
L]ser Tasks: The user tasks table colrects all user tasks information.
For example,
1.
Tasks Create date and times.2.
User ID.3
Tasks completed or uncompleted.4.
Tasks Text.Page No: 14
l.
CHAPTER-3
USER INTERFACE DESIGN
I
lc
a
EI
3.1 Introduction of tlser Interface Design
The user interface,
in
the rndustnal design{ield of
human-machine interaction,is
the space where interaction bet\\ een humans and machines occurs. The goalof
interaction between ahuman and a machine at the user interface is effective operation and control of the machine, and feedback
from
the machure*hich
aids the operatorin
making operational decisions.Examples of this broad concept of user interfaces include the interactive aspects of computer operating system. hand tools. hear-i machinery operator controls and process controls.
A
user interfaceis
the sr-stembi
u-hrch people (users) interactwith
a machine. The user interface includes hardu'are tph',srca1r and software(logical)
components. User interfaces existfor
various svs:em-i. a:rd proride a means of:.
i-nput. allos'rng rhe users to manipulate a system'
Output.ailouins
the s,v-stem to indicate the effects of the user's manipulation3.1.1 Lser
Login UI
Figure: Login
pageThis is the home page and user iogin page of our project. Thought this page register used can 1og
in My
ToDo web application by providing correct username and password.Fix
making :eeistering a new user need to crick on ',create an account?,, link.Page No: 16
3.1.2 User Registration
UI
Figure:
User Registration pageThe user registration page is the most important for user registration. For accessing our ..My ToDo" web application a user must
fill-up
the user registration form by providing appropriate information.without
registration, no one can access our software.Page No: 17
I
I
: i
I
3.1.3 Add Task tII
Figure: Add
TaskAdd tasks is to create your todo list you can write your text or tasks hete and click the save button.
3.1.4
Edit
TaskUI
Figure: Edit
TaskThe user can easily edit his tasls &om this fonn. the user just clicks edit button then edit his tesk and click the update button.
Dac- I\T^. r Q
3.1.5 ToDo
List UI
3.1.6 Report
tII
Figure:
ToDoList yiew
This is the homepage of the todo
list
This page user can view his todo, edit his todo, completed his todo and drag and drop his todo as hispriority
also user can view previous days uncompleted lists.g?9,
@fr@
Figure:
Report View pageThe user can view his completed tasks. Firstly, click
My REpoRT
page then select from date - to date then click the search button. finally, completed tasks view on this page.Paoe No:
.lI
3.1.7 Report
UI
t
Figure:
ReportView I
Paee No: 20
CHAPTER-4
CONCLUSION AND FUTURE
WORK
4.1 Conclusion:
'online Daily
Task Management System"is
an efficient task management systemto
gather your thoughts and ideasin
one place. You can create tasks, maketo{o
lists, and make tasks do over so that you don,t have to remember everything.4,2
Future Work:
{
Create suUtastrs, mdaddcomments/
Maketodo
lists with notes{
Frnailnotifietiors md
SMS reminders{ A&voice
record with your daily tasksr' addminders
and eve,lrts in Caleadarr'
share your lists and wo'rk collaboratively on projeck with your colleagues, friends, andfamily
Page No: 22
References
Francis
J.
Parker,? *fA
gurdeto
stess free productivity, task management and creatingto{o
[ists", Rescueyour
To-DoList
201g.Darleire Tucker' "checklist and self Discipline for Personal success,,, Task Management, 2018.
3' s'r'
2014.scoft'"A simple Guide to Getting the Important Things Done,', To-Do List Makeover,4'
vanessa Robins, "List ofrhing
to do and Joumal task easy and simple time management,,, To Do List Notepads, 2019.5'
Rogue Plus publishing, "checkrist Blank, To Do And Notes,Daily List
NotebookKi{,
Agenda Notepad For Men, .Women, Students Flower Covern,To DoListNoteb*t
ZOtt-6'
Edition)., Damon Zahariades,"A shess-Free Guide To-Do List Formuta, 2016.to
creating To-Do Lists Thatwork!
(Kindle7'
Edition",TheMichael
Linenberger,"QuicHy One MinuteT+Do Get Your Lisf
2011.chaos completely under conkol
Kiadle8' fr*[fffitr]"iiil'r1*'wavs
to Manase Your rasks",yourro
Do List and Beyond,9'
https://elementummoney.com/to-do-list-benefrtsr[AecessedElementum Money. published on: February z, 2019 [online] Available
at:0g August
za9l
l0' wikipedia.Z}tg.Apache
Friends. pubrished on:May zz,2[az[online]
Available at:h@s://en.wikipedia.org/wikiD(AMpp.
[Accessed 04 August
2ar9]
l.
Task Sheets, To Do
&
Kids, HydrangeaPage No: 23
a
rl
I
APPENDD(
r
index.php
<?php session_start0;
>
<?Php
pliok
:
mysqli_connec(,localhost','root,,,,'rumber,) or die(,,<script languagrJavascript>alert(unatble to connect to database)</scripp,,);if
(!empty($_PosT)){
$name: $_POST[hmc];
$password
: $_PoST[!assward];
$query: "SEIFCT I
FROMr** Wrmng
usernarne= ,$name,,,;$res
:
mysqli_ryery($lialc, $query);!9,8 :
mysqli_f€rch_asso{$rest -if
($aamfuasswmAl:
md5($password)){
!-EssloNt'uid1 : $daraftjdl
;!-!!!SloN[\re,raail] :
$d-ataftr"email'l ;$_SESSION['time]
i.i-"$, r' - head<'location:home+h);
)
else{
echo,Login
Failed';
) )
<htuI>
<head>
<meta charseF,UTF_g">
<link rel:"stylesheet" hreF"style/styre.css,, t5pe:*text/css,')
<title>Login
page<ltitl*
</head>
+ody>
<div class:"box">
<h2>
Userlogin</h2>
<fonrr action=*
(fiy
shss:"inFutbox,,>u -"16o1ptrpostr><input
t5pe:"text"
neme:rltame', required:u *><labeFUser Name</label>
</div>
<div class:',inputbox")
<input t5pe:"passwordrr name=rtp6gsword,, required:ru>
<label>password</labeF
</div>
,linput
t5pe:"submit"name:*sub
.1,, value:uSubmit,,></form>
<a hreF"userreg.php" st5rre:"coror:white; font-size: r4px; text-decoration: none;
Fdding-top: 20px;bCi&" * u""o*iiilu,
<div>
<,tody>
<,lrltD>
)
I)a*- \T^' .<
userreg.php
<?php
$link:
mysqli_conneaflocalhod, hoof, ", humber') or die("<script languagrJavascripFalerflJnable
to connect to database)<rscrip>");//print_d$_PoST);
if
(!empty($_PosT)) {$username
: $_ffiTfisernams];
$password
:
$_P0ST[!assrorrd] ;$cpassword
: $_P(lSTfcpassrrrd'l;
$email: $_Po$Tfemall;
$qor.y: mys{i query($lial 'sELEcr
+ EROM 'users' WHERE usenlame:,,,
$username .
* q'rqrdl ='
.$email. -")i
if
(!Squ€ry){
die(Enor
' .mlnqti_erru(Slink);
)
if
(mysqli_num_rcws($qu€ry) >0) {
echo"<script
laguag€Frjavascripthtert(User
Name or Email Alreadycxisrs!'pscripp";
/ I er;ho "Name Already exists";
)
//forpassword
elseif ($password
!:
$cpassword){
echs "Confirm Password not marchn.
)
/lforuser name
elseif ( lpreg_match (" I
^fa-zA-Zl+$f
, $username)) {$nameErr:
"IJserNameAty
letters allowed;i echo $nameErr;)
elseif(!preg_match("#[G9]#",
$password)) {$passwordErr = "Your passwmd Must contain
At
LeastI
Number!,,;echo $passwordErr;
)
elseif (lpreg_match( "#lA-4+*,,
$passrrord)){
$passwordErr: "Your password tvru"t
coot
ioAt
LeastI
capital Letter!,,;echo $passwordErr;
)
elseif ( !preg_match(',#la-zl+#,,
$password) {$passwordErr: "Your Password-Must Contain
At
Least 1 Lowercase Letter!,,.echo $passwordErr;
)
else {if
(lempty($email)) {_-._
LfGrgg-match("/^f\.&9a-zA-z-l+@{a-9a-zA-zll0-9a-zA-Z-l+\.)+[a-zA- Zl
12,6) $l i,', $email)) {// Return Error - Invalid F.mail
$query:
"insertinto
'users' ('username','email',
'password.)VALUES
(Iussname','$email', md5('$password'))"; ' '
t$res = mysqli_query($linb $query);
mysqli_close($link);
if ($res:
TRUE) {echo"<script language:'javascript')alert('Save Successfully')<lscripp" ;
)
etse {Page No: 26
.
echo"<script languagecjavascriptlalert('User Name Aready use')</script>";)
else {$ryg:
The emailyor
have mtered is invalid, please try again.,;echo $msg;
1t IJ
<htul>
<head>
<mcta charsee"LlTF-8">
dIF reF
stylesheet" hreF'style/style.css" tlpre=,text/css")<tiflel-ogin
P4ge,{title><ftme
4ody>
<div class:ubox">
<h2>
gro
Registratioft</h2><form
action:"usenrgphp"
method:"pOST"><div class:"inputbox">
<inpUt t5rpre=stcXtt oame-frgsglou**"
f€!1uil€{:rr;,
<labeFUser Name,</label>
{div>
<div class="inputbox">
<input type="email" oua6:r'email tr l€quilBxl:rrrr;,
<label>Email<label>
</div>
<div class=ninputbox">
<input type:"passwo,rd, nanre:*password" required:,,,,>
<label>password</label>
</div>
<div class:"inputbox
")
<input
tlpr'
password, narne:u*assword,, fequired:r,,r><label>Confirm
password</label>
a</div>
liopot
type:"zubmitnasps-r5gf
.1rr yslus-,,f,1s4fen)</form>
<a hrets"index.php" stlrle="color:wfrite; font-size:
l4px;
text-decoration: none;padding-top: 20px;">Havl an account.! Click
Fiere<l* 'l
</div>
</body>
I
Pase No: 27
home.php
<?php require_once'Jresqrrcertsder.php';
D
<?php
if (empty($_sEssloNluidD)
{ header('location:indexphp);)
date_default_timezme_su(sia/dhaka);
$date: date(Y-mJ)B
$prev_date
: date$a-d,
strtotim{$date.' -l dal));
$uid:
$_SESSION[hidl;qliok
: mysqli_cme{ocalbod, toof,
", humbed);$q.r.ry:
'selcctt fiom 'todo' whse tdilooe-0'and
td_date:'$date' and u_id=,$uid' order bypositim_mdef;
$Erer:'selcct * from'todo'
xrtcretdd..nr,0'
andtd
__datr'$prev_d date' andu id:'$uid' ordabytd_iddesc ";
Xresrlt
:
mysqli_query($lint,$qwy);
Sresl :
mysqti_query($hngSquffi!'
<scr-ipt src:"htg,s://ajax-googl€apis.cono/ajax4ib iljryery/3.2.1/jquery.min
js,'><lscript) frcr.ipt-srr%tF,s//cdnis-cloudfl
ae.comlalaxnfuvjq*.yovr.ll.ttiwery-'
ui.min
js"></script>
<table id:"customers" alip="centterr>
<tr>
<th></th>
<th><Z6O
$que
:
"select td_dat€from'todo.
where td_datr'$prev_date' and tddone:,0' and tr,_i{J$sid' grrup by td_ddate":$res
:
mysqli_qu€ry($link, Squ");if
(!ernpty($res) {while ($row = mysqli_fetch_assoc($res) if($prev_date)
{ -
1echo ?revious Day TODO';
) ) )
?></th>
<th><lth>
</tr>
<?PHP
if
(empty($res){ b
<k>
<th>slNo</th>
<th>Task:/th>
<th>Action</th>
<tr>
<?PlP )
?:.,<&{
Ssho: l;
if(!qty($resul))
{urtile
($data:
mysqli_fetch_assoc($resul)) {Pase No: 28
<tr>
l
iI
I
l
I
<td
alip:"ce,nter" width:"8Qpx',x?php
echo $slno+t ; ?><116,<td><?pb
echo $dataftd_texfl;><716,
<d cl**s:""
align:"ce,nter"width:',
I 20px"><button
title="Edit!"
sfyle="padding: 2px; cursor:pointer; background- color:transparent;borderolmtmsparent;"
onclicts"location.href:'edit.php?id:<?php
echo $data['td_id1]'' tlpe='hrfim*--<img ss:'img/edit.png"
height:r2-0"/></button>+rfim tidFrDel€ff !' sfyle='pdding
:zpx
cursor:pointer; background- color:foanspaentUords-olatrmsparen!"
onclick:"location.href:
'tddelete.pb76i64rpfrp c*o $aaatta_ial D'".yp.--'button"Ximg
src:"img/del.png"heighF"20'E4Mm>
Amm tide='Coryle*e!" stylr"
padding: 2px; cursor:pointer; background- color:trmsparentbq{
-er-cohrtdmryffinq" onclicts"ConfirmDone0(!' typr"button,'Ximg
src="imgldmc.prg"heighe"lg'p"q/[61sp
<hb
<script t)?€="t€xtf avascript">
fimction ConfirnrDmc0Q
{
vr hseUrl: lddmepforid:<?php
echo $data['td_id']p'';
if
(confirm("Are You Sure.! Compleate yourtask?') locdionftef:
baseUrl;</script>
)
4*>
<?php
)
) )
<ltable>
<able
id:"customers"align:"centef >
<tr>
<th></th>
<th><?php
,
$que:
"select td_date from'todo'
where tddone='0' andu_id:'$uid'
groupby
td_date";$res
:
mysqli_query($link, $que);if
(!empty($res)) {while ($row
:
mysqli_fetch_assoc($res)) {if ($row['td_date']:
$date) {echo'Todays TODO';
)
else {b</rh>
)<t></rfr>
Page No: 29
</fr>
<?PHP
if
(empty($res)){ >
<tr>
<th>SL
NO<th>
<th>Task<lth>
<th>Action<lth>
</tr>
<?PHP
)
?:><tbody
class="rowlositimb
<?php
require(db_omfi g.php);
{
fsl: l;
if(!qt1($resul0) {
uftile
($row = mysqli_fach_assoc($result)) {' <trid:"<?php
echo$row[td_id] >*>
<td
align:"center' *i6t1fi;i$$plHphp
echo $sl++; ?></td><td><hhp
echo $mwftd_text'1;><ru>
<td class:n"
alip:'centerr wi&h:'r
I2hx">
<button title="Edit! " style="padding
:
2px; cursor:pointer; background- coloctransparelr! border-oloatransparenq"onclicF"ldcaition.hrei: '"dii.phpti?:<?php
echo$mw['td_id] F
"qpe="hrtton><img srF
img/edit.png"heighe"20"A
<lbutton>
<bufion title="Delete! " style="padding: 2px; cursor:poiuter; background- color:tuansparent;
hrder-colortransparentf onclicl="licat]on.href :
'tddelete.phpZdid:<bhp
eho $mw['td_idl D','tlryrrtrbutton"ximg
src:"imgldel.png,,heighF"20"l>
</button>
<buttoa
title="Corylete!,' styF'
padding: 2px; cursor:pointer;hckground-color:transparenq border-coloct
u*p**t;' oo""ti"L;ConfiriDoneg,'
t5r;re="button";,aimg src="img/done.prg"
heighe"Zg l>
</but&on>
<td>
<sc:ript
tlpe"text/j
avascript">function ConfirmDoneQ
t
var baseUrl
:
tddo,ne.php?id:<?php echo $row[,td_id,] ?>,;if
(confirm("Areyou
Sure.! Compllate yourtask?r)
-location.href
:
baseUrl ;</scripF )
<ltr>
<?php )
) )
<frbody>
Page No: 30
I
I I
I
I
I
ilr
I
I
<script type= "text/j avascriptn>
$(".row3osition").sortab( {
delay: 150, stop: function
0 {
var selectedData: nerr
Array$;
$('.rowSositio*d).each(fun*ion 0
{selectedDatepush$@is).arr("id");
));
updateOrrder(setectedhta);
)
));
fimctim
updateeder(data){
3-eiax({
ut
'ajaxPro.php', type:!ost',
data: {position: data}, suocess: function Q {
alert(lour
change successfully saved');)
l)
</script>
)
</table>
</body>
lphp
require_once'./resource/footer.ptrp'; ?><&h1>
insert.php
:?php require_once'-lresource/header.php,;
$link = mysqli_connect(,localhost','df
,i','number');
if
(empty($_SEsSloNltrid'l))
{header('location: index
php);
)
//print_($_PoST);
dare_default_timezone_se('asia/dhaka
) ;
if(!empty($_PosT))
{$a
name:
$_POST['title'];$dde: date('y-m-d);
ttime:
date('H:i:s');tnid :
S_SESSIONt'uidl;
if(!ryy($a_name))
{if (lprqmafch
(,' IfA-Za-z}-gl+ f,,
$a_name)) {Page No: 3l
$nameErr = "OnIy Text
AndNumber";
)
else {- $query:'INSERTINTO'todo'('td_text','td_date.,
.td'$ a_name','$date','$time',$uid1" ;
$res = mysqli_qucry($link, $+rery);
if
($res){
echo"Add Successfirl";
header(loc*ionlme.php);
)
else {echo"Add
Failed';
) ) ) )
<div>
<div
dass:"fum1ryrryb
{2
style='color:whitc;>Add
Task</h2><lphp if
(lempty($nameErr)) echo gnameErr; ?>'u_id') VALUES(
I
I
i
l
<form action="insertplqr' class="form-container"
ms&sd:"post")
<input
t)"F"tfit' placeholdfr"Enter
Text"namr"title'irequired>
<bution qrpre="srbmif cl*ss="btn">Save</button>
, <buftontype='hnm'ch<s=5gocancel,'onclicp"location.href:
h<rme.php'
">Close</bmm>
</form>
{div>
{div>
<?php
e'.lresonceffooter.php'; ?>editphp 4php
require_once'./resource/header.pfu';
if(empE($_SESSIoN[.uidD) a
-header('location:index+hp
);
if ) (!empty($_cET) {
$eid: $_GET['id];
$link = mysqli_connec('localhosf,
'roof,
,', 'number);$qry = "select
*
from todo wheretd
id=$eid,";{result = mysqli_query($tink,
$qry}
-
$data:
mysqli*fetch_assoc($resuli);)
if(!qty($_posT)
{ta_nme :
$_POST['name,];if(!qty($a_name))
{l$."y
= " update todo set td_texF $a name' where ,6_16:,$eid,,,i Sres:
mysqti_query($link,$qo*y);
Page No: 32
tJ
if
($res)t
header('location:home+h );
)
else {echouUpdafe
Faild}
)
)
/header('locationin&x-dd)E
<form
metroffiST' rrlirnr=r' cta#f-cmtainer" >
<div
aligHod styl€=:mrgiFtop:4{px;
bordenl0px; border-radius:10px; position:absolute;
@,SWq, left
50'/6;padding:4hx;
backgromn* rEb{0,O,O,.8h box-sizing:
borderto:r;
box-shadon': 0
l5px 2ipx
rgba(0O0,.5);tramforno:
trmhtd-50?6, -fi%h,>
<M style="colm whitq>Edit
Task</hz><lnputt)"€="t€xt' rame='nme! requiredvatur"<?php
echo $data['td_texf]; ?>',>Sution
qrpre="srb'mifclasrttut>up&te<fbuttolr>
4utton
type="bufon"clasr'btn
cancel"onclicF"location.href :
tome.php")Close</buttron>
{div>
</forrr>
tddone.php
<rphe
$link
:
mysqli_connec('localhod, boof, ",bumber);
if (!empty($_cET)
{$id:
$_GET['id'];$query:
t'update todo settddone'l'where td_id:'$id',';
$result
:
mysqli_query($1in( $qurry);if($result){
header('location : home.php,);
II
)
Page No: 33
tddelete,php
<?php
IJiok = mysqli*connec('localhosf,
!oof,
,', humber,);if(!empty($_GET)
{$did:
$_GET['did];$query
:
"delete ftom todo ryteretd_i#tdid
";$result =
mysqli_qrsy($lin!
Squery;;if($result){
header('locatimnme+hpt )
rcportphp qphp
relluire_once'./resource/headr4ftr,;
<?php
$Iink
: m1ruli_cometflocalhost', hood,', hrmbed);
if (qty($_sEssloNtbidD) {
-
header('location:index.p@);)
if (isset{$_cET['date"]) {
$uid
:
$_SESSIONIf,tC];$valueToSearch =
$_GETtd{reI;
$valueToSearchl
: $_oEifart iI;
__&uerl':
"select* fro; 'toao'
",t;
tddone=Jl'ANDu_id:,$uid,AND td
date BETWEEN '$valueToseareh'AND ,$vatueTos"*hr;AR6up-Bt
rd dr,J. *- , !*"yt
= mysqli_query($linh $qu€ry);l
else {)
<form action='teport.php"
6strod=icET">
.ltab-l9.bords1:trlpyrt style="border-collapse: collapse; margin_top: g0px;,,
cellpaddin5"
I 0" align='beirter"><tr>
<td> From
"i"nul class:"tex6',
typr€='rdate" name:,date,,required:o,
> </td>'r1'To
<inputclass: textb'
qrp,e="date" name:"datel,,requlred:'*>
</td><td><input class:"addBtn"
typi"sEtmit" **o"*"_oh,' y6!se-',g[ARcH,,><ltd>
<rt>
<ffic>
dr>
Slc i&""***ers"
align="ceatefl' style=',text-aliga: center;,,)
Q>
<h
bgpolor"#FF g066 u>SL NO</th>PaeeNo:34
<th
bgcolor"#FF
8 066">DATE<th>
<th bgcoloe"#FF8066>Completed Task</th>
<tr>
<?php
$sl:1;
if (lempty($resnlt)
{while ($row
: q/sqli_ferch_asso{$resul0) {
<t>
<t&<?ptry edo $*r+; ?xtu>
<rd
eligr.9lmer>
<?phpdo
growfltd_date'];$dt: $rowfta_ac1i
</rd>
<fl aligP=rlefu>
<rph
$que:'sel€ct t from'todo'
urteretddonr'l'AND
u_id:,$uid,andtd date:
tdf grupbytd_id";
$res
: mysqli_ryery($lin\
$que);if(!€'rFt5rurcs)) t
uttitg ($rov :^qrsqli_fach_assod$res)) echo<l>'
.$rowfta_texf] .'<,[i;,.
{l
)
else{ ) b
<td>
<?php
)
)
<tr>
{table>
<hhp require*once'./resornce/footer+b';>
Iogout.php
<?php
session_startQ;
session_destroyQ;
header('location:indexphp);
Lcedcr.php
<?ptp scssion_startQ; ?>
tu>
dG.D
Page No: 35
<meta charseFuUTF-8n>
<link
rel:"stllesheet"
hreF'style/style.css,' qpe:,,text/css,')
<title>My TOkltitle>
<lhead>
<body>
<nav>
<div
class:"brmd>
<h?>MY TO
DO</hD
</div>
<ul>
<1><a
HhmsphpDflOME<a><ti>
<><a hreFtirccrtphp>ADD TASK</*</li>
<li><a
he,F'reput php>lff REPORT<D<I>
<ti><a
heFltogoutphp>logart</p</f>
<rtb
<hav>
</body>
</hmf>
fmter.php
</div>
<style>
.f*to_{
position:
fixe4 left:0;
bottom:0;
width: fiA%;
background-color: rgba(0,0,0,0.e;
color: white;
text-align: center;
<style> )
<div
class:"footer")
.
<pxfooter>©
Copyright 20 I 9My
ToDO</footer><p>
{div>
</body>
</htnl>
ajaxpro.php
<|+hp
requir,('db_confi g.php,) ;
Spcition :
$_POS T['position'] ;3i=l;
fr1:{
($position as$k:> $v)
{loql:'update
todo SETposition_order"
. $i .,
WHERE td IuFqti-.>quexy($sql);rit
Pase No: 36
)
db
header('location: home.php) ;
config.php
<?php
$mysqli:
newmysqli('localhosf, toot", "',
nnumber");?>
style.css bodyt
mugin: ft
padding:0;
fmt-fuily:
saas-serif;ba*$ormd: #ffi;
background-size: covex;
font-size: 14px;
)
table
t td
.texth{padding:5px;
width:200px;
height
3Qp";border-radius: 5px;
)
table tr td .addBtn
{
padding:5px;
width:80px;
heighr
3Qpx;background: #2471A3;
color:
#ffi;
text-align: center;
font-size: 12px;
cursor: pointer;
transition: 0.3s;
border-radius: 5px;
-d&:hover l
{t*groun+color:
#27 AE60;-bc{ l
uriin-
&solute;+JOrt
Page No: 37
left:50Yo;
f
ansform : fr anslate(-S ff/o,-Sff/o);width:450px;
padding:40p*;
background: rgba(0,0,0,. 8);
box-sizing: border-box;
box-shadovn O 15px 25px rgb{O,OS,.S}
border-radius, lQpx;
) J
;box
h2{
margin: 0 0 30pX padding:0;
colmffi
text-aligD: ceofec
)
.box
in@ox {
position: relative;
)
.box.iryutbox input{
wi&h:
100%;padding: 10px 0;
font-size:
l4px;
color:
#ffi;
margin-bottom: 30px;
border: none;
border-bottom:
lpx
solid#ffi;
outline: aone;
background : transparent;
)
.box.inputbox
label{position: absolute;
top:0;
left:0;
padding:10px0;
font-size: 16px;
color:
#fff;
pointer-events: none;
transition: .5s;
I J
-bor
iryutbox
input:focus-
label,-bor
jryutbox
input:valid-
labelt ng-ltpx;
hftq
Goh
#03a9f4;h.ria l2pa
Page No: 38
;
I
I
I
l
)
.box input[type:"submit"]
{
background: transparen!
border: none;
outline: none;
color:#fff;
background: fl)3a9f4;
padding:
l@x
2Qpa cursor: pointe6 border-radius:Sx;
)
-or{ mrgimop: lfi)px;
lptlr- 29AE )
-ua.me{
@ding:5hx;
) nav{
position:
fixet
top:0;
left:0;
widrh:
$0%;
heighr
7hx;
bactground: rgba{0,0,0,0.
e;
@ding:O
50px;box-sizing: border-box;
font-family: san s-serif.
)
nav.brand
I
tfloat: left;
height
l}Ao/a;line-height 70px;
)
mv.brandM {
mergin:0;
pedding:5px;
colm
blue;fu*ize
ITpx;tds1md.color:
lightblue ;PaseNo:39
height
5Qpx;border-radius:6px 0;
font-family:Times;
)
navul{
float: right;
display: flex;
margin:0;
padding:0;
1t
nav ul
li{
listdyle rEE;
)
nevul
ha{
podtim: nddive;
dirylx),: block;
h.;ght 7hx;
tideighr
TOpx pedding:0l5px;
box-sizing:
bordertog
colon#ffi;
text{ecoration: n@e;
text-tansform: uppercasc;
trmsition:.5s;
)
nav ul
li
a:hover{color: #262626;
)
nav ul
li
a:before {content ";
position: absolute;
top:0;
left:0;
width: fiA%;
heighr t00yq'
background:#fff;
tansform-origrn : right;
z-index -l;
transform: scaleX(0);
tmsition:
transform . 5s;uv )
ulli
a:hover:before{ Morm-origin:
left;drm: scalex(l);
)
PageNo:40
L
I
a
.one tr td
input{
border-radirc: 4p:r;
width:200px;
height:30pr
margin:lpx;
box-sizing:
bfider+or;
padding:8pg
font-fimily m,tertt
fmt-sizs l4px;
)
-mtrtd.btn
{pa&ing:0;
fmt-size: l5px;
color: white;
background #FF6F9I;
border: none;
cursor: point€C border-radius: 5px;
)
.vtab
hth
{
font-size: 10px;
padding:5px;
color:
#fff;
background-color: lightslategray;
)
.view{height:300px;
font-size: 14px;
paddingJeft: 50px;
padding-right: 50px;
)
.vs tr
-sl{ rift:50px;
PageNo:41
)\
.vtab
tr
.s2\
Iwidth:200px;
It
.vtab
tr
.s3 (1
width: tr:lrr".
text-a,igrr
;3-:e:.
I
-.-: - - li.
'.i",irt:
i _<0pr:rtab
tr
.s5u'idth: 600px;
J
.view .ser tr
td{
padding:5px;
width:80%;
)
.view .ser tr td .button{
padding:5px;
width:80px;
height:30px;
background: #2471A3;
color:
ffif;
text-align: center;
tbnt-size:
l2px;
.-ursor: pointer;
::.:nsition: 0.3s;
:,:: jer-radius: 5px;
: --.
.::
ir td .button:hover {:,, i:,und-color:
#27 AE60;Page No:42
hF
width: 200px;
height: 30px;
border-radius: 5px;
-'
..:i
I'-.rab tr td.btnl
l -:"Jding: 8px:;_.r:rg_517s. I
jpr.
;.-,ior: *.hite;
background: =FF6F91:
border: nonel cursor: pointer:
border-radius: 5px;
text-decoration: nonel margin: 10px;
It
.view.vtab
tr.tdbtn
{ text-align: center;,
padding:15px;r ierv .vtab
.VIEW{
font-family: sans-serif;
ibnt-size: 14px;
i:r_sht: 15px;
'; h-rte-space: normal;
::..1ding: 2px;
!:mepage style
css""
- r
: :: =' https:i/ajax.googreapis.com/ajaxlribslique ry13.2.r/iquery.minjs,,></script>"
- :'
- : = " :rnp s : //cdnj s. cloudfl are. com/aj axfi ibsii que,t;r/1 . t z. t t iquery_-
r_.: -
.cript>-t:
:
Page No: .43