update
This commit is contained in:
@@ -89,16 +89,26 @@ class Controller extends BaseController
|
||||
return $value <= $angka;
|
||||
}
|
||||
protected function cekInterpretasi($value, $data) {
|
||||
if ($this->cekBatasAtas($value, $data->batasatas)) {
|
||||
return "S";
|
||||
try {
|
||||
if ($data->batasatas == $value){
|
||||
return "S";
|
||||
} else if ($data->batasbawah == $value){
|
||||
return "R";
|
||||
} else {
|
||||
if ($this->cekBatasAtas($value, $data->batasatas)) {
|
||||
return "S";
|
||||
}
|
||||
if ($this->cekMidRange($value, $data->midrange)) {
|
||||
return "I";
|
||||
}
|
||||
if ($this->cekBatasBawah($value, $data->batasbawah)) {
|
||||
return "R";
|
||||
}
|
||||
}
|
||||
} catch (\Exception $e) {
|
||||
return null;
|
||||
}
|
||||
if ($this->cekMidRange($value, $data->midrange)) {
|
||||
return "I";
|
||||
}
|
||||
if ($this->cekBatasBawah($value, $data->batasbawah)) {
|
||||
return "R";
|
||||
}
|
||||
return null;
|
||||
|
||||
}
|
||||
protected function getStyledValue($value, $color, $strong = false) {
|
||||
return $strong ? "<strong><font color=\"$color\">$value</font></strong>" : "<font color=\"$color\">$value</font>";
|
||||
|
||||
Reference in New Issue
Block a user