Morre1977
Legacy Member
ben bezig een cms'je te maken, maar zit hier met een vervelend probleem. ik krijg mijn systeempje niet goed uitgelijnd. Ik heb een frame boven en een frame onder, het frame middenin is een pagina maar ik krijg de kolom niet helemaal tot in de top van de page.
http://img264.imageshack.us/img264/2497/42711221di0.jpg
zou dus eigenlijk zo moeten starten:
http://img180.imageshack.us/img180/4528/73956912wl8.jpg (don't mind the scrollbar )
in mijn code heb ik nochthans margin-top:0 px; gedefineerd.
http://img264.imageshack.us/img264/2497/42711221di0.jpg
zou dus eigenlijk zo moeten starten:
http://img180.imageshack.us/img180/4528/73956912wl8.jpg (don't mind the scrollbar )
in mijn code heb ik nochthans margin-top:0 px; gedefineerd.
Code:
<?php
include 'config.php';
include 'opendb.php';
if(isset($_GET['del']))
{
$query = "DELETE FROM news WHERE id = '{$_GET['del']}'";
mysql_query($query) or die('Error : ' . mysql_error());
$cacheDir = dirname(__FILE__) . '/cache/';
$cacheFile = $cacheDir . '_' . $_GET['id'] . '.html';
@unlink($cacheFile);
@unlink($cacheDir . 'index.html');
header('Location: ' . $_SERVER['PHP_SELF']);
exit;
}
?>
<html>
<head>
<title>Artsjok CMS 2.0 / Overzicht</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
function delArticle(id, title)
{
if (confirm("Are you sure you want to delete '" + title + "'"))
{
window.location.href = 'cms-admin.php?del=' + id;
}
}
</script>
<style type="text/css">
<!--
body {
scrollbar-face-color:#ffffff;
scrollbar-highlight-color:#ffffff;
scrollbar-3dlight-color:#ffffff;
scrollbar-darkshadow-color:#ffffff;
scrollbar-shadow-color:#ffffff;
scrollbar-arrow-color:#023553;
scrollbar-track-color:#023553;
overflow-x:hidden;
margin-left:8 px;
margin-top:0 px;
}
a:link {
color: #023553;
}
a:visited {
color: #023553;
}
-->
</style>
<style type="text/css">
<!--
.style1 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
font-size: 12px;
}
.style2 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
}
body {
background-color: #023553;
}
-->
</style>
</head>
<body style="filter:progid:DXImageTransform.Microsoft.Gradient(endColorstr='#047AC1', startColorstr='#023553', gradientType='0');">
<?php
$query = "SELECT id, title FROM news ORDER BY id DESC";
$result = mysql_query($query) or die('Error : ' . mysql_error());
?>
<table width="100%" border="0" align="center">
<tr>
<td valign="top"><div align="left">
<table width="400" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#999999">
<tr align="center" valign="top" bgcolor="#CCCCCC">
<td width="400"><div align="left" class="style1">Onderwerp</div></td>
<td width="0"><div align="left" class="style1">Actie</div></td>
</tr>
<?php
while(list($id, $title) = mysql_fetch_array($result, MYSQL_NUM))
{
?>
<tr bgcolor="#FFFFFF">
<td width="200"><?php echo $title;?> </td>
<td width="200" align="center"><div align="left"><span class="style2"><a href="article2.php?id=<?php echo $id;?>" target="_blank">view</a> | <a href="cms-edit.php?id=<?php echo $id;?>">edit</a> | <a href="javascript:delArticle('<?php echo $id;?>',
'<?php echo $title;?>');">delete</a></span></div></td>
</tr>
<?php
}
include 'closedb.php';
?>
</table>
</div></td>
</tr>
</table>
</body>
</html>
en ook met al die filter & scrollbartoestanden --> dit is IE only !!! zal op geen enkele andere browser werken
wist niet eens dat die negatieve waardes konden hehe