Guest User

Untitled

a guest
Oct 17th, 2016
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.60 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="nl-NL">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <title><?= $config['hotelName'] ?> Hotel: Gemeenschap </title>
  6.  
  7. <?php include ("/includes/css_head.php"); ?>
  8. </head>
  9.  
  10. <?php
  11. include ("/includes/header.php");
  12. include ("/includes/com_header.php");
  13. ?>
  14.  
  15. <div class="container" style="width: 950px;">
  16. <style>
  17.  
  18. .popular-room-wrap, .popular-group-wrap {
  19. max-height: 400px;
  20. overflow: auto;
  21. }
  22.  
  23. .popular-room {
  24. background: #f9f9f9 url(/web/images/room_open.gif) no-repeat scroll 10px center;
  25. }
  26.  
  27. .popular-room, .popular-group {
  28. background-color: #f9f9f9;
  29. background-repeat: no-repeat;
  30. border-radius: 3px;
  31. margin-bottom: 1px;
  32. padding: 8px 14px 8px 70px;
  33. position: relative;
  34. width: 100%;
  35. }
  36.  
  37. .popular-room .room-title {
  38. font-size: 14px;
  39. font-weight: 300;
  40. margin: 0;
  41. }
  42.  
  43. .popular-room p {
  44. margin: 0;
  45. }
  46.  
  47. .popular-room .room-enter {
  48. bottom: 25px;
  49. position: absolute;
  50. right: 5px;
  51. }
  52.  
  53. .popular-group a {
  54. font-weight: bold;
  55. }
  56.  
  57. .popular-group .group-title {
  58. font-size: 14px;
  59. font-weight: 300;
  60. margin: 0;
  61. }
  62.  
  63. .popular-group .group-desk {
  64. height: 13px;
  65. }
  66.  
  67. .panel {
  68. border: 1px solid #e7e7e7;
  69. border-width: 0 1px 4px 1px;
  70. }
  71.  
  72. </style>
  73.  
  74. <?php
  75. $sql = DB::Query("SELECT id,title,image,shortstory FROM cms_news ORDER BY id DESC LIMIT 1");
  76. while($news = $sql->fetch_assoc())
  77. {
  78. echo'
  79. <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;">
  80. <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;">
  81. <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>';
  82. }
  83. ?>
  84. <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;">
  85. <div class="panel-body" style="text-align: center;">
  86. <span class="glyphicon glyphicon-circle" aria-hidden="true" style="float: right;font-size: 24px;"></span>
  87. <?php
  88. $uotw = "Jarno";
  89. $host = "localhost";
  90. $user = "root";
  91. $pass = "MySQL@#123";
  92. $daba = "test";
  93.  
  94. $con = new mysqli($host, $user, $pass, $daba) or die(mysqli_error($con));
  95. $uotw = $con->real_escape_string($uotw);
  96. $q = $con->query("SELECT username,motto,look FROM users WHERE username = '" . $uotw . "'");
  97. $info = $q->fetch_assoc();
  98. echo "<h4 style=\"top: -5px;position: relative;color: white;font-weight: 100;\">SVDW: <strong>" . $info['username'] . "</h4></strong>";
  99. 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">';
  100. ?>
  101. </div>
  102. </div>
  103. <div style="clear:both;"></div>
  104. <?php include_once 'includes/footer.php'; ?>
Add Comment
Please, Sign In to add comment