Added seperate file for page header

master
Rubenwardy 2012-08-23 00:03:02 +01:00
parent 8d19d73e32
commit e41f4731b1
5 changed files with 34 additions and 31 deletions

View File

@ -1,35 +1,10 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-gb">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
<meta name="Generator" content="Serif WebPlus X5 (13.0.3.029)">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8">
<title>Home - Multa</title>
<meta name="keywords" content="">
<meta name="author" content="Andrew Ward">
<meta name="copyright" content="Copyright &#xA9; to Andrew Ward">
<meta http-equiv="Content-Language" content="en-gb">
<meta name="robots" content="index,follow">
<!--<link rel="icon" href="favicon.ico" type="image/x-icon">-->
<body text="#000000" style="background-color:#ffffff; text-align:center; height:610px;">
<div style="background-color:transparent;text-align:left;margin-left:auto;margin-right:auto;position:relative;width:900px;height:1000px;">
<!--The Header-->
<img src="header.png" width="900" height="100" border="0" alt="" style="position:absolute;left:0px;top:0px;">
<div style="position:relative;left:5px;top:110px">
<!--The content-->
<?php
include "scripts/setup.php";
$query="mod";
include "scripts/loadmods.php";
include "scripts/setup.php";
$page_title="Home - Minetest Mods";
include "scripts/pageheader.php";
$query="mod";
include "scripts/loadmods.php";
?>
</div>
<!--The footer-->
</div>
</body>
</html>

View File

@ -5,7 +5,7 @@ $res = mysql_query("SELECT * FROM mods WHERE tags LIKE '%$query%' ORDER BY likes
// Get projects loop
while ($hash = mysql_fetch_assoc($res)){
echo "<tr><td><img width=16 height=16 src=\"topicicon_read.jpg\" /></td><td><a href=\"viewmod.php?id={$hash['id']}\">{$hash['name']}</a><br />by {$hash['owner']}</td>";
echo "<tr><td width=16><img width=16 height=16 src=\"topicicon_read.jpg\" /></td><td><a href=\"viewmod.php?id={$hash['ID']}\">{$hash['name']}</a><br />by {$hash['owner']}</td>";
echo "<td>{$hash['likes']}</td>";
echo "<td>{$hash['tags']}</td></tr>\n";

23
scripts/pageheader.php Normal file
View File

@ -0,0 +1,23 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-gb">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
<meta name="Generator" content="Serif WebPlus X5 (13.0.3.029)">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8">
<title><?php echo $page_title ?></title>
<meta name="keywords" content="">
<meta name="author" content="Andrew Ward">
<meta name="copyright" content="Copyright &#xA9; to Andrew Ward">
<meta http-equiv="Content-Language" content="en-gb">
<meta name="robots" content="index,follow">
<!--<link rel="icon" href="favicon.ico" type="image/x-icon">-->
<body text="#000000" style="background-color:#ffffff; text-align:center; height:610px;">
<div style="background-color:transparent;text-align:left;margin-left:auto;margin-right:auto;position:relative;width:900px;height:1000px;">
<!--The Header-->
<img src="header.png" width="900" height="100" border="0" alt="" style="position:absolute;left:0px;top:0px;">
<div style="position:relative;left:5px;top:110px">
<!--Content-->

Binary file not shown.

Before

Width:  |  Height:  |  Size: 631 B

After

Width:  |  Height:  |  Size: 633 B

5
viewmod.php Normal file
View File

@ -0,0 +1,5 @@
<?php
include "scripts/setup.php";
$page_title="View mod - [MOD]";
include "scripts/pageheader.php";
?>