mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 16:44:28 +00:00
Neue Notenübersicht für Studenten
- Ansicht aller LVs die der Studierende lt Studienplan besuchen muss - Lehrveranstaltungen die ausserhalb des Studienplanes besucht wurden - Notendurchschnitt pro Semester und über alle Semester nur für Studienplanrelevante LVs - Neuer Menüpunkt im FAS für Zugriff auf die Notenliste
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
if(isset($course['note']) && isset($grades[$course['note']]))
|
||||
$gradeclass = ($grades[$course['note']]['positiv']?'gradelist_row_grade_positiv':'gradelist_row_grade_negativ');
|
||||
else
|
||||
$gradeclass = '';
|
||||
?>
|
||||
<tr class="gradelist_row_<?php echo $course['lehrtyp_kurzbz']; ?> gradelist_row_depth_<?php echo $depth; ?>">
|
||||
<td><?php echo $course['bezeichnung']; ?></td>
|
||||
<td align="right"><?php echo (isset($course['ects'])?$course['ects']:''); ?></td>
|
||||
<td class="<?php echo $gradeclass; ?>">
|
||||
<?php
|
||||
if (isset($course['note']) && isset($grades[$course['note']]['anmerkung']))
|
||||
echo $grades[$course['note']]['anmerkung'];
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
$this->load->view(
|
||||
'templates/FHC-Header',
|
||||
array(
|
||||
'title' => 'Gradelist',
|
||||
'jquery' => true,
|
||||
'jqueryui' => true,
|
||||
'bootstrap' => true,
|
||||
'fontawesome' => true,
|
||||
'ajaxlib' => true,
|
||||
'customCSSs' => array(
|
||||
'public/css/tools/gradelist.css'
|
||||
),
|
||||
'customJSs' => array(
|
||||
'public/js/bootstrapper.js'
|
||||
)
|
||||
)
|
||||
);
|
||||
?>
|
||||
<body>
|
||||
<div id="wrapper">
|
||||
<div id="page-wrapper">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<h1 class="page-header">
|
||||
<?php echo ucfirst($this->p->t('global', 'uebersicht')); ?> -
|
||||
<?php echo $person->vorname.' '.$person->nachname.' ('.$user.')';?>
|
||||
</h1>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<b><?php echo $this->p->t('lehre', 'notendurchschnitt'); ?>:</b>
|
||||
<?php echo $courses['overall']['notendurchschnitt'] ?><br>
|
||||
<b><?php echo $this->p->t('lehre', 'gewichteternotendurchschnitt'); ?>:</b>
|
||||
<?php echo $courses['overall']['notendurchschnittgewichtet'] ?><br>
|
||||
<b><?php echo $this->p->t('lehre', 'ects'); ?>:</b>
|
||||
<?php echo $courses['overall']['ectssumme_positiv'] ?><br>
|
||||
<br>
|
||||
<?php
|
||||
foreach ($courses['semester'] as $sem => $row_semester)
|
||||
{
|
||||
$this->load->view('person/gradelist/semester.php', $row_semester);
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
<?php $this->load->view('templates/FHC-Footer'); ?>
|
||||
@@ -0,0 +1,117 @@
|
||||
<?php
|
||||
$semesterdata = $data;
|
||||
$tableid='table-semester-'.$semesterdata['studiensemester_kurzbz'];
|
||||
?>
|
||||
<div id="accordion_<?php echo $tableid;?>">
|
||||
<div class="panel-group">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading" id="headingcollapse_<?php echo $tableid;?>">
|
||||
<a class="btn btn-link"
|
||||
data-toggle="collapse"
|
||||
data-target="#collapse_<?php echo $tableid;?>"
|
||||
aria-expanded="true"
|
||||
aria-controls="collapse_<?php echo $tableid;?>"
|
||||
>
|
||||
<?php
|
||||
echo $semesterdata['studiensemester_kurzbz'].' - '.
|
||||
$semesterdata['ausbildungssemester'].'. '.$this->p->t('lehre','ausbildungssemester').' - '.
|
||||
$semesterdata['status'].' | '.
|
||||
$semesterdata['ectssumme_positiv'];
|
||||
if(isset($semesterdata['ectssumme_nonstpl']))
|
||||
echo ' + '.$semesterdata['ectssumme_nonstpl'];
|
||||
echo ' '.$this->p->t('lehre','ects');
|
||||
?>
|
||||
</a>
|
||||
</div>
|
||||
<div id="collapse_<?php echo $tableid;?>"
|
||||
class="panel-collapse collapse"
|
||||
aria-labelledby="headingcollapse_<?php echo $tableid;?>"
|
||||
data-parent="#accordion_<?php echo $tableid;?>"
|
||||
>
|
||||
<div class="panel-body">
|
||||
<?php
|
||||
if (is_array($lvs) && count($lvs) > 0):
|
||||
|
||||
echo '<h4>Lehrveranstaltungen laut Studienplan '.$semesterdata['studienplan_bezeichnung'].'</h4>';
|
||||
?>
|
||||
<table id="<?php echo $tableid;?>" class="gradetable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?php echo $this->p->t('lehre','lehrveranstaltung');?></th>
|
||||
<th><?php echo $this->p->t('lehre','ects');?></th>
|
||||
<th><?php echo $this->p->t('lehre','note');?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
foreach ($lvs as $row_course)
|
||||
{
|
||||
Gradelist::printRow($row_course, 0);
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th style="text-align: right">
|
||||
<?php
|
||||
echo (isset($semesterdata['ectssumme_positiv'])?$semesterdata['ectssumme_positiv']:'');
|
||||
|
||||
if (isset($semesterdata['ectssumme'])
|
||||
&& isset($semesterdata['ectssumme_positiv'])
|
||||
&& $semesterdata['ectssumme'] != $semesterdata['ectssumme_positiv'])
|
||||
{
|
||||
echo ' ('.$semesterdata['ectssumme'].')';
|
||||
}
|
||||
?>
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
<?php
|
||||
endif;
|
||||
if (isset($lvs_nonstpl) && count($lvs_nonstpl) > 0):
|
||||
?>
|
||||
<h2><?php echo $this->p->t('lehre','nichtstudienplanrelevanteKurse'); ?></h2>
|
||||
<table id="<?php echo $tableid;?>_nonstpl" class="gradetable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?php echo $this->p->t('lehre','lehrveranstaltung');?></th>
|
||||
<th><?php echo $this->p->t('lehre','ects');?></th>
|
||||
<th><?php echo $this->p->t('lehre','note');?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if(is_array($lvs_nonstpl))
|
||||
{
|
||||
foreach ($lvs_nonstpl as $row_course)
|
||||
{
|
||||
Gradelist::printRow($row_course, 0);
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th style="text-align: right"><?php echo (isset($semesterdata['ectssumme_nonstpl'])?number_format($semesterdata['ectssumme_nonstpl'],2):''); ?></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
<?php
|
||||
endif;
|
||||
?>
|
||||
</div>
|
||||
<div class="panel-footer">
|
||||
<b><?php echo $this->p->t('lehre','notendurchschnitt');?>:</b>
|
||||
<?php echo (isset($semesterdata['notendurchschnitt'])?$semesterdata['notendurchschnitt']:'');?>
|
||||
<b><?php echo $this->p->t('lehre','gewichteternotendurchschnitt');?>:</b>
|
||||
<?php echo (isset($semesterdata['notendurchschnittgewichtet'])?$semesterdata['notendurchschnittgewichtet']:'');?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -93,10 +93,11 @@
|
||||
// NavigationWidget CSS
|
||||
if ($navigationwidget === true) generateCSSsInclude('public/css/NavigationWidget.css');
|
||||
|
||||
generateCSSsInclude('public/css/fhcomplete.css');
|
||||
|
||||
// Eventually required CSS
|
||||
generateCSSsInclude($customCSSs); // Eventually required CSS
|
||||
|
||||
|
||||
// --------------------------------------------------------------------------------------------------------
|
||||
// Javascripts
|
||||
|
||||
|
||||
Reference in New Issue
Block a user