Quantcast
Channel: CodeIgniter Forums - All Forums
Viewing all articles
Browse latest Browse all 14343

IF $class = ($value->status == "done") HOW?

$
0
0
Guys, I would like to use this to show three different colors on my gantt chart:

Code:
$class = ($value->status == "done") ? "#336699" : "";

Currently I have one color, that shows done tasks
Is this possible to use something like:


Code:
if $class = ($value->status == "open") ? "#536699" : "";
if $class = ($value->status == "in_progress") ? "#796699" : "";
if $class = ($value->status == "done") ? "#336699" : "";

But of course above code doesn't work. Can You please help me to create some "if" listing for that?

Viewing all articles
Browse latest Browse all 14343

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>