FAS-Menüpunkt CIS eingebaut

This commit is contained in:
Nikolaus Krondraf
2015-06-08 15:04:59 +02:00
parent 528a79678f
commit 4a58d4fe4c
5 changed files with 96 additions and 7 deletions
+19
View File
@@ -147,6 +147,8 @@ foreach($addon_obj->result as $addon)
<command id="menu-dokumente-urkunde_englisch:command" oncommand="StudentAbschlusspruefungPrintUrkundeMultiple(event, 'englisch')"/>
<command id="menu-dokumente-ausbildungsvertrag:command" oncommand="StudentPrintAusbildungsvertrag(event);"/>
<command id="menu-dokumente-ausbildungsvertrag_englisch:command" oncommand="StudentPrintAusbildungsvertragEnglisch(event);"/>
<command id="menu-cis-studienplan:command" oncommand="StudentCisStudienplan(event);"/>
<command id="menu-cis-studienerfolg:command" oncommand="StudentCisStudienerfolg(event);"/>
<command id="menu-extras-reihungstest:command" oncommand="ExtrasShowReihungstest();"/>
<command id="menu-extras-firma:command" oncommand="ExtrasShowFirmenverwaltung();"/>
<command id="menu-extras-lvverwaltung:command" oncommand="ExtrasShowLVverwaltung();"/>
@@ -721,6 +723,23 @@ foreach($addon_obj->result as $addon)
accesskey = "&menu-dokumente-ausbildungsvertrag_englisch.accesskey;"/>
</menupopup>
</menu>
<!-- ***** CIS ***** -->
<menu id="menu-cis" label="&menu-cis.label;" accesskey="&menu-cis.accesskey;">
<menupopup id="menu-cis-popup">
<menuitem
id = "menu-cis-studienplan"
key = "menu-cis-studienplan:key"
label = "&menu-cis-studienplan.label;"
command = "menu-cis-studienplan:command"
accesskey = "&menu-cis-studienplan.accesskey;"/>
<menuitem
id = "menu-cis-studienerfolg"
key = "menu-cis-studienerfolg:key"
label = "&menu-cis-studienerfolg.label;"
command = "menu-cis-studienerfolg:command"
accesskey = "&menu-cis-studienerfolg.accesskey;"/>
</menupopup>
</menu>
<!-- ***** Zusatzmenues inkludieren ***** -->
<?php
include('../include/'.EXT_FKT_PATH.'/fas_zusatzmenues.inc.php');
+36
View File
@@ -5407,3 +5407,39 @@ function StudentPrestudentRolleVorruecken()
return true;
}
}
// ****
// * Öffnet den Studienplan des Studenten im CIS
// ****
function StudentCisStudienplan(event)
{
var tree = document.getElementById('student-tree');
if (tree.currentIndex == -1)
{
alert("Bitte wählen Sie einen Studenten aus.");
return false;
}
var col = tree.columns ? tree.columns["student-treecol-uid"] : "student-treecol-uid";
var uid = tree.view.getCellText(tree.currentIndex,col);
window.open('<?php echo APP_ROOT; ?>cis/private/profile/studienplan.php?uid='+uid);
}
// ****
// * Öffnet die Studienerfolgsbestätigung des Studenten im CIS
// ****
function StudentCisStudienerfolg(event)
{
var tree = document.getElementById('student-tree');
if (tree.currentIndex == -1)
{
alert("Bitte wählen Sie einen Studenten aus.");
return false;
}
var col = tree.columns ? tree.columns["student-treecol-uid"] : "student-treecol-uid";
var uid = tree.view.getCellText(tree.currentIndex,col);
window.open('<?php echo APP_ROOT; ?>cis/private/profile/studienerfolgsbestaetigung.php?uid='+uid);
}