Fataqui - I think I've found the problem. When you asked to see the template table_heading_html I couldn't find it anywhere. So then I looked at source of the .php files and the HTML source of the pages displaying the PHP code to try and establish where the template "stuff" was within the program. To my amazement I found out that all the template headers etc are stored in the actual MySQL database. For example, this is the value for a field called calendar_header:
<span class="heading">Calendar</span>
<br />
Information such as network maintenance will appear on the calendar.
<br />
<br />
<Span class="heading">$the_month $year</span>
<br />
{TABLE-HEADING:'<table width=100% cellpadding=0 cellspacing=0><tr>
<td width=14%><font color=white><b>Mon</b></font></td>
<td width=14%><font color=white><b>Tue</b></font></td>
<td width=14%><font color=white><b>Wed</b></font></td>
<td width=14%><font color=white><b>Thu</b></font></td>
<td width=14%><font color=white><b>Fri</b></font></td>
<td width=14%><font color=white><b>Sat</b></font></td>
<td width=14%><font
color=white><b>Sun</b></font></td></tr></table>'/}
$calendar_rows
</table>
In this example you can see the {TABLE-HEADING:' which is incorrectly displaying in the browser. So I dug around a bit further and it appears that the installation script for the program creates a whole bunch of tables with some of them containing fields for these templates. Here's a short example of what is in the installation script:
INSERT INTO `$_SUBMIT[table_prefix]template_bits` VALUES ('', '1', 'iprequest_request', '<span class=\"heading\">IP Request</span>
<br />
Please fill in these details about your required IP addresses:
<br />
<br />
\$errors
<form action=\'\$PHP_SELF\' method=\"post\">
<input type=\"hidden\" name=\"request\" value=\"1\">
{TABLE-HEADING:\'IP Request\'/}
{USER-ROW:1}
<td>
<table width=\"100%\" cellpadding=\"5\" cellspacing=\"0\">
<tr>
<td width=\"30%\" valign=\"top\">
<b>Email Address:</b>
</td>
<td width=\"70%\">
\$client_info[email]
</td>
</tr>
</table>
</td>
{END-ROW/}
Is this normal for template headers, footers etc to kept in an MySQL database?