Jump to content

adding styles for record conditions


jesushax

Recommended Posts

as above what im trying to do is

 

say My filed RecordType has 3 possiblities in it

 

Type 1 all records under type one would have font color green

Type 2 all records under type one would have font color blue

Type 3 all records under type one would have font color yellow

 

how could i do this?

if statement?

Link to comment
https://forums.phpfreaks.com/topic/110440-adding-styles-for-record-conditions/
Share on other sites

or a CSS class

 

<style type="text/css">
  span.rtype_1 {
    color: green;
  }
  span.rtype_2 {
    color: blue;
  }
  span.rtype_3 {
    color: yellow;
  }
</style>

 

<?php
  echo "<span class=\"rtype_{$type}\">{$text}</span>";
?>

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.