Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
493
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.63 KB | None | 0 0
  1. config.php
  2. <?php
  3. // DB credentials.
  4. define('DB_HOST','localhost');
  5. define('DB_USER','root');
  6. define('DB_PASS','');
  7. define('DB_NAME','tms');
  8. // Establish database connection.
  9. try
  10. {
  11. $dbh = new PDO("mysql:host=".DB_HOST.";dbname=".DB_NAME,DB_USER, DB_PASS,array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES 'utf8'"));
  12. }
  13. catch (PDOException $e)
  14. {
  15. exit("Error: " . $e->getMessage());
  16. }
  17. ?>
  18.  
  19. package-details.php
  20. <form name="book" method="post">
  21. <div class="selectroom_top">
  22. <div class="col-md-4 selectroom_left wow fadeInLeft animated" data-wow-delay=".5s">
  23. <img src="admin/pacakgeimages/<?php echo htmlentities($result->PackageImage);?>" class="img-responsive" alt="">
  24. </div>
  25. <div class="col-md-8 selectroom_right wow fadeInRight animated" data-wow-delay=".5s">
  26. <h2><?php echo htmlentities($result->PackageName);?></h2>
  27. <p><b>Package Type :</b> <?php echo htmlentities($result->PackageType);?></p>
  28. <p><b>Package Location :</b> <?php echo htmlentities($result->PackageLocation);?></p>
  29. <p><b>Features</b> <?php echo htmlentities($result->PackageFetures);?></p>
  30. <div class="ban-bottom">
  31. <div class="bnr-right">
  32. <label class="inputLabel">Date</label>
  33. <input type="text" name="date" required="">
  34. </div>
  35. <div class="bnr-right">
  36. <label class="inputLabel">Time</label>
  37. <input type="text" name="time" required="">
  38. </div>
  39. </div>
  40. <div class="clearfix"></div>
  41. <div class="grand">
  42. <p>Grand Total</p>
  43. <h3><?php echo htmlentities($result->PackagePrice);?>€</h3>
  44. </div>
  45. </div>
  46. <h3>Package Details</h3>
  47. <p style="padding-top: 1%"><?php echo htmlentities($result->PackageDetails);?> </p>
  48. <div class="clearfix"></div>
  49. </div>
  50. <div class="selectroom_top">
  51. <h2>Travels</h2>
  52. <div class="selectroom-info animated wow fadeInUp animated" data-wow-duration="1200ms" data-wow-delay="500ms" style="visibility: visible; animation-duration: 1200ms; animation-delay: 500ms; animation-name: fadeInUp; margin-top: -70px">
  53. <ul>
  54.  
  55. <li class="spe">
  56. <label class="inputLabel">Comment</label>
  57. <input class="special" type="text" name="comment">
  58. </li>
  59. <?php if($_SESSION['login'])
  60. {?>
  61. <li class="spe" align="center">
  62. <button type="submit" name="submit2" class="btn-primary btn">Book</button>
  63. </li>
  64. <?php } else {?>
  65. <li class="sigi" align="center" style="margin-top: 1%">
  66. <a href="#" data-toggle="modal" data-target="#myModal4" class="btn-primary btn" > Book</a></li>
  67. <?php } ?>
  68. <div class="clearfix"></div>
  69. </ul>
  70. </div>
  71.  
  72. </div>
  73. </form>
  74. <?php }} ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement