This commit is contained in:
kindlm
2015-04-14 14:46:28 +02:00
6 changed files with 54 additions and 36 deletions
@@ -1021,41 +1021,48 @@ echo "
else
$hide = "style='display:block;visibility:visible;'";
echo "<td valign='bottom' nowrap>
<form name='$row_stud->uid' id='$row_stud->uid' method='POST' action='".$_SERVER['PHP_SELF']."?lvid=$lvid&lehreinheit_id=$lehreinheit_id&stsem=$stsem'>
<span id='lvnoteneingabe_".$row_stud->uid."' ".$hide.">
<input type='hidden' name='student_uid' value='$row_stud->uid'>";
// Punkte
if(CIS_GESAMTNOTE_PUNKTE)
if(!defined('CIS_GESAMTNOTE_UEBERSCHREIBEN') || CIS_GESAMTNOTE_UEBERSCHREIBEN || (!CIS_GESAMTNOTE_UEBERSCHREIBEN && is_null($znote)))
{
//$punkte_lv = $punkte_vorschlag;
echo '<input type="text" name="punkte" id="textbox-punkte-'.$i.'" value="'.$punkte_vorschlag.'" size="3" oninput="PunkteEingabe('.$i.')"/>';
}
echo "<td valign='bottom' nowrap>
<form name='$row_stud->uid' id='$row_stud->uid' method='POST' action='".$_SERVER['PHP_SELF']."?lvid=$lvid&lehreinheit_id=$lehreinheit_id&stsem=$stsem'>
<span id='lvnoteneingabe_".$row_stud->uid."' ".$hide.">
<input type='hidden' name='student_uid' value='$row_stud->uid'>";
// Punkte
if(CIS_GESAMTNOTE_PUNKTE)
{
//$punkte_lv = $punkte_vorschlag;
echo '<input type="text" name="punkte" id="textbox-punkte-'.$i.'" value="'.$punkte_vorschlag.'" size="3" oninput="PunkteEingabe('.$i.')"/>';
}
// Noten DropDown
if($punkte_vorschlag!='' && CIS_GESAMTNOTE_PUNKTE)
$disabled='disabled="disabled"';
else
$disabled='';
echo '<select name="note" id="dropdown-note-'.$i.'" '.$disabled.'>';
echo '<option value="">-- keine Auswahl --</option>';
foreach($noten_obj->result as $row_note)
{
if($row_note->note == $note_vorschlag)
$selected='selected';
// Noten DropDown
if($punkte_vorschlag!='' && CIS_GESAMTNOTE_PUNKTE)
$disabled='disabled="disabled"';
else
$selected='';
$disabled='';
echo '<select name="note" id="dropdown-note-'.$i.'" '.$disabled.'>';
echo '<option value="">-- keine Auswahl --</option>';
foreach($noten_obj->result as $row_note)
{
if($row_note->note == $note_vorschlag)
$selected='selected';
else
$selected='';
if($row_note->lehre && $row_note->aktiv)
echo '<option value="'.$row_note->note.'" '.$selected.'>'.$row_note->bezeichnung.'</option>';
if($row_note->lehre && $row_note->aktiv)
echo '<option value="'.$row_note->note.'" '.$selected.'>'.$row_note->bezeichnung.'</option>';
}
echo '</select>';
echo "
<input type='hidden' name='note_orig' value='$note_lv'>
<input type='button' value='->' onclick=\"saveLVNote('".$row_stud->uid."');\">
</span>
</form></td>";
}
else
{
echo '<td></td>';
}
echo '</select>';
echo "
<input type='hidden' name='note_orig' value='$note_lv'>
<input type='button' value='->' onclick=\"saveLVNote('".$row_stud->uid."');\">
</span>
</form></td>";
if(isset($noten_array[$note_lv]) && $noten_array[$note_lv]['positiv']==false)
$negmarkier = " style='color:red; font-weight:bold;'";
+3
View File
@@ -45,6 +45,9 @@ define('CIS_ANWESENHEITSLISTE_NOTENLISTE_ANZEIGEN',true);
// Punkte bei der Noteneingabe anzeigen
define('CIS_GESAMTNOTE_PUNKTE',false);
// Gibt an ob der Lektor erneut eine LVNote eintragen kann wenn bereits eine Zeugnisnote vorhanden ist (true | false) DEFAULT true
define('CIS_GESAMTNOTE_UEBERSCHREIBEN',true);
// Anzeigeoptionen für LV-Plan Menü
define('CIS_LVPLAN_EXPORT_ANZEIGEN',true);
define('CIS_LVPLAN_PERSONENAUSWAHL_ANZEIGEN',true);
+3 -2
View File
@@ -462,7 +462,7 @@ var boardObserver=
if (evt.target.tagName=="label")
evt.target.setAttribute("style","background-color:#AAFFAA;");
else
evt.target.setAttribute("style",styleNow+"border:1px dashed black;");
evt.target.setAttribute("style",styleNow+";border:1px dashed black;");
},
onDragExit: function (evt,flavour,session)
{
@@ -470,7 +470,7 @@ var boardObserver=
if (evt.target.tagName=="label")
evt.target.setAttribute("style","");
else
evt.target.setAttribute("style",styleNow+"border:1px solid black;");
evt.target.setAttribute("style",styleNow+";border:1px solid black;");
},
onDragOver: function(evt,flavour,session)
{
@@ -495,6 +495,7 @@ var boardObserver=
var stunde=evt.target.getAttribute("stunde");
var new_datum=evt.target.getAttribute("datum");
if (evt.target.tagName=="label")
{
var new_ort=evt.target.getAttribute("ort_kurzbz");
@@ -44,10 +44,10 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';
<!-- ************************* -->
<vbox id="vboxSTPLDetailsListe">
<popupset>
<popup id="stpldetail-treestpldetail-popup">
<menupopup id="stpldetail-treestpldetail-popup">
<menuitem label="Bearbeiten" oncommand="STPLDetailEdit()" />
<menuitem label="Entfernen" oncommand="STPLDetailDelete()" />
</popup>
</menupopup>
</popupset>
<tree id="treeStplDetails" seltype="single" hidecolumnpicker="false" flex="1"
+7 -2
View File
@@ -234,7 +234,8 @@ function toggleIgnoreKollision()
// ****
function variableChange(variable, id, wert)
{
item = document.getElementById(id);
if(id!=null)
item = document.getElementById(id);
if(typeof(wert)==='undefined')
{
@@ -294,12 +295,14 @@ function updateignorekollision()
{
panel.label='Kollisionscheck AUS';
panel.style.backgroundColor='red';
panel.style.MozAppearance = "none"
document.getElementById('menu-prefs-ignore_kollision').setAttribute('checked','true');
}
else
{
panel.label='Kollisionscheck AN';
panel.style.backgroundColor='';
panel.style.MozAppearance = "none"
document.getElementById('menu-prefs-ignore_kollision').setAttribute('checked','false');
}
}
@@ -314,11 +317,13 @@ function updatedbstpltable()
if(panel.label=='stundenplan')
{
panel.style.backgroundColor='red';
panel.style.backgroundColor='#FF0000';
panel.style.MozAppearance = "none"
}
else
{
panel.style.backgroundColor='transparent';
panel.style.MozAppearance = "none"
}
}
+2
View File
@@ -2836,6 +2836,8 @@ if(!$result = @$db->db_query("SELECT 1 FROM public.tbl_notiz_dokument LIMIT 1;")
notiz_id integer NOT NULL,
dms_id integer NOT NULL
);
ALTER TABLE public.tbl_notiz_dokument ADD CONSTRAINT pk_notiz_dokument PRIMARY KEY (notiz_id, dms_id);
ALTER TABLE public.tbl_notiz_dokument ADD CONSTRAINT fk_notiz_dokument_notiz FOREIGN KEY (notiz_id) REFERENCES public.tbl_notiz (notiz_id) ON UPDATE CASCADE ON DELETE CASCADE;
ALTER TABLE public.tbl_notiz_dokument ADD CONSTRAINT fk_notiz_dokument_dms FOREIGN KEY (dms_id) REFERENCES campus.tbl_dms (dms_id) ON UPDATE CASCADE ON DELETE CASCADE;