WT Act2
WT Act2
DEPARTMENT OF CS & IT
BCA PROGRAMME
ACTIVITY-2
Date of Submission:
Submitted by:
1
CERTIFICATE
Problem
Implementation
S. No. Student Statement Demo & Viva Total Marks
USN No. Name & Result
(Abstract)
5 Marks 5 Marks 5 Marks 15 Marks
1. Syed arsalan 22BCAR0503
2. Md Safwan 22BCAR0075
sharieff
3.
4.
5.
2
INDEX
List of Figures 4
Abstract 5
1 Introduction 6-7
2 Analysis 8-9
4 Implementation 12-20
5 Result 21-27
6 Conclusion 28
7 References 29
4
Table of Figures
1 FLOWCHART 10
2 ER DIAGRAM 11
3 LOGIN PAGE 21
4 DASHBOARD PAGE 22
5 EXPENSE PAGE 23
6 MANAGE EXPENSE 24
7 EXPENSE REPORT 25
8 PROFILE 26
9 CHANGE PASSWORD 27
5
Abstract
Key Features:
Secure User Authentication – Ensures only authorized users can access their
financial records.
Expense Logging & Categorization – Users can add, edit, and delete expense
entries based on categories.
Report Generation – Provides daily, monthly, and yearly insights into spending
habits.
User Profile Management – Allows users to update their details and change
passwords for security.
Responsive & Interactive Interface – Built using Bootstrap for seamless user
experience across devices.
This project is built using HTML, CSS, JavaScript, Bootstrap, PHP, and
MySQL, ensuring a dynamic and responsive web application.
The system allows users to:
This report details the analysis, design, implementation, and results of the
Daily Expense Tracker system. The study begins with an analysis of existing
financial tracking methods, identifying their limitations, and proposing an
improved system. It then covers the technical aspects, including data flow
diagrams, ER diagrams, sample codes, and screenshots to showcase the
system's functionalities.
Existing System
Proposed System
Automated Expense Tracking: Users can log expenses with relevant details
such as amount, category, and date.
Report Generation: Generates daily, monthly, and yearly reports for financial
insights.
Software Used
Problem Statement
Tracking daily expenses is a crucial but often neglected task. Many
individuals struggle with managing their finances effectively due to lack of a
structured system. The Daily Expense Tracker aims to resolve this issue by
providing an automated, secure, and user-friendly platform to record,
manage, and analyze financial transactions, helping users gain better control
over their expenses.
Design
Figure 1.1
Entity-Relationship (ER) Diagram
Figure 1.2
Implementation
SAMPLE CODE -
<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
if (strlen($_SESSION['detsuid']==0)) {
header('location:logout.php');
} else{
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Daily Expense Tracker || Datewise Expense Report</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="css/datepicker3.css" rel="stylesheet">
<link href="css/styles.css" rel="stylesheet">
<!--Custom Font-->
<link
href="https://fonts.googleapis.com/css?family=Montserrat:300,300i,400,400i,
500,500i,600,600i,700,700i" rel="stylesheet">
</head>
<body>
<?php include_once('includes/header.php');?>
<?php include_once('includes/sidebar.php');?>
<div class="col-sm-9 col-sm-offset-3 col-lg-10 col-lg-offset-2 main">
<div class="row">
<ol class="breadcrumb">
<li><a href="#">
<em class="fa fa-home"></em>
</a></li>
<li class="active">Datewise Expense Report</li>
</ol>
</div><!--/.row-->
<div class="row">
<div class="col-lg-12">
<div class="panel panel-default">
<div class="panel-heading">Datewise Expense Report</div>
<div class="panel-body">
<div class="col-md-12">
<?php
$fdate=$_POST['fromdate'];
$tdate=$_POST['todate'];
$rtype=$_POST['requesttype'];
?>
<h5 align="center" style="color:blue">Datewise Expense Report from <?php
echo $fdate?> to <?php echo $tdate?></h5>
<hr />
<table id="datatable" class="table table-bordered dt-
responsive nowrap" style="border-collapse: collapse; border-spacing: 0; width:
100%;">
<thead>
<tr>
<tr>
<th>S.NO</th>
<th>Date</th>
<th>Expense Amount</th>
</tr>
</tr>
</thead>
<?php
$userid=$_SESSION['detsuid'];
$ret=mysqli_query($con,"SELECT ExpenseDate,SUM(ExpenseCost) as
totaldaily FROM `tblexpense` where (ExpenseDate BETWEEN '$fdate' and
'$tdate') && (UserId='$userid') group by ExpenseDate");
$cnt=1;
while ($row=mysqli_fetch_array($ret))
<tr>
<td><?php echo $cnt;?></td>
Login Page - The login page verifies user credentials before granting access.
Users must enter their email and password, which are validated against the
database. Incorrect credentials result in an error message. This ensures
secure access to financial records.
Figure 2.1
Dashboard
Figure 2.2
Expense - Add Expenses
Users can log daily expenses by entering the amount, category, and date. The
system then stores the data securely in the database for future reference.
Figure 2.3
Manage Expense
This section allows users to edit or delete past transactions. Expense records
are displayed in a tabular format, making it easy to manage them.
Figure 2.4
Expense Report - Daily / Monthly / Yearly
Users can generate reports for analyzing spending trends over different time
periods. This helps in budgeting and financial planning.
Figure 2.5
Profile
Users can update personal details, including name and contact information.
This ensures accurate record-keeping.
Figure 2.6
Change Password
For security, users can update their passwords. The system verifies the old
password before allowing changes, preventing unauthorized modifications.
Figure 2.7
Conclusion
With the increasing reliance on digital financial tools, this project serves as a
foundation for a more comprehensive and intelligent expense management
system. By incorporating future enhancements, the Daily Expense Tracker
can evolve into a robust financial assistant that helps users achieve better
money management, savings, and financial discipline.
References