All pastes #454747 Raw Edit

asd

public text v1 · immutable
·published 2007-04-23 20:07 UTC
rendered paste body
<html>
<head>
<title>Beta!!!</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
 
 
body {
 background-color: #383838;
 font-family: Tahoma, Verdana, Arial, sans-serif;
 color: #f9f9f9;
 font-size: 11px;
}
 
a {
text-decoration: none;
}
 
#div_info {
	position:absolute;
	width:222px;
	height:80px;
	z-index:1;
	left: 67px;
	top: 613px;
	font-size: 13px;
}
.info {size: 12px; color: #FFFFFF;}
	
.title {size: 22px; color: #FFFFFF; text-transform: uppercase; font-style: oblique;}
 
#div_menu {
	position:absolute;
	width:219px;
	height:159px;
	z-index:1;
	left: -2px;
	top: -345px;
	text-decoration: none;
	}
	
#div_menu a {
color: #f9f9f9;
display: block;
height: 25px;
width: 200px;
background: #232323;
margin-bottom: 1px;
}
 
#news {
padding: 4px;
width: 450px;
background-color: #333333;
margin-left: 53px;
border-bottom: 1px solid #f9f9f9;
margin-bottom: 20px;
} 
 
#div_menu a:hover {
background: #c68d00;
color: #000000; 
}
 
#innhold {
	position:absolute;
	width:551px;
	height:auto;
	z-index:2;
	left: 341px;
	top: 262px;
	background-color: #282828;
}
.style2 {size: 22px; color: #c68d00; text-transform: uppercase;font-size: 18px; }
.style5 {font-size: 22px}
 
-->
</style>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<div id="innhold">
<?php
$dblink = mysql_connect("localhost", "coldfront_lan_o", "asd") or die("Kunne ikke koble til databasen. Feilmelding: " . mysql_error());
 
mysql_select_db("coldfront_lan_o") or die("Kunne ikke velge database. Feilmelding: " . mysql_error());
 
$result = mysql_query("SELECT * FROM Nyheter ORDER BY dato DESC") or die("Kunne ikke hente nyhetene fra databasen. Feilmelding: " . mysql_error());
 
if (mysql_num_rows($result) > 0) {
echo '<div id="news">';
    while ($row = mysql_fetch_assoc($result)) {

echo '<span class="style2"><span class="style5"></span>';         
echo $row[tittel]; 
echo '</span><span class="style3">';
echo " (" . date("d.m.Y", $row['dato']) . ")";
echo '</span><br>';
        
        echo $row['innhold'];
echo '</div>';
        
    }
}
 
else {
    echo "";
}
 
mysql_close($dblink);
 
 
?></div>
<!-- ImageReady Slices (Untitled-1) -->
<table id="Table_01" width="950" height="700" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td colspan="2">
			<img src="img/01.gif" width="950" height="189" alt=""></td>
	</tr>
	<tr>
		<td colspan="2">
 
			<img src="img/02.gif" width="950" height="59" alt=""></td>
	</tr>
	<tr>
		<td colspan="2">
			<img src="img/03.gif" width="950" height="296" alt="">
<div id="div_info">
			  <div id="div_menu">
              <a href="index.php">&nbsp;&nbsp;Hjem</a>
              <a href="informasjon.php">&nbsp;&nbsp;Informasjon</a>
              <a href="registrer.php">&nbsp;&nbsp;Påmelding</a>
              <a href="medlemmer.php">&nbsp;&nbsp;Påmeldte</a><a href="index.html">&nbsp;&nbsp;Regler</a> 
              <a href="kontakt.php">&nbsp;&nbsp;Kontakt</a>              </div>
	Tid: 29. September - 02. Oktober<br>
 
            Sted: Byskolen, Levanger<br>
            Nett: 50mbit <br>
            Plass: 80
      </div></td>
	</tr>
	<tr>
		<td colspan="2">
			<img src="img/04.gif" width="950" height="26" alt=""></td>
 
	</tr>
	<tr>
		<td>
			<img src="img/05.gif" width="336" height="130" alt=""></td>
		<td>
			<img src="img/06.gif" width="614" height="130" alt=""></td>
	</tr>
</table>
<!-- End ImageReady Slices -->
</body>
 
</html>