Files
FHC-Core/content/lvplanung/stpl-semester-overlay.js.php
T
2010-03-04 08:13:37 +00:00

48 lines
1.9 KiB
PHP

<?php
/* Copyright (C) 2006 Technikum-Wien
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
*
* Authors: Christian Paminger <christian.paminger@technikum-wien.at>,
* Andreas Oesterreicher <andreas.oesterreicher@technikum-wien.at> and
* Rudolf Hangl <rudolf.hangl@technikum-wien.at>.
*/
?>
// SemesterPlan aktualisieren
function onSTPLSemesterRefresh()
{
// Welche Ansicht ist aktiv?
var semesterplan=document.getElementById('tabpanels-left');
var panelIndex=semesterplan.getAttribute("selectedIndex");
if (panelIndex==0)
onVerbandSelect();
else if (panelIndex==1)
onOrtSelect();
else if (panelIndex==2)
onLektorSelect();
}
// SemesterPlan drucken
function onSTPLSemesterPrint()
{
// Wie ist gerade die Source vom iFrame
var iframeTimeTableSemester=document.getElementById('iframeTimeTableSemester');
var iframeTimeTableSemesterSource=iframeTimeTableSemester.getAttribute("src");
var src=iframeTimeTableSemesterSource.replace("content/lvplanung/timetable-week.xul.php","cis/private/lvplan/stpl_kalender.php");
src=src+'&db_stpl_table='+document.getElementById('statusbarpanel-db_table').label;
var newWindow=window.open(src, "subWindowTimeTableSemester","");
}