Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <?php
- include('config.php');
- ?>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>Berita Sport</title>
- <link rel="stylesheet" type="text/css" href="css/global.css" />
- <link rel="stylesheet" type="text/css" href="css/teknologi.css"/>
- </head>
- <body background="img/teknologi/albarnation2_zpsb5a883df.jpg">
- <!-- BEGIN TOP -->
- <div id="top">
- <ul>
- <li><a href="#">About</a></li>
- <li><a href="#">Submit a Story</a></li>
- <li><a href="#">Feedback</a></li>
- <li><a href="#">Support</a></li>
- </ul>
- </div>
- <!-- END TOP -->
- <!-- BEGIN HEADER -->
- <div id="kolomutama">
- <div id="header">
- <div id="logo"> <a href="index.html"><img src="img/localimage/Untitled-1-Recovered.png" alt="" /></a> </div>
- </div>
- <!-- END HEADER -->
- <!-- BEGIN NAV -->
- <div id="nav">
- <ul>
- <li><a href="index.html">Home</a></li>
- <li><a href="#">Berita</a></li>
- <li><a href="#">Lingkungan</a></li>
- <li><a href="sport.html">Sports</a></li>
- <li class="last"><a href="#">Teknologi</a></li>
- </ul>
- </div>
- <!-- END NAV -->
- <!-- BEGIN SUB NAV -->
- <div id="sub-nav">
- <ul>
- <li class="title">Stay in the know:</li>
- <li><img src="img/icons/fb.PNG" /><a href="#">Facebook</a></li>
- <li>|</li>
- <li><img src="img/icons/twitter.png" alt="" /><a href="#">Twitter</a></li>
- </ul>
- </div>
- <!-- END SUB NAV -->
- <!-- BEGIN CONTENT WRAPPER -->
- <div id="content-wrapper">
- <!-- BEGIN MAIN -->
- <div id="main">
- <div id="headlines" class="berita">
- <hr size=2 noshade=noshade color=#CCCCCC />
- <?php
- include('config.php');
- $id=$_GET['id'];
- $query=mysql_query("select * from tabelteknologi where id_teknologi='$id'") or die(mysql_error());
- while ($data=mysql_fetch_array($query)){
- echo "";
- echo "<h2><b>$data[2]</h2></b><br></a>";
- $tanggal=substr($data[5],0,10);
- $jam=substr($data[5],10,6);
- echo "<p class=author> $data[3] | <span>$tanggal | $jam </span></p><br>";
- echo "<p>";
- echo "<img src='$data[6]' width='600px'>";
- echo"<p>";
- echo nl2br($data['isi']);
- echo"<hr size=2 noshade=noshade color=#CCCCCC />";
- }
- ?>
- <div id="komentarutama">
- <font face="Comic Sans MS, cursive" class="komentar" ><strong class="tulisan">Komentar</strong></font>
- </div>
- <div id="isikomentar">
- <?php
- $id="2";
- $sql = "select * from komentar ";
- $result = mysql_query($sql);
- while($row = mysql_fetch_array($result))
- {
- echo "<h4>";
- echo $row['nama'];
- echo "</h4>";
- echo "<p>";
- echo $row['komentar'];
- }
- ?>
- </div>
- <form name="form1" method="post" action="insertkomentar.php?id=1">
- <table width="500" border="0" cellspacing="0" cellpadding="5">
- <tr>
- <td width="132"><strong><font size="2" face="Arial, Helvetica, sans-serif">nama</font></strong></td>
- <td width="348"><label>
- <input name="nama" type="text" id="nama" size="40">
- Kategori :
- <select name="kategori">
- <?php
- /*menampilkan data tabelteknologi kedalam combobox*/
- $sql1 = mysql_query("select id_teknologi, kategori from tabelteknologi ");
- while($data = mysql_fetch_array($sql1)):
- ?>
- <option value="<?php echo $data['id_teknologi'];?>"> <?php echo $data['kategori'] ?></option>
- <?php endwhile;?>
- </select>
- </label></td>
- </tr>
- <tr>
- <td valign="top"><strong><font size="2" face="Arial, Helvetica, sans-serif">komentar</font></strong></td>
- <td valign="top"><label>
- <textarea name="komentar" id="komentar" cols="30" rows="5"></textarea>
- </label></td>
- </tr>
- <tr>
- <td> </td>
- <td><label>
- <input type="submit" name="button" id="button" value="Submit">
- <input type="reset" name="reset" id="reset" value="reset" />
- </label></td>
- </tr>
- </table>
- </form>
- </div>
- </div>
- <!-- END MAIN -->
- <!-- BEGIN SIDEBARS -->
- <div id="sidebars">
- <!-- BEGIN ADS -->
- <!-- END ADS -->
- <h2 class="heading">Sports Headlines</h2>
- <a href="#"><img src="img/teknologi/pasang iklan.jpg" alt="" rel="img/teknologi/pasang iklan.jpg" /></a><a href="#"><img src="img/teknologi/sony.png" alt="" rel="img/teknologi/sony.png" /></a>
- <h3 class="heading"><a href="#">Coach Indra Akui Punya Banyak PR</a></h3>
- <p class="author">Ragil D | <span>22-02-2014</span></p>
- <p>Jakarta - Pelatih Timnas U-19 Indra Sjafri mengaku timnya mendapatkan kesulitan saat melawan tim Pra PON Jawa Timur malam ini, Jumat (21/2/2014), di Stadion Gelora Bangkalan, Madura.
- Di pertandingan tersebut skuat "Garuda Muda" ...
- </p>
- <p class="next"><a href="sport.php">Selengkapnya »</a></p>
- <hr size="1" noshade="noshade" color="#CCCCCC" />
- <br />
- <h2 class="heading">Halaman Login</h2>
- <form action="log.php?op=masuk" method="post">
- <table border="0">
- <tr>
- <td>User ID</td>
- <td> : </td>
- <td><input type="text" name="userid"></td>
- </tr>
- <tr>
- <td>Password</td>
- <td> : </td>
- <td><input type="password" name="psw"></td>
- </tr>
- </table>
- <p>
- <input type="submit" value="Login">
- <br />
- <h2 class="heading">In the Community</h2>
- </div>
- <!-- END SIDEBARS -->
- </div>
- <!-- END CONTENT WRAPPER-->
- <!-- BEGIN EXTRAS -->
- <div id="extras">
- <div id="recommended">
- <h2 class="heading">Artikel Lainnya</h2>
- <ul>
- <li><a href="#">Lorem ipsum dolor sit amet, consectetur adipiscing elit »</a></li>
- <li><a href="#">Lorem ipsum dolor sit amet, consectetur adipiscing elit »</a></li>
- <li><a href="#">Lorem ipsum dolor sit amet, consectetur adipiscing elit »</a></li>
- <li class="last"><a href="#">Lorem ipsum dolor sit amet, consectetur adipiscing elit »</a></li>
- </ul>
- </div>
- <div id="programs">
- <h2 class="heading">What's On Today</h2>
- <img src="img/localimage/sejumlah-kendaraan-terjebak-kemacetan-ketika-hujan-deras.jpg" height="150" width="312"/>
- <br />
- <h3><a href="#">Dini hari Jakarta Diguyur Hujan Deras, Waspada Macet di Pagi Hari</a></h3>
- </div>
- </div>
- </div>
- <!-- END EXTRAS -->
- <!-- BEGIN FOOTER -->
- <div id="footer">
- <ul>
- <li><font color="#3c81e0">©2014 </font><a href="#">beregunews.com</a></li>
- <li>|</li>
- <li><font color="#f32020">Designed by </font><a href="#">beregunews.com team </a></li>
- <li>|</li>
- <li><font color="#3c81e0">Template by </font><a href="http://www.skyrocketlabs.com/">Skyrocket Labs </a></li>
- <li>|<li>
- <li><font color="#f32020">Editor by <a href="#">beregunews.com team</font></a></li>
- </ul>
- </div>
- <!-- END FOOTER -->
- <?php
- //nanti ini pasti berguna, simpen aja buat belajar ^_^ ada di ebook nahar hal 74 lengkapnya di hal 104
- $tanggal = date("d F Y");
- echo "Tanggal ".$tanggal;
- ?>
- <script type="text/javascript" >
- <!--
- var m_names = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
- var d_names = new Array("Senin", "Selasa", "Rabu", "Kamis", "Jum'at", "Sabtu", "Minggu");
- var currentTime = new Date()
- var day = currentTime.getDay() - 1
- var month = currentTime.getMonth()
- var date = currentTime.getDate()
- var year = currentTime.getFullYear()
- document.write( d_names[day] + ", " + date + " " + m_names[month] + " " + year + ", ")
- var currentTime = new Date()
- var hours = currentTime.getHours()
- var minutes = currentTime.getMinutes()
- if (minutes < 10){
- minutes = "0" + minutes
- }
- document.write(hours + ":" + minutes + " ")
- if(hours > 11){
- document.write("PM")
- } else {
- document.write("AM")
- }
- //-->
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement