mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 00:24:35 +00:00
This commit is contained in:
@@ -1,4 +1,24 @@
|
||||
<?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 <[email protected]>,
|
||||
* Andreas Oesterreicher <[email protected]> and
|
||||
* Rudolf Hangl <[email protected]>.
|
||||
*/
|
||||
header("Cache-Control: no-cache");
|
||||
header("Cache-Control: post-check=0, pre-check=0",false);
|
||||
header("Expires Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
@@ -107,12 +127,12 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';
|
||||
</menulist>
|
||||
<label value="Sprache" control="mitarbeiter-detail-menulist-sprache" />
|
||||
<menulist id="mitarbeiter-detail-menulist-sprache" disabled="true"
|
||||
datasources="<?php echo APP_ROOT ?>rdf/sprache.rdf.php" flex="1"
|
||||
datasources="<?php echo APP_ROOT ?>rdf/sprache.rdf.php?optional=true" flex="1"
|
||||
ref="http://www.technikum-wien.at/sprachen/liste" >
|
||||
<template>
|
||||
<menupopup>
|
||||
<menuitem value="rdf:http://www.technikum-wien.at/sprachen/rdf#bezeichnung"
|
||||
label="rdf:http://www.technikum-wien.at/sprachen/rdf#bezeichnung"
|
||||
label="rdf:http://www.technikum-wien.at/sprachen/rdf#anzeigename"
|
||||
uri="rdf:*"/>
|
||||
</menupopup>
|
||||
</template>
|
||||
|
||||
@@ -1,4 +1,24 @@
|
||||
<?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 <[email protected]>,
|
||||
* Andreas Oesterreicher <[email protected]> and
|
||||
* Rudolf Hangl <[email protected]>.
|
||||
*/
|
||||
header("Cache-Control: no-cache");
|
||||
header("Cache-Control: post-check=0, pre-check=0",false);
|
||||
header("Expires Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
|
||||
@@ -233,59 +233,49 @@ function onMitarbeiterSelect()
|
||||
if (filter=="Studiengangsleiter")
|
||||
{
|
||||
attributes+="&stgl=true";
|
||||
document.getElementById('mitarbeiter-toolbar-neu').disabled=true;
|
||||
}
|
||||
if (filter=="Fachbereichsleiter")
|
||||
{
|
||||
attributes+="&fbl=true";
|
||||
document.getElementById('mitarbeiter-toolbar-neu').disabled=true;
|
||||
}
|
||||
if (filter=="Alle")
|
||||
{
|
||||
attributes+="&alle=true";
|
||||
document.getElementById('mitarbeiter-toolbar-neu').disabled=false;
|
||||
}
|
||||
if (filter=="Aktive")
|
||||
{
|
||||
attributes+="&aktiv=true";
|
||||
document.getElementById('mitarbeiter-toolbar-neu').disabled=false;
|
||||
}
|
||||
if (filter=="FixAngestellte")
|
||||
{
|
||||
attributes+="&fix=true&aktiv=true";
|
||||
document.getElementById('mitarbeiter-toolbar-neu').disabled=false;
|
||||
}
|
||||
if (filter=="FixAngestellteAlle")
|
||||
{
|
||||
attributes+="&fix=true";
|
||||
document.getElementById('mitarbeiter-toolbar-neu').disabled=false;
|
||||
}
|
||||
if (filter=="Inaktive")
|
||||
{
|
||||
attributes+="&aktiv=false";
|
||||
document.getElementById('mitarbeiter-toolbar-neu').disabled=true;
|
||||
}
|
||||
if (filter=="Karenziert")
|
||||
{
|
||||
attributes+="&karenziert=true";
|
||||
document.getElementById('mitarbeiter-toolbar-neu').disabled=true;
|
||||
}
|
||||
if (filter=="Ausgeschieden")
|
||||
{
|
||||
attributes+="&ausgeschieden=true";
|
||||
document.getElementById('mitarbeiter-toolbar-neu').disabled=true;
|
||||
}
|
||||
if (filter=="FreiAngestellte")
|
||||
{
|
||||
attributes+="&fix=false&aktiv=true";
|
||||
document.getElementById('mitarbeiter-toolbar-neu').disabled=false;
|
||||
}
|
||||
if (filter=="FreiAngestellteAlle")
|
||||
{
|
||||
attributes+="&fix=false";
|
||||
document.getElementById('mitarbeiter-toolbar-neu').disabled=false;
|
||||
}
|
||||
|
||||
document.getElementById('mitarbeiter-toolbar-neu').disabled=false;
|
||||
//Timestamp anhaengen da beim Laden von Zwischengespeicherten Dateien kein
|
||||
//Observer Event ausgeloest wird.
|
||||
url+=attributes+'&'+gettimestamp();
|
||||
@@ -813,6 +803,40 @@ function MitarbeiterDetailgetSpaltenname(id)
|
||||
if(id=='mitarbeiter-treecol-fixangestellt') return 'fixangestellt';
|
||||
if(id=='mitarbeiter-treecol-lektor') return 'lektor';
|
||||
}
|
||||
|
||||
function MitarbeiterSendMail()
|
||||
{
|
||||
mailempfaenger='';
|
||||
var treeMitarbeiter=document.getElementById('mitarbeiter-tree');
|
||||
var numRanges = treeMitarbeiter.view.selection.getRangeCount();
|
||||
var start = new Object();
|
||||
var end = new Object();
|
||||
var anzfault=0;
|
||||
//Markierte Datensaetze holen
|
||||
for (var t=0; t<numRanges; t++)
|
||||
{
|
||||
treeMitarbeiter.view.selection.getRangeAt(t,start,end);
|
||||
for (v=start.value; v<=end.value; v++)
|
||||
{
|
||||
var col = treeMitarbeiter.columns ? treeMitarbeiter.columns["mitarbeiter-treecol-uid"] : "mitarbeiter-treecol-uid";
|
||||
if(treeMitarbeiter.view.getCellText(v,col).length>1)
|
||||
{
|
||||
if(mailempfaenger!='')
|
||||
mailempfaenger=mailempfaenger+','+treeMitarbeiter.view.getCellText(v,col)+'@technikum-wien.at';
|
||||
else
|
||||
mailempfaenger='mailto:'+treeMitarbeiter.view.getCellText(v,col)+'@technikum-wien.at';
|
||||
}
|
||||
else
|
||||
{
|
||||
anzfault=anzfault+1;
|
||||
}
|
||||
}
|
||||
}
|
||||
if(anzfault!=0)
|
||||
alert(anzfault+' Mitarbeiter konnten nicht hinzugefuegt werden weil keine UID eingetragen ist!');
|
||||
window.location.href=mailempfaenger;
|
||||
}
|
||||
|
||||
// ***************** VERWENDUNG ********************** //
|
||||
|
||||
// ****
|
||||
|
||||
@@ -45,7 +45,11 @@ echo '<?xul-overlay href="'.APP_ROOT.'content/mitarbeiter/mitarbeiterfunktionove
|
||||
<!-- * MITARBEITER * -->
|
||||
<!-- **************** -->
|
||||
<vbox id="MitarbeiterEditor" persist="height">
|
||||
|
||||
<popupset>
|
||||
<popup id="mitarbeiter-tree-popup">
|
||||
<menuitem label="EMail versenden" oncommand="MitarbeiterSendMail();" id="mitarbeiter-tree-popup-mail" hidden="false"/>
|
||||
</popup>
|
||||
</popupset>
|
||||
<hbox>
|
||||
<toolbox flex="1">
|
||||
<toolbar id="mitarbeiter-nav-toolbar">
|
||||
@@ -67,7 +71,8 @@ echo '<?xul-overlay href="'.APP_ROOT.'content/mitarbeiter/mitarbeiterfunktionove
|
||||
flags="dont-build-content"
|
||||
enableColumnDrag="true"
|
||||
style="margin:0px;"
|
||||
persist="hidden, height"
|
||||
persist="hidden, height"
|
||||
context="mitarbeiter-tree-popup"
|
||||
>
|
||||
<treecols>
|
||||
<treecol id="mitarbeiter-treecol-uid" label="UID" flex="1" persist="hidden, width" hidden="false"
|
||||
|
||||
@@ -1,4 +1,24 @@
|
||||
<?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 <[email protected]>,
|
||||
* Andreas Oesterreicher <[email protected]> and
|
||||
* Rudolf Hangl <[email protected]>.
|
||||
*/
|
||||
header("Cache-Control: no-cache");
|
||||
header("Cache-Control: post-check=0, pre-check=0",false);
|
||||
header("Expires Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
|
||||
Reference in New Issue
Block a user