Greetings, I post a question earlier about IT.php Template class... It seams not much people are using this class, so I switched to PHPLIB template.
Here is a sample of my template file :
[...]
<TABLE WIDTH="100%" BORDER=0 CELLPADDING=0 CELLSPACING=0>
<!-- BEGIN errorswitch -->
<TR CLASS="error-container">
<DIV CLASS="error-container">
<DIV CLASS="error" bgcolor="red"> {ERROR}</DIV>
</DIV>
</TR>
<!-- END errorswitch -->
<TR ALIGN="LEFT" BGCOLOR="#F5F5F5">
[...]
Now, how to I make PHPLIB totally ignore the 'errorswitch' block if there is no error recorded ? By ignore, I want it to be removed from the final HTML fie resulting from the parse() command, so that the HTML row is not even visible by the end-user.
Thanks for any pointers.