mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 00:24:35 +00:00
- Added UDF tab in fas
- Added global constant FAS_UDF
This commit is contained in:
@@ -484,6 +484,11 @@ else
|
||||
if(!defined('FAS_MESSAGES') || FAS_MESSAGES==true)
|
||||
echo '<tab id="student-tab-messages" label="Messages" onclick="StudentMessagesIFrameLoad();"/>';
|
||||
?>
|
||||
|
||||
<?php
|
||||
if(!defined('FAS_UDF') || FAS_UDF==true)
|
||||
echo '<tab id="student-tab-udf" label="UDF" onclick="StudentUDFIFrameLoad();"/>';
|
||||
?>
|
||||
|
||||
</tabs>
|
||||
<tabpanels id="student-tabpanels-main" flex="1">
|
||||
@@ -516,9 +521,13 @@ else
|
||||
?>
|
||||
<iframe id="student-aufnahmetermine" style="margin: 0px;" src="" />
|
||||
<?php
|
||||
if(!defined('FAS_MESSAGES') || FAS_MESSAGES==true)
|
||||
echo '<iframe id="student-messages" style="margin: 0px;" src="" />';
|
||||
if(!defined('FAS_MESSAGES') || FAS_MESSAGES==true)
|
||||
echo '<iframe id="student-messages" style="margin: 0px;" src="" />';
|
||||
|
||||
if(!defined('FAS_UDF') || FAS_UDF==true)
|
||||
echo '<iframe id="student-udf" style="margin: 0px;" src="" />';
|
||||
?>
|
||||
|
||||
</tabpanels>
|
||||
</tabbox>
|
||||
</vbox>
|
||||
|
||||
@@ -5432,6 +5432,27 @@ function StudentMessagesIFrameLoad()
|
||||
}
|
||||
}
|
||||
|
||||
// ****
|
||||
// * Load UDF IFrame
|
||||
// ****
|
||||
function StudentUDFIFrameLoad()
|
||||
{
|
||||
var tree = document.getElementById('student-tree');
|
||||
|
||||
if (tree.currentIndex == -1) return;
|
||||
|
||||
try
|
||||
{
|
||||
//Ausgewaehlte person_id holen
|
||||
var person_id = getTreeCellText(tree, 'student-treecol-person_id', tree.currentIndex);
|
||||
var prestudent_id = getTreeCellText(tree, 'student-treecol-prestudent_id', tree.currentIndex);
|
||||
|
||||
url = 'udf.xul.php?person_id='+person_id+'&prestudent_id='+prestudent_id;
|
||||
document.getElementById('student-udf').setAttribute('src', url);
|
||||
}
|
||||
catch(e) {}
|
||||
}
|
||||
|
||||
// ****
|
||||
// * Laedt den Anwesenheit IFrame
|
||||
// ****
|
||||
|
||||
Reference in New Issue
Block a user