Example #1
0
    while (!$resultSet->EOF) {
        $lazyjudges .= "\t<tr><td>" . $resultSet->fields['naam'] . "</td></tr>\n";
        $resultSet->moveNext();
    }
    $lazyjudges .= "\n<table>\n";
}
array_push($criteria, array('nl_short' => 'Overall', 'de_short' => 'Overall', 'nl' => 'Eindcijfer', 'de' => 'Endnote'));
$overall_criterium = 99;
//count($criteria);
$sql = "select * from project join prj_milestone using(prj_id) join prj_tutor using(prjm_id) join prj_grp using(prjtg_id)  left join grp_alias using(prjtg_id) \n" . "where prj_id={$prj_id} and milestone={$milestone} and snummer={$judge}";
$resultSet = $dbConn->Execute($sql);
if ($resultSet === false) {
    $dbconn->log('error getting project data with <strong><pre>' . $sql . '</pre></strong> reason : ' . $dbConn->ErrorMsg() . '<BR>');
} else {
    if (!$resultSet->EOF) {
        $pp = array_merge($resultSet->fields);
    }
}
$rainbow = new RainBow();
$pp['criteriaList'] = getCriteriaList($criteria, $lang, $rainbow);
$pp['prjList'] = $prjSel->getWidget();
$pp['productgrade'] = $productgrade;
if ($lazycount == 0) {
    $pp['viewresult'] = getGroupResultTable($dbConn, $prjtg_id, $overall_criterium, $productgrade, true, $criteria, $lang, $rainbow, false, false);
    $templatefile = 'templates/studentgroupresult.html';
} else {
    $pp['viewresult'] = $lazyjudges;
    $templatefile = 'templates/studentgroupresult_noresult.html';
}
$page->addHtmlFragment($templatefile, $pp);
$page->show();
Example #2
0
    ?>
</h4>
                    <?php 
    echo $pg->getGroupPhotos();
    ?>
                    <table align='center' class='navleft'>
                        <tr><th><?php 
    echo $langmap['criteria'][$lang];
    ?>
</th>
                            <th><?php 
    echo $langmap['verklaring'][$lang];
    ?>
</th></tr>
                        <?php 
    echo getCriteriaList($criteria, $lang, $rainbow);
    ?>

                    </table>
                    <table align='center' class='tabledata' border='1'>
                        <?php 
    echo $toprow;
    ?>
                        <?php 
    echo $tableString;
    ?>
                        <?php 
    echo $bottomrow;
    ?>
                    </table>
                </form>