Professional Documents
Culture Documents
PRESENTED BY:-
SUBHODEEP GHOSH (30201017005)
CONTEXT DIAGRAM
Procedural design (Contd.)
USER TABLE
THEATRE TABLE
SCREENING
TABLE
database design(contd.)
TABLE DESCRIPTION
RESERVED
TABLE
MOVIE TABLE
database design(contd.)
TABLE DESCRIPTION
CITIES
TABLE
AUDITORIUM
TABLE
ADMIN TABLE
database design(contd.)
ENTITY
RELATIONSHIP
DIAGRAM
ARCHITECTURAL design
USE-CASE
DIAGRAM
interface design
Cost benefit analysis
FUNCTION POINT ANALYSIS
According to the formula,
FP = UFP*TCF
Case-Study:-
Sr. Input Parameters Datatype Expected Actual output Remarks
output
no
<?php
1. if(isset($_POST['login-submit'])){
2. require 'config.php';
3. $mailuid = $_POST['mailuid'];
4. $pass = $_POST['pw'];
5. if(empty($mailuid) || empty($pass)){
6. header('location:login.php?error=emptyfields');
exit();
}
7. else{
8. $sql = "SELECT * FROM users WHERE uname=?";
9. $stmt = mysqli_stmt_init($conn);
10. if(!mysqli_stmt_prepare($stmt,$sql)){
11. header('location:login.php?error=sqlerror');
exit();
}
12. else{
13. mysqli_stmt_bind_param($stmt,"s",$mailuid);
14. mysqli_stmt_execute($stmt);
15. $res = mysqli_stmt_get_result($stmt);
16. if($row = mysqli_fetch_assoc($res)){
17. $pwdCompare = password_verify($pass,$row['pwduser']);
18. if($pwdCompare==false){
19. header('location:login.php?error=wrong_password');
exit();
}
20. else if($pwdCompare==true){
21. session_start();
$_SESSION['lastActivity'] = time();
$_SESSION['userid'] = $row['uid'];
$_SESSION['username'] = $row['uname'];
22. if(isset($_POST['uri'])){
23. header('location:'.$_POST['uri']);
}
exit();
}
24. else{
25. header('location:login.php?error=wrong_password');
exit();
}
}
26. else{
27. header('location:login.php?error=nousers');
exit();
}
}
}
}
28. else{
29. header('location:login.php');
30. exit();
}
?>
CONTROL
FLOW
GRAPH
The cyclomatic complexity,
V(G) = E – N + 2 = 35 – 30 + 2 = 7.
V(G) = P + 1 = 6 + 1 = 7.
V(G) = R + 1 = 6 + 1 = 7.
FUTURE SCOPE
CONCLUSION
• This project has been developed successfully and the performance of
the system has been found satisfactory. Use of this interface helps
customer in having immediate information about running movies and
reserve their seat without wasting their precious time. User friendly
Interface also for the admin to add and delete movie information.
Thus, we may conclude that:-
• This project is basically made for providing the customer anytime and
anywhere service for booking cinema tickets and providing information
about the movies and their schedule online.
• Admins can use this project to insert and delete data such as movie
description, movie schedule which will update the related webpage and
will be accessible by the customers.
• This system is basically aimed to provide complete information of the
movie and schedule to the customer, according to which he can book
the tickets.