- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
switch ($row['active']) {
case '1':
$st = '<font color="#008000">Вкл.</font></a>';
break;
case '0':
$st = '<font color="#FF0000">Выкл.</font>';
break;
}
?)
'0' => 'выкл',
'0.5' => 'полувкл',
'1' => 'вкл'
);
echo $statuses[$row['active']];
:)