dusun1

Untitled

Jan 28th, 2016
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.21 KB | None | 0 0
  1. bag 4 ini adalah fix bag 1. index.php
  2.  
  3. <!DOCTYPE html>
  4. <html lang="en">
  5. <head>
  6. <meta charset="utf-8">
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  8. <meta name="viewport" content="width=device-width, initial-scale=1">
  9. <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
  10. <meta name="description" content="">
  11. <meta name="author" content="">
  12. <link rel="icon" href="../../favicon.ico">
  13.  
  14. <title>WEB BERITA</title>
  15.  
  16. <!-- Bootstrap core CSS -->
  17. <link href="css/bootstrap.min.css" rel="stylesheet">
  18.  
  19. <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
  20. <link href="../../assets/css/ie10-viewport-bug-workaround.css" rel="stylesheet">
  21.  
  22. <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
  23. <!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
  24. <script src="../../assets/js/ie-emulation-modes-warning.js"></script>
  25.  
  26. <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
  27. <!--[if lt IE 9]>
  28. <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
  29. <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  30. <![endif]-->
  31.  
  32. <!-- Custom styles for this template -->
  33. <link href="carousel.css" rel="stylesheet">
  34. </head>
  35. <!-- NAVBAR
  36. ================================================== -->
  37. <body>
  38. <div class="navbar-wrapper">
  39. <div class="container">
  40.  
  41. <nav class="navbar navbar-inverse navbar-static-top">
  42. <div class="container">
  43. <div class="navbar-header">
  44. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
  45. <span class="sr-only">Toggle navigation</span>
  46. <span class="icon-bar"></span>
  47. <span class="icon-bar"></span>
  48. <span class="icon-bar"></span>
  49. </button>
  50. <a class="navbar-brand" href="#">W E B || B E R I T A</a>
  51. </div>
  52. <div id="navbar" class="navbar-collapse collapse">
  53. <ul class="nav navbar-nav">
  54. <li class="active"><a href="#">Home</a></li>
  55. <li><a href="#about">About</a></li>
  56. <li><a href="#contact">Contact</a></li>
  57. <li class="dropdown">
  58. <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
  59. <ul class="dropdown-menu">
  60. <li><a href="#">Action</a></li>
  61. <li><a href="#">Another action</a></li>
  62. <li><a href="#">Something else here</a></li>
  63. <li role="separator" class="divider"></li>
  64. <li class="dropdown-header">Nav header</li>
  65. <li><a href="#">Separated link</a></li>
  66. <li><a href="#">One more separated link</a></li>
  67. </ul>
  68. </li>
  69. </ul>
  70. </div>
  71. </div>
  72. </nav>
  73.  
  74. </div>
  75. </div>
  76.  
  77.  
  78. <!-- Carousel
  79. ================================================== -->
  80. <div id="myCarousel" class="carousel slide" data-ride="carousel">
  81. <!-- Indicators -->
  82. <ol class="carousel-indicators">
  83. <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
  84. <li data-target="#myCarousel" data-slide-to="1"></li>
  85. <li data-target="#myCarousel" data-slide-to="2"></li>
  86. </ol>
  87. <div class="carousel-inner" role="listbox">
  88. <div class="item active">
  89. <img class="first-slide" src="data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==" alt="First slide">
  90. <div class="container">
  91. <div class="carousel-caption">
  92. <h1>Example headline.</h1>
  93. <p>Note: If you're viewing this page via a <code>file://</code> URL, the "next" and "previous" Glyphicon buttons on the left and right might not load/display properly due to web browser security rules.</p>
  94. <p><a class="btn btn-lg btn-primary" href="#" role="button">Sign up today</a></p>
  95. </div>
  96. </div>
  97. </div>
  98. <div class="item">
  99. <img class="second-slide" src="data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==" alt="Second slide">
  100. <div class="container">
  101. <div class="carousel-caption">
  102. <h1>Another example headline.</h1>
  103. <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
  104. <p><a class="btn btn-lg btn-primary" href="#" role="button">Learn more</a></p>
  105. </div>
  106. </div>
  107. </div>
  108. <div class="item">
  109. <img class="third-slide" src="data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==" alt="Third slide">
  110. <div class="container">
  111. <div class="carousel-caption">
  112. <h1>One more for good measure.</h1>
  113. <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
  114. <p><a class="btn btn-lg btn-primary" href="#" role="button">Browse gallery</a></p>
  115. </div>
  116. </div>
  117. </div>
  118. </div>
  119. <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
  120. <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
  121. <span class="sr-only">Previous</span>
  122. </a>
  123. <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
  124. <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
  125. <span class="sr-only">Next</span>
  126. </a>
  127. </div><!-- /.carousel -->
  128.  
  129.  
  130. <!-- Marketing messaging and featurettes
  131. ================================================== -->
  132. <!-- Wrap the rest of the page in another container to center all the content. -->
  133.  
  134. <div class="container marketing">
  135. <!-- Three columns of text below the carousel -->
  136. <div class="row">
  137.  
  138. <?php
  139. include("koneksi.php");
  140. $sql = "SELECT * FROM tbl_berita ORDER BY id asc";
  141. $result = mysqli_query($conn, $sql);
  142. if(mysqli_num_rows($result) > 0){
  143. while($row = mysqli_fetch_assoc($result)){
  144. echo '<div class="col-lg-4">';
  145. echo "<img class='img-circle' src='".$row['gambar']."' width='140' height='140'/>";
  146. echo "<h2>$row[judul]</h2>";
  147. echo $row['deskripsi'];
  148. echo '<p><a class="btn btn-default" href="leeminhoo.php?id='.$row['id'].'" role="button">View details &raquo;</a></p>';
  149. echo "</div>";
  150. }
  151. }
  152. ?>
  153. </div><!-- /.row -->
  154. </div>
  155.  
  156.  
  157.  
  158.  
  159. <!-- Bootstrap core JavaScript
  160. ================================================== -->
  161. <!-- Placed at the end of the document so the pages load faster -->
  162. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
  163. <script>window.jQuery || document.write('<script src="../../assets/js/vendor/jquery.min.js"><\/script>')</script>
  164. <script src="../../dist/js/bootstrap.min.js"></script>
  165. <!-- Just to make our placeholder images work. Don't actually copy the next line! -->
  166. <script src="../../assets/js/vendor/holder.min.js"></script>
  167. <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
  168. <script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
  169. </body>
  170. </html>
Advertisement
Add Comment
Please, Sign In to add comment