main.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 |
<?php switch ($page) { case 'services': require 'services.php'; break; case 'service_page': require 'service_page.php'; break; case 'shop': require 'shop.php'; break; case 'contact_us': require 'contact_us.php'; break; case 'about_us': require 'about_us.php'; break; case 'engineer': require 'engineer.php'; break; case 'cart': require 'cart.php'; break; case 'checkout': require 'checkout.php'; break; case 'sign_up': require 'sign_up.php'; break; case 'sign_in': require 'sign_in.php'; break; case 'my_account': require 'my_account.php'; break; case 'home': default: require 'home.php'; break; } ?> |
my_account.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 |
<?php if ( !$_SESSION[ 'logged' ] ) { $_SESSION[ 'logged' ] = false; } ?> <div class="page-title-area"> <img src="assets/img/home-one/footer-car.png" alt="Title"> <div class="container"> <div class="page-title-content"> <h2>My Account</h2> <ul> <li> <a href="index.php?p=home">Home</a> </li> <li> <i class='bx bx-chevron-right'></i> </li> <li>My Account</li> </ul> </div> </div> </div> <section class="parts-area pt-100 pb-70"> <div class="container"> <div class="section-title"> <h2>Client Account Page</h2> </div> <div id="Container" class="row"> <?php if ( !$_SESSION[ 'logged' ] ) { echo 'You are not register kindly register then visit this page.'; } else { echo 'Welcome user your email address is: '.$_SESSION[ 'email' ]; } ?> <a href="sign_out.php">Sign Out</a> <table class="table table-hover table-striped"> <thead> <tr> <th>Dated</th> <th>Vehicle</th> <th>Services</th> <th>Additional Services</th> </tr> </thead> <tbody> <?php $selectQuery = "SELECT * FROM ".Config::tbI." WHERE ".Config::tbIUUID."=:".Config::tbIUUID; $selectResult = $db->Select($selectQuery, [ Config::tbIUUID => $_SESSION[ 'uid' ] ]); foreach( $selectResult as $idx=>$val ) { echo ' <tr> <td>'.$val[Config::tbCreated].'</td> <td>'.$val[Config::tbIVehicle].'</td> <td> <ol> '; $selectQuery = "SELECT * FROM ".Config::tbIs." WHERE ".Config::tbIsIUID."=:".Config::tbIsIUID; $selectResult = $db->Select($selectQuery, [ Config::tbIsIUID => $val[Config::tbIUID] ]); foreach( $selectResult as $idx2=>$val2 ) { $selectQuery = "SELECT * FROM ".Config::tbS." WHERE ".Config::tbSUID."=:".Config::tbSUID; $selectResult = $db->Select($selectQuery, [ Config::tbSUID => $val2[Config::tbIsSUID] ]); echo ' <li> <ul> <li>'.$selectResult[0][Config::tbSName].'</li> <li>'.$selectResult[0][Config::tbSPrice].' RS</li> </ul> </li> '; } echo ' </ol> </td> <td> <ol> '; $selectQuery = "SELECT * FROM ".Config::tbIas." WHERE ".Config::tbIasIUID."=:".Config::tbIasIUID; $selectResult = $db->Select($selectQuery, [ Config::tbIasIUID => $val[Config::tbIUID] ]); foreach( $selectResult as $idx2=>$val2 ) { echo ' <li> <ul> <li>'.$val2[Config::tbIasName].'</li> <li>'.$val2[Config::tbIasPrice].' RS</li> </ul> </li> '; } echo ' </ol> </td> </tr> '; } ?> </tbody> </table> <div style="padding:70px;"></div> </div> </div> </section> |
services.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 |
<?php $uid = $_GET['uid']; $query = "SELECT * FROM ".Config::tbSC." WHERE ".Config::tbSCUID."=:".Config::tbSCUID.""; $result = $db->Select( $query, [ Config::tbSCUID => $uid ] ); if ( $result ) { $tbSCName = $result[0][Config::tbSCName]; } else { header("location:index.php?p=home"); return; } ?> <div class="page-title-area"> <img src="assets/img/home-one/footer-car.png" alt="Title"> <div class="container"> <div class="page-title-content"> <h2><?php echo $tbSCName; ?></h2> <ul> <li> <a href="index.php?p=home">Home</a> </li> <li> <i class='bx bx-chevron-right'></i> </li> <li><?php echo $tbSCName; ?></li> </ul> </div> </div> </div> <section class="pt-100 pb-70"> <div class="container"> <div class="row"> <?php $query = "SELECT * FROM ".Config::tbS." WHERE ".Config::tbSSCUID."=:".Config::tbSSCUID." ORDER BY ".Config::tbSUID." ASC"; $result = $db->Select( $query, [ Config::tbSSCUID => $uid ] ); if ( $result ) { foreach ( $result as $key => $data ) { echo' <div class="col-sm-6 col-lg-4"> <a href="index.php?p=service_page&uid='.$data[Config::tbSUID].'"> <div class="service-item"> <div class="service-img"> <img style="height: 320px;" src="'.Config::serverStoragePath.''.$data[Config::tbSImage].'" alt="Service"> </div> <div class="service-content"> <i class="bx bx-car"></i> <i class="'.$data[Config::tbSIcon].' service-icon"></i> <h3>'.$data[Config::tbSName].'</h3> <p>'.substr_replace(strip_tags($data[Config::tbSInfo]), "...", 50).'</p> </div> </div> </a> </div> '; } } ?> </div> </div> </section> <div style="padding:70px;"></div> |
Download Full code of PHP Source code of Automobile workshop Management system
Advertisement
Advertisement
More helping material of Automobile workshop Project
- SRS Document of Online Automobile workshop Management system Final Year Project Advertisement
- Functional Non-Functional Requirements of Automobile workshop Management system
- ERD of Online Automobile workshop Management system [Entity relationship diagram]
- Component diagram of Automobile workshop Management system
- Class diagram of Automobile workshop Management system
- Use Case Descriptions of Automobile workshop Management system
- Download Full code of PHP Source code of Automobile workshop Management system Advertisement