Ejemplo n.º 1
0
 *
 * 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: Andreas Oesterreicher <*****@*****.**>
 */
require_once '../config/vilesci.config.inc.php';
require_once '../include/rdf.class.php';
require_once '../include/dokument.class.php';
$oRdf = new rdf('DOKUMENTTYP', 'http://www.technikum-wien.at/dokumenttyp');
$oRdf->sendHeader();
$dokumente = new dokument();
$dokumente->getAllDokumente();
foreach ($dokumente->result as $row) {
    $i = $oRdf->newObjekt($row->dokument_kurzbz);
    $oRdf->obj[$i]->setAttribut('dokument_kurzbz', $row->dokument_kurzbz, true);
    $oRdf->obj[$i]->setAttribut('bezeichnung', $row->bezeichnung, true);
    $oRdf->addSequence($row->dokument_kurzbz);
}
$oRdf->sendRdfText();
 * 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: Andreas Österreicher <*****@*****.**>
 */
require_once '../config/vilesci.config.inc.php';
require_once '../include/rdf.class.php';
require_once '../include/mantis.class.php';
if (!isset($_GET['project_id'])) {
    die('Missing Parameter: Project_id');
}
$project_id = $_GET['project_id'];
$oRdf = new rdf('MANTIS_CATEGORIES', 'http://www.technikum-wien.at/mantis_categories');
$oRdf->sendHeader();
$mantis = new mantis();
if ($mantis->getCategories($project_id)) {
    foreach ($mantis->result as $row) {
        $i = $oRdf->newObjekt($row->issue_category);
        $oRdf->obj[$i]->setAttribut('category', $row->issue_category, true);
        $oRdf->addSequence($row->issue_category);
    }
} else {
    echo $mantis->errormsg;
}
$oRdf->sendRdfText();
Ejemplo n.º 3
0
 /**
  * Constructor
  * @param text $store_name : Préfixe utilisé pour les tables de stockage du schéma rdf
  * @return void
  */
 public function __construct($store_name = "", $config = array())
 {
     parent::__construct($store_name, $config);
 }
Ejemplo n.º 4
0
 * 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 <*****@*****.**>
 */
require_once '../config/vilesci.config.inc.php';
require_once '../include/rdf.class.php';
require_once '../include/basis_db.class.php';
$oRdf = new rdf('BETREUERART', 'http://www.technikum-wien.at/betreuerart');
$oRdf->sendHeader();
$qry = "SELECT * FROM lehre.tbl_betreuerart ORDER BY betreuerart_kurzbz";
$db = new basis_db();
if ($db->db_query($qry)) {
    while ($row = $db->db_fetch_object()) {
        $i = $oRdf->newObjekt($row->betreuerart_kurzbz);
        //$oRdf->obj[$i]->setAttribut('id',$row->betreuerart_kurzbz,false);
        $oRdf->obj[$i]->setAttribut('betreuerart_kurzbz', $row->betreuerart_kurzbz, true);
        $oRdf->obj[$i]->setAttribut('beschreibung', $row->beschreibung, true);
        $oRdf->addSequence($row->betreuerart_kurzbz);
    }
}
$oRdf->sendRdfText();
}
$vertrag = new vertrag();
if (isset($_GET['person_id'])) {
    $person_id = $_GET['person_id'];
    if (!$vertrag->loadNichtZugeordnet($person_id)) {
        die('Fehlgeschlagen:' . $vertrag->errormsg);
    }
} elseif (isset($_GET['vertrag_id'])) {
    $vertrag_id = $_GET['vertrag_id'];
    if (!$vertrag->loadZugeordnet($vertrag_id)) {
        die('Fehlgeschlagen:' . $vertrag->errormsg);
    }
} else {
    die('Fehlerhafte Parameterübergabe');
}
$oRdf = new rdf('VER', 'http://www.technikum-wien.at/vertragdetails');
$oRdf->sendHeader();
foreach ($vertrag->result as $row) {
    switch ($row->type) {
        case 'Lehrauftrag':
            $key = $row->type . '/' . $row->studiensemester_kurzbz . '/' . $row->lehreinheit_id . '/' . $row->mitarbeiter_uid;
            break;
        case 'Pruefung':
            $key = $row->type . '/' . $row->pruefung_id;
            break;
        case 'Betreuung':
            $key = $row->type . '/' . $row->mitarbeiter_uid . '/' . $row->projektarbeit_id . '/' . $row->betreuerart_kurzbz;
            break;
        default:
            $key = 'unknowntype';
    }
Ejemplo n.º 6
0
 * 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 <*****@*****.**>
 */
require_once '../config/vilesci.config.inc.php';
require_once '../include/rdf.class.php';
require_once '../include/basis_db.class.php';
$oRdf = new rdf('AUFWANDSTYP', 'http://www.technikum-wien.at/aufwandstyp');
$oRdf->sendHeader();
$qry = "SELECT * FROM fue.tbl_aufwandstyp ORDER BY bezeichnung";
$db = new basis_db();
if ($db->db_query($qry)) {
    while ($row = $db->db_fetch_object()) {
        $i = $oRdf->newObjekt($row->aufwandstyp_kurzbz);
        $oRdf->obj[$i]->setAttribut('aufwandstyp_kurzbz', $row->aufwandstyp_kurzbz, true);
        $oRdf->obj[$i]->setAttribut('bezeichnung', $row->bezeichnung, true);
        $oRdf->addSequence($row->aufwandstyp_kurzbz);
    }
}
$oRdf->sendRdfText();
Ejemplo n.º 7
0
$rechte = new benutzerberechtigung();
$rechte->getBerechtigungen($user);
if (!$rechte->isBerechtigt('buchung/mitarbeiter')) {
    die('Sie haben keine Berechtigung für diese Seite');
}
if (isset($_GET['person_id'])) {
    $person_id = $_GET['person_id'];
} else {
    $person_id = null;
}
if (isset($_GET['buchung_id'])) {
    $buchung_id = $_GET['buchung_id'];
} else {
    $buchung_id = null;
}
$oRdf = new rdf('BUCHUNG', 'http://www.technikum-wien.at/wawi_buchung');
$oRdf->sendHeader();
$datum = new datum();
// Alle Buchungstypen laden
$buchungstypen = array();
$buchungstyp = new buchung();
$buchungstyp->getAllBuchungstypen();
foreach ($buchungstyp->result as $row) {
    $buchungstypen[$row->buchungstyp_kurzbz] = $row->buchungstyp_bezeichnung;
}
// Alle Konten laden
$konten = array();
$konto = new wawi_konto();
$konto->getAll();
foreach ($konto->result as $row) {
    $konten[$row->konto_id] = $row->beschreibung[DEFAULT_LANGUAGE];
        $qry .= " AND semester=" . $db->db_add_param($sem);
    }
    if ($orgform != '') {
        $qry .= " AND (orgform_kurzbz=" . $db->db_add_param($orgform) . " OR orgform_kurzbz is null)";
    }
    if (count($stp_ids) > 0) {
        // Ohne die vom Studienplan, da diese sonst doppelt sind
        $qry .= " AND NOT EXISTS (SELECT 1 FROM lehre.tbl_studienplan_lehrveranstaltung where studienplan_id in (" . $db->db_implode4SQL($stp_ids) . ")\n\t\t\t\t\t\t\t\tAND lehrveranstaltung_id=tbl_lehrveranstaltung.lehrveranstaltung_id AND tbl_lehrveranstaltung.aktiv)";
    }
    //$qry = 'SELECT distinct on(lehrveranstaltung_id) * FROM ('.$qry.' ORDER BY studienplan_id DESC) a';
}
// die($qry);
if (!($result = $db->db_query($qry))) {
    die($db->db_last_error() . '<BR>' . $qry);
}
$oRdf = new rdf('LVA', 'http://www.technikum-wien.at/lehrveranstaltung_einheiten');
$oRdf->sendHeader();
//foreach ($lvaDAO->lehrveranstaltungen as $row_lva)
while ($row_lva = $db->db_fetch_object($result)) {
    //Fachbereichskoordinatoren laden
    $qry_fbk = "SELECT kurzbz FROM public.tbl_mitarbeiter LEFT JOIN public.tbl_benutzer ON(uid=mitarbeiter_uid) WHERE tbl_benutzer.aktiv AND mitarbeiter_uid =\n\t\t\t\t\t\t(\n\t\t\t\t\t\tSELECT \n\t\t\t\t\t\t\tCOALESCE(tbl_lehrveranstaltung.koordinator, uid) as koordinator\n\t\t\t\t\t\tFROM\n\t\t\t\t\t\t\tlehre.tbl_lehrveranstaltung, lehre.tbl_lehreinheit, lehre.tbl_lehrveranstaltung as lehrfach, public.tbl_benutzerfunktion, public.tbl_studiensemester, public.tbl_studiengang, public.tbl_fachbereich\n\t\t\t\t\t\tWHERE\n\t\t\t\t\t\t\ttbl_lehrveranstaltung.lehrveranstaltung_id=" . $db->db_add_param($row_lva->lehrveranstaltung_id) . " AND\n\t\t\t\t\t\t\ttbl_lehrveranstaltung.lehrveranstaltung_id=tbl_lehreinheit.lehrveranstaltung_id AND\n\t\t\t\t\t\t\ttbl_lehreinheit.lehrfach_id=lehrfach.lehrveranstaltung_id AND\n\t\t\t\t\t\t\tlehrfach.oe_kurzbz=tbl_fachbereich.oe_kurzbz AND\n\t\t\t\t\t\t\ttbl_fachbereich.fachbereich_kurzbz=tbl_benutzerfunktion.fachbereich_kurzbz AND\n\t\t\t\t\t\t\ttbl_benutzerfunktion.funktion_kurzbz='fbk' AND \n\t\t\t\t\t\t\ttbl_lehreinheit.studiensemester_kurzbz=tbl_studiensemester.studiensemester_kurzbz AND\n\t\t\t\t\t\t\ttbl_benutzerfunktion.oe_kurzbz=tbl_studiengang.oe_kurzbz AND\n\t\t\t\t\t\t\t(tbl_benutzerfunktion.datum_von is null OR tbl_benutzerfunktion.datum_von<=now()) AND\n\t\t\t\t\t\t\t(tbl_benutzerfunktion.datum_bis is null OR tbl_benutzerfunktion.datum_bis>=now()) AND\n\t\t\t\t\t\t\ttbl_studiengang.studiengang_kz=tbl_lehrveranstaltung.studiengang_kz ORDER BY tbl_studiensemester.ende DESC LIMIT 1 ) ";
    if (!($result_fbk = $db->db_query($qry_fbk))) {
        die('Fehlerhafte Abfrage');
    }
    $fbk = '';
    while ($row_fbk = $db->db_fetch_object($result_fbk)) {
        $fbk .= $row_fbk->kurzbz . ' ';
    }
    if ($fbk != '') {
        $fbk = 'Koordinator: ' . $fbk;
    }
 * 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: Andreas Österreicher <*****@*****.**>
 */
require_once '../config/vilesci.config.inc.php';
require_once '../include/rdf.class.php';
require_once '../include/mantis.class.php';
require_once '../include/functions.inc.php';
get_uid();
$oRdf = new rdf('MANTIS_PROJECT', 'http://www.technikum-wien.at/mantis_project');
$oRdf->sendHeader();
$mantis = new mantis();
$mantis->getProjects();
foreach ($mantis->result as $row) {
    $i = $oRdf->newObjekt($row->issue_project->id);
    $oRdf->obj[$i]->setAttribut('id', $row->issue_project->id, true);
    $oRdf->obj[$i]->setAttribut('name', $row->issue_project->name, true);
    $oRdf->addSequence($row->issue_project->id);
}
$oRdf->sendRdfText();
Ejemplo n.º 10
0
 *
 * 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 <*****@*****.**>
 * 			Karl Burkhart <*****@*****.**>
 */
require_once '../config/vilesci.config.inc.php';
require_once '../include/functions.inc.php';
require_once '../include/benutzerberechtigung.class.php';
require_once '../include/projekt.class.php';
require_once '../include/projektphase.class.php';
require_once '../include/rdf.class.php';
require_once '../include/datum.class.php';
$oRdf = new rdf('PROJEKTPHASE', 'http://www.technikum-wien.at/projektphase');
$oRdf->sendHeader();
$datum_obj = new datum();
$projektphase_id = isset($_GET['projektphase_id']) ? $_GET['projektphase_id'] : '';
$projekt_kurzbz = isset($_GET['projekt_kurzbz']) ? $_GET['projekt_kurzbz'] : '';
if ($projektphase_id != '') {
    $phase = new projektphase();
    $timestamp = time();
    $timestamp = date('Y-m-d');
    if (!$phase->load($projektphase_id)) {
        die('Fehler beim Laden der Phase');
    }
    $ergebnis = $phase->getFortschritt($projektphase_id);
    $i = $oRdf->newObjekt($phase->projektphase_id);
    // hat phase schon begonnen
    if ($timestamp <= $phase->start || $phase->start == '') {
 *
 * 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: Andreas Österreicher <*****@*****.**>
 */
require_once '../config/vilesci.config.inc.php';
require_once '../include/rdf.class.php';
require_once '../include/wawi_kostenstelle.class.php';
require_once '../include/functions.inc.php';
require_once '../include/benutzerberechtigung.class.php';
$uid = get_uid();
$rechte = new benutzerberechtigung();
$rechte->getBerechtigungen($uid);
if (!$rechte->isBerechtigt('buchung/mitarbeiter')) {
    die('Sie haben keine Berechtigung für diese Seite');
}
$oRdf = new rdf('KST', 'http://www.technikum-wien.at/wawi_kostenstelle');
$oRdf->sendHeader();
$kst = new wawi_kostenstelle();
$kst->getAll();
foreach ($kst->result as $row) {
    $i = $oRdf->newObjekt($row->kostenstelle_id);
    $oRdf->obj[$i]->setAttribut('kostenstelle_id', $row->kostenstelle_id, true);
    $oRdf->obj[$i]->setAttribut('bezeichnung', $row->bezeichnung, true);
    $oRdf->obj[$i]->setAttribut('kurzbz', $row->kurzbz, true);
    $oRdf->obj[$i]->setAttribut('aktiv', $row->aktiv ? 'true' : 'false', true);
    $oRdf->addSequence($row->kostenstelle_id);
}
$oRdf->sendRdfText();
Ejemplo n.º 12
0
 * 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 <*****@*****.**>
 */
require_once '../config/vilesci.config.inc.php';
require_once '../include/rdf.class.php';
require_once '../include/wawi_bestellung.class.php';
if (isset($_GET['projektKurzbz'])) {
    $projektKurzbz = $_GET['projektKurzbz'];
    $oRdf = new rdf('BESTELLUNG', 'http://www.technikum-wien.at/bestellung');
    $oRdf->sendHeader();
    $oBestellung = new wawi_bestellung();
    $oBestellung->getBestellungProjekt($projektKurzbz);
    foreach ($oBestellung->result as $bestellung) {
        $brutto = $bestellung->getBrutto($bestellung->bestellung_id);
        if ($brutto == '') {
            $brutto = '0';
        } else {
            $brutto = sprintf("%01.2f", $brutto);
        }
        $i = $oRdf->newObjekt($bestellung->bestellung_id);
        $oRdf->obj[$i]->setAttribut('bestellung_id', $bestellung->bestellung_id, false);
        $oRdf->obj[$i]->setAttribut('kostenstelle_id', $bestellung->kostenstelle_id, false);
        $oRdf->obj[$i]->setAttribut('konto_id', $bestellung->konto_id, false);
        $oRdf->obj[$i]->setAttribut('lieferadresse', $bestellung->lieferadresse, true);
require_once '../include/rdf.class.php';
require_once '../include/basis_db.class.php';
require_once '../include/betriebsmittel.class.php';
require_once '../include/benutzerberechtigung.class.php';
require_once '../include/datum.class.php';
require_once '../include/stunde.class.php';
require_once '../include/mitarbeiter.class.php';
$datum_obj = new datum();
if (isset($_REQUEST['stundenplan_ids']) || isset($_REQUEST['stundenplan_betriebsmittel_id'])) {
    $uid = get_uid();
    $rechte = new benutzerberechtigung();
    $rechte->getBerechtigungen($uid);
    if (!$rechte->isBerechtigt('lehre/lvplan')) {
        die('Sie haben keine Berechtigung (lvplan)');
    }
    $oRdf = new rdf('STUNDENPLANBETRIEBSMITTEL', 'http://www.technikum-wien.at/stundenplanbetriebsmittel');
    $oRdf->sendHeader();
    $betriebsmittel = new betriebsmittel();
    if (isset($_REQUEST['stundenplan_ids'])) {
        $stundenplan_ids = $_REQUEST['stundenplan_ids'];
        if ($betriebsmittel->getBetriebsmittelStundenplan($stundenplan_ids)) {
            if (count($betriebsmittel->result) > 0) {
                foreach ($betriebsmittel->result as $row) {
                    $i = $oRdf->newObjekt($row->stundenplan_betriebsmittel_id);
                    $oRdf->obj[$i]->setAttribut('stundenplan_betriebsmittel_id', $row->stundenplan_betriebsmittel_id, true);
                    $oRdf->obj[$i]->setAttribut('beschreibung', $row->beschreibung, true);
                    $oRdf->obj[$i]->setAttribut('betriebsmittel_id', $row->betriebsmittel_id, true);
                    $oRdf->obj[$i]->setAttribut('anmerkung', $row->anmerkung, true);
                    $oRdf->obj[$i]->setAttribut('stunde', $row->stunde, true);
                    $oRdf->addSequence($row->stundenplan_betriebsmittel_id);
                }
Ejemplo n.º 14
0
//zum Testen, ansonsten null
if (isset($_GET['projektphase_id'])) {
    if (isset($_GET['filter'])) {
        $projektphase_id = $_GET['projektphase_id'];
        $filter = $_GET['filter'];
        $projekttask_obj->getProjekttasks($projektphase_id, null, $filter);
    } else {
        $projektphase_id = $_GET['projektphase_id'];
        $projekttask_obj->getProjekttasks($projektphase_id);
    }
}
if (isset($_GET['projekttask_id'])) {
    $projekttask_obj->load($_GET['projekttask_id']);
    $projekttask_obj->result[] = $projekttask_obj;
}
$oRdf = new rdf('PROJEKTTASK', 'http://www.technikum-wien.at/projekttask');
$oRdf->sendHeader();
$lastPT = null;
foreach ($projekttask_obj->result as $projekttask) {
    $i = $oRdf->newObjekt($projekttask->projekttask_id);
    $oRdf->obj[$i]->setAttribut('projekttask_id', $projekttask->projekttask_id);
    $oRdf->obj[$i]->setAttribut('projektphase_id', $projekttask->projektphase_id);
    $oRdf->obj[$i]->setAttribut('bezeichnung', $projekttask->bezeichnung);
    $oRdf->obj[$i]->setAttribut('beschreibung', $projekttask->beschreibung);
    $oRdf->obj[$i]->setAttribut('aufwand', $projekttask->aufwand);
    $oRdf->obj[$i]->setAttribut('mantis_id', $projekttask->mantis_id);
    $oRdf->obj[$i]->setAttribut('scrumsprint_id', $projekttask->scrumsprint_id);
    $oRdf->obj[$i]->setAttribut('erledigt', $projekttask->erledigt ? 'true' : 'false');
    $oRdf->obj[$i]->setAttribut('projekttask_fk', $projekttask->projekttask_fk);
    $ressource_bezeichnung = '-';
    if ($projekttask->ressource_id != '') {