Hejsa
Jeg har den her "Project" kode Som jeg har lagt ind i mit design som jeg har lavet. Koden skulle gerne blive vist i en boks i midten af siden. Problemet er så bare at koden bliver vist nede i bunden af siden samtidig med at den ødelægger boksen i midten.
http://www.sebofdoom-designs.com/project/projects-site.phpMin kode er:
<?php
include("connect.php");
?>
<html>
<head>
<meta name="google-site-verification" content="qweVS5Y_WsRE1HXwfTJrA9FylMjMRTQNG3VZuMGtbno" />
<meta http-equiv="Content-Language" content="da">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Sebofdoom-Designs</title>
<link rel="shortcut icon" href="../ikon.ico">
<script language="JavaScript">
<!--
function FP_preloadImgs() {//v1.0
var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();
for(var i=0; i<a.length; i++) { d.FP_imgs[i]=new Image; d.FP_imgs[i].src=a[i]; }
}
function FP_swapImg() {//v1.0
var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2; n<args.length;
n+=2) { elm=FP_getObjectByID(args[n]); if(elm) { doc.$imgSwaps[doc.$imgSwaps.length]=elm;
elm.$src=elm.src; elm.src=args[n+1]; } }
}
function FP_getObjectByID(id,o) {//v1.0
var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id);
else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } }
return null;
}
// -->
</script>
<style title="center" media="screen" type="text/css">
#center {width:200px; height:100px; position:absolute; top:0%; left:50%; margin:-0px auto auto -550px; text-align:center;
}
/* set millions of background images */
.rbroundbox { background: url('../nt.png'); }
.rbtop div { background: url('../tl.png') no-repeat top left; }
.rbtop { background: url('../tr.png') no-repeat top right; }
.rbbot div { background: url('../bl.png') no-repeat bottom left; }
.rbbot { background: url('../br.png') no-repeat bottom right; }
/* height and width stuff, width not really nessisary. */
.rbtop div, .rbtop, .rbbot div, .rbbot {
width: 100%;
height: 26px;
font-size: 1px;
}
.rbcontent { margin: 0 7px; }
.rbroundbox { width: 90%; margin: 1em auto;
}
</style>
</head>
<body background="../Carbon_background.jpg" link="#FFFFFF" onload="FP_preloadImgs(/*url*/'../Navigation/Knapper/Click/Home_Click.png', /*url*/'../Navigation/Knapper/Mus_over/Home_mus_over.png')">
<div id="center">
<div style="position: absolute; width: 1013px; height: 38px; z-index: 1; left: 34px; top: 289px" id="lag1">
<a href="../index.php">
<img border="0" id="Home" src="../Navigation/Knapper/Normal/Home_normal.png" onmouseover="FP_swapImg(1,0,/*id*/'Home',/*url*/'../Navigation/Knapper/Mus_over/Home_mus_over.png')" onmouseout="FP_swapImg(0,0,/*id*/'Home',/*url*/'../Navigation/Knapper/Normal/Home_normal.png')" onmousedown="FP_swapImg(1,0,/*id*/'Home',/*url*/'../Navigation/Knapper/Click/Home_Click.png')" onmouseup="FP_swapImg(0,0,/*id*/'Home',/*url*/'../Navigation/Knapper/Mus_over/Home_mus_over.png')" </a></a>
<a href="Movies.php">
<img border="0" id="Movies" src="../Navigation/Knapper/Normal/Movies_Normal.png" onmouseover="FP_swapImg(1,0,/*id*/'Movies',/*url*/'../Navigation/Knapper/Mus_over/Movies_mus_over.png')" onmouseout="FP_swapImg(0,0,/*id*/'Movies',/*url*/'../Navigation/Knapper/Normal/Movies_Normal.png')" onmousedown="FP_swapImg(1,0,/*id*/'Movies',/*url*/'../Navigation/Knapper/Click/Movies_Click.png')" onmouseup="FP_swapImg(0,0,/*id*/'Movies',/*url*/'../Navigation/Knapper/Mus_over/Movies_mus_over.png')" </a></a>
<a href="../gallery/Pictures.php">
<img border="0" id="Pictures" src="../Navigation/Knapper/Normal/Pictures_Normal.png" onmouseover="FP_swapImg(1,0,/*id*/'Pictures',/*url*/'../Navigation/Knapper/Mus_over/Pictures_mus_over.png')" onmouseout="FP_swapImg(0,0,/*id*/'Pictures',/*url*/'../Navigation/Knapper/Normal/Pictures_Normal.png')" onmousedown="FP_swapImg(1,0,/*id*/'Pictures',/*url*/'../Navigation/Knapper/Click/Pictures_Click.png')" onmouseup="FP_swapImg(0,0,/*id*/'Pictures',/*url*/'../Navigation/Knapper/Mus_over/Pictures_mus_over.png')" </a></a>
<a href="Projects.php">
<img border="0" id="Projects" src="../Navigation/Knapper/Normal/Projects_Normal.png" onmouseover="FP_swapImg(1,0,/*id*/'Projects',/*url*/'../Navigation/Knapper/Mus_over/Projects_mus_over.png')" onmouseout="FP_swapImg(0,0,/*id*/'Projects',/*url*/'../Navigation/Knapper/Normal/Projects_Normal.png')" onmousedown="FP_swapImg(1,0,/*id*/'Projects',/*url*/'../Navigation/Knapper/Click/Projects_Click.png')" onmouseup="FP_swapImg(0,0,/*id*/'Projects',/*url*/'../Navigation/Knapper/Mus_over/Projects_mus_over.png')" </a></a>
<a href="../Tutorials.php">
<img border="0" id="Tutorials" src="../Navigation/Knapper/Normal/Tutorials_Normal.png" onmouseover="FP_swapImg(1,0,/*id*/'Tutorials',/*url*/'../Navigation/Knapper/Mus_over/Tutorials_mus_over.png')" onmouseout="FP_swapImg(0,0,/*id*/'Tutorials',/*url*/'../Navigation/Knapper/Normal/Tutorials_Normal.png')" onmousedown="FP_swapImg(1,0,/*id*/'Tutorials',/*url*/'../Navigation/Knapper/Click/Tutorials_Click.png')" onmouseup="FP_swapImg(0,0,/*id*/'Tutorials',/*url*/'../Navigation/Knapper/Mus_over/Tutorials_mus_over.png')" </a></a>
<a href="../Forum.php">
<img border="0" id="Forum" src="../Navigation/Knapper/Normal/Forum_Normal.png" onmouseover="FP_swapImg(1,0,/*id*/'Forum',/*url*/'../Navigation/Knapper/Mus_over/Forum_mus_over.png')" onmouseout="FP_swapImg(0,0,/*id*/'Forum',/*url*/'../Navigation/Knapper/Normal/Forum_Normal.png')" onmousedown="FP_swapImg(1,0,/*id*/'Forum',/*url*/'../Navigation/Knapper/Click/Forum_Click.png')" onmouseup="FP_swapImg(0,0,/*id*/'Forum',/*url*/'../Navigation/Knapper/Mus_over/Forum_mus_over.png')" </a></a>
<a href="../Lineup.php">
<img border="0" id="Lineup" src="../Navigation/Knapper/Click/Lineup_Click.png" onmouseover="FP_swapImg(1,0,/*id*/'Lineup',/*url*/'../Navigation/Knapper/Mus_over/Lineup_mus_over.png')" onmouseout="FP_swapImg(0,0,/*id*/'Lineup',/*url*/'../Navigation/Knapper/Click/Lineup_Click.png')" onmousedown="FP_swapImg(1,0,/*id*/'Lineup',/*url*/'../Navigation/Knapper/Click/Lineup_Click.png')" onmouseup="FP_swapImg(0,0,/*id*/'Lineup',/*url*/'../Navigation/Knapper/Mus_over/Lineup_mus_over.png')" </a></a></div>
<img border="0" src="../Headbanner/HeadBanner.png" width="1100" height="325">
<div style="position: absolute; width: 928px; height: 267px; z-index: 2; left: 73px; top: 382px" id="lag2">
<div style="position: absolute; width: 100px; height: 100px; z-index: 3; left: 285px; top: 29px" id="lag6">
<img border="0" src="../Navigation/projects.png" width="354" height="142"></div>
<div class="rbroundbox">
<div class="rbtop"><div>
<div id="lag3">
</div>
<p> </div></div>
<div class="rbcontent">
<!---------------------------------------------------------------------------------------------------------------------------------->
<br>
<br>
<br>
<br>
<p></p>
<div id="lag7">
<?php
include("functions.php");
$sort = "";
$how = "ASC";
$went = 1;
if ($_SERVER['REQUEST_METHOD'] == 'POST')
{
$ids = $_POST['ids'];
$order = implode(",",$_POST);
$order = str_replace($ids,"",$order);
$order = substr($order,0,strlen($order)-1);
$ids = explode(",",$_POST['ids']);
$order = explode(",",$order);
$x = 0;
foreach ($order as $val)
{
$id = $ids[$x];
if (!is_numeric($id) || !is_numeric($val))
{
$x++;
continue;
}
$link = "UPDATE projects SET sort='$val' WHERE id='$id'";
$res = mysql_query($link) or die(mysql_error());
$x++;
}
}
if (isset($_GET['action']))
{
$action = clean($_GET['action']);
$user = $_SESSION['user'];
if ($action == 1)
{
$date = date("n/j/Y");
$link = "INSERT INTO projects VALUES ('-New Project-','$date','','','','','0',NOW(),'$user','')";
$res = mysql_query($link) or die(mysql_error());
}
else
echo "<p class='heading'>Invalid Action</p>";
}
if (isset($_GET['sort']))
{
if (isset($_GET['went']))
{
if ($_GET['went'] == 2)
{
$how = "DESC";
$went = 1;
}
elseif($_GET['went'] == 1)
{
$how = "ASC";
$went = 2;
}
else
{
$how = "ASC";
$went = 1;
}
}
else
{
$went = 1;
}
$good = array("sort","name","date","cat","status","last_changed");
$sort = $_GET['sort'];
if (!in_array($sort,$good))
die("Invalid sort column.");
}
if (empty($sort))
$sort = "sort";
$link = "SELECT * FROM projects ORDER BY $sort $how";
$res = mysql_query($link) or die(mysql_error());
$total = mysql_num_rows($res);
echo $tablehead . '
<tr>
<td colspan="5" class="heading">projects</td>
</tr>
<tr align="center">
<td>
<a href="projects-site.php?sort=name&went=' . $went . '">Name</a>
</td>
<td>
<a href="projects-site.php?sort=date&went=' . $went . '">Date</a>
</td>' .
'<td>
<a href="projects-site.php?sort=cat&went=' . $went . '">Category</a>
</td>
<td>
<a href="projects-site.php?sort=status&went=' . $went . '">Status</a>
</td>' .
'<td>
<a href="projects-site.php?sort=last_changed&went=' . $went . '">Last Changed</a>
</td>
</tr>
<form action="" method="text">';
$ids = "";
$x = 0;
while ($row = mysql_fetch_assoc($res))
{
$name = $row['name'];
$date = $row['date'];
$des = $row['des'];
$cat = $row['cat'];
$status = $row['status'];
$sort = $row['sort'];
$private = $row['private'];
$change = $row['last_changed'];
$id = $row['id'];
$ids .= $id . ",";
echo '<tr><td nowrap><a href="editprojects.php?id=' . $id . '">' . $name . '</a> </td><td nowrap>' . $date . ' </td>' .
'<td>' . $cat . ' </td><td>' . $status . ' </td><td nowrap>' . $change . ' </td></tr>';
$x++;
}
$ids = substr($ids,0,strlen($ids)-1);
$time = date("h:i:s A");
$date = date("n/j/Y");
?></div>
</p></div><!-- /rbcontent -->
<div class="rbbot"><div> </div></div>
</div><!-- /rbroundbox -->
<!-- phpmyvisites -->
<script type="text/javascript">
<!--
var a_vars = Array();
var pagename='';
var phpmyvisitesSite = 1;
var phpmyvisitesURL = "http://sebofdoom-designs.com/php-my-visites/phpmyvisites.php";
//-->
</script>
<script language="javascript" src="http://sebofdoom-designs.com/php-my-visites/phpmyvisites.js" type="text/javascript"></script>
</a>
<!-- /phpmyvisites -->
</div></div>
</body>
</html>
Nogle der kan fortælle mig hvad der er galt?