I have created a sample:
PHP script:
<?php
include_once(../vlibTemplate.php);
$tmpl = new vlibTemplate(tmpl/vlibTemplate_include_adv.html);
$tmpl->setvar(background, #eeeeee);
$tmpl->setvar(thColor, #ffffff);
$tmpl->setvar(thBGcolor, #778899);
$tmpl->setloop(tr, $tabledata);
$tmpl->pparse();
?>
Template (working):
<html>
<head>
<style type="text/css">
.table_header
{
font-size: 10pt;
font-family: Verdana;
font-weight: bold;
color: <tmpl_var name=thColor>;
background-color: <tmpl_var name=thBGcolor>;;
}
</style>
<title><tmpl_include file=../formate.css></title>
</head>
<body background="{tmpl_var name=background}">
<table border="1" width="100%">
<!-- rows -->
<tmpl_loop name=tr> <!-- new row (start) -->
<tr class="table_header">
<tmpl_loop name=row>
<td valign="top">{tmpl_var name=cell}</td>
</tmpl_loop>
</tr>
<!-- new row (end) -->
</tmpl_loop>
</table>
</body>
</html>
Template (failing):
<html>
<head>
<tmpl_include file=../formate.css>
<title><tmpl_include file=../formate.css></title>
</head>
<body background="{tmpl_var name=background}">
<table border="1" width="100%">
<!-- rows -->
<tmpl_loop name=tr> <!-- new row (start) -->
<tr class="table_header">
<tmpl_loop name=row>
<td valign="top">{tmpl_var name=cell}</td>
</tmpl_loop>
</tr>
<!-- new row (end) -->
</tmpl_loop>
</table>
</body>
</html>