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
+2
View File
@@ -90,6 +90,8 @@ if(isset($_GET['abschlusspruefung_id']))
$params.='&abschlusspruefung_id='.$_GET['abschlusspruefung_id'];
if(isset($_GET['typ']))
$params.='&typ='.$_GET['typ'];
if(isset($_GET['all']))
$params.='&all=1';
if(isset($_GET['output']))
$output=$_GET['output'];
else
@@ -26,6 +26,7 @@ require_once('../../../include/functions.inc.php');
require_once('../../../include/studiensemester.class.php');
require_once('../../../include/basis_db.class.php');
require_once('../../../include/phrasen.class.php');
require_once('../../../include/benutzerberechtigung.class.php');
$sprache = getSprache();
$p = new phrasen($sprache);
@@ -33,12 +34,24 @@ $p = new phrasen($sprache);
if (!$db = new basis_db())
die($p->t('global/fehlerBeimOeffnenDerDatenbankverbindung'));
$uid=get_uid();
if(isset($_GET['lang']) && $_GET['lang']=='en')
$xsl = 'StudienerfolgEng';
else
$xsl = 'Studienerfolg';
$uid=get_uid();
if(isset($_GET['uid']))
{
// Administratoren duerfen die UID als Parameter uebergeben um den Studienplan
// von anderen Personen anzuzeigen
$rechte = new benutzerberechtigung();
$rechte->getBerechtigungen($uid);
if($rechte->isBerechtigt('admin'))
$uid=$_GET['uid'];
}
if(isset($_GET['lang']) && $_GET['lang']=='en')
$xsl = 'StudienerfolgEng';
else
$xsl = 'Studienerfolg';
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
@@ -56,7 +69,13 @@ function createStudienerfolg()
finanzamt = "&typ=finanzamt";
else
finanzamt = "";
window.location.href= "../pdfExport.php?xml=studienerfolg.rdf.php&xsl='.$xsl.'&ss="+stsem+"&uid='.$uid.'"+finanzamt;
if(stsem == "alle")
alle = "&all=1";
else
alle = "";
window.location.href= "../pdfExport.php?xml=studienerfolg.rdf.php&xsl='.$xsl.'&ss="+stsem+"&uid='.$uid.'"+finanzamt+alle;
}
</script>
</head>
@@ -69,6 +88,7 @@ $qry = "SELECT distinct studiensemester_kurzbz FROM campus.vw_student JOIN publi
if($result = $db->db_query($qry))
{
echo $p->t('global/studiensemester').': <SELECT id="stsem">';
echo '<OPTION value="alle">alle Semester</OPTION>';
$stsem_obj = new studiensemester();
$stsem = $stsem_obj->getPrevious();
+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);
}
+12
View File
@@ -285,6 +285,18 @@
<!ENTITY menu-dokumente-urkunde_englisch.label "Urkunde Englisch">
<!ENTITY menu-dokumente-urkunde_englisch.accesskey "E">
<!-- CIS -->
<!ENTITY menu-cis.label "CIS">
<!ENTITY menu-cis.accesskey "C">
<!ENTITY menu-cis-studienplan.key "P">
<!ENTITY menu-cis-studienplan.label "Studienplan">
<!ENTITY menu-cis-studienplan.accesskey "P">
<!ENTITY menu-cis-studienerfolg.key "E">
<!ENTITY menu-cis-studienerfolg.label "Studienerfolgsbestätigung">
<!ENTITY menu-cis-studienerfolg.accesskey "E">
<!-- Extras -->
<!ENTITY menu-extras.label "Extras">
<!ENTITY menu-extras.accesskey "X">