los ficheros *.tpl, son simplemente ficheros HTML, solo que contienen ciertas etiquetas que son leidas por un interprete, llamese Smarty o NokTemplate, las etiquetas nos sirven para desplegar o ignorar informacion, y la mayoria de veces nos sirven para reducir el tamaño del codigo considerablemente, o para definir BLOKES y SUBBlokes en nuestro tpl, asi desde codigo php podemos activarlos o desactivarlos.
es una miniexplicacion, aqui te muestro un ejemplo:
Código PHP:
<!-- inicioBloque: bloqueWindowSimpleRefresTemplate -->
<center>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr height="1">
<td colspan="3" bgcolor="black" height="1"></td>
</tr>
<tr height="11">
<td bgcolor="black" width="1" height="11"></td>
<td align="center" valign=top bgcolor="{td_bgcolor_w_mini_sup}" height="11">
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="11">
<tr height="11">
<td width="100%" height="11" background="./templates/images/{max_menu_barra_win_inf}"></td>
<td align="center" valign="middle" width="11" height="11"><img src="./templates/images/{max_menu_barra_win_inf_b}" height="11" width="11" border="0"></td>
</tr>
</table>
</td>
<td width="1" bgcolor="black" height="11"></td>
</tr>
<tr>
<td bgcolor="black" width="1"></td>
<td align="center" valign="top">
<br>{langWindowSimpleRecarga}<a href={accionWinSimple}>{langPulseAqui}</a><br><br>
<img src="./images/admin/w_wait.gif" height="10" width="195" border="0"><a href={accionWinSimple}><br><br>
</td>
<td width="1" bgcolor="black"></td>
</tr>
<tr height="5">
<td bgcolor="black" width="1" height="5"></td>
<td align="center" valign="top" bgcolor="{td_bgcolor_w_mini_inf}" height="5"></td>
<td width="1" bgcolor="black" height="5"></td>
</tr>
<tr height="1">
<td colspan="3" bgcolor="black" height="1"></td>
</tr>
</table>
<!-- finBloque: bloqueWindowSimpleRefresTemplate -->
mas info:
http://www.jpw.com.ar/noktpl.php?PHP...594bbefc5c8f0d