Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="nl-NL">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <title><?= $config['hotelName'] ?> Hotel: Gemeenschap </title>
- <?php include ("/includes/css_head.php"); ?>
- </head>
- <?php
- include ("/includes/header.php");
- include ("/includes/com_header.php");
- ?>
- <div class="container" style="width: 950px;">
- <style>
- .popular-room-wrap, .popular-group-wrap {
- max-height: 400px;
- overflow: auto;
- }
- .popular-room {
- background: #f9f9f9 url(/web/images/room_open.gif) no-repeat scroll 10px center;
- }
- .popular-room, .popular-group {
- background-color: #f9f9f9;
- background-repeat: no-repeat;
- border-radius: 3px;
- margin-bottom: 1px;
- padding: 8px 14px 8px 70px;
- position: relative;
- width: 100%;
- }
- .popular-room .room-title {
- font-size: 14px;
- font-weight: 300;
- margin: 0;
- }
- .popular-room p {
- margin: 0;
- }
- .popular-room .room-enter {
- bottom: 25px;
- position: absolute;
- right: 5px;
- }
- .popular-group a {
- font-weight: bold;
- }
- .popular-group .group-title {
- font-size: 14px;
- font-weight: 300;
- margin: 0;
- }
- .popular-group .group-desk {
- height: 13px;
- }
- .panel {
- border: 1px solid #e7e7e7;
- border-width: 0 1px 4px 1px;
- }
- </style>
- <?php
- $sql = DB::Query("SELECT id,title,image,shortstory FROM cms_news ORDER BY id DESC LIMIT 1");
- while($news = $sql->fetch_assoc())
- {
- echo'
- <div class="jumbotron" style="float: left;position: relative;padding: 0px;background-image: url('.$news["image"].');height: 178px;color: white;width: 75%;overflow: hidden;background-position-y: -54px;">
- <div style="background-color: rgba(0, 0, 0, 0.28);position: relative;top: 0;padding-top: 2px;padding-left: 20px;padding-bottom: 8px;width: 100%;right: 0;filter: dropshadow(color=#000,offx=1,offy=1);border-top-right-radius: 5px;border-top-left-radius: 5px;">
- <h3 style="color: white;">'.$news["title"].'</h3></div><div style="padding-right:8px;position:relative;top:50px;"><a href="/news/'.$news["id"].'" class="btn btn-success" style="float: right;top: 14px;position: relative;text-transform: none;font-size: 13px;">Lees meer <span class="glyphicon glyphicon-plus" aria-hidden="true"></span></a></div><div style="padding-top: 10px;padding-left: 20px;width: 70%;position: relative;">'.$news["shortstory"].'</div><div style="width: 100%;height: 40px;padding-right: 15px;"></div></div>';
- }
- ?>
- <div style="background-image: url(/web/images/dvdw.png);float: right;background-color: rgb(48, 55, 60);width: 23%;height: 178px;border-radius: 5px;color: white;font-size: 22px;font-weight: 600;position: relative;">
- <div class="panel-body" style="text-align: center;">
- <span class="glyphicon glyphicon-circle" aria-hidden="true" style="float: right;font-size: 24px;"></span>
- <?php
- $uotw = "Jarno";
- $host = "localhost";
- $user = "root";
- $pass = "MySQL@#123";
- $daba = "test";
- $con = new mysqli($host, $user, $pass, $daba) or die(mysqli_error($con));
- $uotw = $con->real_escape_string($uotw);
- $q = $con->query("SELECT username,motto,look FROM users WHERE username = '" . $uotw . "'");
- $info = $q->fetch_assoc();
- echo "<h4 style=\"top: -5px;position: relative;color: white;font-weight: 100;\">SVDW: <strong>" . $info['username'] . "</h4></strong>";
- echo '<img src = "https://www.habbo.nl/habbo-imaging/avatarimage?figure=' . $info['look'] . '&size=l&direction=3&head_direction=3&crr=1&gesture=&frame=1&headonly=1" style="margin-top: -10px">';
- ?>
- </div>
- </div>
- <div style="clear:both;"></div>
- <?php include_once 'includes/footer.php'; ?>
Add Comment
Please, Sign In to add comment