Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- config.php
- <?php
- // DB credentials.
- define('DB_HOST','localhost');
- define('DB_USER','root');
- define('DB_PASS','');
- define('DB_NAME','tms');
- // Establish database connection.
- try
- {
- $dbh = new PDO("mysql:host=".DB_HOST.";dbname=".DB_NAME,DB_USER, DB_PASS,array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES 'utf8'"));
- }
- catch (PDOException $e)
- {
- exit("Error: " . $e->getMessage());
- }
- ?>
- package-details.php
- <form name="book" method="post">
- <div class="selectroom_top">
- <div class="col-md-4 selectroom_left wow fadeInLeft animated" data-wow-delay=".5s">
- <img src="admin/pacakgeimages/<?php echo htmlentities($result->PackageImage);?>" class="img-responsive" alt="">
- </div>
- <div class="col-md-8 selectroom_right wow fadeInRight animated" data-wow-delay=".5s">
- <h2><?php echo htmlentities($result->PackageName);?></h2>
- <p><b>Package Type :</b> <?php echo htmlentities($result->PackageType);?></p>
- <p><b>Package Location :</b> <?php echo htmlentities($result->PackageLocation);?></p>
- <p><b>Features</b> <?php echo htmlentities($result->PackageFetures);?></p>
- <div class="ban-bottom">
- <div class="bnr-right">
- <label class="inputLabel">Date</label>
- <input type="text" name="date" required="">
- </div>
- <div class="bnr-right">
- <label class="inputLabel">Time</label>
- <input type="text" name="time" required="">
- </div>
- </div>
- <div class="clearfix"></div>
- <div class="grand">
- <p>Grand Total</p>
- <h3><?php echo htmlentities($result->PackagePrice);?>€</h3>
- </div>
- </div>
- <h3>Package Details</h3>
- <p style="padding-top: 1%"><?php echo htmlentities($result->PackageDetails);?> </p>
- <div class="clearfix"></div>
- </div>
- <div class="selectroom_top">
- <h2>Travels</h2>
- <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">
- <ul>
- <li class="spe">
- <label class="inputLabel">Comment</label>
- <input class="special" type="text" name="comment">
- </li>
- <?php if($_SESSION['login'])
- {?>
- <li class="spe" align="center">
- <button type="submit" name="submit2" class="btn-primary btn">Book</button>
- </li>
- <?php } else {?>
- <li class="sigi" align="center" style="margin-top: 1%">
- <a href="#" data-toggle="modal" data-target="#myModal4" class="btn-primary btn" > Book</a></li>
- <?php } ?>
- <div class="clearfix"></div>
- </ul>
- </div>
- </div>
- </form>
- <?php }} ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement