Jump to content

[SOLVED] Help in Templates : ITX Template Class


samona

Recommended Posts

Hi all,

 

I have a problem.  I'm trying to display output in red if it meets a certain criteria, however I can't seem to do so.  I've figured out that you cannot use php code in the .tpl files.  I want to do  something like this:

 

if ($num_students > 0){
$template->setVariable("STUDENTS",$num_students);
}

else { I want the variable $num_students to print in red font.}

How can I do this?  Is it even possible?  Please Advise.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.