Det er helt i orden, du kan bare kigge på det når du får tid :)
Index.php
<?php include"header.php" ?>
<div id="col_left_2" style="background:#fff">
<div class="titre_index">Featured Videoes</div>
<div id="une">
<?php
$q=mysql_query("select * from videos where feat=1 order by video_id desc limit 0,2");
while($video=mysql_fetch_assoc($q)){
$youtubeid = str_replace("watch?v=","",end(explode("/",$video['video_url'])));
$youtubeid = reset(explode("&",$youtubeid));
$thumb = "
http://img.youtube.com/vi/$youtubeid/1.jpg"; $file = "
http://www.youtube.com/v/$youtubeid"; $vtext=substr($video['video_desc'],0,100)."...";
$vtit=html_entity_decode(substr($video['video_title'],0,50))."...";
echo '<div class="bloc_une">
<img src="'.$thumb.'" alt="'.$vtit.'" height="96" width="128">
<div class="titre_une">'.$vtit.'</div>
<div class="txt_une">'.$vtext.'</div>
<a href="'.$video['video_id'].'_'.str_replace(" ","-",substr(html_entity_decode(strtolower($video['video_title'])),0,20)).'.html" class="btn_voir"></a>
</div>';
}
?>
</div>
<div style="float:left; margin-top:0px;">
<div class="titre_index">New Videoes</div>
<?php MyVideo::getPublicSide(); ?>
</div>
</div>
<div id="col_right_2">
<div class="c_index">
<?php
$q=mysql_query("select * from ads where id=1");
$r=mysql_fetch_assoc($q);
echo $r['ad3'];
?>
</div>
<div class="titre_bloc_index">Most popular</div>
<?php
$q=mysql_query("select * from videos order by views desc LIMIT 10 ");
while($video=mysql_fetch_assoc($q)){
$youtubeid = str_replace("watch?v=","",end(explode("/",$video['video_url'])));
$youtubeid = reset(explode("&",$youtubeid));
$thumb = "
http://img.youtube.com/vi/$youtubeid/1.jpg"; $file = "
http://www.youtube.com/v/$youtubeid"; echo '<a class="a_bloc" href="'.$video['video_id'].'_'.str_replace(" ","-",substr(html_entity_decode(strtolower($video['video_title'])),0,20)).'.html">
<div class="bloc">
<img src="'.$thumb.'" alt="'.$vtit.'" height="60" width="80">
<div class="txt">'.html_entity_decode($video['video_title']).'</div>
</div></a>';
}
?>
</div>
<?php include"footer.php" ?>
Header.php
<?php
include("config.php");
include("lib/MyVideo.php");
$q=mysql_query("select * from settings");
$r=mysql_fetch_assoc($q);
?>
<!DOCTYPE html>
<html><head>
<?php
//page titles
$urlTitle = parse_url($_SERVER['REQUEST_URI']);
$pageName = $urlTitle['path'];
if($pageName == '/dmca.html'){
$pageTitle = 'DMCA Policy - ';
} else if($pageName == '/contact.html'){
$pageTitle = 'Contact Us - ';
} else if($pageName == '/tnc.html'){
$pageTitle = 'Terms and Conditions - ';
} else if($pageName == '/privacy.html'){
$pageTitle = 'Privacy Policy - ';
}else {
$pageTitle = '';
}
$showT=isset($_GET['id'])?$_GET['id']:'';
$qT=mysql_query("select * from cat where id='$showT'");
$rowT=mysql_fetch_assoc($qT);
if(empty($rowT['cname'])){
$titleT = $pageTitle;
} else {
$titleT = $rowT['cname'].' Videos on ';
}
?>
<title><?php echo $titleT.''.$r['title']; ?></title>
<?php echo $r['meta']; ?>
<style>
body { font-family:Arial, Helvetica, Sans-Serif; font-size:12px; margin:0px 20px;}
/* menu */
#menu{ margin:0px; padding:0px; list-style:none; color:#fff; line-height:45px; display:inline-block; float:left; z-index:1000; }
#menu a { color:#fff; text-decoration:none; }
#menu > li {background:#172322 none repeat scroll 0 0; cursor:pointer; float:left; position:relative;padding:0px 10px;}
#menu > li a:hover {color:#B0D730;}
#menu .logo {background:transparent none repeat scroll 0% 0%; padding:0px; background-color:Transparent;}
/* sub-menus*/
#menu ul { padding:0px; margin:0px; display:block; display:inline;}
#menu li ul { position:absolute; left:-10px; top:0px; margin-top:45px; width:150px; line-height:16px; background-color:#172322; color:#0395CC; /* for IE */ display:none; }
#menu li:hover ul { display:block;}
#menu li ul li{ display:block; margin:5px 20px; padding: 5px 0px; border-top: dotted 1px #606060; list-style-type:none; }
#menu li ul li:first-child { border-top: none; }
#menu li ul li a { display:block; color:#0395CC; }
#menu li ul li a:hover { color:#7FCDFE; }
/* main submenu */
#menu #main { left:0px; top:-20px; padding-top:20px; background-color:#7cb7e3; color:#fff; z-index:999;}
/* search */
.searchContainer div { background-color:#fff; display:inline; padding:5px;}
.searchContainer input[type="text"] {border:none;}
.searchContainer img { vertical-align:middle;}
/* corners*/
#menu .corner_inset_left { position:absolute; top:0px; left:-12px;}
#menu .corner_inset_right { position:absolute; top:0px; left:150px;}
#menu .last { background:transparent none repeat scroll 0% 0%; margin:0px; padding:0px; border:none; position:relative; border:none; height:0px;}
#menu .corner_left { position:absolute; left:0px; top:0px;}
#menu .corner_right { position:absolute; left:132px; top:0px;}
#menu .middle { position:absolute; left:18px; height: 20px; width: 115px; top:0px;}
</style>
<meta name="description" content="<?php echo $r['desc']; ?>" />
<meta name="keywords" content="<?php echo $r['keywords']; ?>" />
<link href="favicon.ico" rel="shortcut icon" type="image/x-icon"/>
<link href="style.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-15">
<script type="text/javascript" src="js/jquery-1.5.2.min.js"></script>
</head>
<div style="margin-left:135px; text-align: center;">
<ul id="menu">
<li class="logo">
<img style="float:left;" alt="" src="menu_left.png"/>
<ul id="main">
<li><b>Velkommen til Damnfun.dk</b> her kan du se sjove videoer og spille spil</li>
<li class="last">
<img class="corner_left" alt="" src="corner_blue_left.png"/>
<img class="middle" alt="" src="dot_blue.png"/>
<img class="corner_right" alt="" src="corner_blue_right.png"/>
</li>
</ul>
</li>
<li><a href="#">Forsiden</a>
</li>
<li><a href="#">Videoer</a>
<ul id="help">
<li>
<img class="corner_inset_left" alt="" src="corner_inset_left.png"/>
<a href="#">Biler</a>
<img class="corner_inset_right" alt="" src="corner_inset_right.png"/>
</li>
<li><a href="#">Crazy</a></li>
<li><a href="#">Funny</a></li>
<li><a href="#">Hot</a></li>
<li><a href="#">Reklamer</a></li>
<li><a href="#">Sexy</a></li>
<li><a href="#">Skjult kamera</a></li>
<li><a href="#">Sport</a></li>
<li><a href="#">TV</a></li>
<li class="last">
<img class="corner_left" alt="" src="corner_left.png"/>
<img class="middle" alt="" src="dot.gif"/>
<img class="corner_right" alt="" src="corner_right.png"/>
</li>
</ul>
</li>
<li><a href="#">Spil</a>
<ul id="help3">
<li> <img class="corner_inset_left" alt="" src="corner_inset_left.png"/> <a href="#">Aktionspil</a> <img class="corner_inset_right" alt="" src="corner_inset_right.png"/> </li>
<li><a href="#">Arkadespil</a></li>
<li><a href="#">Brætspil</a></li>
<li><a href="#">Klassikere</a></li>
<li><a href="#">Kort & Poker</a></li>
<li><a href="#">Strategi spil</a></li>
<li><a href="#">Voksen spil</a></li>
<li class="last"> <img class="corner_left" alt="" src="corner_left.png"/> <img class="middle" alt="" src="dot.gif"/> <img class="corner_right" alt="" src="corner_right.png"/> </li>
</ul>
</li>
<li><a href="#">Kontakt</a>
</li>
</ul>
<img src="dot.gif" alt="" width="560" height="45" style="float:left;"/><img src="menu_right.png" width="18" height="45" /></div>
<div style="float:none; clear:both;"></div>
</div>
</div>
<div id="overall">
Det var min kode, håber du kan hjælpe mig! :)
Mvh. Jeppe S