Source Code in PHP for Car Parking management System.
checkparking.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 |
<?php include "connect.php"; session_start(); if(!isset($_SESSION['operatorid'])) { header("Location:{$hostname}/bps/operator.html"); } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="stylesheet" href="styledashboard.css" /> <title>ADMIN DASHBOARD</title> <link rel="stylesheet" type="text/css" href="style.css"> <style> body{ background-color: whitesmoke; } input { width: 40%; height: 5%; border: 1px; border-radius: 05px; padding: 8px 15px 8px 15px; margin: 10px 0px 15px 0px; box-shadow: 1px 1px 2px 1px gray; } </style> </head> <body id="body"> <div class="container"> <nav class="navbar"> <div class="nav_icon" onclick="toggleSidebar()"> <i class="fa fa-bars" aria-hidden="true"></i> </div> <div class="navbar__left"> <a href="#">BIMS PARKING SYSTEM </a> </div> <div class="navbar__right"> <img width="30" src="adminpic.PNG" alt="" /> <!-- <i class="fa fa-user-circle-o" aria-hidden="true"></i> --> </div> </nav> <main> <center> <div> <video id="preview" width="600px" height="200px"></video> </div> <form action="operatorautomatic.html" method="POST"> <input type="text" id="search" placeholder="Enter ID To Search" name="search" required/><br> <input type="submit" name="Search-Data" value="Search-Data" id="searchh"> </form> <script> let scanner = new Instascan.Scanner({ video: document.getElementById('preview')}); Instascan.Camera.getCameras().then(function(cameras){ if(cameras.length > 0 ){ scanner.start(cameras[0]); } else{ alert('No cameras found'); } }).catch(function(e) { console.error(e); }); scanner.addListener('scan',function(c){ document.getElementById('search').value=c; document.forms[0].submit(); }); </script> <!-- <?php date_default_timezone_set('Asia/Karachi'); error_reporting(0); include "connect.php"; if(isset($_POST['Search-Data'])) { $id = $_POST['search']; $sql1 = "SELECT PID,Name,Vehicle FROM person_tbl WHERE PID = $id"; $run1 = mysqli_query($conn,$sql1); while($row = mysqli_fetch_array($run1)) { ?> <form action="<?php $_SERVER['PHP_SELF'];?>" method="POST"> <input type="text" name="pid" value="<?php echo $row['PID'] ?>" required/> <br> <input type="text" name="name" value="<?php echo $row['Name'] ?>" required/> <br> <input type="text" name="vehicle" value="<?php echo $row['Vehicle'] ?>" required/> <br> <input type="text" name="todaydate" value="<?php echo date('d-M-Y'); ?>"> <br> <input type="text" name="timein" value="<?php echo date('h-i-A'); ?>"> <br> <input type="text" name="timeout" value="<?php echo date('h-i-A'); ?>"> <br> <input type="submit" name="enterparking" value="Submit"> </form> </center> <?php } } if(isset($_POST['enterparking'])) { $pid = $_POST['pid']; $name = $_POST['name']; $vehicle = $_POST['vehicle']; $todaydate = $_POST['todaydate']; $timein = $_POST['timein']; $timeout = $_POST['timeout']; $sql5 = "SELECT * FROM parking_tbl WHERE PID ='$pid' AND Name='$name' AND Date ='$todaydate' AND Timeout =''"; $query=$conn->query($sql5); if($query->num_rows>0){ $sql6="UPDATE parking_tbl SET Timeout='$timeout' WHERE PID ='$pid' AND Name='$name' AND Date ='$todaydate' AND Timeout =''"; $query=$conn->query($sql6); } else { $sql2 = "INSERT INTO parking_tbl(PID,Name,Vehicle,Date,Timein) values ($pid,'$name','$vehicle','$todaydate','$timein')"; $run2 = mysqli_query($conn,$sql2); if($run2) { echo 'register'; } else { echo 'not register'; } } } ?> --> <div class="main__container"> <!-- MAIN TITLE STARTS HERE --> <div class="main__title"> <img src="adminpic.PNG" alt="" /> <div class="main__greeting"> </div> </div> </div> </main> <div id="sidebar"> <div class="sidebar__title"> <div class="sidebar__img"> <h1>BIMS PARKING SYSTEM</h1> </div> <i onclick="closeSidebar()" class="fa fa-times" id="sidebarIcon" aria-hidden="true" ></i> </div> <div class="sidebar__menu"> <div class="sidebar__link"> <i class="fa fa-home"></i> <a href="operatordashboard.html">Dashboard</a> </div> <div class="sidebar__link active_menu_link"> <i class=></i> <a href="insertparkingdetail.html">Insert Parking Details</a> </div> <div class="sidebar__link"> <i class=></i> <a href="operatorviewpersondetail.html">View Person Details</a> </div> <div class="sidebar__link"> <i class=></i> <a href="operatorviewparkingdetail.html">View Parking Details</a> </div> <div class="sidebar__logout"> <i class="fa fa-power-off"></i> <a href="operatorlogout.php">Log out</a> </div> </div> </div> </div> <script src="https://cdn.jsdelivr.net/npm/apexcharts"></script> <script src="script.js"></script> </body> </html> |
dashboard.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 |
<?php include "connect.php"; session_start(); if(!isset($_SESSION['userid'])) { header("Location:{$hostname}/bps/admin_login.html"); } $query = "SELECT PID FROM person_tbl"; $query_run = mysqli_query($conn,$query); $rows = mysqli_num_rows($query_run); $dates= date('d-M-Y'); $query2 = "SELECT Timein FROM parking_tbl WHERE Date = '$dates'"; $query_run2 = mysqli_query($conn,$query2); $rows2 = mysqli_num_rows($query_run2); $query3 = "SELECT Timeout FROM parking_tbl WHERE Timeout !='' AND Date = '$dates'"; $query_run3 = mysqli_query($conn,$query3); $rows3 = mysqli_num_rows($query_run3); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous" /> <link rel="stylesheet" href="styledashboard.css" /> <title>ADMIN DASHBOARD</title> <link rel="stylesheet" type="text/css" href="style.css"> <style> *{ margin: 0; padding: 0; box-sizing: border-box; } body { min-height: 100vh; //display: flex; font-family: sans-serif; background: #eee; } .mycontainer { margin: auto; width: 500px; max-width: 90%; } .mycontainer form{ width: 100%; height: 100%; padding: 20px; background: white; border-radius: 4px; box-shadow: 0 8px 16px rgb(0, 0,0,.3); } .mycontainer form h1{ text-align: center; margin-bottom: 24px; color: #222; } .mycontainer form .form-control{ width: 100%; height: 40px; background: white; border-radius: 4px; border: 1px solid silver; margin: 10px 0 18px 0; padding: 0 10px; } .mycontainer form .btn { margin-left: 50%; transform: translateX(-50%); width: 120px; height: 34px; border: none; outline: none; background: #27a327; cursor: pointer; font-size: 16px; color: white; text-transform: uppercase; border-radius: 4px; transition: .3s; } .mycontainer form .btn:hover { opacity: .7; } .mustafa { } .mustafa1 { background-color:#27a327; margin: 0px 70px 2px 50px; float: left; width: 300px; height: 150px; } </style> </head> <body id="body"> <div class="container"> <nav class="navbar"> <div class="nav_icon" onclick="toggleSidebar()"> <i class="fa fa-bars" aria-hidden="true"></i> </div> <div class="navbar__left"> <a href="#">BIMS PARKING SYSTEM </a> </div> <div class="navbar__right"> <img width="30" src="adminpic.PNG" alt="" /> <!-- <i class="fa fa-user-circle-o" aria-hidden="true"></i> --> </div> </nav> <main> <div class="main__container"> <!-- MAIN TITLE STARTS HERE --> <div class="main__title"> <img src="assets/hello.svg" alt="" /> <div class="main__greeting"> <h1>Hello Admin</h1> <p>Welcome to your admin dashboard</p> </div> </div> <!-- MAIN TITLE ENDS HERE --> <!-- MAIN CARDS STARTS HERE --> <div class="main__cards"> <div class="card"> <i class="fa fa-user-o fa-2x text-lightblue" aria-hidden="true" ></i> <div class="card_inner"> <?php ?> <p class="text-primary-p">Number Of Register Person</p> <span class="font-bold text-title"><?php echo '<h1>'.$rows.'</h1>';?></span> </div> </div> <div class="card"> <i class="fa fa-user-o fa-2x text-lightblue" aria-hidden="true"></i> <div class="card_inner"> <p class="text-primary-p">Person Check-In</p> <span class="font-bold text-title"><?php echo '<h1>'.$rows2.'</h1>';?></span> </div> </div> <div class="card"> <i class="fa fa-user-o fa-2x text-lightblue" aria-hidden="true" ></i> <div class="card_inner"> <p class="text-primary-p">Person Check-Out</p> <span class="font-bold text-title"><?php echo '<h1>'.$rows3.'</h1>';?></span> </div> </div> </div> </main> <div id="sidebar"> <div class="sidebar__title"> <div class="sidebar__img"> <h1>BIMS PARKING SYSTEM</h1> </div> <i onclick="closeSidebar()" class="fa fa-times" id="sidebarIcon" aria-hidden="true" ></i> </div> <div class="sidebar__menu"> <div class="sidebar__link active_menu_link"> <i class="fa fa-home"></i> <a href="dashboard.html">Dashboard</a> </div> <div class="sidebar__link"> <i class= aria-hidden="true"></i> <a href="registerperson.html">Register Person</a> </div> <div class="sidebar__link"> <i class=></i> <a href="manageperson.html">Manage Person Details</a> </div> <div class="sidebar__link"> <i class=></i> <a href="viewpersondetail.html">View Person Details</a> </div> <div class="sidebar__link"> <i class=></i> <a href="viewparkingdetail.html">View Parking Details</a> </div> <div class="sidebar__logout"> <i class="fa fa-power-off"></i> <a href="logout.php">Log out</a> </div> </div> </div> </div> <script src="https://cdn.jsdelivr.net/npm/apexcharts"></script> <script src="script.js"></script> </body> </html> |
insertparkingdetail.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 |
<?php include "connect.php"; session_start(); if(!isset($_SESSION['operatorid'])) { header("Location:{$hostname}/bps/operator.html"); } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous" /> <link rel="stylesheet" href="styledashboard.css" /> <title>OPERATOR DASHBOARD</title> <link rel="stylesheet" type="text/css" href="style.css"> <style> body{ background-color: whitesmoke; } .form-controls { width: 300px; height: 30px; } .my-buttonn { font-size: 18px; font-weight: 600; text-transform: uppercase; padding: 3px 7px; color: #ffffff; background-color: #009879; text-decoration: none; border-radius: 3px; border-color: #009879; box-shadow: none; width: 100px; height: 35px;} input { width: 40%; height: 5%; border: 1px; border-radius: 05px; padding: 8px 15px 8px 15px; margin: 10px 0px 15px 0px; box-shadow: 1px 1px 2px 1px gray; font-size: 18px; } </style> </head> <body id="body"> <div class="container"> <nav class="navbar"> <div class="nav_icon" onclick="toggleSidebar()"> <i class="fa fa-bars" aria-hidden="true"></i> </div> <div class="navbar__left"> <a href="#">BIMS PARKING SYSTEM </a> </div> <div class="navbar__right"> <img width="30" src="adminpic.PNG" alt="" /> <!-- <i class="fa fa-user-circle-o" aria-hidden="true"></i> --> </div> </nav> <main> <center> <div> <video id="preview" width="800px" height="300px"></video> </div> <form action="operatorautomatic.html" method="POST"> <input type="text" id="search" class="form-controls" placeholder="Enter ID To Search" name="search" required/><br> <input type="submit" name="Search-Data" value="Search" id="searchh" class="my-buttonn" > </form> <script> let scanner = new Instascan.Scanner({ video: document.getElementById('preview')}); Instascan.Camera.getCameras().then(function(cameras){ if(cameras.length > 0 ){ scanner.start(cameras[0]); } else{ alert('No cameras found'); } }).catch(function(e) { console.error(e); }); scanner.addListener('scan',function(c){ document.getElementById('search').value=c; document.forms[0].submit(); }); </script> <div class="main__container"> <!-- MAIN TITLE STARTS HERE --> <div class="main__title"> <img src="adminpic.PNG" alt="" /> <div class="main__greeting"> </div> </div> </div> </main> <div id="sidebar"> <div class="sidebar__title"> <div class="sidebar__img"> <h1>BIMS PARKING SYSTEM</h1> </div> <i onclick="closeSidebar()" class="fa fa-times" id="sidebarIcon" aria-hidden="true" ></i> </div> <div class="sidebar__menu"> <div class="sidebar__link"> <i class="fa fa-home"></i> <a href="operatordashboard.html">Dashboard</a> </div> <div class="sidebar__link active_menu_link"> <i class=></i> <a href="insertparkingdetail.html">Insert Parking Details</a> </div> <div class="sidebar__link"> <i class=></i> <a href="operatorviewpersondetail.html">View Person Details</a> </div> <div class="sidebar__link"> <i class=></i> <a href="operatorviewparkingdetail.html">View Parking Details</a> </div> <div class="sidebar__logout"> <i class="fa fa-power-off"></i> <a href="operatorlogout.php">Log out</a> </div> </div> </div> </div> <script src="https://cdn.jsdelivr.net/npm/apexcharts"></script> <script src="script.js"></script> </body> </html> |
Download free Car Parking management System Code in PHP
More Helping material for project of Car Parking System
- Non Functional Requirements of Vehicle Parking System Advertisement
- Functional Requirements of Car Parking System
- Non Functional Requirements of Vehicle Parking System
- Use Case Description of Car Parking System
- Use case diagram of Car Parking System
- Sequence Diagram Car Parking management System
- Activity Diagram of Car Parking management System
- Class Diagram of CAR Parking management System
- Component Diagram of Car Parking management System
- Deployment Diagram of Car Parking management System Advertisement
- ERD of Car Parking management System [Entity relationship diagram]
- Software Testing of Car Parking management System
- PPT Presentation of Car Parking management System
- Source Code in PHP for Car Parking management System