diff --git a/content/notiz.xml.php b/content/notiz.xml.php index f7373b134..1ec0c2e42 100755 --- a/content/notiz.xml.php +++ b/content/notiz.xml.php @@ -47,8 +47,8 @@ echo ''; - - + + @@ -334,6 +334,7 @@ echo ''; var prestudent_id = this.getAttribute('prestudent_id'); var bestellung_id = this.getAttribute('bestellung_id'); var lehreinheit_id = this.getAttribute('lehreinheit_id'); + var anrechnung_id = this.getAttribute('anrechnung_id'); var soapBody = new SOAPObject("saveNotiz"); //soapBody.appendChild(new SOAPObject("username")).val('joe'); @@ -357,6 +358,7 @@ echo ''; notiz.appendChild(new SOAPObject("prestudent_id")).val(prestudent_id); notiz.appendChild(new SOAPObject("bestellung_id")).val(bestellung_id); notiz.appendChild(new SOAPObject("lehreinheit_id")).val(lehreinheit_id); + notiz.appendChild(new SOAPObject("anrechnung_id")).val(anrechnung_id); soapBody.appendChild(notiz); var sr = new SOAPRequest("saveNotiz",soapBody); @@ -647,6 +649,7 @@ echo ''; + '; this.setAttribute('bestellung_id',bestellung_id); this.setAttribute('user',user); this.setAttribute('lehreinheit_id',lehreinheit_id); - + //Wenn kein Erledigt Parameter uebergeben wird, dann wird die zuletzt //verwendete Einstellung verwendet if(typeof erledigt=="undefined") @@ -680,8 +683,13 @@ echo ''; if(typeof erledigt!="undefined") this.setAttribute('erledigt',erledigt); + + if(typeof anrechnung_id=="undefined") + anrechnung_id = ''; + + if(typeof anrechnung_id!="undefined") + this.setAttribute('anrechnung_id',anrechnung_id); - var datasource="rdf/notiz.rdf.php?ts="+gettimestamp(); datasource = datasource+"&projekt_kurzbz="+encodeURIComponent(projekt_kurzbz); datasource = datasource+"&projektphase_id="+encodeURIComponent(projektphase_id); @@ -698,7 +706,8 @@ echo ''; datasource = datasource+"&erledigt=true"; else if((typeof erledigt=="boolean" && erledigt==false) || (typeof erledigt=="string" && erledigt=='false')) datasource = datasource+"&erledigt=false"; - + + datasource = datasource+"&anrechnung_id="+encodeURIComponent(anrechnung_id); //debug('Source:'+datasource); var tree = document.getAnonymousElementByAttribute(this ,'anonid', 'tree-notiz'); @@ -797,41 +806,6 @@ echo ''; ]]> - - - - content/notiz.window.xul.php'+param,'Notiz','chrome, status=no, width=500, height=350, centerscreen, resizable'); - ]]> - - //debug('load notiz:'+this.getAttribute('id')); @@ -846,11 +820,12 @@ echo ''; var bestellung_id = this.getAttribute('bestellung_id'); var user = this.getAttribute('user'); var lehreinheit_id = this.getAttribute('lehreinheit_id'); + var anrechnung_id = this.getAttribute('anrechnung_id'); if(projekt_kurzbz!='' || projektphase_id!='' || projekttask_id!='' - || uid!='' || person_id!='' || prestudent_id!='' || bestellung_id!='' || user!='' || lehreinheit_id!='') + || uid!='' || person_id!='' || prestudent_id!='' || bestellung_id!='' || user!='' || lehreinheit_id!='' || anrechnung_id!='') { - this.LoadNotizTree(projekt_kurzbz,projektphase_id,projekttask_id,uid,person_id,prestudent_id,bestellung_id, user, lehreinheit_id); + this.LoadNotizTree(projekt_kurzbz,projektphase_id,projekttask_id,uid,person_id,prestudent_id,bestellung_id, user, lehreinheit_id, null, anrechnung_id); } document.getAnonymousElementByAttribute(this ,'anonid', 'textbox-notiz-verfasser').value=getUsername(); diff --git a/content/notizdialog.js.php b/content/notizdialog.js.php index b476c9859..453c521b4 100644 --- a/content/notizdialog.js.php +++ b/content/notizdialog.js.php @@ -22,8 +22,8 @@ // **** // * Laedt die zu bearbeitenden Daten // **** -function NotizInit(projekt_kurzbz, projektphase_id, projekttask_id, uid, person_id, prestudent_id, bestellung_id, user, lehreinheit_id) +function NotizInit(projekt_kurzbz, projektphase_id, projekttask_id, uid, person_id, prestudent_id, bestellung_id, user, lehreinheit_id, anrechnung_id) { var notizbox = document.getElementById('notiz-dialog-box-notiz'); - notizbox.LoadNotizTree(projekt_kurzbz,projektphase_id, projekttask_id, uid, person_id, prestudent_id, bestellung_id, user, lehreinheit_id); + notizbox.LoadNotizTree(projekt_kurzbz,projektphase_id, projekttask_id, uid, person_id, prestudent_id, bestellung_id, user, lehreinheit_id, null, anrechnung_id); } diff --git a/content/notizdialog.xul.php b/content/notizdialog.xul.php index 8656c89d0..cf4c035a5 100644 --- a/content/notizdialog.xul.php +++ b/content/notizdialog.xul.php @@ -76,11 +76,16 @@ if(isset($_GET['lehreinheit_id']) && is_numeric($_GET['lehreinheit_id'])) else $lehreinheit_id=''; +if(isset($_GET['anrechnung_id']) && is_numeric($_GET['anrechnung_id'])) + $anrechnung_id=$_GET['anrechnung_id']; +else + $anrechnung_id=''; + ?> )" + onload="NotizInit()" >