stash changes

This commit is contained in:
OliiverHacker
2020-10-12 12:52:49 +02:00
parent 51c4e1f92b
commit 0f43f630ad
3 changed files with 37 additions and 7 deletions
+31 -3
View File
@@ -180,7 +180,34 @@ $sql_query.=' ORDER BY titel LIMIT 100';
$erg_repl = $db->db_query($sql_query);
$num_rows_repl = $db->db_num_rows($erg_repl);
?>
<?php
// ADDONS laden
$addon_obj = new addon();
$addon_obj->loadAddons();
foreach($addon_obj->result as $addon)
{
if(file_exists('../../../addons/'.$addon->kurzbz.'/cis/init.js.php'))
echo '<script type="application/x-javascript" src="../../../addons/'.$addon->kurzbz.'/cis/init.js.php" ></script>';
var_dump($addon->kurzbz);
}
// Wenn Seite fertig geladen ist Addons aufrufen
echo '
<script>
$( document ).ready(function()
{
if(typeof addon !== \'undefined\')
{
for(i in addon)
{
addon[i].init("cis/private/lvplan/stpl_detail.php", {ort_kurzbz:\''.$ort_kurzbz.'\'});
}
}
});
</script>
';
?>
<?php
echo '<html>
<head>
<title>'.$p->t('lvplan/lehrveranstaltungsplanDetails').'</title>
@@ -207,6 +234,7 @@ if ($num_rows_stpl>0)
<th>'.$p->t('global/verband').'</th>
<th>'.$p->t('lvplan/einheit').'</th>
<th>'.$p->t('lvplan/info').'</th>
<th>'.$p->t('moodle/moodle').'</th>
</tr>';
$ort = new ort();
@@ -262,8 +290,8 @@ if ($num_rows_stpl>0)
<td><A class="Item" title="'.$anzahl_grp.' Studierende" href="mailto:'.mb_strtolower($gruppe_kurzbz).'@'.DOMAIN.'">
'.$db->convert_html_chars($gruppe_kurzbz).'</A></td>
<td>'.$db->convert_html_chars($titel).'</td>
</tr>';
<td><a class="Item" href="../../../addons/moodle/cis/moodle_choice.php?lvid='.$db->convert_html_chars($unr).'&stsem='.$db->convert_html_chars($stsem).'">moodle</a></td>
</tr>';
}
echo '</table><BR>';
}
+3 -3
View File
@@ -106,6 +106,7 @@ else if (isset($_GET['gruppe_kurzbz']))
else
$gruppe_kurzbz=null;
if (isset($_POST['user_uid']))
$user_uid=$_POST['user_uid'];
if (isset($_POST['reserve']))
@@ -272,7 +273,6 @@ if (isset($_POST['titel']))
if(file_exists('../../../addons/'.$addon->kurzbz.'/cis/init.js.php'))
echo '<script type="application/x-javascript" src="../../../addons/'.$addon->kurzbz.'/cis/init.js.php" ></script>';
}
// Wenn Seite fertig geladen ist Addons aufrufen
echo '
<script>
@@ -493,9 +493,9 @@ if (!isset($datum))
$stdplan->user=$user;
// aktueller Benutzer
$stdplan->user_uid=$uid;
//TODO
// Zusaetzliche Daten laden
if (! $stdplan->load_data($type,$pers_uid,$ort_kurzbz,$stg_kz,$sem,$ver,$grp,$gruppe_kurzbz,null,$lva) )
if (! $stdplan->load_data($type, 'nimm'/*$pers_uid*/,$ort_kurzbz,$stg_kz,$sem,$ver,$grp,$gruppe_kurzbz,null,$lva) )
{
die(htmlentities($stdplan->errormsg));
}
+3 -1
View File
@@ -633,7 +633,7 @@ class wochenplan extends basis_db
/**
* Zeichnen der Stundenplanwoche in HTML
*/
public function draw_week($raumres, $user_uid='', $gruppieren=LVPLAN_LEHREINHEITEN_GRUPPIEREN)
public function draw_week($raumres, $user_uid='', $gruppieren=LVPLAN_LEHREINHEITEN_GRUPPIEREN, $addons=null)
{
global $tagbez;
$sprache = getSprache();
@@ -864,6 +864,7 @@ class wochenplan extends basis_db
echo '&ver='.$this->ver;
echo '&grp='.$this->grp;
echo '&ort_kurzbz='.$ort;
echo '&grp='.$addons;
echo "','Details', 'height=320,width=550,left=0,top=0,hotkeys=0,resizable=yes,status=no,scrollbars=no,toolbar=no,location=no,menubar=no,dependent=yes');return false;";
echo '" title="'.$this->convert_html_chars($titel).'" ';
echo ' href="#">';
@@ -936,6 +937,7 @@ class wochenplan extends basis_db
echo '&ver='.$this->ver;
echo '&grp='.$this->grp;
echo '&ort_kurzbz='.$uEinheit['ort'][0];
echo '&grp='.$addons;
echo "','Details', 'height=320,width=550,left=0,top=0,hotkeys=0,resizable=yes,status=no,scrollbars=no,toolbar=no,location=no,menubar=no,dependent=yes');return false;";
echo '" title="'.$this->convert_html_chars($uEinheit['titel'][0]).'" ';
echo ' href="#">';