<html>
<head>
<style type="text/css">
body {
background-color: #dcdcdc;
}
a {
color: #000000;
}
.bordercolor {
background-color: #aaaaaa;
}
.titletd {
background-color: #eeeeee;
font-family: verdana;
font-size: 12px;
}
.tabletd {
background-color: #eeeeee;
font-family: verdana;
font-size: 11px;
}
.bordercolor2 {
background-color: #5D855E;
}
.cattd {
background-color: #82C083;
font-family: verdana;
font-size: 11px;
font-weight: bold;
text-align: center;
}
.texttd {
background-color: #BCE2BD;
font-family: verdana;
font-size: 11px;
}
.links {
font-family: verdana;
font-size: 11px;
}
</style>
<title>
Weezernet.com CP
</title>
</head>
<body>
<table cellspacing="0" cellpadding="7" width="100%">
<tr>
<td width="21%" height="100%">
<table cellspacing="0" cellpadding="0" width="100%" height="100%">
<tr>
<td class="bordercolor">
<table border="0" cellspacing="1" cellpadding="12" width="100%" height="100%">
<tr>
<td class="tabletd" valign="top">
<br>
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td class="bordercolor2" valign="top">
<table border="0" cellspacing="1" cellpadding="7" width="100%">
<tr>
<td class="cattd">
Main Links
</td>
</tr>
<tr>
<td class="texttd">
- <a href="http://www.weezernet.com">Weezernet Home</a><br>
- <a href="index.php?page=links">Edit Sidebar Links </a><br>
- <a href="index.php?page=songs">Edit Songs</a><br>
- <a href="index.php?page=htaccess">Edit .htaccess File</a><br>
- <a href="index.php?page=log">Mod Action Log</a><br>
- <a href="index.php?page=addsetlist">Add Setlist</a><br>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td class="bordercolor2" valign="top">
<table border="0" cellspacing="1" cellpadding="7" width="100%">
<tr>
<td class="cattd">
Current Pages
</td>
</tr>
<tr>
<td class="texttd">
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td width="79%" height="100%">
<table cellspacing="0" cellpadding="0" width="100%" height="100%">
<tr>
<td class="bordercolor" height="100%">
<table border="0" cellspacing="1" cellpadding="12" width="100%" height="100%">
<tr>
<td class="tabletd" valign="top">
<br>
<br>
<table border="0" cellspacing="0" cellpadding="0" width="100%" align="center">
<tr>
<td width="100%" class="bordercolor2">
<table border="0" cellpadding="6" cellspacing="1" width="100%">
<tr>
<td class="cattd" width="10%">
<form method="post" action="index.php?page=news">
Delete?
</td>
<td class="cattd" width="30%">
Subject:
</td>
<td class="cattd" width="60%">
Text Preview:
</td>
</tr>
<tr>
<td class="texttd" rowspan="2">
New:
</td>
<td class="texttd">
Subject: <input type="text" name="newtitle">
</td>
<td class="texttd" align="center" rowspan="2">
<textarea name="newtext" rows="5" cols="30"></textarea>
</td>
</tr>
<tr>
<td class="texttd">
Author: <input type="text" name="newauthor">
</td>
</tr>
<tr>
<td class="texttd" align="center" colspan="4">
<input type="submit" name="submit" value="Submit">
</td>
</tr>
</form>
</table>
</td>
</tr>
</table>
<br>
<br>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
THAT IS THE pg FILE NEXT IS THE TEMPLATE FILE FOR THAT PAGE.
<?php
class ptemp {
function head() {
return <<< HTML
<br>
<table border="0" cellspacing="0" cellpadding="0" width="100%" align="center">
<tr>
<td width="100%" class="bordercolor2">
<table border="0" cellpadding="6" cellspacing="1" width="100%">
<tr>
<td class="cattd" width="10%">
<form method="post" action="index.php?page=news">
Delete?
</td>
<td class="cattd" width="30%">
Subject:
</td>
<td class="cattd" width="60%">
Text Preview:
</td>
</tr>
HTML;
}
function newsrow($news) {
return <<< HTML
<tr>
<td class="texttd" align="center">
<input type="checkbox" name="delete$news[nid]" value="$news[nid]">
</td>
<td class="texttd">
<a href="index.php?page=news&nid=$news[nid]">$news[title]</a>
</td>
<td class="texttd">
$news[body]
</td>
</tr>
HTML;
}
function foot() {
return <<< HTML
<tr>
<td class="texttd" rowspan="2">
New:
</td>
<td class="texttd">
Subject: <input type="text" name="newtitle">
</td>
<td class="texttd">
Author: <input type="text" name="newauthor">
</td>
<td class="texttd" align="center" rowspan="2">
<textarea name="newtext" rows="5" cols="30"></textarea>
</td>
</tr>
<tr>
<td class="texttd" align="center" colspan="4">
<input type="submit" name="submit" value="Submit">
</td>
</tr>
</form>
</table>
</td>
</tr>
</table>
<br>
HTML;
}
function article($news) {
return <<< HTML
<br>
<table border="0" cellspacing="0" cellpadding="0" width="100%" align="center">
<tr>
<td width="100%" class="bordercolor2">
<table border="0" cellpadding="6" cellspacing="1" width="100%">
<tr>
<td class="cattd" width="100%" colspan="2">
<form method="post" action="index.php?page=news&nid=$news[nid]">
Edit News - $news[title]
</td>
</tr>
<tr>
<td class="texttd" width="50%">
<b>Author:</b> <input type="text" name="author" value="$news[author]">
</td>
<td class="texttd" width="50%">
<b>Subject:</b> <input type="text" name="title" value="$news[title]">
</td>
</tr>
<tr>
<td class="texttd" align="center" colspan="2" width="100%">
<b>Text:</b><br>
<textarea name="text" rows="10" cols="80">$news[body]</textarea>
</td>
</tr>
<tr>
<td class="texttd" align="center" colspan="3">
<input type="submit" name="submit" value="Submit">
</td>
</tr>
</form>
</table>
</td>
</tr>
</table>
<br>
HTML;
}
}
?>
END OF TEMPLATE FILE HERE.
Ok, so it is an admin page and i was editing it for my blog to try to put in 2 new fields for a "current music" and "current mood" but i messed up so i tried to fix it and now the page looks strange and the submit button wont work.
i'd appreciate help!
thanks