it looks like you have code to apply a theme on the template file.
the code above the doctype tag on the admin.dwt.php page:
<?php require_once('../webassist/framework/framework.php'); ?>
<?php require_once('../webassist/framework/library.php'); ?>
<?php require_once('../Connections/connLDG.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
mysql_select_db($database_connLDG, $connLDG);
$query_rsArtists = "SELECT * FROM artists ORDER BY artLastname ASC";
$rsArtists = mysql_query($query_rsArtists, $connLDG) or die(mysql_error());
$row_rsArtists = mysql_fetch_assoc($rsArtists);
$totalRows_rsArtists = mysql_num_rows($rsArtists);
if("" == ""){
$WA_admin_1_Content_Empty = "";
$WA_admin_1_Content = new WA_Include(__FILE__);
$WA_admin_1_Template = new WA_Include("../Templates{$WA_admin_1_Content_Empty}/admin.dwt.php");
require($WA_admin_1_Template->BaseName);
$WA_admin_1_Template->Initialize(true);
}
?>
and below the </html> tag:
<?php
if(isset($WA_admin_1_Template)){
$WA_admin_1_Content->Initialize();
$WA_admin_1_Template->ReplaceTemplateRegions($WA_admin_1_Content);
print($WA_admin_1_Template->Content);
}
mysql_free_result($rsArtists);
?>
should not be on the template file.