Exemplo n.º 1
0
function getLessonEvaluation($idCli, $idMob)
{
    $lesson = new lesson();
    $html = "";
    $list_lesson_evaluation = $lesson->list_lesson_evaluation($idCli, $idMob);
    foreach ($list_lesson_evaluation as $item) {
        if (strlen($item['reason']) > 0) {
            $html .= '<label class="control-label">';
            $html .= '<b>•&nbsp;Reason:</b>&nbsp;&nbsp;&nbsp;' . $item['reason'];
            $html .= '</label>';
        } else {
            if (strlen($item['rating']) > 0) {
                $html .= '<label class="control-label">';
                $html .= '<b>•&nbsp;Rating:</b>&nbsp;&nbsp;&nbsp;' . $item['rating'];
                $html .= '</label>';
            }
        }
        $html .= '<label class="control-label">';
        $html .= '<b>•&nbsp;Observations:</b>';
        $html .= '</label>';
        $html .= '<label class="control-label">';
        $html .= $item['observations'];
        $html .= '</label>';
    }
    echo $html;
}