mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 12:19:28 +00:00
Merge Praktikant into Master
This commit is contained in:
@@ -2,3 +2,6 @@
|
||||
/nbproject/
|
||||
/.idea/
|
||||
documents/
|
||||
.settings
|
||||
.project
|
||||
.buildpath
|
||||
+410
-136
@@ -24,6 +24,7 @@
|
||||
|
||||
// Oberflaeche zum Upload von Bildern
|
||||
|
||||
session_cache_limiter('none'); //muss gesetzt werden damit der upload in chrome und das automatische updaten des profilbildes funktioniert
|
||||
require_once('../../config/cis.config.inc.php');
|
||||
require_once('../../include/functions.inc.php');
|
||||
require_once('../../include/person.class.php');
|
||||
@@ -41,6 +42,15 @@ echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link href="../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
<link rel="stylesheet" type="text/css" href="../../skin/jquery-ui.css">
|
||||
<link rel="stylesheet" type="text/css" href="../../jquery.Jcrop.css">
|
||||
<link rel="stylesheet" type="text/css" href="../../skin/simplecropper.css">'.
|
||||
cropCss().'
|
||||
<script type="text/javascript" src="../../include/js/jquery.js"></script>
|
||||
<script type="text/javascript" src="../../include/js/jquery.min.1.11.1.js"></script>
|
||||
<script type="text/javascript" src="../../include/js/jquery.Jcrop.js"></script>
|
||||
<script type="text/javascript" src="../../include/js/jquery.SimpleCropper.js"></script>
|
||||
<script type="text/javascript" src="../../include/js/cropper.js"></script>
|
||||
<title>'.$p->t('profil/Bildupload').'</title>
|
||||
</head>
|
||||
<body>
|
||||
@@ -48,37 +58,38 @@ echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www
|
||||
|
||||
function resize($filename, $width, $height)
|
||||
{
|
||||
$ext = explode('.',$_FILES['bild']['name']);
|
||||
$ext = strtolower($ext[count($ext)-1]);
|
||||
|
||||
// Hoehe und Breite neu berechnen
|
||||
list($width_orig, $height_orig) = getimagesize($filename);
|
||||
|
||||
if ($width && ($width_orig < $height_orig))
|
||||
{
|
||||
$width = ($height / $height_orig) * $width_orig;
|
||||
}
|
||||
else
|
||||
{
|
||||
$height = ($width / $width_orig) * $height_orig;
|
||||
}
|
||||
$ext = explode('.',$_FILES['bild']['name']);
|
||||
$ext = strtolower($ext[count($ext)-1]);
|
||||
|
||||
$image_p = imagecreatetruecolor($width, $height);
|
||||
// Hoehe und Breite neu berechnen
|
||||
list($width_orig, $height_orig) = getimagesize($filename);
|
||||
|
||||
if ($width && ($width_orig < $height_orig))
|
||||
{
|
||||
$width = ($height / $height_orig) * $width_orig;
|
||||
}
|
||||
else
|
||||
{
|
||||
$height = ($width / $width_orig) * $height_orig;
|
||||
}
|
||||
|
||||
$image_p = imagecreatetruecolor($width, $height);
|
||||
|
||||
$image = imagecreatefromjpeg($filename);
|
||||
|
||||
//Bild nur verkleinern aber nicht vergroessern
|
||||
if($width_orig>$width || $height_orig>$height)
|
||||
imagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height, $width_orig, $height_orig);
|
||||
else
|
||||
$image_p = $image;
|
||||
|
||||
$image = imagecreatefromjpeg($filename);
|
||||
|
||||
//Bild nur verkleinern aber nicht vergroessern
|
||||
if($width_orig>$width || $height_orig>$height)
|
||||
imagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height, $width_orig, $height_orig);
|
||||
else
|
||||
$image_p = $image;
|
||||
|
||||
imagejpeg($image_p, $filename, 80);
|
||||
|
||||
@imagedestroy($image_p);
|
||||
@imagedestroy($image);
|
||||
imagejpeg($image_p, $filename, 80);
|
||||
|
||||
@imagedestroy($image_p);
|
||||
@imagedestroy($image);
|
||||
}
|
||||
|
||||
|
||||
if(isset($_GET['person_id']))
|
||||
{
|
||||
$benutzer = new benutzer();
|
||||
@@ -94,133 +105,396 @@ if(isset($_GET['person_id']))
|
||||
else
|
||||
die($p->t('global/fehlerBeiDerParameteruebergabe'));
|
||||
|
||||
//Bei Upload des Bildes
|
||||
if(isset($_POST['submitbild']))
|
||||
{
|
||||
if(isset($_FILES['bild']['tmp_name']))
|
||||
{
|
||||
//Extension herausfiltern
|
||||
$ext = explode('.',$_FILES['bild']['name']);
|
||||
$ext = mb_strtolower($ext[count($ext)-1]);
|
||||
echo '<br>';
|
||||
echo $p->t('profil/BilduploadInfotext',array($p->t('dms_link/bildRichtlinien'))).'<br><br>';
|
||||
//<form accept-charset="UTF-8" method="POST" enctype="multipart/form-data" action="'.$_SERVER['PHP_SELF'].'?person_id='.$_GET['person_id'].'">
|
||||
//'.$p->t('profil/Bild').': <input type="file" name="bild" />
|
||||
//<input type="submit" id="uploadbutton" name="submitbild" value="Upload" />
|
||||
//<input type="submit" id="editbutton" name="submitbild" value="Bild bearbeiten" />
|
||||
//</form>
|
||||
echo '<div class="simple-cropper-images">
|
||||
'.$p->t('profil/fotoAuswählen').'
|
||||
<div class="cropme" id="croppingdiv" style="width: 300px; height: 400px; background-image:url(photoupload.png); margin:10px; cursor:pointer;"></div>
|
||||
<script>
|
||||
// Init Simple Cropper
|
||||
$(".cropme").simpleCropper();
|
||||
</script>
|
||||
</div>
|
||||
<input type="button" name="submitbild" id="saveimgbutton" value="Bild speichern" style="margin-left:90px;"/>
|
||||
<input type="hidden" id="person_id" value="'.$_GET['person_id'].'" />';
|
||||
|
||||
$width=101;
|
||||
$height=130;
|
||||
if (isset($_POST['src'])) {
|
||||
$src = $_POST['src'];
|
||||
echo $src;
|
||||
}
|
||||
|
||||
function cropCss() {
|
||||
return '
|
||||
<style type="text/css">
|
||||
/* jquery.Jcrop.css v0.9.12 - MIT License */
|
||||
/*
|
||||
The outer-most container in a typical Jcrop instance
|
||||
If you are having difficulty with formatting related to styles
|
||||
on a parent element, place any fixes here or in a like selector
|
||||
|
||||
//--check that it's a jpeg
|
||||
if ($ext=='jpg' || $ext=='jpeg')
|
||||
{
|
||||
$filename = $_FILES['bild']['tmp_name'];
|
||||
You can also style this element if you want to add a border, etc
|
||||
A better method for styling can be seen below with .jcrop-light
|
||||
(Add a class to the holder and style elements for that extended class)
|
||||
*/
|
||||
.jcrop-holder {
|
||||
direction: ltr;
|
||||
text-align: left;
|
||||
}
|
||||
/* Selection Border */
|
||||
.jcrop-vline,
|
||||
.jcrop-hline {
|
||||
background: #ffffff url("../images/Jcrop.gif");
|
||||
font-size: 0;
|
||||
position: absolute;
|
||||
}
|
||||
.jcrop-vline {
|
||||
height: 100%;
|
||||
width: 1px !important;
|
||||
}
|
||||
.jcrop-vline.right {
|
||||
right: 0;
|
||||
}
|
||||
.jcrop-hline {
|
||||
height: 1px !important;
|
||||
width: 100%;
|
||||
}
|
||||
.jcrop-hline.bottom {
|
||||
bottom: 0;
|
||||
}
|
||||
/* Invisible click targets */
|
||||
.jcrop-tracker {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
/* "turn off" link highlight */
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
/* disable callout, image save panel */
|
||||
-webkit-touch-callout: none;
|
||||
/* disable cut copy paste */
|
||||
-webkit-user-select: none;
|
||||
}
|
||||
/* Selection Handles */
|
||||
.jcrop-handle {
|
||||
background-color: #333333;
|
||||
border: 1px #eeeeee solid;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
font-size: 1px;
|
||||
}
|
||||
.jcrop-handle.ord-n {
|
||||
left: 50%;
|
||||
margin-left: -4px;
|
||||
margin-top: -4px;
|
||||
top: 0;
|
||||
}
|
||||
.jcrop-handle.ord-s {
|
||||
bottom: 0;
|
||||
left: 50%;
|
||||
margin-bottom: -4px;
|
||||
margin-left: -4px;
|
||||
}
|
||||
.jcrop-handle.ord-e {
|
||||
margin-right: -4px;
|
||||
margin-top: -4px;
|
||||
right: 0;
|
||||
top: 50%;
|
||||
}
|
||||
.jcrop-handle.ord-w {
|
||||
left: 0;
|
||||
margin-left: -4px;
|
||||
margin-top: -4px;
|
||||
top: 50%;
|
||||
}
|
||||
.jcrop-handle.ord-nw {
|
||||
left: 0;
|
||||
margin-left: -4px;
|
||||
margin-top: -4px;
|
||||
top: 0;
|
||||
}
|
||||
.jcrop-handle.ord-ne {
|
||||
margin-right: -4px;
|
||||
margin-top: -4px;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
.jcrop-handle.ord-se {
|
||||
bottom: 0;
|
||||
margin-bottom: -4px;
|
||||
margin-right: -4px;
|
||||
right: 0;
|
||||
}
|
||||
.jcrop-handle.ord-sw {
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
margin-bottom: -4px;
|
||||
margin-left: -4px;
|
||||
}
|
||||
/* Dragbars */
|
||||
.jcrop-dragbar.ord-n,
|
||||
.jcrop-dragbar.ord-s {
|
||||
height: 7px;
|
||||
width: 100%;
|
||||
}
|
||||
.jcrop-dragbar.ord-e,
|
||||
.jcrop-dragbar.ord-w {
|
||||
height: 100%;
|
||||
width: 7px;
|
||||
}
|
||||
.jcrop-dragbar.ord-n {
|
||||
margin-top: -4px;
|
||||
}
|
||||
.jcrop-dragbar.ord-s {
|
||||
bottom: 0;
|
||||
margin-bottom: -4px;
|
||||
}
|
||||
.jcrop-dragbar.ord-e {
|
||||
margin-right: -4px;
|
||||
right: 0;
|
||||
}
|
||||
.jcrop-dragbar.ord-w {
|
||||
margin-left: -4px;
|
||||
}
|
||||
/* The "jcrop-light" class/extension */
|
||||
.jcrop-light .jcrop-vline,
|
||||
.jcrop-light .jcrop-hline {
|
||||
background: #ffffff;
|
||||
filter: alpha(opacity=70) !important;
|
||||
opacity: .70!important;
|
||||
}
|
||||
.jcrop-light .jcrop-handle {
|
||||
-moz-border-radius: 3px;
|
||||
-webkit-border-radius: 3px;
|
||||
background-color: #000000;
|
||||
border-color: #ffffff;
|
||||
border-radius: 3px;
|
||||
}
|
||||
/* The "jcrop-dark" class/extension */
|
||||
.jcrop-dark .jcrop-vline,
|
||||
.jcrop-dark .jcrop-hline {
|
||||
background: #000000;
|
||||
filter: alpha(opacity=70) !important;
|
||||
opacity: 0.7 !important;
|
||||
}
|
||||
.jcrop-dark .jcrop-handle {
|
||||
-moz-border-radius: 3px;
|
||||
-webkit-border-radius: 3px;
|
||||
background-color: #ffffff;
|
||||
border-color: #000000;
|
||||
border-radius: 3px;
|
||||
}
|
||||
/* Simple macro to turn off the antlines */
|
||||
.solid-line .jcrop-vline,
|
||||
.solid-line .jcrop-hline {
|
||||
background: #ffffff;
|
||||
}
|
||||
/* Fix for twitter bootstrap et al. */
|
||||
.jcrop-holder img,
|
||||
img.jcrop-preview {
|
||||
max-width: none;
|
||||
}
|
||||
.clear{
|
||||
font-size: 0px;
|
||||
line-height: 0px;
|
||||
overflow: hidden;
|
||||
width: 0px;
|
||||
height: 0px;
|
||||
clear: both;
|
||||
}
|
||||
.simple-cropper-images{
|
||||
width: 820px;
|
||||
margin: 0 auto 20px;
|
||||
|
||||
}
|
||||
|
||||
.cropme{
|
||||
background-image: url(photoupload.png);
|
||||
}
|
||||
|
||||
.cropme:hover{
|
||||
|
||||
//groesse auf maximal 827x1063 begrenzen
|
||||
resize($filename, 827, 1063);
|
||||
}
|
||||
|
||||
.text{
|
||||
font-family: arial;
|
||||
font-size: 14px;
|
||||
color: #4e4e4e;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.code{
|
||||
font-family: arial;
|
||||
font-size: 14px;
|
||||
color: #4e4e4e;
|
||||
margin-bottom: 20px;
|
||||
background-color: #f1f1f1;
|
||||
padding: 10px;
|
||||
}
|
||||
#fileInput{
|
||||
width:0;
|
||||
height:0;
|
||||
overflow:hidden;
|
||||
}
|
||||
|
||||
#modal{
|
||||
z-index: 10;
|
||||
position: fixed;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: #5F5F5F;
|
||||
opacity: 0.95;
|
||||
display: none;
|
||||
}
|
||||
|
||||
#preview{
|
||||
z-index: 11;
|
||||
position: fixed;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
display: none;
|
||||
border: 4px solid #A5A2A2;
|
||||
border-radius: 4px;
|
||||
float: left;
|
||||
font-size: 0px;
|
||||
line-height: 0px;
|
||||
}
|
||||
|
||||
#preview .buttons{
|
||||
width: 36px;
|
||||
position: absolute;
|
||||
bottom:0px;
|
||||
right: -44px;
|
||||
}
|
||||
</style>';
|
||||
}
|
||||
/*
|
||||
if (isset($_POST['submitbild']) && $_POST['submitbild'] == 'Upload') {
|
||||
//Bei Upload des Bildes
|
||||
if(isset($_POST['submitbild']))
|
||||
{
|
||||
if(isset($_FILES['bild']['tmp_name']))
|
||||
{
|
||||
//Extension herausfiltern
|
||||
$ext = explode('.',$_FILES['bild']['name']);
|
||||
$ext = mb_strtolower($ext[count($ext)-1]);
|
||||
|
||||
$width=101;
|
||||
$height=130;
|
||||
|
||||
$fp = fopen($filename,'r');
|
||||
//auslesen
|
||||
$content = fread($fp, filesize($filename));
|
||||
fclose($fp);
|
||||
|
||||
$akte = new akte();
|
||||
|
||||
if($akte->getAkten($_GET['person_id'], 'Lichtbil'))
|
||||
{
|
||||
if(count($akte->result)>0)
|
||||
//--check that it's a jpeg
|
||||
if ($ext=='jpg' || $ext=='jpeg')
|
||||
{
|
||||
$filename = $_FILES['bild']['tmp_name'];
|
||||
|
||||
//groesse auf maximal 827x1063 begrenzen
|
||||
resize($filename, 827, 1063);
|
||||
|
||||
$fp = fopen($filename,'r');
|
||||
//auslesen
|
||||
$content = fread($fp, filesize($filename));
|
||||
fclose($fp);
|
||||
|
||||
$akte = new akte();
|
||||
|
||||
if($akte->getAkten($_GET['person_id'], 'Lichtbil'))
|
||||
{
|
||||
$akte = $akte->result[0];
|
||||
$akte->new = false;
|
||||
if(count($akte->result)>0)
|
||||
{
|
||||
$akte = $akte->result[0];
|
||||
$akte->new = false;
|
||||
}
|
||||
else
|
||||
$akte->new = true;
|
||||
}
|
||||
else
|
||||
$akte->new = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
$akte->new = true;
|
||||
}
|
||||
|
||||
$akte->dokument_kurzbz = 'Lichtbil';
|
||||
$akte->person_id = $_GET['person_id'];
|
||||
$akte->inhalt = base64_encode($content);
|
||||
$akte->mimetype = "image/jpg";
|
||||
$akte->erstelltam = date('Y-m-d H:i:s');
|
||||
$akte->gedruckt = false;
|
||||
$akte->titel = "Lichtbild_".$_GET['person_id'].".jpg";
|
||||
$akte->bezeichnung = "Lichtbild gross";
|
||||
$akte->updateamum = date('Y-m-d H:i:s');
|
||||
$akte->updatevon = $user;
|
||||
$akte->insertamum = date('Y-m-d H:i:s');
|
||||
$akte->insertvon = $user;
|
||||
$akte->uid = '';
|
||||
|
||||
if(!$akte->save())
|
||||
{
|
||||
echo "<b>Fehler: $akte->errormsg</b>";
|
||||
}
|
||||
|
||||
//groesse auf maximal 101x130 begrenzen
|
||||
resize($filename, 101, 130);
|
||||
|
||||
//in DB speichern
|
||||
//File oeffnen
|
||||
$fp = fopen($filename,'r');
|
||||
//auslesen
|
||||
$content = fread($fp, filesize($filename));
|
||||
fclose($fp);
|
||||
//in base64-Werte umrechnen
|
||||
$content = base64_encode($content);
|
||||
|
||||
$person = new person();
|
||||
if($person->load($_GET['person_id']))
|
||||
{
|
||||
//base64 Wert in die Datenbank speichern
|
||||
$person->foto = $content;
|
||||
$person->new = false;
|
||||
if($person->save())
|
||||
{
|
||||
$fs = new fotostatus();
|
||||
$fs->person_id=$person->person_id;
|
||||
$fs->fotostatus_kurzbz='hochgeladen';
|
||||
$fs->datum = date('Y-m-d');
|
||||
$fs->insertamum = date('Y-m-d H:i:s');
|
||||
$fs->insertvon = $user;
|
||||
$fs->updateamum = date('Y-m-d H:i:s');
|
||||
$fs->updatevon = $user;
|
||||
if(!$fs->save(true))
|
||||
echo '<span class="error">Fehler beim Setzen des Bildstatus</span>';
|
||||
else
|
||||
$akte->new = true;
|
||||
}
|
||||
|
||||
$akte->dokument_kurzbz = 'Lichtbil';
|
||||
$akte->person_id = $_GET['person_id'];
|
||||
$akte->inhalt = base64_encode($content);
|
||||
$akte->mimetype = "image/jpg";
|
||||
$akte->erstelltam = date('Y-m-d H:i:s');
|
||||
$akte->gedruckt = false;
|
||||
$akte->titel = "Lichtbild_".$_GET['person_id'].".jpg";
|
||||
$akte->bezeichnung = "Lichtbild gross";
|
||||
$akte->updateamum = date('Y-m-d H:i:s');
|
||||
$akte->updatevon = $user;
|
||||
$akte->insertamum = date('Y-m-d H:i:s');
|
||||
$akte->insertvon = $user;
|
||||
$akte->uid = '';
|
||||
|
||||
if(!$akte->save())
|
||||
{
|
||||
echo "<b>Fehler: $akte->errormsg</b>";
|
||||
}
|
||||
|
||||
//groesse auf maximal 101x130 begrenzen
|
||||
resize($filename, 101, 130);
|
||||
|
||||
//in DB speichern
|
||||
//File oeffnen
|
||||
$fp = fopen($filename,'r');
|
||||
//auslesen
|
||||
$content = fread($fp, filesize($filename));
|
||||
fclose($fp);
|
||||
//in base64-Werte umrechnen
|
||||
$content = base64_encode($content);
|
||||
|
||||
$person = new person();
|
||||
if($person->load($_GET['person_id']))
|
||||
{
|
||||
//base64 Wert in die Datenbank speichern
|
||||
$person->foto = $content;
|
||||
$person->new = false;
|
||||
if($person->save())
|
||||
{
|
||||
|
||||
echo "<b>Bild wurde erfolgreich gespeichert</b>
|
||||
<script language='Javascript'>
|
||||
if(typeof(opener.StudentAuswahl) == 'function')
|
||||
opener.StudentAuswahl();
|
||||
if(typeof(opener.MitarbeiterAuswahl) == 'function')
|
||||
opener.MitarbeiterAuswahl();
|
||||
if(typeof(opener.RefreshImage) == 'function' ||
|
||||
typeof(opener.RefreshImage) == 'object')
|
||||
{
|
||||
opener.RefreshImage();
|
||||
}
|
||||
window.close();
|
||||
</script><br />";
|
||||
$fs = new fotostatus();
|
||||
$fs->person_id=$person->person_id;
|
||||
$fs->fotostatus_kurzbz='hochgeladen';
|
||||
$fs->datum = date('Y-m-d');
|
||||
$fs->insertamum = date('Y-m-d H:i:s');
|
||||
$fs->insertvon = $user;
|
||||
$fs->updateamum = date('Y-m-d H:i:s');
|
||||
$fs->updatevon = $user;
|
||||
if(!$fs->save(true))
|
||||
echo '<span class="error">Fehler beim Setzen des Bildstatus</span>';
|
||||
else
|
||||
{
|
||||
|
||||
echo "<b>Bild wurde erfolgreich gespeichert</b>
|
||||
<script language='Javascript'>
|
||||
if(typeof(opener.StudentAuswahl) == 'function')
|
||||
opener.StudentAuswahl();
|
||||
if(typeof(opener.MitarbeiterAuswahl) == 'function')
|
||||
opener.MitarbeiterAuswahl();
|
||||
if(typeof(opener.RefreshImage) == 'function' ||
|
||||
typeof(opener.RefreshImage) == 'object')
|
||||
{
|
||||
opener.RefreshImage();
|
||||
}
|
||||
window.close();
|
||||
</script><br />";
|
||||
}
|
||||
}
|
||||
else
|
||||
echo '<b>'.$person->errormsg.'</b><br />';
|
||||
}
|
||||
else
|
||||
echo '<b>'.$person->errormsg.'</b><br />';
|
||||
}
|
||||
else
|
||||
echo '<b>'.$person->errormsg.'</b><br />';
|
||||
echo '<b>'.$p->t('profil/nurJPGBilder').'</b><br />';
|
||||
}
|
||||
else
|
||||
echo '<b>'.$p->t('profil/nurJPGBilder').'</b><br />';
|
||||
}
|
||||
}
|
||||
|
||||
echo '<br>';
|
||||
echo $p->t('profil/BilduploadInfotext',array($p->t('dms_link/bildRichtlinien'))).'<br><br>
|
||||
<form accept-charset="UTF-8" method="POST" enctype="multipart/form-data" action="'.$_SERVER['PHP_SELF'].'?person_id='.$_GET['person_id'].'">
|
||||
'.$p->t('profil/Bild').': <input type="file" name="bild" />
|
||||
<input type="submit" name="submitbild" value="Upload" />
|
||||
</form>
|
||||
</td></tr>';
|
||||
*/
|
||||
|
||||
?>
|
||||
</body>
|
||||
|
||||
@@ -0,0 +1,147 @@
|
||||
<?php
|
||||
|
||||
require_once('../../config/cis.config.inc.php');
|
||||
require_once('../../include/functions.inc.php');
|
||||
require_once('../../include/person.class.php');
|
||||
require_once('../../include/benutzer.class.php');
|
||||
require_once('../../include/akte.class.php');
|
||||
require_once('../../include/phrasen.class.php');
|
||||
require_once('../../include/fotostatus.class.php');
|
||||
|
||||
$src = $_POST['src'];
|
||||
|
||||
//kopiert von bildupload.php
|
||||
function resize($filename, $width, $height)
|
||||
{
|
||||
$ext = 'jpg';
|
||||
|
||||
// Hoehe und Breite neu berechnen
|
||||
list($width_orig, $height_orig) = getimagesize($filename);
|
||||
|
||||
if ($width && ($width_orig < $height_orig))
|
||||
{
|
||||
$width = ($height / $height_orig) * $width_orig;
|
||||
}
|
||||
else
|
||||
{
|
||||
$height = ($width / $width_orig) * $height_orig;
|
||||
}
|
||||
|
||||
$image_p = imagecreatetruecolor($width, $height);
|
||||
$image = imagecreatefromjpeg($filename);
|
||||
|
||||
//Bild nur verkleinern aber nicht vergroessern
|
||||
if($width_orig>$width || $height_orig>$height)
|
||||
imagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height, $width_orig, $height_orig);
|
||||
else
|
||||
$image_p = $image;
|
||||
|
||||
imagejpeg($image_p, $filename, 80);
|
||||
|
||||
@imagedestroy($image_p);
|
||||
@imagedestroy($image);
|
||||
}
|
||||
|
||||
//file als png und jpg abspeichern
|
||||
file_put_contents('image.png', base64_decode(preg_replace('#^data:image/\w+;base64,#i', '', $src)));
|
||||
$imageTmp=imagecreatefrompng('image.png');
|
||||
imagejpeg($imageTmp, 'imagee.jpg', 100);
|
||||
|
||||
$person_id = $_POST['person_idValue'];
|
||||
$filename = 'imagee.jpg';
|
||||
|
||||
//profilbild speichern
|
||||
if(file_exists($filename))
|
||||
{
|
||||
$width=101;
|
||||
$height=130;
|
||||
|
||||
//groesse auf maximal 827x1063 begrenzen
|
||||
resize($filename, 827, 1063);
|
||||
|
||||
$fp = fopen($filename,'r');
|
||||
//auslesen
|
||||
$content = fread($fp, filesize($filename));
|
||||
fclose($fp);
|
||||
|
||||
$akte = new akte();
|
||||
|
||||
if($akte->getAkten($person_id, 'Lichtbil'))
|
||||
{
|
||||
if(count($akte->result)>0)
|
||||
{
|
||||
$akte = $akte->result[0];
|
||||
$akte->new = false;
|
||||
}
|
||||
else
|
||||
$akte->new = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
$akte->new = true;
|
||||
}
|
||||
|
||||
$akte->dokument_kurzbz = 'Lichtbil';
|
||||
$akte->person_id = $person_id;
|
||||
$akte->inhalt = base64_encode($content);
|
||||
$akte->mimetype = "image/jpg";
|
||||
$akte->erstelltam = date('Y-m-d H:i:s');
|
||||
$akte->gedruckt = false;
|
||||
$akte->titel = "Lichtbild_".$person_id.".jpg";
|
||||
$akte->bezeichnung = "Lichtbild gross";
|
||||
$akte->updateamum = date('Y-m-d H:i:s');
|
||||
$akte->updatevon = $user;
|
||||
$akte->insertamum = date('Y-m-d H:i:s');
|
||||
$akte->insertvon = $user;
|
||||
$akte->uid = '';
|
||||
|
||||
if(!$akte->save())
|
||||
{
|
||||
echo "<b>Fehler: $akte->errormsg</b>";
|
||||
}
|
||||
|
||||
//groesse auf maximal 101x130 begrenzen
|
||||
resize($filename, 101, 130);
|
||||
|
||||
//in DB speichern
|
||||
//File oeffnen
|
||||
$fp = fopen($filename,'r');
|
||||
//auslesen
|
||||
$content = fread($fp, filesize($filename));
|
||||
fclose($fp);
|
||||
//in base64-Werte umrechnen
|
||||
$content = base64_encode($content);
|
||||
|
||||
$person = new person();
|
||||
if($person->load($person_id))
|
||||
{
|
||||
//base64 Wert in die Datenbank speichern
|
||||
$person->foto = $content;
|
||||
$person->new = false;
|
||||
if($person->save())
|
||||
{
|
||||
$fs = new fotostatus();
|
||||
$fs->person_id=$person->person_id;
|
||||
$fs->fotostatus_kurzbz='hochgeladen';
|
||||
$fs->datum = date('Y-m-d');
|
||||
$fs->insertamum = date('Y-m-d H:i:s');
|
||||
$fs->insertvon = $user;
|
||||
$fs->updateamum = date('Y-m-d H:i:s');
|
||||
$fs->updatevon = $user;
|
||||
if(!$fs->save(true))
|
||||
echo '<span class="error">Fehler beim Setzen des Bildstatus</span>';
|
||||
else
|
||||
{
|
||||
|
||||
echo "<b>Bild wurde erfolgreich gespeichert</b>";
|
||||
}
|
||||
}
|
||||
else
|
||||
echo '<b>'.$person->errormsg.'</b><br />';
|
||||
}
|
||||
}
|
||||
|
||||
//temporäre files löschen
|
||||
unlink($filename);
|
||||
unlink('image.png');
|
||||
?>
|
||||
+164
-134
@@ -16,18 +16,18 @@
|
||||
* 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>
|
||||
* Rudolf Hangl < rudolf.hangl@technikum-wien.at >
|
||||
* Gerald Simane-Sequens < gerald.simane-sequens@technikum-wien.at >
|
||||
* Andreas Oesterreicher <andreas.oesterreicher@technikum-wien.at>
|
||||
* Rudolf Hangl < rudolf.hangl@technikum-wien.at >
|
||||
* Gerald Simane-Sequens < gerald.simane-sequens@technikum-wien.at >
|
||||
*/
|
||||
|
||||
/*
|
||||
@author Andres Oesterreicher
|
||||
@author Andres Oesterreicher
|
||||
@date 20.10.2005
|
||||
@brief Formular zum Freigeben der LV Informationen aus der tabelle tbl_lvinfo
|
||||
|
||||
@edit 08-11-2006 Versionierung entfernt. Studiensemester = WS2007
|
||||
03-01-2006 Anpassung an neue DB
|
||||
03-01-2006 Anpassung an neue DB
|
||||
*/
|
||||
|
||||
require_once('../../../../config/cis.config.inc.php');
|
||||
@@ -36,6 +36,7 @@ require_once('../../../../include/functions.inc.php');
|
||||
require_once('../../../../include/studiensemester.class.php');
|
||||
require_once('../../../../include/lvinfo.class.php');
|
||||
require_once('../../../../include/phrasen.class.php');
|
||||
require_once('../../../../include/benutzerberechtigung.class.php');
|
||||
|
||||
$sprache = getSprache();
|
||||
$p = new phrasen($sprache);
|
||||
@@ -43,15 +44,19 @@ $p = new phrasen($sprache);
|
||||
if (!$db = new basis_db())
|
||||
die($p->t('global/fehlerBeimOeffnenDerDatenbankverbindung'));
|
||||
$user = get_uid();
|
||||
if(!check_lektor($user))
|
||||
die('<center>'.$p->t('global/keineBerechtigungFuerDieseSeite').'</center>');
|
||||
|
||||
$rechte = new benutzerberechtigung();
|
||||
$rechte->getBerechtigungen($user);
|
||||
|
||||
//if(!check_lektor($user))
|
||||
// die('<center>'.$p->t('global/keineBerechtigungFuerDieseSeite').'</center>');
|
||||
|
||||
/* WriteLog($qry,$uid)
|
||||
* @brief Schreib die Querys im format: uid - datum - qry ins LogFile
|
||||
* @param $qry Query anweisung
|
||||
* $uid Username
|
||||
* @return true wenn ok false wenn fehler beim oeffnen
|
||||
*/
|
||||
* @brief Schreib die Querys im format: uid - datum - qry ins LogFile
|
||||
* @param $qry Query anweisung
|
||||
* $uid Username
|
||||
* @return true wenn ok false wenn fehler beim oeffnen
|
||||
*/
|
||||
function WriteLog($qry,$uid)
|
||||
{
|
||||
if($fp=fopen(LOG_PATH.'lvinfo.log',"a"))
|
||||
@@ -68,10 +73,13 @@ if(!check_lektor($user))
|
||||
|
||||
$lv=trim((isset($_REQUEST['lv']) ? $_REQUEST['lv']:''));
|
||||
|
||||
//Studiengang der Angezeigt werden soll
|
||||
//Studiengang der Angezeigt werden soll
|
||||
$stg=trim((isset($_REQUEST['stg']) ? $_REQUEST['stg']:''));
|
||||
//Semester das angezeigt werden soll
|
||||
$sem=trim((isset($_REQUEST['sem']) ? $_REQUEST['sem']:''));
|
||||
|
||||
if (!$rechte->isBerechtigt('lehre/lvinfo_freigabe',$stg))
|
||||
die ($rechte->errormsg);
|
||||
|
||||
if(isset($_GET["lv"])) //Id des DS der freigegeben/nicht freigegeben werden soll
|
||||
$id=$_GET["lv"];
|
||||
@@ -146,164 +154,186 @@ if(!check_lektor($user))
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link href="../../../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
<link rel="stylesheet" href="../../../../skin/jquery.css" type="text/css"/>
|
||||
<link rel="stylesheet" href="../../../../skin/tablesort.css" type="text/css"/>
|
||||
<script type="text/javascript" src="../../../../include/js/jquery.js"></script>
|
||||
<title><?php echo $p->t('courseInformation/ectsLvInfo');?></title>
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
function ask() {
|
||||
return confirm("<?php echo $p->t('global/warnungWirklichLoeschen');?>");
|
||||
}
|
||||
$(document).ready(function()
|
||||
{
|
||||
$("#myTable").tablesorter(
|
||||
{
|
||||
sortList: [[1,0]],
|
||||
widgets: ["zebra"],
|
||||
headers : {0:{sorter: false}}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body style="padding:10px">
|
||||
<h1><?php echo $p->t('courseInformation/lvInfoFreigabe');?></h1>
|
||||
|
||||
<table class="tabcontent">
|
||||
<tr>
|
||||
<td width="85%">
|
||||
|
||||
</td>
|
||||
|
||||
<table class="tabcontent">
|
||||
<tr>
|
||||
<td width="85%">
|
||||
|
||||
</td>
|
||||
<td>
|
||||
<ul>
|
||||
<li> <a href='index.php?<?php echo "stg=$stg&sem=".(isset($sem)?$sem:'')."&lv=$lv"?>'><font size='3'><?php echo $p->t('global/bearbeiten');?></font></a></li>
|
||||
<li> <a href='index.php?<?php echo "stg=$stg&sem=".(isset($sem)?$sem:'')."&lvid=$lv"?>'><font size='3'><?php echo $p->t('global/bearbeiten');?></font></a></li>
|
||||
<li> <a href='freigabe.php?<?php echo "stg=$stg&sem=".(isset($sem)?$sem:'')."&lv=$lv"?>'><font size='3'><?php echo $p->t('courseInformation/freigabe');?></font></a></li>
|
||||
<li> <a href='beispiele.php'><font size='3'><?php echo $p->t('global/beispiele');?></font></a></li>
|
||||
<li> <a href='terminologie.php'><font size='3'><?php echo $p->t('courseInformation/terminologie');?></font></a></li>
|
||||
</ul>
|
||||
<!--<li> <a href='terminologie.php'><font size='3'><?php echo $p->t('courseInformation/terminologie');?></font></a></li>-->
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<?php
|
||||
//DropDown Menues zur Auswahl von Studiengang und Semester anzeigen
|
||||
<?php
|
||||
//DropDown Menues zur Auswahl von Studiengang und Semester anzeigen
|
||||
|
||||
echo "<form name='auswFrm' action='".$_SERVER['PHP_SELF']."' method='POST'>";
|
||||
echo "<input type='hidden' name='status' value='a'>";
|
||||
echo "<input type='hidden' name='lv' value='$lv'>";
|
||||
//stg Drop Down
|
||||
$qry = "SELECT distinct tbl_studiengang.studiengang_kz, UPPER(tbl_studiengang.typ::varchar(1) || tbl_studiengang.kurzbz) as kurzbzlang FROM campus.tbl_lvinfo, lehre.tbl_lehrveranstaltung, public.tbl_studiengang
|
||||
WHERE tbl_lvinfo.aktiv=true
|
||||
AND tbl_lvinfo.lehrveranstaltung_id=tbl_lehrveranstaltung.lehrveranstaltung_id
|
||||
AND tbl_lehrveranstaltung.studiengang_kz=tbl_studiengang.studiengang_kz
|
||||
ORDER by kurzbzlang";
|
||||
if(!$result=$db->db_query($qry))
|
||||
die ('<center>'.$p->t('global/fehlerBeimLesenAusDatenbank').'</center>');
|
||||
echo "<form name='auswFrm' action='".$_SERVER['PHP_SELF']."' method='POST'>";
|
||||
echo "<input type='hidden' name='status' value='a'>";
|
||||
echo "<input type='hidden' name='lv' value='$lv'>";
|
||||
//stg Drop Down
|
||||
$qry = "SELECT distinct tbl_studiengang.studiengang_kz, UPPER(tbl_studiengang.typ::varchar(1) || tbl_studiengang.kurzbz) as kurzbzlang FROM campus.tbl_lvinfo, lehre.tbl_lehrveranstaltung, public.tbl_studiengang
|
||||
WHERE tbl_lvinfo.aktiv=true
|
||||
AND tbl_lvinfo.lehrveranstaltung_id=tbl_lehrveranstaltung.lehrveranstaltung_id
|
||||
AND tbl_lehrveranstaltung.studiengang_kz=tbl_studiengang.studiengang_kz
|
||||
ORDER by kurzbzlang";
|
||||
if(!$result=$db->db_query($qry))
|
||||
die ('<center>'.$p->t('global/fehlerBeimLesenAusDatenbank').'</center>');
|
||||
|
||||
echo $p->t('global/studiengang')." <SELECT name='stg' onChange='javascript:window.document.auswFrm.status.value=\"changestg\";window.document.auswFrm.submit();'>";
|
||||
//$firststg;
|
||||
$vorhanden=false;
|
||||
echo $p->t('global/studiengang')." <SELECT name='stg' onChange='javascript:window.document.auswFrm.status.value=\"changestg\";window.document.auswFrm.submit();'>";
|
||||
//$firststg;
|
||||
$vorhanden=false;
|
||||
|
||||
while($row=$db->db_fetch_object($result))
|
||||
{
|
||||
if(!isset($firststg))
|
||||
$firststg=$row->studiengang_kz;
|
||||
if(!isset($stg))
|
||||
$stg=$row->studiengang_kz;
|
||||
if($stg==$row->studiengang_kz)
|
||||
{
|
||||
echo "<option value='$row->studiengang_kz' selected>$row->kurzbzlang</option>";
|
||||
$vorhanden=true;
|
||||
}
|
||||
else
|
||||
echo "<option value='$row->studiengang_kz'>$row->kurzbzlang</option>";
|
||||
}
|
||||
echo "</SELECT>";
|
||||
while($row=$db->db_fetch_object($result))
|
||||
{
|
||||
if ($rechte->isBerechtigt('lehre/lvinfo_freigabe',$row->studiengang_kz))
|
||||
{
|
||||
if(!isset($firststg))
|
||||
$firststg=$row->studiengang_kz;
|
||||
if(!isset($stg))
|
||||
$stg=$row->studiengang_kz;
|
||||
if($stg==$row->studiengang_kz)
|
||||
{
|
||||
echo "<option value='$row->studiengang_kz' selected>$row->kurzbzlang</option>";
|
||||
$vorhanden=true;
|
||||
}
|
||||
else
|
||||
echo "<option value='$row->studiengang_kz'>$row->kurzbzlang</option>";
|
||||
}
|
||||
}
|
||||
echo "</SELECT>";
|
||||
|
||||
if(!$vorhanden) //Wenn $stg einen Wert enthaelt der nicht in der Liste vorkommt wird der erste Eintrag der Liste ausgewaehlt
|
||||
$stg=$firststg;
|
||||
if(!$vorhanden) //Wenn $stg einen Wert enthaelt der nicht in der Liste vorkommt wird der erste Eintrag der Liste ausgewaehlt
|
||||
$stg=$firststg;
|
||||
|
||||
//Semester Drop Down
|
||||
$qry = "SELECT distinct semester FROM campus.tbl_lvinfo, lehre.tbl_lehrveranstaltung
|
||||
WHERE tbl_lvinfo.aktiv=true
|
||||
AND tbl_lvinfo.lehrveranstaltung_id=tbl_lehrveranstaltung.lehrveranstaltung_id
|
||||
AND tbl_lehrveranstaltung.studiengang_kz='$stg'
|
||||
ORDER by semester";
|
||||
if(!$result=$db->db_query($qry))
|
||||
die ("<center>".$p->t('global/fehleraufgetreten')."</center>");
|
||||
//Semester Drop Down
|
||||
$qry = "SELECT distinct semester FROM campus.tbl_lvinfo, lehre.tbl_lehrveranstaltung
|
||||
WHERE tbl_lvinfo.aktiv=true
|
||||
AND tbl_lvinfo.lehrveranstaltung_id=tbl_lehrveranstaltung.lehrveranstaltung_id
|
||||
AND tbl_lehrveranstaltung.studiengang_kz='$stg'
|
||||
ORDER by semester";
|
||||
if(!$result=$db->db_query($qry))
|
||||
die ("<center>".$p->t('global/fehleraufgetreten')."</center>");
|
||||
|
||||
echo " ".$p->t('global/semester')." <SELECT name='sem' onChange='javascript:window.document.auswFrm.submit();'>";
|
||||
echo " ".$p->t('global/semester')." <SELECT name='sem' onChange='javascript:window.document.auswFrm.submit();'>";
|
||||
|
||||
//$firstsem;
|
||||
$vorhanden=false;
|
||||
//$firstsem;
|
||||
$vorhanden=false;
|
||||
|
||||
while($row=$db->db_fetch_object($result))
|
||||
{
|
||||
if(!isset($firstsem))
|
||||
$firstsem = $row->semester;
|
||||
while($row=$db->db_fetch_object($result))
|
||||
{
|
||||
if(!isset($firstsem))
|
||||
$firstsem = $row->semester;
|
||||
|
||||
if(!isset($sem))
|
||||
$sem=$row->semester;
|
||||
if(!isset($sem))
|
||||
$sem=$row->semester;
|
||||
|
||||
if($sem==$row->semester)
|
||||
{
|
||||
echo "<option value='$row->semester' selected>$row->semester</option>";
|
||||
$vorhanden=true;
|
||||
}
|
||||
else
|
||||
echo "<option value='$row->semester'>$row->semester</option>";
|
||||
}
|
||||
echo "</SELECT>";
|
||||
if(!$vorhanden) //Wenn $sem einen Wert enthaelt der nicht in der Liste vorkommt wird der erste Eintrag der Liste ausgewaehlt
|
||||
$sem=$firstsem;
|
||||
if($sem==$row->semester)
|
||||
{
|
||||
echo "<option value='$row->semester' selected>$row->semester</option>";
|
||||
$vorhanden=true;
|
||||
}
|
||||
else
|
||||
echo "<option value='$row->semester'>$row->semester</option>";
|
||||
}
|
||||
echo "</SELECT>";
|
||||
if(!$vorhanden) //Wenn $sem einen Wert enthaelt der nicht in der Liste vorkommt wird der erste Eintrag der Liste ausgewaehlt
|
||||
$sem=$firstsem;
|
||||
|
||||
//Anzeigen der Liste mit den LV - Informationen
|
||||
?>
|
||||
<br><br>
|
||||
<table width="900" class="tabcontent2" style="border: 1px solid black">
|
||||
<tr>
|
||||
<td>
|
||||
<table class="tabcontent">
|
||||
<tr class='liste'>
|
||||
<th>x</th>
|
||||
<th><?php echo $p->t('lvaliste/lehrfach');?></th>
|
||||
<th><?php echo $p->t('courseInformation/bearbeitetVon');?></th>
|
||||
<th><?php echo $p->t('courseInformation/updateAm');?></th>
|
||||
<th><?php echo $p->t('global/anzeigen');?></th>
|
||||
<th><?php echo $p->t('courseInformation/online');?><br>de en</th>
|
||||
</tr>
|
||||
//Anzeigen der Liste mit den LV - Informationen
|
||||
?>
|
||||
<br><br>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<table id="myTable" class="tablesorter">
|
||||
<thead>
|
||||
<tr class='liste'>
|
||||
<th></th>
|
||||
<th><?php echo $p->t('global/lehrveranstaltung');?></th>
|
||||
<th><?php echo $p->t('courseInformation/bearbeitetVon');?></th>
|
||||
<th><?php echo $p->t('courseInformation/updateAm');?></th>
|
||||
<th><?php echo $p->t('global/anzeigen');?></th>
|
||||
<th><?php echo $p->t('courseInformation/freigeben');?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?php
|
||||
$qry="SELECT *, tbl_lehrveranstaltung.bezeichnung as bezeichnung, to_char(tbl_lvinfo.updateamum,'DD-MM-YYYY HH24:MI') as amum,tbl_lvinfo.updateamum as updateamum, tbl_lvinfo.updatevon as updatevon FROM campus.tbl_lvinfo JOIN lehre.tbl_lehrveranstaltung USING(lehrveranstaltung_id) WHERE studiengang_kz=$stg AND semester=$sem AND tbl_lvinfo.aktiv=true AND tbl_lvinfo.sprache='".ATTR_SPRACHE_DE."' ORDER BY tbl_lehrveranstaltung.bezeichnung ASC";
|
||||
<?php
|
||||
$qry="SELECT *, tbl_lehrveranstaltung.bezeichnung as bezeichnung, to_char(tbl_lvinfo.updateamum,'DD.MM.YYYY HH24:MI') as amum,tbl_lvinfo.updateamum as updateamum, tbl_lvinfo.updatevon as updatevon FROM campus.tbl_lvinfo JOIN lehre.tbl_lehrveranstaltung USING(lehrveranstaltung_id) WHERE studiengang_kz=$stg AND semester=$sem AND tbl_lvinfo.aktiv=true AND tbl_lvinfo.sprache='".ATTR_SPRACHE_DE."' ORDER BY tbl_lehrveranstaltung.bezeichnung ASC";
|
||||
|
||||
if(!$result=$db->db_query($qry))
|
||||
die("<center>Fehler bei einer Datenbankabfrage</center>");
|
||||
if(!$result=$db->db_query($qry))
|
||||
die("<center>Fehler bei einer Datenbankabfrage</center>");
|
||||
|
||||
$i=-1;
|
||||
while($row=$db->db_fetch_object($result))
|
||||
{
|
||||
$i=-1;
|
||||
while($row=$db->db_fetch_object($result))
|
||||
{
|
||||
$i++;
|
||||
$qry1="SELECT *, tbl_lehrveranstaltung.bezeichnung as bezeichnung, tbl_lvinfo.updatevon as updatevon FROM campus.tbl_lvinfo JOIN lehre.tbl_lehrveranstaltung USING(lehrveranstaltung_id) WHERE tbl_lvinfo.sprache='".ATTR_SPRACHE_EN."' AND lehrveranstaltung_id='$row->lehrveranstaltung_id'";
|
||||
|
||||
if(!$result1=$db->db_query($qry1))
|
||||
die("<center>Fehler bei einer Datenbankabfrage</center>");
|
||||
|
||||
if(!$row1=$db->db_fetch_object($result1))
|
||||
if(!$result1=$db->db_query($qry1))
|
||||
die("<center>Fehler bei einer Datenbankabfrage</center>");
|
||||
|
||||
$qry2="SELECT vorname, nachname FROM campus.vw_mitarbeiter WHERE uid='$row->updatevon'";
|
||||
if(!$row1=$db->db_fetch_object($result1))
|
||||
die("<center>Fehler bei einer Datenbankabfrage</center>");
|
||||
|
||||
$bearbeitet=$row->updatevon;
|
||||
if($result2=$db->db_query($qry2))
|
||||
if($row2=$db->db_fetch_object($result2))
|
||||
$bearbeitet=$row2->vorname.' '.$row2->nachname;
|
||||
echo "\n";
|
||||
echo "<tr class='liste".($i%2)."'>"."\n";
|
||||
echo "<td align='center'><a href='".$_SERVER['PHP_SELF']."?del=1&stg=$stg&sem=$sem&lv=$row->lehrveranstaltung_id' onClick='return ask();'>Delete</a></td>"."\n";
|
||||
echo "<td align='center'>$row->bezeichnung</td>"."\n";
|
||||
//echo "<td align='center'>$row->studiensemester_kurzbz</td>"."\n";
|
||||
echo "<td align='center'>$bearbeitet</td>"."\n";
|
||||
echo "<td align='center'>".$row->amum."</td>"."\n";
|
||||
echo "<td align='center'><a href='#' onClick='javascript:window.open(\"preview.php?lv=$row->lehrveranstaltung_id&language=de\",\"Preview\",\"width=700,height=750,resizable=yes,menuebar=no,toolbar=no,status=yes,scrollbars=yes\");'><img src='../../../../skin/images/flagge-aut.gif' border=0 width=30 ></a> ";
|
||||
echo "<a href='#' onClick='javascript:window.open(\"preview.php?lv=$row1->lehrveranstaltung_id&language=en\",\"Preview\",\"width=700,height=750,resizable=yes,menuebar=no,toolbar=no,status=yes,scrollbars=yes\");'><img src='../../../../skin/images/flagge-eng.gif' border=0 width=30 ></a></td>"."\n";
|
||||
echo "<td align='center'><input type='checkbox' onClick='javascript:window.location.href=\"".$_SERVER['PHP_SELF']."?changestat=1&stg=$stg&sem=$sem&lv=$row->lehrveranstaltung_id&lang=de\";' ".($row->genehmigt=='t'?'checked':'').">"."\n";
|
||||
echo "<input type='checkbox' onClick='javascript:window.location.href=\"".$_SERVER['PHP_SELF']."?changestat=1&stg=$stg&sem=$sem&lv=$row->lehrveranstaltung_id&lang=en\";' ".($row1->genehmigt=='t'?'checked':'')."></td>"."\n";
|
||||
echo "</tr>";
|
||||
}
|
||||
?>
|
||||
$qry2="SELECT vorname, nachname FROM campus.vw_mitarbeiter WHERE uid='$row->updatevon'";
|
||||
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
$style='';
|
||||
if ($lv==$row->lehrveranstaltung_id)
|
||||
$style='style="background-color: #AAA; border-top: 1px solid black; border-bottom: 1px solid black"';
|
||||
|
||||
$bearbeitet=$row->updatevon;
|
||||
if($result2=$db->db_query($qry2))
|
||||
if($row2=$db->db_fetch_object($result2))
|
||||
$bearbeitet=$row2->vorname.' '.$row2->nachname;
|
||||
echo "\n";
|
||||
echo "<tr class='liste".($i%2)."'>"."\n";
|
||||
echo "<td $style align='center'><a href='".$_SERVER['PHP_SELF']."?del=1&stg=$stg&sem=$sem&lv=$row->lehrveranstaltung_id' onClick='return ask();'>Delete</a></td>"."\n";
|
||||
echo "<td $style>$row->bezeichnung</td>"."\n";
|
||||
//echo "<td align='center'>$row->studiensemester_kurzbz</td>"."\n";
|
||||
echo "<td $style>$bearbeitet</td>"."\n";
|
||||
echo "<td $style>".$row->amum."</td>"."\n";
|
||||
echo "<td $style align='center'><a href='#' onClick='javascript:window.open(\"preview.php?lv=$row->lehrveranstaltung_id&language=de\",\"Preview\",\"width=700,height=750,resizable=yes,menuebar=no,toolbar=no,status=yes,scrollbars=yes\");'>German</a> ";
|
||||
echo "<a href='#' onClick='javascript:window.open(\"preview.php?lv=$row1->lehrveranstaltung_id&language=en\",\"Preview\",\"width=700,height=750,resizable=yes,menuebar=no,toolbar=no,status=yes,scrollbars=yes\");'>English</a></td>"."\n";
|
||||
echo "<td $style align='center'>DE <input type='checkbox' onClick='javascript:window.location.href=\"".$_SERVER['PHP_SELF']."?changestat=1&stg=$stg&sem=$sem&lv=$row->lehrveranstaltung_id&lang=de\";' ".($row->genehmigt=='t'?'checked':'').">"."\n";
|
||||
echo "<input type='checkbox' onClick='javascript:window.location.href=\"".$_SERVER['PHP_SELF']."?changestat=1&stg=$stg&sem=$sem&lv=$row->lehrveranstaltung_id&lang=en\";' ".($row1->genehmigt=='t'?'checked':'')."> EN</td>"."\n";
|
||||
echo "</tr>";
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
+372
-187
@@ -16,20 +16,21 @@
|
||||
* 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>
|
||||
* Rudolf Hangl < rudolf.hangl@technikum-wien.at >
|
||||
* Gerald Simane-Sequens < gerald.simane-sequens@technikum-wien.at >
|
||||
* Andreas Oesterreicher <andreas.oesterreicher@technikum-wien.at>
|
||||
* Rudolf Hangl < rudolf.hangl@technikum-wien.at >
|
||||
* Gerald Simane-Sequens < gerald.simane-sequens@technikum-wien.at >
|
||||
*/
|
||||
|
||||
/* @author Andres Oesterreicher
|
||||
@date 20.10.2005
|
||||
@brief Formular zum eintragen der ECTS Information auf Deutsch und Englisch
|
||||
Die Informationen werden in der Tabelle tbl_lvinfo gespeichert.
|
||||
Die Informationen werden in der Tabelle tbl_lvinfo gespeichert.
|
||||
|
||||
@edit 08-11-2006 Versionierung entfernt: Studiensemester=WS2007
|
||||
02-01-2007 Umstellung auf die neue DB
|
||||
*/
|
||||
require_once('../../../../config/cis.config.inc.php');
|
||||
require_once('../../../../config/global.config.inc.php');
|
||||
require_once('../../../../include/basis_db.class.php');
|
||||
require_once('../../../../include/functions.inc.php');
|
||||
require_once('../../../../include/studiengang.class.php');
|
||||
@@ -38,6 +39,15 @@ require_once('../../../../include/lvinfo.class.php');
|
||||
require_once('../../../../include/studiensemester.class.php');
|
||||
require_once('../../../../include/phrasen.class.php');
|
||||
require_once('../../../../include/safehtml/safehtml.class.php');
|
||||
require_once('../../../../include/benutzerberechtigung.class.php');
|
||||
require_once('../../../../include/lehreinheitmitarbeiter.class.php');
|
||||
require_once('../../../../include/mail.class.php');
|
||||
require_once('../../../../include/benutzer.class.php');
|
||||
|
||||
$user = get_uid();
|
||||
|
||||
$rechte = new benutzerberechtigung();
|
||||
$rechte->getBerechtigungen($user);
|
||||
|
||||
$sprache1 = getSprache();
|
||||
$p=new phrasen($sprache1);
|
||||
@@ -48,6 +58,9 @@ if (!$db = new basis_db())
|
||||
$output = '';
|
||||
$errormsg = '';
|
||||
$okmsg='';
|
||||
|
||||
$lv = '';
|
||||
|
||||
?>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
@@ -55,9 +68,13 @@ if (!$db = new basis_db())
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link href="../../../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
<title><?php echo $p->t('courseInformation/ectsInformation')?></title>
|
||||
|
||||
<style type="text/css">
|
||||
textarea
|
||||
{
|
||||
font-size: 13px;
|
||||
}
|
||||
</style>
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
<!--
|
||||
function save()
|
||||
{
|
||||
window.document.editFrm.status.value="save";
|
||||
@@ -65,7 +82,13 @@ if (!$db = new basis_db())
|
||||
window.document.editFrm.target="_self";
|
||||
window.document.editFrm.submit();
|
||||
}
|
||||
-->
|
||||
function freigeben()
|
||||
{
|
||||
window.document.editFrm.status.value="freigeben";
|
||||
window.document.editFrm.action="<?php echo $_SERVER['PHP_SELF']; ?>";
|
||||
window.document.editFrm.target="_self";
|
||||
window.document.editFrm.submit();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body style="padding: 10px">
|
||||
@@ -78,13 +101,8 @@ if (!$db = new basis_db())
|
||||
return $string;
|
||||
}
|
||||
|
||||
$user = get_uid();
|
||||
//Berechtigung ueberpruefen
|
||||
if(!check_lektor($user))
|
||||
die("<br><center>".$p->t('global/keineBerechtigungFuerDieseSeite')."</center>");
|
||||
|
||||
if(isset($_GET['lvid']))
|
||||
$lv=$_GET['lvid'];
|
||||
if(isset($_GET['lvid']))
|
||||
$lv=$_GET['lvid'];
|
||||
|
||||
//Variablenuebernahme
|
||||
if(isset($_POST['lv'])) //LehrveranstaltungsID
|
||||
@@ -100,8 +118,10 @@ if (!$db = new basis_db())
|
||||
if(!isset($sem))
|
||||
$sem = $lv_obj->semester;
|
||||
}
|
||||
else
|
||||
$stg = '';
|
||||
|
||||
if(!isset($stg) && isset($_POST['stg']))
|
||||
if(isset($_POST['stg']))
|
||||
$stg = $_POST['stg'];
|
||||
if(!isset($sem) && isset($_POST['sem']))
|
||||
$sem = $_POST['sem'];
|
||||
@@ -113,11 +133,28 @@ if (!$db = new basis_db())
|
||||
if(isset($_POST['status']))
|
||||
$status = $_POST['status'];
|
||||
|
||||
// if(isset($_POST["freigeben"])) //Wird auf 'ja' gesetzt wenn gleich freigegebenwerden soll nach dem Speichern
|
||||
// $freigeben = $_POST["freigeben"];
|
||||
// if(isset($_POST["freigeben"])) //Wird auf 'ja' gesetzt wenn gleich freigegebenwerden soll nach dem Speichern
|
||||
// $freigeben = $_POST["freigeben"];
|
||||
|
||||
if(isset($_POST['sprache'])) //Sprache fuer dieses Lehrfach
|
||||
$sprache = $_POST['sprache'];
|
||||
|
||||
// Berechtigungen ueberpruefen
|
||||
$lektor_der_lv = false;
|
||||
$lektor = new lehreinheitmitarbeiter();
|
||||
$lektor_der_lv = $lektor->existsLV($lv, null, $user);
|
||||
|
||||
// Bearbeiten nur moeglich, wenn Lektor der LV und bearbeiten fuer Lektoren aktiviert ist
|
||||
// Oder Berechtigung zum Bearbeiten eingetragen ist
|
||||
if(!(
|
||||
(!defined('CIS_LEHRVERANSTALTUNG_LVINFO_LEKTOR_EDIT') && $lektor_der_lv)
|
||||
|| (defined('CIS_LEHRVERANSTALTUNG_LVINFO_LEKTOR_EDIT') && CIS_LEHRVERANSTALTUNG_LVINFO_LEKTOR_EDIT==true && $lektor_der_lv)
|
||||
|| $rechte->isBerechtigt('lehre/lvinfo',$stg)
|
||||
)
|
||||
)
|
||||
{
|
||||
die($p->t('global/keineBerechtigungFuerDieseSeite'));
|
||||
}
|
||||
|
||||
//Variablen fuer das Formular
|
||||
$lehrziele_de = (isset($_POST['lehrziele_de'])?$_POST['lehrziele_de']:'');
|
||||
@@ -128,10 +165,10 @@ if (!$db = new basis_db())
|
||||
$anmerkungen_de = (isset($_POST['anmerkungen_de'])?$_POST['anmerkungen_de']:'');
|
||||
$kurzbeschreibung_de = (isset($_POST['kurzbeschreibung_de'])?$_POST['kurzbeschreibung_de']:'');
|
||||
$anwesenheit_de = (isset($_POST['anwesenheit_de'])?$_POST['anwesenheit_de']:'');
|
||||
$freig_de = (isset($_POST['freig_de'])?($_POST['freig_de']=='on'?true:false):'');
|
||||
$freig_de = (isset($_POST['freig_de'])?($_POST['freig_de']=='on' && $rechte->isBerechtigt('lehre/lvinfo_freigabe',$stg)?true:false):'');
|
||||
$methodik_de = (isset($_POST['methodik_de'])?$_POST['methodik_de']:'');
|
||||
//$titel_de = (isset($_POST['titel_de'])?$_POST['titel_de']:'');
|
||||
|
||||
|
||||
$parser = new SafeHTML();
|
||||
$lehrziele_de = $parser->parse($lehrziele_de);
|
||||
$parser = new SafeHTML();
|
||||
@@ -161,7 +198,7 @@ if (!$db = new basis_db())
|
||||
$anmerkungen_en = (isset($_POST['anmerkungen_en'])?$_POST['anmerkungen_en']:'');
|
||||
$kurzbeschreibung_en = (isset($_POST['kurzbeschreibung_en'])?$_POST['kurzbeschreibung_en']:'');
|
||||
$anwesenheit_en = (isset($_POST['anwesenheit_en'])?$_POST['anwesenheit_en']:'');
|
||||
$freig_en = (isset($_POST['freig_en'])?($_POST['freig_en']=='on'?true:false):'');
|
||||
$freig_en = (isset($_POST['freig_en'])?($_POST['freig_en']=='on' && $rechte->isBerechtigt('lehre/lvinfo_freigabe',$stg)?true:false):'');
|
||||
$methodik_en = (isset($_POST['methodik_en'])?$_POST['methodik_en']:'');
|
||||
//$titel_en = (isset($_POST['titel_en'])?$_POST['titel_en']:'');
|
||||
|
||||
@@ -189,7 +226,7 @@ if (!$db = new basis_db())
|
||||
/* WriteLog($qry,$uid)
|
||||
* @brief Schreib die Querys im format: uid - datum - qry ins LogFile
|
||||
* @param $qry Query anweisung
|
||||
* $uid Username
|
||||
* $uid Username
|
||||
* @return true wenn ok false wenn fehler beim oeffnen
|
||||
*/
|
||||
function WriteLog($qry,$uid)
|
||||
@@ -225,7 +262,7 @@ if (!$db = new basis_db())
|
||||
$lv_obj_sav->kurzbeschreibung=mb_eregi_replace("\r\n", "<br>", $kurzbeschreibung_de);
|
||||
$lv_obj_sav->anwesenheit=mb_eregi_replace("\r\n", "<br>", $anwesenheit_de);
|
||||
|
||||
$lv_obj_sav->genehmigt = ($freig_de?true:false);
|
||||
$lv_obj_sav->genehmigt = ($freig_de==true && $rechte->isBerechtigt('lehre/lvinfo_freigabe',$stg)?true:false);
|
||||
$lv_obj_sav->updateamum=date('Y-m-d H:i:s');
|
||||
$lv_obj_sav->updatevon=$user;
|
||||
$lv_obj_sav->aktiv=true;
|
||||
@@ -238,7 +275,7 @@ if (!$db = new basis_db())
|
||||
$vorhanden=$lv_obj1->exists($lv, ATTR_SPRACHE_DE);
|
||||
|
||||
if(!$vorhanden)
|
||||
$lv_obj_sav->new=true;
|
||||
$lv_obj_sav->new=true;
|
||||
else
|
||||
$lv_obj_sav->new=false;
|
||||
|
||||
@@ -257,7 +294,7 @@ if (!$db = new basis_db())
|
||||
$lv_obj_sav->anmerkungen=mb_eregi_replace("\r\n", "<br>", $anmerkungen_en);
|
||||
$lv_obj_sav->kurzbeschreibung=mb_eregi_replace("\r\n", "<br>", $kurzbeschreibung_en);
|
||||
$lv_obj_sav->anwesenheit=mb_eregi_replace("\r\n", "<br>", $anwesenheit_en);
|
||||
$lv_obj_sav->genehmigt = ($freig_en?true:false);
|
||||
$lv_obj_sav->genehmigt = ($freig_en==true && $rechte->isBerechtigt('lehre/lvinfo_freigabe',$stg)?true:false);
|
||||
$lv_obj_sav->aktiv=true;
|
||||
$lv_obj_sav->updateamum=date('Y-m-d H:i:s');
|
||||
$lv_obj_sav->updatevon=$user;
|
||||
@@ -288,6 +325,132 @@ if (!$db = new basis_db())
|
||||
if($save_log_error)
|
||||
$errormsg.= $p->t('courseInformation/fehlerLogFile');
|
||||
}
|
||||
if($status=='freigeben') // Beim druecken auf "Zur Freigabe abschicken"
|
||||
{
|
||||
//Speichert die aenderungen in der Datenbank (de und en)
|
||||
$lv_obj_sav= new lvinfo();
|
||||
$save_error=false;
|
||||
$save_log_error=false;
|
||||
//Deutsch
|
||||
$lv_obj_sav->lehrziele=mb_eregi_replace("\r\n", "<br>", $lehrziele_de);
|
||||
$lv_obj_sav->lehrinhalte=mb_eregi_replace("\r\n", "<br>", $lehrinhalte_de);
|
||||
$lv_obj_sav->voraussetzungen=mb_eregi_replace("\r\n", "<br>", $voraussetzungen_de);
|
||||
$lv_obj_sav->unterlagen=mb_eregi_replace("\r\n", "<br>", $unterlagen_de);
|
||||
$lv_obj_sav->pruefungsordnung=mb_eregi_replace("\r\n", "<br>", $pruefungsordnung_de);
|
||||
$lv_obj_sav->anmerkungen=mb_eregi_replace("\r\n", "<br>", $anmerkungen_de);
|
||||
$lv_obj_sav->kurzbeschreibung=mb_eregi_replace("\r\n", "<br>", $kurzbeschreibung_de);
|
||||
$lv_obj_sav->anwesenheit=mb_eregi_replace("\r\n", "<br>", $anwesenheit_de);
|
||||
|
||||
$lv_obj_sav->genehmigt = ($freig_de==true && $rechte->isBerechtigt('lehre/lvinfo_freigabe',$stg)?true:false);
|
||||
$lv_obj_sav->updateamum=date('Y-m-d H:i:s');
|
||||
$lv_obj_sav->updatevon=$user;
|
||||
$lv_obj_sav->aktiv=true;
|
||||
$lv_obj_sav->sprache=ATTR_SPRACHE_DE;
|
||||
$lv_obj_sav->lehrveranstaltung_id=$lv;
|
||||
$lv_obj_sav->methodik = mb_eregi_replace("\r\n", "<br>", $methodik_de);
|
||||
//$lv_obj_sav->titel = mb_eregi_replace("\r\n", "<br>", $titel_de);
|
||||
|
||||
$lv_obj1 = new lvinfo();
|
||||
$vorhanden=$lv_obj1->exists($lv, ATTR_SPRACHE_DE);
|
||||
|
||||
if(!$vorhanden)
|
||||
$lv_obj_sav->new=true;
|
||||
else
|
||||
$lv_obj_sav->new=false;
|
||||
|
||||
if(!$lv_obj_sav->save())
|
||||
$save_error=true;
|
||||
else
|
||||
if(!WriteLog($lv_obj_sav->lastqry,$user))
|
||||
$save_log_error=true;
|
||||
|
||||
//Englisch
|
||||
$lv_obj_sav->lehrziele=mb_eregi_replace("\r\n", "<br>", $lehrziele_en);
|
||||
$lv_obj_sav->lehrinhalte=mb_eregi_replace("\r\n", "<br>", $lehrinhalte_en);
|
||||
$lv_obj_sav->voraussetzungen=mb_eregi_replace("\r\n", "<br>", $voraussetzungen_en);
|
||||
$lv_obj_sav->unterlagen=mb_eregi_replace("\r\n", "<br>", $unterlagen_en);
|
||||
$lv_obj_sav->pruefungsordnung=mb_eregi_replace("\r\n", "<br>", $pruefungsordnung_en);
|
||||
$lv_obj_sav->anmerkungen=mb_eregi_replace("\r\n", "<br>", $anmerkungen_en);
|
||||
$lv_obj_sav->kurzbeschreibung=mb_eregi_replace("\r\n", "<br>", $kurzbeschreibung_en);
|
||||
$lv_obj_sav->anwesenheit=mb_eregi_replace("\r\n", "<br>", $anwesenheit_en);
|
||||
$lv_obj_sav->genehmigt = ($freig_en==true && $rechte->isBerechtigt('lehre/lvinfo_freigabe',$stg)?true:false);
|
||||
$lv_obj_sav->aktiv=true;
|
||||
$lv_obj_sav->updateamum=date('Y-m-d H:i:s');
|
||||
$lv_obj_sav->updatevon=$user;
|
||||
$lv_obj_sav->sprache=ATTR_SPRACHE_EN;
|
||||
$lv_obj_sav->lehrveranstaltung_id=$lv;
|
||||
$lv_obj_sav->methodik = mb_eregi_replace("\r\n", "<br>", $methodik_en);
|
||||
//$lv_obj_sav->titel = mb_eregi_replace("\r\n", "<br>", $titel_en);
|
||||
|
||||
$lv_obj1 = new lvinfo();
|
||||
$vorhanden = $lv_obj1->exists($lv, ATTR_SPRACHE_EN);
|
||||
|
||||
if(!$vorhanden)
|
||||
$lv_obj_sav->new=true;
|
||||
else
|
||||
$lv_obj_sav->new=false;
|
||||
|
||||
if(!$lv_obj_sav->save())
|
||||
$save_error=true;
|
||||
else
|
||||
if(!WriteLog($lv_obj_sav->lastqry,$user))
|
||||
$save_log_error=true;
|
||||
|
||||
if($save_error)
|
||||
$errormsg.= $p->t('courseInformation/achtungFehlerBeimSpeichern');
|
||||
else
|
||||
$okmsg.= $p->t('global/erfolgreichgespeichert');
|
||||
|
||||
if($save_log_error)
|
||||
$errormsg.= $p->t('courseInformation/fehlerLogFile');
|
||||
|
||||
//Mail an Studiengangsleiter
|
||||
$studiengangsleiter = new studiengang();
|
||||
$stgleiter = $studiengangsleiter->getLeitung($stg);
|
||||
|
||||
if($stgleiter)
|
||||
{
|
||||
$to='';
|
||||
foreach($stgleiter as $leiter)
|
||||
{
|
||||
if($to!='')
|
||||
{
|
||||
$to.=', '.$leiter.'@'.DOMAIN;
|
||||
}
|
||||
else
|
||||
{
|
||||
$to.=$leiter.'@'.DOMAIN;
|
||||
}
|
||||
}
|
||||
|
||||
$benutzer = new benutzer();
|
||||
$benutzer->load($user);
|
||||
|
||||
$bezeichnung = new lehrveranstaltung();
|
||||
$bezeichnung->load($lv);
|
||||
|
||||
$message = $p->t('courseInformation/diesIstEineAutomatischeMail').".\n".
|
||||
$p->t('courseInformation/lvinfoWurdeUeberarbeitet',array($benutzer->nachname.' '.$benutzer->vorname,$bezeichnung->bezeichnung)).":\n";
|
||||
|
||||
$message.="\n".$p->t('courseInformation/sieKoennenDieseUnterFolgenderAdresseFreigeben').":\n".
|
||||
APP_ROOT."cis/private/lehre/ects/freigabe.php?stg=".$stg."&sem=".$sem."&lv=".$lv;
|
||||
|
||||
$mail = new mail($to, 'vilesci@'.DOMAIN,$p->t('courseInformation/freigabeLvinfo'), $message);
|
||||
if($mail->send())
|
||||
{
|
||||
$okmsg.="<br><span style='color:green;'>".$p->t('courseInformation/freigabemailWurdeVersandt',array($to))."</span>";
|
||||
}
|
||||
else
|
||||
{
|
||||
$okmsg.="<br><span class='error'>".$p->t('courseInformation/fehlerBeimSendenAufgetreten',array($to))."!</span>";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$okmsg.="<br><span class='error'>".$p->t('courseInformation/konnteKeinFreigabemailVersendetWerden')."</span>";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
$output .= "\n";
|
||||
@@ -334,6 +497,8 @@ if (!$db = new basis_db())
|
||||
{
|
||||
$errormsg .= "$stg_obj->errormsg";
|
||||
}
|
||||
|
||||
|
||||
|
||||
//Anzeigen des DropDown Menues mit Semester
|
||||
if(isset($changed) && $changed=='stg')
|
||||
@@ -384,33 +549,33 @@ if (!$db = new basis_db())
|
||||
|
||||
//Anzeigen des DropDown Menues mit Lehrveranstaltungen
|
||||
$lv_obj = new lehrveranstaltung();
|
||||
if($lv_obj->load_lva($stg,$sem,null,true))
|
||||
if($lv_obj->load_lva($stg,$sem,null,true,null,'orgform_kurzbz,semester, bezeichnung'))
|
||||
{
|
||||
$output .= $p->t('global/lehrveranstaltung')." <SELECT name='lv' onChange='javascript:window.document.auswahlFrm.changed.value=\"lv\";window.document.auswahlFrm.submit();'>";
|
||||
$vorhanden=false;
|
||||
unset($firstlv);
|
||||
$output .= $p->t('global/lehrveranstaltung')." <SELECT name='lv' onChange='javascript:window.document.auswahlFrm.changed.value=\"lv\";window.document.auswahlFrm.submit();'>";
|
||||
$vorhanden=false;
|
||||
unset($firstlv);
|
||||
|
||||
foreach($lv_obj->lehrveranstaltungen as $erg)
|
||||
{
|
||||
if(!isset($lv) || (isset($changed) && $changed=='sem') || (isset($changed) && $changed=='stg'))
|
||||
{
|
||||
$lv = $erg->lehrveranstaltung_id;
|
||||
$changed='';
|
||||
}
|
||||
if(!isset($firstlv))
|
||||
$firstlv=$erg->lehrveranstaltung_id;
|
||||
foreach($lv_obj->lehrveranstaltungen as $erg)
|
||||
{
|
||||
if(!isset($lv) || (isset($changed) && $changed=='sem') || (isset($changed) && $changed=='stg'))
|
||||
{
|
||||
$lv = $erg->lehrveranstaltung_id;
|
||||
$changed='';
|
||||
}
|
||||
if(!isset($firstlv))
|
||||
$firstlv=$erg->lehrveranstaltung_id;
|
||||
|
||||
if($lv == $erg->lehrveranstaltung_id)
|
||||
{
|
||||
$output .= "<option value='$erg->lehrveranstaltung_id' selected>".Cut($erg->bezeichnung)."</option>";
|
||||
$vorhanden=true;
|
||||
}
|
||||
else
|
||||
$output .= "<option value='$erg->lehrveranstaltung_id'>".Cut($erg->bezeichnung)."</option>";
|
||||
}
|
||||
$output .= "</SELECT>";
|
||||
if(!$vorhanden)
|
||||
$lv=$firstlv;
|
||||
if($lv == $erg->lehrveranstaltung_id)
|
||||
{
|
||||
$output .= "<option value='$erg->lehrveranstaltung_id' selected>".($erg->orgform_kurzbz!=''?$erg->orgform_kurzbz." - ":"").Cut($erg->bezeichnung)."</option>";
|
||||
$vorhanden=true;
|
||||
}
|
||||
else
|
||||
$output .= "<option value='$erg->lehrveranstaltung_id'>".($erg->orgform_kurzbz!=''?$erg->orgform_kurzbz." - ":"").Cut($erg->bezeichnung)."</option>";
|
||||
}
|
||||
$output .= "</SELECT>";
|
||||
if(!$vorhanden)
|
||||
$lv=$firstlv;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -426,10 +591,11 @@ if (!$db = new basis_db())
|
||||
//Menue ausgeben
|
||||
$output .= "\n";
|
||||
$output .= "<ul>";
|
||||
$output .= "<li> <a class='Item' href='index.php?stg=$stg&sem=$sem&lv=$lv'><font size='3'>".$p->t('global/bearbeiten')."</font></a></li>";
|
||||
$output .= "<li> <a class='Item' href='freigabe.php?stg=$stg&sem=$sem&lv=$lv'><font size='3'>".$p->t('courseInformation/freigabe')."</font></a></li>";
|
||||
$output .= "<li> <a class='Item' href='index.php?stg=$stg&sem=$sem&lvid=$lv'><font size='3'>".$p->t('global/bearbeiten')."</font></a></li>";
|
||||
if ($rechte->isBerechtigt('lehre/lvinfo_freigabe',$stg))
|
||||
$output .= "<li> <a class='Item' href='freigabe.php?stg=$stg&sem=$sem&lv=$lv'><font size='3'>".$p->t('courseInformation/freigabe')."</font></a></li>";
|
||||
$output .= "<li> <a class='Item' href='beispiele.php'><font size='3'>".$p->t('global/beispiele')."</font></a></li>";
|
||||
$output .= "<li> <a class='Item' href='terminologie.php'><font size='3'>".$p->t('courseInformation/terminologie')."</font></a></li>";
|
||||
//$output .= "<li> <a class='Item' href='terminologie.php'><font size='3'>".$p->t('courseInformation/terminologie')."</font></a></li>";
|
||||
$output .= "</ul>";
|
||||
$output .= "</td></tr></table>";
|
||||
|
||||
@@ -472,6 +638,10 @@ if (!$db = new basis_db())
|
||||
$freig_de = $lv_de->genehmigt;
|
||||
$titel_de = $lv_de->titel;
|
||||
$methodik_de = $lv_de->methodik;
|
||||
|
||||
//Fuegt den Satz "Nach erfolgreichem Abschluss sind die Studierenden in der Lage, " vor den Lehrzielen ein, falls noch nicht vorhanden
|
||||
if (substr_count($lehrziele_de, 'Nach erfolgreichem Abschluss sind die Studierenden in der Lage')==0)
|
||||
$lehrziele_de = 'Nach erfolgreichem Abschluss sind die Studierenden in der Lage, '.$lehrziele_de;
|
||||
}
|
||||
|
||||
if(!isset($_POST['lehrziele_en']) && isset($lv_en))
|
||||
@@ -487,14 +657,18 @@ if (!$db = new basis_db())
|
||||
$freig_en = $lv_en->genehmigt;
|
||||
$titel_en = $lv_en->titel;
|
||||
$methodik_en = $lv_en->methodik;
|
||||
|
||||
//Fuegt den Satz "Nach erfolgreichem Abschluss sind die Studierenden in der Lage, " vor den Lehrzielen ein, falls noch nicht vorhanden
|
||||
if (substr_count($lehrziele_en, 'After passing this course successfully students are able to')==0)
|
||||
$lehrziele_en = 'After passing this course successfully students are able to '.$lehrziele_en;
|
||||
}
|
||||
|
||||
$lv_obj = new lehrveranstaltung();
|
||||
$lv_obj->load($lv);
|
||||
echo "<Form name='editFrm' action='".$_SERVER['PHP_SELF']."' method='POST'>";
|
||||
|
||||
echo "<table class='tabcontent'>";
|
||||
echo "<tr><td><b>".$p->t('courseInformation/ectsCredits')."</b></td><td> </td><td width='400'>".($lv_obj->ects!=''?number_format($lv_obj->ects,1,'.',''):'')."</td><td width='100%'></td></tr>";
|
||||
echo "<table>";
|
||||
echo "<tr><td><b>".$p->t('courseInformation/ectsCredits')."</b></td><td width='100%'>".($lv_obj->ects!=''?number_format($lv_obj->ects,1,'.',''):'')."</td></tr>";
|
||||
|
||||
$stsem_obj = new studiensemester();
|
||||
$stsem = $stsem_obj->getaktorNext();
|
||||
@@ -509,7 +683,7 @@ if (!$db = new basis_db())
|
||||
AND studiensemester_kurzbz=(SELECT studiensemester_kurzbz FROM lehre.tbl_lehreinheit JOIN public.tbl_studiensemester USING(studiensemester_kurzbz) WHERE lehrveranstaltung_id=".$db->db_add_param($lv)." ORDER BY ende DESC LIMIT 1)
|
||||
AND mitarbeiter_uid=uid";
|
||||
|
||||
echo "<tr><td class='tdvertical' nowrap><b>".$p->t('courseInformation/lehrendeLautLehrauftrag')."</b></td><td> </td><td nowrap>";
|
||||
echo "<tr><td class='tdvertical' nowrap><b>".$p->t('courseInformation/lehrendeLautLehrauftrag')."</b></td><td nowrap>";
|
||||
$helparray = array();
|
||||
if($result=$db->db_query($qry))
|
||||
{
|
||||
@@ -521,19 +695,19 @@ if (!$db = new basis_db())
|
||||
}
|
||||
|
||||
foreach($helparray as $elem)
|
||||
echo $elem."<br>";
|
||||
echo $elem."<br>";
|
||||
echo "</td></tr>";
|
||||
|
||||
//FB Leiter auslesen
|
||||
$qry = " SELECT
|
||||
distinct titelpre, titelpost, vorname, nachname
|
||||
FROM
|
||||
public.tbl_benutzerfunktion JOIN campus.vw_mitarbeiter USING(uid)
|
||||
WHERE
|
||||
funktion_kurzbz='Leitung' AND
|
||||
(tbl_benutzerfunktion.datum_von is null OR tbl_benutzerfunktion.datum_von<=now()) AND
|
||||
//FB Leiter auslesen
|
||||
$qry = " SELECT
|
||||
distinct titelpre, titelpost, vorname, nachname
|
||||
FROM
|
||||
public.tbl_benutzerfunktion JOIN campus.vw_mitarbeiter USING(uid)
|
||||
WHERE
|
||||
funktion_kurzbz='Leitung' AND
|
||||
(tbl_benutzerfunktion.datum_von is null OR tbl_benutzerfunktion.datum_von<=now()) AND
|
||||
(tbl_benutzerfunktion.datum_bis is null OR tbl_benutzerfunktion.datum_bis>=now()) AND
|
||||
oe_kurzbz in (SELECT distinct lehrfach.oe_kurzbz
|
||||
oe_kurzbz in (SELECT distinct lehrfach.oe_kurzbz
|
||||
FROM
|
||||
lehre.tbl_lehreinheit
|
||||
JOIN lehre.tbl_lehrveranstaltung as lehrfach ON(tbl_lehreinheit.lehrfach_id=lehrfach.lehrveranstaltung_id)
|
||||
@@ -543,23 +717,23 @@ if (!$db = new basis_db())
|
||||
FROM lehre.tbl_lehreinheit JOIN public.tbl_studiensemester USING(studiensemester_kurzbz)
|
||||
WHERE tbl_lehreinheit.lehrveranstaltung_id=".$db->db_add_param($lv, FHC_INTEGER)."
|
||||
ORDER BY ende DESC LIMIT 1
|
||||
)
|
||||
)";
|
||||
|
||||
echo "<tr><td class='tdvertical'><b>".$p->t('courseInformation/institutsleiter')."</b></td><td> </td><td>";
|
||||
if($result=$db->db_query($qry))
|
||||
{
|
||||
while($row=$db->db_fetch_object($result))
|
||||
{
|
||||
echo "$row->titelpre $row->vorname $row->nachname $row->titelpost<br>";
|
||||
}
|
||||
}
|
||||
)
|
||||
)";
|
||||
|
||||
echo "<tr><td class='tdvertical'><b>".$p->t('courseInformation/institutsleiter')."</b></td><td>";
|
||||
if($result=$db->db_query($qry))
|
||||
{
|
||||
while($row=$db->db_fetch_object($result))
|
||||
{
|
||||
echo "$row->titelpre $row->vorname $row->nachname $row->titelpost<br>";
|
||||
}
|
||||
}
|
||||
|
||||
echo "</td></tr>";
|
||||
echo "</td></tr>";
|
||||
|
||||
//FB Koordinator auslesen
|
||||
//FB Koordinator auslesen
|
||||
//$qry = "SELECT distinct vorname, nachname FROM public.tbl_benutzerfunktion JOIN campus.vw_mitarbeiter USING(uid) WHERE funktion_kurzbz='fbk' AND studiengang_kz='$stg' AND fachbereich_kurzbz in (SELECT fachbereich_kurzbz FROM lehre.tbl_lehrfach, lehre.tbl_lehreinheit WHERE lehrveranstaltung_id='$lv' AND tbl_lehrfach.lehrfach_id=tbl_lehreinheit.lehrfach_id AND tbl_lehreinheit.studiensemester_kurzbz=(SELECT studiensemester_kurzbz FROM lehre.tbl_lehreinheit JOIN public.tbl_studiensemester USING(studiensemester_kurzbz) WHERE tbl_lehreinheit.lehrveranstaltung_id='$lv' ORDER BY ende DESC LIMIT 1))";
|
||||
$qry = "SELECT
|
||||
$qry = "SELECT
|
||||
distinct titelpre, titelpost, vorname, nachname, tbl_fachbereich.fachbereich_kurzbz
|
||||
FROM
|
||||
lehre.tbl_lehrveranstaltung, lehre.tbl_lehreinheit, lehre.tbl_lehrveranstaltung as lehrfach, public.tbl_benutzerfunktion, campus.vw_mitarbeiter, public.tbl_fachbereich
|
||||
@@ -574,124 +748,135 @@ if (!$db = new basis_db())
|
||||
(tbl_benutzerfunktion.datum_bis is null OR tbl_benutzerfunktion.datum_bis>=now()) AND
|
||||
vw_mitarbeiter.uid=COALESCE(tbl_lehrveranstaltung.koordinator, tbl_benutzerfunktion.uid) AND
|
||||
tbl_lehrveranstaltung.studiengang_kz=(SELECT studiengang_kz FROM public.tbl_studiengang WHERE oe_kurzbz=tbl_benutzerfunktion.oe_kurzbz LIMIT 1)";
|
||||
|
||||
echo "<tr><td class='tdvertical'><b>".$p->t('courseInformation/institutskoordinator')."</b></td><td> </td><td>";
|
||||
if($result=$db->db_query($qry))
|
||||
{
|
||||
while($row=$db->db_fetch_object($result))
|
||||
{
|
||||
echo "$row->titelpre $row->vorname $row->nachname $row->titelpost<br>";
|
||||
}
|
||||
}
|
||||
|
||||
echo "</td></tr>";
|
||||
|
||||
//echo "</table>";
|
||||
echo "<tr><td>";
|
||||
|
||||
|
||||
echo "<input type='hidden' name='stg' value='$stg'>";
|
||||
echo "<input type='hidden' name='sem' value='$sem'>";
|
||||
echo "<input type='hidden' name='lv' value='$lv'>";
|
||||
echo "<input type='hidden' name='status' value=''>";
|
||||
|
||||
echo "</td></tr>";
|
||||
//Sprache ausgeben
|
||||
echo "<tr><td><b>".$p->t('courseInformation/unterrichtssprache')."</b></td><td> </td><td>$lv_obj->sprache";
|
||||
echo "</td></tr>";
|
||||
|
||||
//Anz. Incoming ausgeben
|
||||
|
||||
if ($lv_obj->incoming > -1)
|
||||
|
||||
echo "<tr><td class='tdvertical'><b>".$p->t('courseInformation/institutskoordinator')."</b></td><td>";
|
||||
if($result=$db->db_query($qry))
|
||||
{
|
||||
while($row=$db->db_fetch_object($result))
|
||||
{
|
||||
echo "<tr><td valign='top'><b>".$p->t('courseInformation/incomingplaetze')."</b></td><td> </td><td valign='top'>$lv_obj->incoming";
|
||||
echo "$row->titelpre $row->vorname $row->nachname $row->titelpost<br>";
|
||||
}
|
||||
}
|
||||
|
||||
echo "</td></tr>";
|
||||
|
||||
//echo "</table>";
|
||||
echo "<tr><td>";
|
||||
|
||||
|
||||
echo "<input type='hidden' name='stg' value='$stg'>";
|
||||
echo "<input type='hidden' name='sem' value='$sem'>";
|
||||
echo "<input type='hidden' name='lv' value='$lv'>";
|
||||
echo "<input type='hidden' name='status' value=''>";
|
||||
|
||||
echo "</td></tr>";
|
||||
//Sprache ausgeben
|
||||
echo "<tr><td><b>".$p->t('courseInformation/unterrichtssprache')."</b></td><td>$lv_obj->sprache";
|
||||
echo "</td></tr>";
|
||||
|
||||
//Anz. Incoming ausgeben
|
||||
|
||||
if ($lv_obj->incoming > -1)
|
||||
{
|
||||
echo "<tr><td valign='top'><b>".$p->t('courseInformation/incomingplaetze')."</b></td><td valign='top'>$lv_obj->incoming";
|
||||
}
|
||||
else echo "<tr><td valign='top'><b>".$p->t('courseInformation/incomingplaetze')."</b></td><td>0";
|
||||
echo "</td></tr><tr><td colspan='4'><font style='font-size:smaller'>".$p->t('courseInformation/beiFehlernInDenFixfeldern',array($stg_obj1->email))."</font></td></tr>";
|
||||
echo "<tr><td align='left' colspan='4'><br/><br/><font style='color:black'>".$p->t('courseInformation/pflichtfelderWerdenAufDerExternenSeiteAngezeigt',array($stg_obj1->email))."</font>.</td></tr>";
|
||||
echo "</td></tr><tr><td colspan='2'><font style='font-size:smaller'>".$p->t('courseInformation/beiFehlernInDenFixfeldern',array($stg_obj1->email))."</font></td></tr>";
|
||||
echo "<tr><td align='left' colspan='2'><br/><br/><font style='color:black'>".$p->t('courseInformation/pflichtfelderWerdenAufDerExternenSeiteAngezeigt',array($stg_obj1->email))."</font>.</td></tr>";
|
||||
//echo "<tr><td align='left' colspan='4'><font style='color:black'>".$p->t('courseInformation/fallsSieAufzaehlungslistenVerwenden',array($stg_obj1->email))."</font></td></tr>"; --> Es sollten keine HTML-Tags gespeichert werden koennen. Hier muss eine andere Loesung gefunde werden.
|
||||
echo "</table><br><br>";
|
||||
|
||||
//Eingabefelder anzeigen
|
||||
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>";
|
||||
//Eingabefelder anzeigen
|
||||
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>";
|
||||
|
||||
|
||||
echo '<tr>
|
||||
<td colspan="2"><b><u>DEUTSCH</u></b></td>
|
||||
<td rowspan="12" width="20"> </td>
|
||||
<td colspan="2"><b><u>ENGLISH</u></b></td>
|
||||
</tr>
|
||||
|
||||
';
|
||||
echo '<tr>
|
||||
<td colspan="2" align="center"><h2>DEUTSCH</h2></td>
|
||||
<td rowspan="14" width="20"> </td>
|
||||
<td colspan="2" align="center"><h2>ENGLISH</h2></td>
|
||||
</tr>';
|
||||
echo '<tr>
|
||||
<td colspan="2" align="center">'.($lv_de->genehmigt==false?'<span style="color:red">'.$p->t('courseInformation/nochNichtFreigegeben').'</span>':$p->t('courseInformation/freigegeben')).'</td>
|
||||
<td colspan="2" align="center">'.($lv_en->genehmigt==false?'<span style="color:red">'.$p->t('courseInformation/nochNichtFreigegeben').'</span>':$p->t('courseInformation/freigegeben')).'</td>
|
||||
</tr>';
|
||||
echo '<tr>
|
||||
<td colspan="5"> </td>
|
||||
</tr>';
|
||||
|
||||
echo '
|
||||
<tr class="liste0">
|
||||
<td><i>'.$p->t('lvinfo/kurzbeschreibung').' <font style="color:black">(Pflichtfeld)</font></i> </td>
|
||||
<td align="right"><textarea rows="5" cols="40" name="kurzbeschreibung_de">'. (isset($kurzbeschreibung_de)?stripslashes(mb_eregi_replace("<br>","\r\n",$kurzbeschreibung_de)):'').'</textarea></td>
|
||||
<td><i>'.$p->t('lvinfo/kurzbeschreibungEN').' <font style="color:black">(Required)</font></i> </td>
|
||||
<td align="right"><textarea rows="5" cols="40" name="kurzbeschreibung_en">'. (isset($kurzbeschreibung_en)?stripslashes(mb_eregi_replace("<br>","\r\n",$kurzbeschreibung_en)):'').'</textarea></td>
|
||||
</tr>
|
||||
<tr class="liste1">
|
||||
<td><i>'.$p->t('lvinfo/methodik').' <font style="color:black">(Pflichtfeld)</font></i> </td>
|
||||
<td align="right"><textarea rows="5" cols="40" name="methodik_de">'. (isset($methodik_de)?stripslashes(mb_eregi_replace("<br>","\r\n", $methodik_de)):'').'</textarea></td>
|
||||
<td><i>'.$p->t('lvinfo/methodikEN').' <font style="color:black">(Required)</font></i> </td>
|
||||
<td align="right"><textarea rows="5" cols="40" name="methodik_en">'. (isset($methodik_en)?stripslashes(mb_eregi_replace("<br>","\r\n",$methodik_en)):'').'</textarea></td>
|
||||
</tr>';
|
||||
echo '<tr class="liste0">
|
||||
<td><i>'.$p->t('lvinfo/lernergebnisse').' <font style="color:black">(Pflichtfeld)</font></i></td>
|
||||
<td align="right"><textarea rows="5" cols="40" name="lehrziele_de">'. (isset($lehrziele_de)?stripslashes(mb_eregi_replace("<br>","\r\n",$lehrziele_de)):'').'</textarea></td>
|
||||
<td><i>'.$p->t('lvinfo/lernergebnisseEN').' <font style="color:black">(Required)</font></i> </td>
|
||||
<td align="right"><textarea rows="5" cols="40" name="lehrziele_en">'. (isset($lehrziele_en)?stripslashes(mb_eregi_replace("<br>","\r\n",$lehrziele_en)):'').'</textarea></td>
|
||||
</tr>
|
||||
<tr class="liste1">
|
||||
<td><i>'.$p->t('lvinfo/lehrinhalte').' <font style="color:black">(Pflichtfeld)</font></i></td>
|
||||
<td align="right"><textarea rows="5" cols="40" name="lehrinhalte_de">'. (isset($lehrinhalte_de)?stripslashes(mb_eregi_replace("<br>","\r\n",$lehrinhalte_de)):'').'</textarea></td>
|
||||
<td><i>'.$p->t('lvinfo/lehrinhalteEN').' <font style="color:black">(Required)</font></i> </td>
|
||||
<td align="right"><textarea rows="5" cols="40" name="lehrinhalte_en">'. (isset($lehrinhalte_en)?stripslashes(mb_eregi_replace("<br>","\r\n",$lehrinhalte_en)):'').'</textarea></td>
|
||||
</tr>
|
||||
<tr class="liste0">
|
||||
<td><i>'.$p->t('lvinfo/vorkenntnisse').' <font style="color:black">(Pflichtfeld)</font></i> </td>
|
||||
<td align="right"><textarea rows="5" cols="40" name="voraussetzungen_de">'. (isset($voraussetzungen_de)?stripslashes(mb_eregi_replace("<br>","\r\n",$voraussetzungen_de)):'').'</textarea></td>
|
||||
<td><i>'.$p->t('lvinfo/vorkenntnisseEN').' <font style="color:black">(Required)</font></i></td>
|
||||
<td align="right"><textarea rows="5" cols="40" name="voraussetzungen_en">'. (isset($voraussetzungen_en)?stripslashes(mb_eregi_replace("<br>","\r\n",$voraussetzungen_en)):'').'</textarea></td>
|
||||
</tr>';
|
||||
echo '<tr class="liste1">
|
||||
<td><i>'.$p->t('lvinfo/literatur').'</i> </td>
|
||||
<td align="right"><textarea rows="5" cols="40" name="unterlagen_de">'. (isset($unterlagen_de)?stripslashes(mb_eregi_replace("<br>","\r\n",$unterlagen_de)):'').'</textarea></td>
|
||||
<td><i>'.$p->t('lvinfo/literaturEN').'</i></td>
|
||||
<td align="right"><textarea rows="5" cols="40" name="unterlagen_en">'. (isset($unterlagen_en)?stripslashes(mb_eregi_replace("<br>","\r\n",$unterlagen_en)):'').'</textarea></td>
|
||||
</tr>
|
||||
<tr class="liste0">
|
||||
<td><i>'.$p->t('lvinfo/leistungsbeurteilung').'</i></td>
|
||||
<td align="right"><textarea rows="5" cols="40" name="pruefungsordnung_de">'. (isset($pruefungsordnung_de)?stripslashes(mb_eregi_replace("<br>","\r\n",$pruefungsordnung_de)):'').'</textarea></td>
|
||||
<td><i>'.$p->t('lvinfo/leistungsbeurteilungEN').'</i> </td>
|
||||
<td align="right"><textarea rows="5" cols="40" name="pruefungsordnung_en">'. (isset($pruefungsordnung_en)?stripslashes(mb_eregi_replace("<br>","\r\n",$pruefungsordnung_en)):'').'</textarea></td>
|
||||
</tr>
|
||||
<tr class="liste1">
|
||||
<td><i>'.$p->t('lvinfo/anwesenheit').'</i></td>
|
||||
<td align="right"><textarea rows="5" cols="40" name="anwesenheit_de">'. (isset($anwesenheit_de)?stripslashes(mb_eregi_replace("<br>","\r\n",$anwesenheit_de)):'').'</textarea></td>
|
||||
<td><i>'.$p->t('lvinfo/anwesenheitEN').'</i></td>
|
||||
<td align="right"><textarea rows="5" cols="40" name="anwesenheit_en">'. (isset($anwesenheit_en)?stripslashes(mb_eregi_replace("<br>","\r\n",$anwesenheit_en)):'').'</textarea></td>
|
||||
</tr>
|
||||
<tr class="liste0">
|
||||
<td><i>'.$p->t('lvinfo/anmerkungen').'</i></td>
|
||||
<td align="right"><textarea rows="5" cols="40" name="anmerkungen_de">'. (isset($anmerkungen_de)?stripslashes(mb_eregi_replace("<br>","\r\n",$anmerkungen_de)):'').'</textarea></td>
|
||||
<td><i>'.$p->t('lvinfo/anmerkungenEN').'</i></td>
|
||||
<td align="right"><textarea rows="5" cols="40" name="anmerkungen_en">'. (isset($anmerkungen_en)?stripslashes(mb_eregi_replace("<br>","\r\n",$anmerkungen_en)):'').'</textarea></td>
|
||||
</tr>
|
||||
<tr class="liste0">
|
||||
<td align=center colspan=2><br><input type="checkbox" name="freig_de" '. (isset($freig_de) && ($freig_de==true || $freig_de=='1')?'checked':'').'/><i>'.$p->t('courseInformation/freigeben').'</i><br><br></td>
|
||||
<td align=center colspan=2><input type="checkbox" name="freig_en" '. (isset($freig_en) && ($freig_en==true || $freig_en=='1')?'checked':'').'/><i>'.$p->t('courseInformation/freigeben').'</i> </td>
|
||||
<td ></td>
|
||||
</tr>';
|
||||
echo "</table><br>";
|
||||
echo "<div align='right'>";
|
||||
echo "<input type='button' value='".$p->t('global/speichern')."' onClick='save();'>";
|
||||
echo "<input type='button' value='".$p->t('courseInformation/voransicht')."' onClick='javascript:window.document.editFrm.action=\"preview.php\";window.document.editFrm.target=\"_blank\";window.document.editFrm.submit();'>";
|
||||
echo "</div>";
|
||||
if(isset($error) && $error!='')
|
||||
echo $error;
|
||||
}
|
||||
echo '
|
||||
<tr class="liste0">
|
||||
<td><i>'.$p->t('lvinfo/kurzbeschreibung').' <font style="color:black">(Pflichtfeld)</font></i> </td>
|
||||
<td align="right"><textarea rows="5" cols="50" name="kurzbeschreibung_de">'. (isset($kurzbeschreibung_de)?stripslashes(mb_eregi_replace("<br>","\r\n",$kurzbeschreibung_de)):'').'</textarea></td>
|
||||
<td><i>'.$p->t('lvinfo/kurzbeschreibungEN').' <font style="color:black">(Required)</font></i> </td>
|
||||
<td align="right"><textarea rows="5" cols="50" name="kurzbeschreibung_en">'. (isset($kurzbeschreibung_en)?stripslashes(mb_eregi_replace("<br>","\r\n",$kurzbeschreibung_en)):'').'</textarea></td>
|
||||
</tr>
|
||||
<tr class="liste1">
|
||||
<td><i>'.$p->t('lvinfo/methodik').' <font style="color:black">(Pflichtfeld)</font></i> </td>
|
||||
<td align="right"><textarea rows="5" cols="50" name="methodik_de">'. (isset($methodik_de)?stripslashes(mb_eregi_replace("<br>","\r\n", $methodik_de)):'').'</textarea></td>
|
||||
<td><i>'.$p->t('lvinfo/methodikEN').' <font style="color:black">(Required)</font></i> </td>
|
||||
<td align="right"><textarea rows="5" cols="50" name="methodik_en">'. (isset($methodik_en)?stripslashes(mb_eregi_replace("<br>","\r\n",$methodik_en)):'').'</textarea></td>
|
||||
</tr>';
|
||||
echo '<tr class="liste0">
|
||||
<td><i>'.$p->t('lvinfo/lernergebnisse').' <font style="color:black">(Pflichtfeld)</font></i></td>
|
||||
<td align="right"><textarea rows="5" cols="50" name="lehrziele_de">'. (isset($lehrziele_de)?stripslashes(mb_eregi_replace("<br>","\r\n",$lehrziele_de)):'Nach erfolgreichem Abschluss sind die Studierenden in der Lage, ').'</textarea></td>
|
||||
<td><i>'.$p->t('lvinfo/lernergebnisseEN').' <font style="color:black">(Required)</font></i> </td>
|
||||
<td align="right"><textarea rows="5" cols="50" name="lehrziele_en">'. (isset($lehrziele_en)?stripslashes(mb_eregi_replace("<br>","\r\n",$lehrziele_en)):'').'</textarea></td>
|
||||
</tr>
|
||||
<tr class="liste1">
|
||||
<td><i>'.$p->t('lvinfo/lehrinhalte').' <font style="color:black">(Pflichtfeld)</font></i></td>
|
||||
<td align="right"><textarea rows="5" cols="50" name="lehrinhalte_de">'. (isset($lehrinhalte_de)?stripslashes(mb_eregi_replace("<br>","\r\n",$lehrinhalte_de)):'').'</textarea></td>
|
||||
<td><i>'.$p->t('lvinfo/lehrinhalteEN').' <font style="color:black">(Required)</font></i> </td>
|
||||
<td align="right"><textarea rows="5" cols="50" name="lehrinhalte_en">'. (isset($lehrinhalte_en)?stripslashes(mb_eregi_replace("<br>","\r\n",$lehrinhalte_en)):'').'</textarea></td>
|
||||
</tr>
|
||||
<tr class="liste0">
|
||||
<td><i>'.$p->t('lvinfo/vorkenntnisse').' <font style="color:black">(Pflichtfeld)</font></i> </td>
|
||||
<td align="right"><textarea rows="5" cols="50" name="voraussetzungen_de">'. (isset($voraussetzungen_de)?stripslashes(mb_eregi_replace("<br>","\r\n",$voraussetzungen_de)):'').'</textarea></td>
|
||||
<td><i>'.$p->t('lvinfo/vorkenntnisseEN').' <font style="color:black">(Required)</font></i></td>
|
||||
<td align="right"><textarea rows="5" cols="50" name="voraussetzungen_en">'. (isset($voraussetzungen_en)?stripslashes(mb_eregi_replace("<br>","\r\n",$voraussetzungen_en)):'').'</textarea></td>
|
||||
</tr>';
|
||||
echo '<tr class="liste1">
|
||||
<td><i>'.$p->t('lvinfo/literatur').'</i> </td>
|
||||
<td align="right"><textarea rows="5" cols="50" name="unterlagen_de">'. (isset($unterlagen_de)?stripslashes(mb_eregi_replace("<br>","\r\n",$unterlagen_de)):'').'</textarea></td>
|
||||
<td><i>'.$p->t('lvinfo/literaturEN').'</i></td>
|
||||
<td align="right"><textarea rows="5" cols="50" name="unterlagen_en">'. (isset($unterlagen_en)?stripslashes(mb_eregi_replace("<br>","\r\n",$unterlagen_en)):'').'</textarea></td>
|
||||
</tr>
|
||||
<tr class="liste0">
|
||||
<td><i>'.$p->t('lvinfo/leistungsbeurteilung').'</i></td>
|
||||
<td align="right"><textarea rows="5" cols="50" name="pruefungsordnung_de">'. (isset($pruefungsordnung_de)?stripslashes(mb_eregi_replace("<br>","\r\n",$pruefungsordnung_de)):'').'</textarea></td>
|
||||
<td><i>'.$p->t('lvinfo/leistungsbeurteilungEN').'</i> </td>
|
||||
<td align="right"><textarea rows="5" cols="50" name="pruefungsordnung_en">'. (isset($pruefungsordnung_en)?stripslashes(mb_eregi_replace("<br>","\r\n",$pruefungsordnung_en)):'').'</textarea></td>
|
||||
</tr>
|
||||
<tr class="liste1">
|
||||
<td><i>'.$p->t('lvinfo/anwesenheit').'</i></td>
|
||||
<td align="right"><textarea rows="5" cols="50" name="anwesenheit_de">'. (isset($anwesenheit_de)?stripslashes(mb_eregi_replace("<br>","\r\n",$anwesenheit_de)):'').'</textarea></td>
|
||||
<td><i>'.$p->t('lvinfo/anwesenheitEN').'</i></td>
|
||||
<td align="right"><textarea rows="5" cols="50" name="anwesenheit_en">'. (isset($anwesenheit_en)?stripslashes(mb_eregi_replace("<br>","\r\n",$anwesenheit_en)):'').'</textarea></td>
|
||||
</tr>
|
||||
<tr class="liste0">
|
||||
<td><i>'.$p->t('lvinfo/anmerkungen').'</i></td>
|
||||
<td align="right"><textarea rows="5" cols="50" name="anmerkungen_de">'. (isset($anmerkungen_de)?stripslashes(mb_eregi_replace("<br>","\r\n",$anmerkungen_de)):'').'</textarea></td>
|
||||
<td><i>'.$p->t('lvinfo/anmerkungenEN').'</i></td>
|
||||
<td align="right"><textarea rows="5" cols="50" name="anmerkungen_en">'. (isset($anmerkungen_en)?stripslashes(mb_eregi_replace("<br>","\r\n",$anmerkungen_en)):'').'</textarea></td>
|
||||
</tr>';
|
||||
if ($rechte->isBerechtigt('lehre/lvinfo_freigabe',$stg))
|
||||
echo ' <tr class="liste0">
|
||||
<td align=center colspan=2><br><input type="checkbox" name="freig_de" '. (isset($freig_de) && ($freig_de==true || $freig_de=='1')?'checked':'').'/><i>'.$p->t('courseInformation/deutschFreigeben').'</i><br><br></td>
|
||||
<td align=center colspan=2><input type="checkbox" name="freig_en" '. (isset($freig_en) && ($freig_en==true || $freig_en=='1')?'checked':'').'/><i>'.$p->t('courseInformation/englischFreigeben').'</i> </td>
|
||||
<td ></td>
|
||||
</tr>';
|
||||
|
||||
echo "</table><br>";
|
||||
echo "<div align='left'>";
|
||||
echo "<input type='button' value='".$p->t('global/speichern')."' onClick='save();'>";
|
||||
echo "<input type='button' value='".$p->t('courseInformation/voransicht')."' onClick='javascript:window.document.editFrm.action=\"preview.php\";window.document.editFrm.target=\"_blank\";window.document.editFrm.submit();'>";
|
||||
echo "<br><br>";
|
||||
echo "<input type='button' value='".$p->t('courseInformation/zurFreigabeAbschicken')."' onClick='freigeben();'>";
|
||||
echo "</div>";
|
||||
echo "</form>";
|
||||
echo "<br><br><br><br><br><br><br><br><br><br><br><br>";
|
||||
if(isset($error) && $error!='')
|
||||
echo $error;
|
||||
}
|
||||
?>
|
||||
<td></tr></table>
|
||||
</body>
|
||||
|
||||
+43
-43
@@ -201,7 +201,7 @@ if (($user == $_GET["uid"]) || $rechte->isBerechtigt('admin'))
|
||||
|
||||
foreach($addons->aktive_addons as $addon)
|
||||
{
|
||||
$zipfile = DOC_ROOT.'addons/'.$addon.'/system/vorlage_zip/'.$vorlage->vorlage_kurzbz.'.'.$endung;
|
||||
$zipfile = DOC_ROOT.'/addons/'.$addon.'/system/vorlage_zip/'.$vorlage->vorlage_kurzbz.'.'.$endung;
|
||||
|
||||
if(file_exists($zipfile))
|
||||
{
|
||||
@@ -210,7 +210,7 @@ if (($user == $_GET["uid"]) || $rechte->isBerechtigt('admin'))
|
||||
}
|
||||
}
|
||||
if(!$vorlage_found)
|
||||
$zipfile = DOC_ROOT.'system/vorlage_zip/'.$vorlage->vorlage_kurzbz.'.'.$endung;
|
||||
$zipfile = DOC_ROOT.'/system/vorlage_zip/'.$vorlage->vorlage_kurzbz.'.'.$endung;
|
||||
|
||||
|
||||
$tempname_zip = 'out.zip';
|
||||
@@ -227,30 +227,30 @@ if (($user == $_GET["uid"]) || $rechte->isBerechtigt('admin'))
|
||||
$filename = $vorlage->vorlage_kurzbz;
|
||||
if($output == 'pdf')
|
||||
{
|
||||
if($xsl == 'LV_Informationen')
|
||||
{
|
||||
$studiengang = new studiengang($_GET['stg_kz']);
|
||||
$studiensemester = new studiensemester($_GET['ss']);
|
||||
$tempPdfName = $vorlage->vorlage_kurzbz.'_'.$studiengang->kurzbzlang.'_'.$studiensemester->studiensemester_kurzbz.'.pdf';
|
||||
$filename = $filename.'_'.$studiengang->kurzbzlang.'_'.$studiensemester->studiensemester_kurzbz.'.pdf';
|
||||
}
|
||||
elseif($xsl == "Honorarvertrag")
|
||||
{
|
||||
$tempPdfName = $vorlage->vorlage_kurzbz.'_'.$benutzer_obj->nachname.'_'.$benutzer_obj->vorname.'.pdf';
|
||||
$filename = $filename.'_'.$benutzer_obj->nachname.'_'.$benutzer_obj->vorname.'.pdf';
|
||||
}
|
||||
elseif($xsl == "Studienordnung")
|
||||
{
|
||||
$studienordnung = new studienordnung();
|
||||
$studienordnung->loadStudienordnung($_GET['studienordnung_id']);
|
||||
$filename = $filename.'_'.$studienordnung->studiengangkurzbzlang.'.pdf';
|
||||
$tempPdfName = $vorlage->vorlage_kurzbz.'.pdf';
|
||||
}
|
||||
else
|
||||
{
|
||||
$tempPdfName = $vorlage->vorlage_kurzbz.'.pdf';
|
||||
$filename = $filename.'.pdf';
|
||||
}
|
||||
if($xsl == 'LV_Informationen')
|
||||
{
|
||||
$studiengang = new studiengang($_GET['stg_kz']);
|
||||
$studiensemester = new studiensemester($_GET['ss']);
|
||||
$tempPdfName = $vorlage->vorlage_kurzbz.'_'.$studiengang->kurzbzlang.'_'.$studiensemester->studiensemester_kurzbz.'.pdf';
|
||||
$filename = $filename.'_'.$studiengang->kurzbzlang.'_'.$studiensemester->studiensemester_kurzbz.'.pdf';
|
||||
}
|
||||
elseif($xsl == "Honorarvertrag")
|
||||
{
|
||||
$tempPdfName = $vorlage->vorlage_kurzbz.'_'.$benutzer_obj->nachname.'_'.$benutzer_obj->vorname.'.pdf';
|
||||
$filename = $filename.'_'.$benutzer_obj->nachname.'_'.$benutzer_obj->vorname.'.pdf';
|
||||
}
|
||||
elseif($xsl == "Studienordnung")
|
||||
{
|
||||
$studienordnung = new studienordnung();
|
||||
$studienordnung->loadStudienordnung($_GET['studienordnung_id']);
|
||||
$filename = $filename.'_'.$studienordnung->studiengangkurzbzlang.'.pdf';
|
||||
$tempPdfName = $vorlage->vorlage_kurzbz.'.pdf';
|
||||
}
|
||||
else
|
||||
{
|
||||
$tempPdfName = $vorlage->vorlage_kurzbz.'.pdf';
|
||||
$filename = $filename.'.pdf';
|
||||
}
|
||||
exec("unoconv -e IsSkipEmptyPages=false --stdout -f pdf $tempname_zip > $tempPdfName");
|
||||
|
||||
$fsize = filesize($tempPdfName);
|
||||
@@ -262,11 +262,11 @@ if (($user == $_GET["uid"]) || $rechte->isBerechtigt('admin'))
|
||||
else if($output =='odt')
|
||||
{
|
||||
if($xsl == "Studienordnung")
|
||||
{
|
||||
$studienordnung = new studienordnung();
|
||||
$studienordnung->loadStudienordnung($_GET['studienordnung_id']);
|
||||
$filename = $filename.'_'.$studienordnung->studiengangkurzbzlang;
|
||||
}
|
||||
{
|
||||
$studienordnung = new studienordnung();
|
||||
$studienordnung->loadStudienordnung($_GET['studienordnung_id']);
|
||||
$filename = $filename.'_'.$studienordnung->studiengangkurzbzlang;
|
||||
}
|
||||
$fsize = filesize($tempname_zip);
|
||||
$handle = fopen($tempname_zip,'r');
|
||||
header('Content-type: '.$vorlage->mimetype);
|
||||
@@ -276,16 +276,16 @@ if (($user == $_GET["uid"]) || $rechte->isBerechtigt('admin'))
|
||||
else if($output =='doc')
|
||||
{
|
||||
$tempPdfName = $vorlage->vorlage_kurzbz.'.doc';
|
||||
if($xsl == "Studienordnung")
|
||||
{
|
||||
$studienordnung = new studienordnung();
|
||||
$studienordnung->loadStudienordnung($_GET['studienordnung_id']);
|
||||
$filename = $filename.'_'.$studienordnung->studiengangkurzbzlang.'.doc';
|
||||
}
|
||||
else
|
||||
{
|
||||
$filename = $filename.'.doc';
|
||||
}
|
||||
if($xsl == "Studienordnung")
|
||||
{
|
||||
$studienordnung = new studienordnung();
|
||||
$studienordnung->loadStudienordnung($_GET['studienordnung_id']);
|
||||
$filename = $filename.'_'.$studienordnung->studiengangkurzbzlang.'.doc';
|
||||
}
|
||||
else
|
||||
{
|
||||
$filename = $filename.'.doc';
|
||||
}
|
||||
exec("unoconv -e IsSkipEmptyPages=false --stdout -f doc $tempname_zip > $tempPdfName");
|
||||
|
||||
$fsize = filesize($tempPdfName);
|
||||
@@ -304,8 +304,8 @@ if (($user == $_GET["uid"]) || $rechte->isBerechtigt('admin'))
|
||||
if(isset($_GET['style_xsl']))
|
||||
unlink('styles.xml');
|
||||
unlink($tempname_zip);
|
||||
if($output=='pdf' || $output=='doc')
|
||||
unlink($filename);
|
||||
if($output=='pdf' || $output=='doc')
|
||||
unlink($tempPdfName);
|
||||
rmdir($tempfolder);
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 5.7 KiB |
@@ -208,7 +208,7 @@ if(!$ansicht)
|
||||
//Foto Upload nur möglich wenn das Bild noch nicht akzeptiert wurde
|
||||
$fs = new fotostatus();
|
||||
if(!$fs->akzeptiert($user->person_id))
|
||||
echo "<br><a href='#BildUpload' onclick='window.open(\"../bildupload.php?person_id=$user->person_id\",\"BildUpload\", \"height=500,width=500,left=0,top=0,hotkeys=0,resizable=yes,status=no,scrollbars=yes,toolbar=no,location=no,menubar=no,dependent=yes\"); return false;'>".$p->t('profil/bildHochladen')."</a>";
|
||||
echo "<br><a href='#BildUpload' onclick='window.open(\"../bildupload.php?person_id=$user->person_id\",\"BildUpload\", \"height=800,width=800,left=0,top=0,hotkeys=0,resizable=yes,status=no,scrollbars=yes,toolbar=no,location=no,menubar=no,dependent=yes\"); return false;'>".$p->t('profil/bildHochladen')."</a>";
|
||||
}
|
||||
if($user->foto_sperre)
|
||||
echo '<br><b>'.$p->t('profil/profilfotoGesperrt').'</b>';
|
||||
|
||||
+102
-5
@@ -40,7 +40,7 @@ $rechte = new benutzerberechtigung();
|
||||
$rechte->getBerechtigungen($user);
|
||||
|
||||
if(!$rechte->isBerechtigt('basis/cms'))
|
||||
die('Sie haben keine Berechtigung fuer diese Seite');
|
||||
die($rechte->errormsg);
|
||||
|
||||
$berechtigte_oe = $rechte->getOEkurzbz('basis/cms')
|
||||
?>
|
||||
@@ -55,9 +55,13 @@ $berechtigte_oe = $rechte->getOEkurzbz('basis/cms')
|
||||
<link href="../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
<script type="text/javascript" src="../include/tiny_mce/tiny_mce.js"></script>
|
||||
<script type="text/javascript" src="../include/js/jquery.js"></script>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
function conf_del()
|
||||
{
|
||||
return confirm('Möchten Sie diesen Eintrag wirklich löschen?');
|
||||
}
|
||||
|
||||
tinyMCE.init
|
||||
(
|
||||
{
|
||||
@@ -126,6 +130,7 @@ $parent_content_id = isset($_GET['parent_content_id'])?$_GET['parent_content_id'
|
||||
$action = isset($_GET['action'])?$_GET['action']:'';
|
||||
$method = isset($_GET['method'])?$_GET['method']:null;
|
||||
$filter = isset($_GET['filter'])?$_GET['filter']:null;
|
||||
$deleted = isset($_GET['deleted'])?$_GET['deleted']:'';
|
||||
$message = '';
|
||||
$submenu_depth=0;
|
||||
$datum_obj = new datum();
|
||||
@@ -657,6 +662,29 @@ if(!is_null($method))
|
||||
$message.='<span class="error">Fehler: ID wurde nicht uebergeben</span>';
|
||||
}
|
||||
break;
|
||||
case 'delete':
|
||||
if(!$rechte->isBerechtigt('basis/cms', null, 'suid'))
|
||||
{
|
||||
$message.='<span class="error">Sie haben keine Berechtigung zum loeschen von Contents</span>';
|
||||
break;
|
||||
}
|
||||
|
||||
$content = new content();
|
||||
if (isset($_GET['versionold']) || isset($_GET['spracheold']))
|
||||
{
|
||||
$versionold = $_GET['versionold'];
|
||||
$spracheold = $_GET['spracheold'];
|
||||
$content->deleteContent($_GET['deleted'], $spracheold, $versionold);
|
||||
}
|
||||
/*
|
||||
* letzte default-language
|
||||
* letzte version (!= 1)
|
||||
*/
|
||||
else
|
||||
{
|
||||
$content->deleteContent($_GET['deleted']);
|
||||
}
|
||||
break;
|
||||
default: break;
|
||||
}
|
||||
}
|
||||
@@ -796,10 +824,13 @@ if(!is_null($content_id) && $content_id!='')
|
||||
case 'history':
|
||||
print_history();
|
||||
break;
|
||||
case 'delete':
|
||||
print_delete();
|
||||
break;
|
||||
default: break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
echo '</td></tr></table>';
|
||||
echo '</body>
|
||||
</html>';
|
||||
@@ -880,7 +911,8 @@ function drawheader()
|
||||
echo get_content_link('content','Inhalt').' | ';
|
||||
echo get_content_link('rights','Rechte').' | ';
|
||||
echo get_content_link('childs','Childs').' | ';
|
||||
echo get_content_link('history','History');
|
||||
echo get_content_link('history','History').' | ';
|
||||
echo get_content_link('delete', 'Delete');
|
||||
}
|
||||
/**
|
||||
* Gibt einen Menue Link aus
|
||||
@@ -1335,4 +1367,69 @@ function print_history()
|
||||
echo '</ul>';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Erstellt den Karteireiter zum Löschen des Contents / der Version
|
||||
* Achtet auch darauf ob es die letzte version überhaupt bzw. die Letzte in der DEFAULT_LANGUAGE ist
|
||||
*
|
||||
*/
|
||||
function print_delete()
|
||||
{
|
||||
global $content_id, $sprache, $version, $filterstr;
|
||||
|
||||
$content = new content();
|
||||
|
||||
if ($sprache == DEFAULT_LANGUAGE)
|
||||
{
|
||||
if ($content->getNumberOfVersions($content_id, $sprache) == 1)
|
||||
{
|
||||
echo'Diese Version kann nicht gelöscht werden, da sie die letzte Vorhandene in der Standardsprache ('.DEFAULT_LANGUAGE.') ist.<br>';
|
||||
echo '<form action="'.$_SERVER['PHP_SELF'].'?deleted='.$content_id.'&method=delete&filter='.implode(' ', $filterstr).'" method="POST">
|
||||
Den gesamten Content <input type="submit" value="löschen" onclick="return conf_del()"></form>';
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
echo'<form action="'.$_SERVER['PHP_SELF'].'?deleted='.$content_id.'&action=delete&versionold='.$version.'&spracheold='.$sprache.'&method=delete&content_id='.$content_id.'&filter='.implode(' ', $filterstr).'" method="POST">
|
||||
Diese Version ('.$sprache.' '.$version.'. Version) <input type="submit" value="löschen" onclick="return conf_del()"> <br /></form>';
|
||||
echo '<form action="'.$_SERVER['PHP_SELF'].'?deleted='.$content_id.'&method=delete&filter='.implode(' ', $filterstr).'" method="POST">
|
||||
Den gesamten Content <input type="submit" value="löschen" onclick="return conf_del()"></form>';
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
echo'<form action="'.$_SERVER['PHP_SELF'].'?deleted='.$content_id.'&action=delete&versionold='.$version.'&spracheold='.$sprache.'&method=delete&content_id='.$content_id.'&filter='.implode(' ', $filterstr).'" method="POST">
|
||||
Diese Version ('.$sprache.' '.$version.'. Version) <input type="submit" value="löschen" onclick="return conf_del()"> <br /></form>';
|
||||
echo '<form action="'.$_SERVER['PHP_SELF'].'?deleted='.$content_id.'&method=delete&filter='.implode(' ', $filterstr).'" method="POST">
|
||||
Den gesamten Content <input type="submit" value="löschen" onclick="return conf_del()"></form>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
+334
-56
@@ -24,7 +24,9 @@ require_once('../config/cis.config.inc.php');
|
||||
require_once('../include/functions.inc.php');
|
||||
require_once('../include/dms.class.php');
|
||||
require_once('../include/benutzerberechtigung.class.php');
|
||||
require_once('../include/basis_db.class.php');
|
||||
|
||||
$db = new basis_db();
|
||||
$user = get_uid();
|
||||
$rechte = new benutzerberechtigung();
|
||||
$rechte->getBerechtigungen($user);
|
||||
@@ -43,39 +45,59 @@ $rechte->getBerechtigungen($user);
|
||||
<script type="text/javascript" src="../include/js/jquery.js"></script>
|
||||
<script type="text/javascript" src="../include/js/superfish.js"></script>
|
||||
<script type="text/javascript" src="../include/tiny_mce/tiny_mce_popup.js"></script>
|
||||
<style type="text/css">
|
||||
.buttondesign {
|
||||
background-color: #87cefa;
|
||||
border: 1px solid black;
|
||||
border-radius: 5px;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
|
||||
function conf_del()
|
||||
function conf_del()
|
||||
{
|
||||
return confirm('Möchten Sie das File wirklich löschen?');
|
||||
}
|
||||
|
||||
var FileBrowserDialog={
|
||||
init: function(){
|
||||
},
|
||||
mySubmit : function (id) {
|
||||
var URL = "dms.php?id="+id;
|
||||
var win = tinyMCEPopup.getWindowArg("window");
|
||||
|
||||
// insert information now
|
||||
win.document.getElementById(tinyMCEPopup.getWindowArg("input")).value = URL;
|
||||
var FileBrowserDialog=
|
||||
{
|
||||
init: function(){
|
||||
},
|
||||
mySubmit : function (id) {
|
||||
var URL = "dms.php?id="+id;
|
||||
var win = tinyMCEPopup.getWindowArg("window");
|
||||
|
||||
// are we an image browser
|
||||
if (typeof(win.ImageDialog) != "undefined") {
|
||||
// we are, so update image dimensions...
|
||||
if (win.ImageDialog.getImageData)
|
||||
win.ImageDialog.getImageData();
|
||||
// insert information now
|
||||
win.document.getElementById(tinyMCEPopup.getWindowArg("input")).value = URL;
|
||||
|
||||
// ... and preview if necessary
|
||||
if (win.ImageDialog.showPreviewImage)
|
||||
win.ImageDialog.showPreviewImage(URL);
|
||||
}
|
||||
// are we an image browser
|
||||
if (typeof(win.ImageDialog) != "undefined") {
|
||||
// we are, so update image dimensions...
|
||||
if (win.ImageDialog.getImageData)
|
||||
win.ImageDialog.getImageData();
|
||||
|
||||
// close popup window
|
||||
tinyMCEPopup.close();
|
||||
}
|
||||
// ... and preview if necessary
|
||||
if (win.ImageDialog.showPreviewImage)
|
||||
win.ImageDialog.showPreviewImage(URL);
|
||||
}
|
||||
|
||||
// close popup window
|
||||
tinyMCEPopup.close();
|
||||
}
|
||||
};
|
||||
|
||||
$('document').ready(function() {
|
||||
$('.buttondesign').mouseenter(function() {
|
||||
$(this).animate({
|
||||
backgroundColor: "#bfefff"
|
||||
}, 300);
|
||||
});
|
||||
$('.buttondesign').mouseleave(function() {
|
||||
$(this).animate({
|
||||
backgroundColor: "#87cefa"
|
||||
}, 300);
|
||||
});
|
||||
});
|
||||
|
||||
//tinyMCEPopup.onInit.add(FileBrowserDialog.init, FileBrowserDialog);
|
||||
|
||||
$(document).ready(function()
|
||||
@@ -93,6 +115,7 @@ $rechte->getBerechtigungen($user);
|
||||
$('#dms_id').val(id);
|
||||
$('#dms_id_import').val(id);
|
||||
$('#ueberschrift').html('Neue Version von '+name);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -103,6 +126,16 @@ $rechte->getBerechtigungen($user);
|
||||
return false;
|
||||
}
|
||||
|
||||
function updateBeschreibung(beschreibung)
|
||||
{
|
||||
var beschreibungstext = ""+beschreibung;
|
||||
beschreibungstext = beschreibungstext.replace(/4nführungsze1ch3n/g, "'");
|
||||
beschreibungstext = beschreibungstext.replace(/6Sl4sh/g, "\\");
|
||||
beschreibungstext = beschreibungstext.replace(/D4n7ührung/g, "\"");
|
||||
beschreibungstext = beschreibungstext.replace(/Ze1l3numxbr/g, "\r\n");
|
||||
document.getElementById("beschreibung-textarea").value = beschreibungstext;
|
||||
}
|
||||
|
||||
var __js_page_array = new Array();
|
||||
function js_toggle_container(conid)
|
||||
{
|
||||
@@ -171,7 +204,11 @@ $projekt_kurzbz = isset($_REQUEST['projekt_kurzbz'])?$_REQUEST['projekt_kurzbz']
|
||||
$projektphase_id = isset($_REQUEST['projektphase_id'])?$_REQUEST['projektphase_id']:'';
|
||||
$openupload = isset($_GET['openupload'])?$_GET['openupload']:false;
|
||||
$newVersionID = isset($_GET['newVersionID'])?$_GET['newVersionID']:false;
|
||||
$suche = false;
|
||||
$suche = false;
|
||||
$chkatID = isset($_REQUEST['chkatID'])?$_REQUEST['chkatID']:'';
|
||||
$page = isset($_REQUEST['page'])?$_REQUEST['page']:1;
|
||||
$dpp = isset($_REQUEST['dpp'])?$_REQUEST['dpp']:20;
|
||||
$searching = isset($_REQUEST['searching'])?$_REQUEST['searching']:'false';
|
||||
|
||||
$mimetypes = array(
|
||||
'application/pdf'=>'pdf.ico',
|
||||
@@ -332,8 +369,8 @@ if(isset($_POST['action']) && $_POST['action']=='rename')
|
||||
|
||||
if(isset($_REQUEST['delete']))
|
||||
{
|
||||
if(!$rechte->isberechtigt('basis/dms',null, 'sui', null))
|
||||
die('Sie haben keine Berechtigung diese Seite zu sehen.');
|
||||
if(!$rechte->isberechtigt('basis/dms',null, 'suid', null))
|
||||
die($rechte->errormsg);
|
||||
|
||||
// lösche nur die Version
|
||||
if(isset($_REQUEST['version']))
|
||||
@@ -370,23 +407,52 @@ if($versionId != '')
|
||||
elseif($renameId!='')
|
||||
{
|
||||
// Übersicht der Versionen
|
||||
echo '<h1>Versionsübersicht</h1>';
|
||||
echo '<h1>Datei umbennen</h1>';
|
||||
echo '<span style="float:right";><a href="'.$_SERVER['PHP_SELF'].'">zurück</a></span>';
|
||||
drawRenameForm($renameId, $version);
|
||||
drawRenameForm($renameId, $version, $page, $dpp, $searching, $searchstring);
|
||||
}
|
||||
elseif($chkatID != '')
|
||||
{
|
||||
if(isset($_POST['action']) && ($_POST['action']=='chkat'))
|
||||
{
|
||||
// neue Kategorie speichern
|
||||
$dms = new dms();
|
||||
$dms->load($chkatID);
|
||||
$dms->kategorie_kurzbz = $_POST['kategoriez'];
|
||||
$dms->save();
|
||||
if (isset($_REQUEST['searching']) && $_REQUEST['searching'] == 'true') {
|
||||
echo '<meta http-equiv="refresh" content="0; url='.$_SERVER['PHP_SELF'].'?searching=true&searchstring='.$_REQUEST['searchstring'].'&page='.$page.'&dpp='.$dpp.'" />';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<meta http-equiv="refresh" content="0; url='.$_SERVER['PHP_SELF'].'?kategorie_kurzbz='.$_REQUEST['kategorie_kurzbz'].'&page='.$page.'&dpp='.$dpp.'" />';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// Kategorieauswahl
|
||||
$dms = new dms();
|
||||
$dms->load($chkatID);
|
||||
echo '<h1>Kategorie von '.$dms->name.' ändern</h1>';
|
||||
echo '<span style="float:right";><a href="'.$_SERVER['PHP_SELF'].'">zurück</a></span>';
|
||||
drawChangeKategorie($chkatID, $page, $dpp);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<div align="left"><h1>Dokument Auswählen</h1></div><div align="right"><a href="admin_dms.php" target="_blank">Administration</a></div>
|
||||
<form action="'.$_SERVER['PHP_SELF'].'" method="POST">
|
||||
echo '<div align="left"><h1>Dokument Auswählen</h1></div><div align="right"></div>
|
||||
<form action="'.$_SERVER['PHP_SELF'].'?searching=true&searchstring='.$searchstring.'" method="POST">
|
||||
<input type="text" name="searchstring" value="'.$searchstring.'">
|
||||
<input type="submit" value="Suchen">
|
||||
<input type="submit" class="buttondesign" value="Suchen">
|
||||
</form>';
|
||||
|
||||
// Suche anzeigen
|
||||
echo' <table cellspacing=0>
|
||||
<tr>
|
||||
<td valign="top" nowrap style="border-right: 1px solid lightblue;border-top: 1px solid lightblue;padding-right:5px">
|
||||
<h3>Kategorie:</h3>
|
||||
<a href="admin_dms.php" target="_blank" style="position: absolute; margin-left:12px; margin-top:29px;">Administration</a>
|
||||
<h3>Kategorie:</h3>
|
||||
<hr><hr style="margin-top:20px;">
|
||||
';
|
||||
//Kategorien anzeigen
|
||||
$dms = new dms();
|
||||
@@ -431,18 +497,155 @@ else
|
||||
//Dokumente der Ausgewaehlten Kategorie laden und Anzeigen
|
||||
$dms = new dms();
|
||||
|
||||
if($searchstring!='')
|
||||
if($searchstring!='' || (isset($_GET['searching']) && $_GET['searching'] == true))
|
||||
{
|
||||
$dms->search($searchstring);
|
||||
$suche = true;
|
||||
$count = new dms();
|
||||
$count->search($searchstring);
|
||||
$anzahl = count($count->result);
|
||||
$dms->search($searchstring, $dpp, $page);
|
||||
$suche = true;
|
||||
|
||||
|
||||
if ($page != 0)
|
||||
{
|
||||
echo '<span style="float:left">'.$anzahl.' Elemente gefunden</span><span style="float:right">Seite '.$page.' von <a href="'.$_SERVER['PHP_SELF'].'?page='; if (is_int($anzahl/$dpp)) { echo (int)($anzahl/$dpp); } else { echo (int)(($anzahl/$dpp)+1); } echo '&dpp='.$dpp.'&searching=true&searchstring='.$searchstring.'">';
|
||||
if (is_int($anzahl/$dpp))
|
||||
{
|
||||
echo (int)($anzahl/$dpp).' </a></span>';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo (int)(($anzahl/$dpp)+1).' </a></span>';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<span align="center"><a href="'.$_SERVER['PHP_SELF'].'?page=1&dpp='.$dpp.'&searching=true&searchstring='.$searchstring.'">Seite 1</a></span>';
|
||||
}
|
||||
|
||||
|
||||
drawFilesList($dms->result);
|
||||
echo '
|
||||
<form action="'.$_SERVER['PHP_SELF'].'?page='; if($page-100 < 1){echo '1';}else{echo ($page-100);} if (isset($_GET['dpp'])) { echo '&dpp='.$_GET['dpp']; } echo '&searching=true&searchstring='.$searchstring.'" method="POST" style="float:left"><input type="submit" class="buttondesign" name="100zurück" value="100 zurück" style="margin-left:5px;"/><input type="hidden" name="searchstring" id="searchstring" value="'.$searchstring.'" /></form>
|
||||
<form action="'.$_SERVER['PHP_SELF'].'?page='; if($page-10 < 1){echo '1';}else{echo ($page-10);} if (isset($_GET['dpp'])) { echo '&dpp='.$_GET['dpp']; } echo '&searching=true&searchstring='.$searchstring.'" method="POST" style="float:left"><input type="submit" class="buttondesign" name="10zurück" value="10 zurück" style="margin-left:2px;"/><input type="hidden" name="searchstring" id="searchstring" value="'.$searchstring.'" /></form>
|
||||
<form action="'.$_SERVER['PHP_SELF'].'?page='; if($page-1 < 1){echo '1';}else{echo ($page-1);} if (isset($_GET['dpp'])) { echo '&dpp='.$_GET['dpp']; } echo '&searching=true&searchstring='.$searchstring.'" method="POST" style="float:left"><input type="submit" class="buttondesign" name="zurück" value="zurück" style="margin-left:2px;"/><input type="hidden" name="searchstring" id="searchstring" value="'.$searchstring.'" /></form>
|
||||
<form action="'.$_SERVER['PHP_SELF'].'?page=0&searching=true" method="POST" style="float:left"><input type=submit class="buttondesign" name="showAll" value="Alle anzeigen" style="margin-left:2px"/><input type="hidden" name="searchstring" id="searchstring" value="'.$searchstring.'" /></form>
|
||||
<form action="'.$_SERVER['PHP_SELF'].'?page='; if($page+1 < 1){echo '1';}else{echo ($page+1);} if (isset($_GET['dpp'])) { echo '&dpp='.$_GET['dpp']; } echo '&searching=true&searchstring='.$searchstring.'" method="POST" style="float:left"><input type="submit" class="buttondesign" name="weiter" value="weiter" style="margin-left:2px"/><input type="hidden" name="searchstring" id="searchstring" value="'.$searchstring.'" /></form>
|
||||
<form action="'.$_SERVER['PHP_SELF'].'?page='; if($page+10 < 1){echo '1';}else{echo ($page+10);} if (isset($_GET['dpp'])) { echo '&dpp='.$_GET['dpp']; } echo '&searching=true&searchstring='.$searchstring.'" method="POST" style="float:left"><input type="submit" class="buttondesign" name="10weiter" value="10 weiter" style="margin-left:2px"/><input type="hidden" name="searchstring" id="searchstring" value="'.$searchstring.'" /></form>
|
||||
<form action="'.$_SERVER['PHP_SELF'].'?page='; if($page+100 < 1){echo '1';}else{echo ($page+100);} if (isset($_GET['dpp'])) { echo '&dpp='.$_GET['dpp']; } echo '&searching=true&searchstring='.$searchstring.'" method="POST" style="float:left"><input type="submit" class="buttondesign" name="100weiter" value="100 weiter" style="margin-left:2px"/><input type="hidden" name="searchstring" id="searchstring" value="'.$searchstring.'" /></form>
|
||||
<form action="'.$_SERVER['PHP_SELF'].'?searching=true&searchstring='.$searchstring.'&page='.$page.' method="POST" style="float:right">
|
||||
<input type="hidden" name="page" id="page" value="'; if ($page == 0 || $page == '') { echo '1'; } else { echo $page; } echo '">
|
||||
<input type="hidden" name="searchstring" id="searchstring" value="'.$searchstring.'" />
|
||||
<input type="hidden" name="searching" id="searchstring" value="'.$searching.'" />
|
||||
<select name="dpp" onchange="this.form.submit();" style="margin-left:20px;">';
|
||||
if (isset($_GET['dpp']))
|
||||
{
|
||||
for ($i = 10; $i <= 100; $i = $i+10)
|
||||
{
|
||||
if ($_GET['dpp'] == $i)
|
||||
{
|
||||
echo '<option selected>'.$i.'</option>';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<option>'.$i.'</option>';
|
||||
}
|
||||
}
|
||||
switch ($_GET['dpp'])
|
||||
{
|
||||
case 150: echo'<option selected>150</option><option>200</option><option>500</option><option>1000</option><option>2000</option>'; break;
|
||||
case 200: echo'<option>150</option><option selected>200</option><option>500</option><option>1000</option><option>2000</option>'; break;
|
||||
case 500: echo'<option>150</option><option>200</option><option selected>500</option><option>1000</option><option>2000</option>'; break;
|
||||
case 1000: echo'<option>150</option><option>200</option><option>500</option><option selected>1000</option><option>2000</option>'; break;
|
||||
case 2000: echo'<option>150</option><option>200</option><option>500</option><option>1000</option><option selected>2000</option>'; break;
|
||||
default: echo'<option>150</option><option>200</option><option>500</option><option>1000</option><option>2000</option>'; break;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo ' <option>10</option><option selected>20</option><option>30</option>
|
||||
<option>40</option><option>50</option><option>60</option>
|
||||
<option>70</option><option>80</option><option>90</option>
|
||||
<option>100</option><option>150</option><option>200</option>
|
||||
<option>500</option><option>1000</option><option>2000</option>';
|
||||
}
|
||||
echo'
|
||||
</select> Elemente pro Seite
|
||||
</form>';
|
||||
}
|
||||
else
|
||||
{
|
||||
$dms->getDocuments($kategorie_kurzbz);
|
||||
$count = new dms();
|
||||
$count->getDocuments($kategorie_kurzbz);
|
||||
$anzahl = count($count->result);
|
||||
$dms->getDocuments($kategorie_kurzbz, $dpp, $page);
|
||||
|
||||
if ($page != 0)
|
||||
{
|
||||
echo '<span style="float:left">'.$anzahl.' Elemente gefunden</span><span style="float:right">Seite '.$page.' von <a href="'.$_SERVER['PHP_SELF'].'?kategorie_kurzbz='.$kategorie_kurzbz.'&page='; if (is_int($anzahl/$dpp)) { echo (int)($anzahl/$dpp); } else { echo (int)(($anzahl/$dpp)+1); } echo '&dpp='.$dpp.'">';
|
||||
if (is_int($anzahl/$dpp))
|
||||
{
|
||||
echo (int)($anzahl/$dpp).' </a></span>';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo (int)(($anzahl/$dpp)+1).' </a></span>';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<span align="center"><a href="'.$_SERVER['PHP_SELF'].'?kategorie_kurzbz='.$kategorie_kurzbz.'&page=1&dpp='.$dpp.'">Seite 1</a></span>';
|
||||
}
|
||||
|
||||
drawFilesList($dms->result);
|
||||
echo '
|
||||
<form action="'.$_SERVER['PHP_SELF'].'?kategorie_kurzbz='.$kategorie_kurzbz.'&page='; if($page-100 < 1){echo '1';}else{echo ($page-100);} if (isset($_GET['dpp'])) { echo '&dpp='.$_GET['dpp']; } echo '" method="POST" style="float:left"><input type="submit" class="buttondesign" name="100zurück" value="100 zurück" style="margin-left:5px;"/></form>
|
||||
<form action="'.$_SERVER['PHP_SELF'].'?kategorie_kurzbz='.$kategorie_kurzbz.'&page='; if($page-10 < 1){echo '1';}else{echo ($page-10);} if (isset($_GET['dpp'])) { echo '&dpp='.$_GET['dpp']; } echo '" method="POST" style="float:left"><input type="submit" class="buttondesign" name="10zurück" value="10 zurück" style="margin-left:2px;"/></form>
|
||||
<form action="'.$_SERVER['PHP_SELF'].'?kategorie_kurzbz='.$kategorie_kurzbz.'&page='; if($page-1 < 1){echo '1';}else{echo ($page-1);} if (isset($_GET['dpp'])) { echo '&dpp='.$_GET['dpp']; } echo '" method="POST" style="float:left"><input type="submit" class="buttondesign" name="zurück" value="zurück" style="margin-left:2px;"/></form>
|
||||
<form action="'.$_SERVER['PHP_SELF'].'?kategorie_kurzbz='.$kategorie_kurzbz.'&page=0" method="POST" style="float:left"><input type=submit class="buttondesign" name="showAll" value="Alle anzeigen" style="margin-left:2px"/></form>
|
||||
<form action="'.$_SERVER['PHP_SELF'].'?kategorie_kurzbz='.$kategorie_kurzbz.'&page='; if($page+1 < 1){echo '1';}else{echo ($page+1);} if (isset($_GET['dpp'])) { echo '&dpp='.$_GET['dpp']; } echo '" method="POST" style="float:left"><input type="submit" class="buttondesign" name="weiter" value="weiter" style="margin-left:2px"/></form>
|
||||
<form action="'.$_SERVER['PHP_SELF'].'?kategorie_kurzbz='.$kategorie_kurzbz.'&page='; if($page+10 < 1){echo '1';}else{echo ($page+10);} if (isset($_GET['dpp'])) { echo '&dpp='.$_GET['dpp']; } echo '" method="POST" style="float:left"><input type="submit" class="buttondesign" name="10weiter" value="10 weiter" style="margin-left:2px"/></form>
|
||||
<form action="'.$_SERVER['PHP_SELF'].'?kategorie_kurzbz='.$kategorie_kurzbz.'&page='; if($page+100 < 1){echo '1';}else{echo ($page+100);} if (isset($_GET['dpp'])) { echo '&dpp='.$_GET['dpp']; } echo '" method="POST" style="float:left"><input type="submit" class="buttondesign" name="100weiter" value="100 weiter" style="margin-left:2px"/></form>
|
||||
<form action="'.$_SERVER['PHP_SELF'].'?kategorie_kurzbz='.$kategorie_kurzbz.'&page='.$page.' method="POST" style="float:right">
|
||||
<input type="hidden" name="kategorie_kurzbz" id="kategorie_kurzbz" value="'.$kategorie_kurzbz.'" /><input type="hidden" name="page" id="page" value="'; if ($page == 0 || $page == '') { echo '1'; } else { echo $page; } echo '">
|
||||
<select name="dpp" onchange="this.form.submit();" style="margin-left:20px;">';
|
||||
if (isset($_GET['dpp']))
|
||||
{
|
||||
for ($i = 10; $i <= 100; $i = $i+10)
|
||||
{
|
||||
if ($_GET['dpp'] == $i)
|
||||
{
|
||||
echo '<option selected>'.$i.'</option>';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<option>'.$i.'</option>';
|
||||
}
|
||||
}
|
||||
switch ($_GET['dpp'])
|
||||
{
|
||||
case 150: echo'<option selected>150</option><option>200</option><option>500</option><option>1000</option><option>2000</option>'; break;
|
||||
case 200: echo'<option>150</option><option selected>200</option><option>500</option><option>1000</option><option>2000</option>'; break;
|
||||
case 500: echo'<option>150</option><option>200</option><option selected>500</option><option>1000</option><option>2000</option>'; break;
|
||||
case 1000: echo'<option>150</option><option>200</option><option>500</option><option selected>1000</option><option>2000</option>'; break;
|
||||
case 2000: echo'<option>150</option><option>200</option><option>500</option><option>1000</option><option selected>2000</option>'; break;
|
||||
default: echo'<option>150</option><option>200</option><option>500</option><option>1000</option><option>2000</option>'; break;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo ' <option>10</option><option selected>20</option><option>30</option>
|
||||
<option>40</option><option>50</option><option>60</option>
|
||||
<option>70</option><option>80</option><option>90</option>
|
||||
<option>100</option><option>150</option><option>200</option>
|
||||
<option>500</option><option>1000</option><option>2000</option>';
|
||||
}
|
||||
echo'
|
||||
</select> Elemente pro Seite
|
||||
</form>';
|
||||
}
|
||||
|
||||
//drawFilesThumb($dms->result);
|
||||
drawFilesList($dms->result);
|
||||
|
||||
|
||||
echo '
|
||||
</td>
|
||||
@@ -450,17 +653,27 @@ else
|
||||
</table>
|
||||
<br>
|
||||
<a href="#Upload" onclick="return upload()">Neue Datei hochladen</a>
|
||||
<br><br>
|
||||
<br>
|
||||
|
||||
<br><br>
|
||||
<div id="divupload">
|
||||
<hr>
|
||||
<span id="ueberschrift"></span>
|
||||
<form action="'.$_SERVER['PHP_SELF'].'" method="POST" enctype="multipart/form-data">
|
||||
<span id="ueberschrift"></span>';
|
||||
if (isset($_REQUEST['searching']) && $_REQUEST['searching'] == 'true')
|
||||
{
|
||||
echo '<form action="'.$_SERVER['PHP_SELF'].'?searching=true&searchstring='.$searchstring.'&page='.$page.'&dpp='.$dpp.'" method="POST" enctype="multipart/form-data">';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<form action="'.$_SERVER['PHP_SELF'].'?kategorie_kurzbz='.$kategorie_kurzbz.'&page='.$page.'&dpp='.$dpp.'" method="POST" enctype="multipart/form-data">';
|
||||
}
|
||||
echo '
|
||||
<input type="hidden" name="kategorie_kurzbz" id="kategorie_kurzbz" value="'.$kategorie_kurzbz.'">
|
||||
<input type="hidden" name="dms_id" id="dms_id" value="">
|
||||
<table>
|
||||
<tr>
|
||||
<td>Beschreibung</td>
|
||||
<td><textarea name="beschreibung" rows="2" cols="80" style="font-size: small;"></textarea></td>
|
||||
<td><textarea name="beschreibung" id="beschreibung-textarea" rows="2" cols="80" style="font-size: small;"></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
@@ -469,11 +682,11 @@ else
|
||||
</table>
|
||||
<input type="hidden" name="projekt_kurzbz" value="'.$projekt_kurzbz.'">
|
||||
<input type="hidden" name="projektphase_id" value="'.$projektphase_id.'">
|
||||
<input type="submit" name="fileupload" value="Upload">
|
||||
<input type="submit" class="buttondesign" name="fileupload" value="Upload">
|
||||
</form>
|
||||
<br>';
|
||||
drawFilesFromImport();
|
||||
echo'
|
||||
echo'
|
||||
</div>';
|
||||
if($openupload)
|
||||
{
|
||||
@@ -496,7 +709,6 @@ else
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/************ FUNCTIONS ********************/
|
||||
|
||||
@@ -516,7 +728,7 @@ function drawAllVersions($id)
|
||||
$("#t3").tablesorter(
|
||||
{
|
||||
sortList: [[0,0]], headers: {6:{sorter:false}},
|
||||
widgets: ["zebra"]
|
||||
widgets: ["zebra"],
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@@ -632,7 +844,7 @@ function drawKategorieMenue($rows)
|
||||
<tr>
|
||||
<td class="tdwidth10" nowrap> </td>
|
||||
<td class="tdwrap">
|
||||
<a href="'.$_SERVER['PHP_SELF'].'?kategorie_kurzbz='.$row->kategorie_kurzbz.'" class="MenuItem" onClick="js_toggle_container(\''.$row->kategorie_kurzbz.'\');"><img src="../skin/images/menu_item.gif" alt="menu item" width="7" height="9"> <span class="'.$class.'">'.$row->bezeichnung.'</span></a>
|
||||
<a href="'.$_SERVER['PHP_SELF'].'?kategorie_kurzbz='.$row->kategorie_kurzbz.'" class="MenuItem" onClick="js_toggle_container(\''.$row->kategorie_kurzbz.'\');"> <span class="'.$class.'">'.$row->bezeichnung.'</span></a>
|
||||
'.$locked.'
|
||||
<table class="tabcontent" id="'.$row->kategorie_kurzbz.'" style="display: none;">';
|
||||
drawKategorieMenue($dms->result);
|
||||
@@ -645,7 +857,7 @@ function drawKategorieMenue($rows)
|
||||
echo '
|
||||
<tr>
|
||||
<td class="tdwidth10" nowrap> </td>
|
||||
<td class="tdwrap"><a id="'.$row->kategorie_kurzbz.'" href="'.$_SERVER['PHP_SELF'].'?kategorie_kurzbz='.$row->kategorie_kurzbz.'" class="Item"><img src="../skin/images/menu_item.gif" alt="menu item" width="7" height="9"> <span class="'.$class.'">'.$row->bezeichnung.'</span></a>'.$locked.'</td>
|
||||
<td class="tdwrap"><a id="'.$row->kategorie_kurzbz.'" href="'.$_SERVER['PHP_SELF'].'?kategorie_kurzbz='.$row->kategorie_kurzbz.'" class="Item"> <span class="'.$class.'">'.$row->bezeichnung.'</span></a>'.$locked.'</td>
|
||||
</tr>';
|
||||
}
|
||||
|
||||
@@ -745,10 +957,29 @@ function drawFilesList($rows)
|
||||
<ul>
|
||||
<li><a href="id://'.$row->dms_id.'/Auswahl" onclick="'.$newerVersionAlert.' FileBrowserDialog.mySubmit('.$row->dms_id.');" style="font-size:small">Auswählen</a></li>
|
||||
<li><a href="dms.php?id='.$row->dms_id.'&version='.$row->version.'" style="font-size:small" target="_blank">Herunterladen</a></li>
|
||||
<li><a href="id://'.$row->dms_id.'/Upload" onclick="return upload(\''.$row->dms_id.'\',\''.$row->name.'\')" style="font-size:small">Neue Version hochladen</a></li>
|
||||
<li><a href="'.$_SERVER['PHP_SELF'].'?versionid='.$row->dms_id.'" style="font-size:small" >Alle Versionen anzeigen</a></li>
|
||||
<li><a href="'.$_SERVER['PHP_SELF'].'?renameid='.$row->dms_id.'&version='.$row->version.'&kategorie_kurzbz='.$row->kategorie_kurzbz.'" style="font-size:small" >Datei umbenennen</a></li>
|
||||
<li><a href="'.$_SERVER['PHP_SELF'].'?kategorie_kurzbz='.$row->kategorie_kurzbz.'&dms_id='.$row->dms_id.'&delete" onclick="return conf_del()" style="font-size:small" >Löschen</a></li>
|
||||
<li><a href="id://'.$row->dms_id.'/Upload" onclick=" updateBeschreibung(\'';
|
||||
$beschreibungstext = $row->beschreibung;
|
||||
$beschreibungstext = str_replace("'","4nführungsze1ch3n",$beschreibungstext);
|
||||
$beschreibungstext = str_replace('"',"D4n7ührung",$beschreibungstext);
|
||||
$beschreibungstext = str_replace("\\","6Sl4sh",$beschreibungstext);
|
||||
$beschreibungstext = str_replace("\r\n","Ze1l3numxbr",$beschreibungstext);
|
||||
echo $beschreibungstext.'\'); return upload(\''.$row->dms_id.'\',\''.$row->name.'\');" style="font-size:small">Neue Version hochladen</a></li>
|
||||
<li><a href="'.$_SERVER['PHP_SELF'].'?versionid='.$row->dms_id.'" style="font-size:small" >Alle Versionen anzeigen</a></li>';
|
||||
if (isset($_REQUEST['searching']) && $_REQUEST['searching'] == 'true')
|
||||
{
|
||||
echo '<li><a href="'.$_SERVER['PHP_SELF'].'?chkatID='.$row->dms_id.'&page='; if (isset($_REQUEST['page'])) { echo $_REQUEST['page']; } else { echo '1'; } echo '&dpp='; if (isset($_REQUEST['dpp'])) { echo $_REQUEST['dpp']; } else { echo '20'; } echo '&searching=true&searchstring='.$_REQUEST['searchstring'].'" style="font-size:small" >Kategorie ändern</a></li>';
|
||||
echo '<li><a href="'.$_SERVER['PHP_SELF'].'?renameid='.$row->dms_id.'&version='.$row->version.'&searching=true&'; if (isset($_REQUEST['searchstring'])) echo 'searchstring='.$_REQUEST['searchstring'].'&page='; if (isset($_REQUEST['page'])) { echo $_REQUEST['page']; } else { echo '1'; } echo '&dpp='; if (isset($_REQUEST['dpp'])) { echo $_REQUEST['dpp']; } else { echo '20'; } echo '" style="font-size:small" >Datei umbenennen</a></li>';
|
||||
echo '<li><a href="'.$_SERVER['PHP_SELF'].'?searching=true&'; if (isset($_REQUEST['searchstring'])) echo 'searchstring='.$_REQUEST['searchstring'].'&dms_id='.$row->dms_id.'&delete" onclick="return conf_del()" style="font-size:small" >Löschen</a></li>';
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<li><a href="'.$_SERVER['PHP_SELF'].'?chkatID='.$row->dms_id.'&page='; if (isset($_REQUEST['page'])) { echo $_REQUEST['page']; } else { echo '1'; } echo '&dpp='; if (isset($_REQUEST['dpp'])) { echo $_REQUEST['dpp']; } else { echo '20'; } echo '" style="font-size:small" >Kategorie ändern</a></li>';
|
||||
echo '<li><a href="'.$_SERVER['PHP_SELF'].'?renameid='.$row->dms_id.'&version='.$row->version.'&kategorie_kurzbz='.$row->kategorie_kurzbz.'&page='; if (isset($_REQUEST['page'])) { echo $_REQUEST['page']; } else { echo '1'; } echo '&dpp='; if (isset($_REQUEST['dpp'])) { echo $_REQUEST['dpp']; } else { echo '20'; } echo '" style="font-size:small" >Datei umbenennen</a></li>';
|
||||
echo '<li><a href="'.$_SERVER['PHP_SELF'].'?kategorie_kurzbz='.$row->kategorie_kurzbz.'&dms_id='.$row->dms_id.'&delete" onclick="return conf_del()" style="font-size:small" >Löschen</a></li>';
|
||||
|
||||
}
|
||||
echo '
|
||||
</ul>
|
||||
</li>
|
||||
</ul>';
|
||||
@@ -768,14 +999,22 @@ function drawFilesList($rows)
|
||||
* @param $dms_id ID des Dokuments
|
||||
* @param $version Versionsnummer des Dokuments
|
||||
*/
|
||||
function drawRenameForm($dms_id, $version)
|
||||
function drawRenameForm($dms_id, $version, $page = NULL, $dpp = NULL, $searching, $searchstring)
|
||||
{
|
||||
global $kategorie_kurzbz;
|
||||
|
||||
$dms = new dms();
|
||||
if($dms->load($dms_id, $version))
|
||||
{
|
||||
echo '<form action="'.$_SERVER['PHP_SELF'].'?kategorie_kurzbz='.$kategorie_kurzbz.'" method="POST">
|
||||
if ($searching == 'true')
|
||||
{
|
||||
echo '<form action="'.$_SERVER['PHP_SELF'].'?searching=true&searchstring='.$searchstring; if (!is_null($page)) echo '&page='.$page; if (!is_null($dpp)) echo '&dpp='.$dpp; echo '" method="POST">';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<form action="'.$_SERVER['PHP_SELF'].'?kategorie_kurzbz='.$kategorie_kurzbz; if (!is_null($page)) echo '&page='.$page; if (!is_null($dpp)) echo '&dpp='.$dpp; echo '" method="POST">';
|
||||
}
|
||||
echo '
|
||||
<table>
|
||||
<tr>
|
||||
<td>Dateiname:</td>
|
||||
@@ -788,8 +1027,8 @@ function drawRenameForm($dms_id, $version)
|
||||
</table>
|
||||
<input type="hidden" name="action" value="rename">
|
||||
<input type="hidden" name="dms_id" value="'.$dms_id.'">
|
||||
<input type="hidden" name="version" value="'.$version.'">
|
||||
<input type="submit" name="submit" value="Umbenennen">
|
||||
<input type="hidden" name="version" value="'.$version.'">';
|
||||
echo '<input type="submit" class="buttondesign" name="submit" value="Umbenennen">
|
||||
</form>';
|
||||
}
|
||||
else
|
||||
@@ -798,6 +1037,45 @@ function drawRenameForm($dms_id, $version)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Erstellt das Formular zum Ändern der Kategorie von Dokumenten
|
||||
* @param $dms_id ID des Dokuments
|
||||
*/
|
||||
function drawChangeKategorie($dms_id, $page = NULL, $dpp = NULL) {
|
||||
$dms = new dms;
|
||||
$dms->load($dms_id);
|
||||
|
||||
$allKategorien = new dms();
|
||||
$allKategorien->getAllKategories();
|
||||
|
||||
if (isset($_REQUEST['searching']) && $_REQUEST['searching'] == 'true')
|
||||
{
|
||||
echo '<form action="'.$_SERVER['PHP_SELF'].'?chkatID='.$dms_id.'&searching=true&searchstring='.$_REQUEST['searchstring']; if (!is_null($page)) echo '&page='.$page; if (!is_null($dpp)) echo '&dpp='.$dpp; echo '" method="POST">';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<form action="'.$_SERVER['PHP_SELF'].'?chkatID='.$dms_id.'&kategorie_kurzbz='.$dms->kategorie_kurzbz; if (!is_null($page)) echo '&page='.$page; if (!is_null($dpp)) echo '&dpp='.$dpp; echo '" method="POST">';
|
||||
}
|
||||
echo '
|
||||
<select name="kategoriez">
|
||||
<option value="auswahl">-- Bitte Auswählen --</option>';
|
||||
foreach($allKategorien->result as $kategorienResult)
|
||||
{
|
||||
$selected ='';
|
||||
if($kategorienResult->kategorie_kurzbz == $dms->kategorie_kurzbz)
|
||||
$selected='selected';
|
||||
|
||||
echo '<option '.$selected.' value="'.$kategorienResult->kategorie_kurzbz.'">'.$kategorienResult->bezeichnung.' ['.$kategorienResult->kategorie_kurzbz.']</option>';
|
||||
}
|
||||
|
||||
echo '</select>
|
||||
<input type="hidden" name="action" value="chkat">
|
||||
<input type="hidden" name="dms_id" value="'.$dms_id.'">';
|
||||
if (!is_null($page)) echo '<input type="hidden" name="page" value="'.$page.'">';
|
||||
if (!is_null($dpp)) echo '<input type="hidden" name="dpp" value="'.$dpp.'">';
|
||||
echo '<input type="submit" class="buttondesign" name="chkat_save" value="Speichern"></form>';
|
||||
}
|
||||
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
@@ -26,6 +26,12 @@ header("Expires Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Pragma: no-cache");
|
||||
header("Content-type: application/vnd.mozilla.xul+xml");
|
||||
require_once('../../config/vilesci.config.inc.php');
|
||||
require_once('../../include/benutzerberechtigung.class.php');
|
||||
|
||||
$user = get_uid();
|
||||
$rechte = new benutzerberechtigung();
|
||||
$rechte->getBerechtigungen($user);
|
||||
|
||||
echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';
|
||||
|
||||
?>
|
||||
@@ -73,10 +79,10 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';
|
||||
|
||||
|
||||
</row>
|
||||
<row>
|
||||
<!--<row>
|
||||
<label value="Lehrveranstaltung" />
|
||||
<textbox id="lehrveranstaltung-detail-textbox-lehrveranstaltung" maxlength="20" disabled="true"/>
|
||||
</row>
|
||||
</row>-->
|
||||
</rows>
|
||||
</grid>
|
||||
</vbox>
|
||||
@@ -95,6 +101,10 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';
|
||||
<column style="min-width:240px" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label value="LV-ID" <?php echo ($rechte->isBerechtigt('lehre/lehrveranstaltung',null,'suid'))?'':'hidden="true"'; ?>/>
|
||||
<textbox id="lehrveranstaltung-detail-textbox-lehrveranstaltung" disabled="true" maxlength="20" <?php echo ($rechte->isBerechtigt('lehre/lehrveranstaltung',null,'suid'))?'':'hidden="true"'; ?>/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="Lehrfach" />
|
||||
<menulist id="lehrveranstaltung-detail-menulist-lehrfach" disabled="true"
|
||||
|
||||
@@ -48,8 +48,8 @@ echo "<?xml-stylesheet href=\"".APP_ROOT."content/bindings.css\" type=\"text/css
|
||||
<popupset>
|
||||
<menupopup id="lehrveranstaltung-noten-tree-popup">
|
||||
<menuitem label="Entfernen" oncommand="LehrveranstaltungNotenDelete();" id="lehrveranstaltung-noten-tree-popup-delete" hidden="false"/>
|
||||
<menuitem label="Freifaecher-Zertifikat erstellen" oncommand="LehrveranstaltungFFZertifikatPrint();" id="lehrveranstaltung-noten-tree-popup-ffzertifikat" hidden="false"/>
|
||||
<menuitem label="Lehrveranstaltungszeugnis erstellen" oncommand="LehrveranstaltungLVZeugnisPrint();" id="lehrveranstaltung-noten-tree-popup-lvzeugnis" hidden="false"/>
|
||||
<menuitem label="Freifaecher-Zertifikat erstellen" oncommand="LehrveranstaltungFFZertifikatPrint(event);" id="lehrveranstaltung-noten-tree-popup-ffzertifikat" hidden="false"/>
|
||||
<menuitem label="Lehrveranstaltungszeugnis erstellen" oncommand="LehrveranstaltungLVZeugnisPrint(event);" id="lehrveranstaltung-noten-tree-popup-lvzeugnis" hidden="false"/>
|
||||
</menupopup>
|
||||
</popupset>
|
||||
<hbox flex="1" style="margin-top: 10px;">
|
||||
|
||||
@@ -610,6 +610,7 @@ function LeDetailDisableFields(val)
|
||||
document.getElementById('lehrveranstaltung-detail-button-save').disabled=val;
|
||||
|
||||
document.getElementById('lehrveranstaltung-detail-textbox-unr').disabled=val;
|
||||
document.getElementById('lehrveranstaltung-detail-textbox-lehrveranstaltung').disabled=val;
|
||||
}
|
||||
|
||||
// ****
|
||||
@@ -1868,7 +1869,7 @@ function LehrveranstaltungNotenPunkteChange()
|
||||
// ****
|
||||
// * Erstellt das Zertifikat fuer die Freifaecher
|
||||
// ****
|
||||
function LehrveranstaltungFFZertifikatPrint()
|
||||
function LehrveranstaltungFFZertifikatPrint(event)
|
||||
{
|
||||
tree = document.getElementById('lehrveranstaltung-noten-tree');
|
||||
//Alle markierten Noten holen
|
||||
@@ -1895,8 +1896,15 @@ function LehrveranstaltungFFZertifikatPrint()
|
||||
var ss = getStudiensemester();
|
||||
col = tree.columns ? tree.columns["lehrveranstaltung-noten-tree-studiengang_kz"] : "lehrveranstaltung-noten-tree-studiengang_kz";
|
||||
stg_kz = tree.view.getCellText(tree.currentIndex,col);
|
||||
|
||||
if (event.shiftKey)
|
||||
var output='odt';
|
||||
else if (event.ctrlKey)
|
||||
var output='doc';
|
||||
else
|
||||
var output='pdf';
|
||||
|
||||
url = '<?php echo APP_ROOT; ?>content/pdfExport.php?xml=zertifikat.rdf.php&xsl=Zertifikat&stg_kz='+stg_kz+'&uid='+paramList+'&ss='+ss+'&lvid='+lvid+'&'+gettimestamp();
|
||||
url = '<?php echo APP_ROOT; ?>content/pdfExport.php?xml=zertifikat.rdf.php&xsl=Zertifikat&stg_kz='+stg_kz+'&uid='+paramList+'&output='+output+'&ss='+ss+'&lvid='+lvid+'&'+gettimestamp();
|
||||
window.location.href = url;
|
||||
//prompt('test:',url);
|
||||
}
|
||||
@@ -1904,7 +1912,7 @@ function LehrveranstaltungFFZertifikatPrint()
|
||||
// ****
|
||||
// * Erstellt ein Lehrveranstaltungszeugnis fuer die LV
|
||||
// ****
|
||||
function LehrveranstaltungLVZeugnisPrint()
|
||||
function LehrveranstaltungLVZeugnisPrint(event)
|
||||
{
|
||||
tree = document.getElementById('lehrveranstaltung-noten-tree');
|
||||
//Alle markierten Noten holen
|
||||
@@ -1931,8 +1939,15 @@ function LehrveranstaltungLVZeugnisPrint()
|
||||
var ss = getStudiensemester();
|
||||
col = tree.columns ? tree.columns["lehrveranstaltung-noten-tree-studiengang_kz"] : "lehrveranstaltung-noten-tree-studiengang_kz";
|
||||
stg_kz = tree.view.getCellText(tree.currentIndex,col);
|
||||
|
||||
if (event.shiftKey)
|
||||
var output='odt';
|
||||
else if (event.ctrlKey)
|
||||
var output='doc';
|
||||
else
|
||||
var output='pdf';
|
||||
|
||||
url = '<?php echo APP_ROOT; ?>content/pdfExport.php?xml=lehrveranstaltungszeugnis.rdf.php&xsl=LVZeugnis&stg_kz='+stg_kz+'&uid='+paramList+'&ss='+ss+'&lvid='+lvid+'&'+gettimestamp();
|
||||
url = '<?php echo APP_ROOT; ?>content/pdfExport.php?xml=lehrveranstaltungszeugnis.rdf.php&xsl=LVZeugnis&stg_kz='+stg_kz+'&uid='+paramList+'&output='+output+'&ss='+ss+'&lvid='+lvid+'&'+gettimestamp();
|
||||
window.location.href = url;
|
||||
//prompt('test:',url);
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ if($studiensemester_kurzbz != -1)
|
||||
FROM public.tbl_person JOIN public.tbl_prestudent ON(public.tbl_person.person_id=public.tbl_prestudent.person_id)
|
||||
JOIN public.tbl_prestudentstatus ON(public.tbl_prestudent.prestudent_id=public.tbl_prestudentstatus.prestudent_id)
|
||||
JOIN public.tbl_studiengang USING(studiengang_kz)
|
||||
WHERE status_kurzbz='Absolvent' AND typ!='m'
|
||||
WHERE status_kurzbz='Absolvent' AND typ!='m' AND studiengang_kz<10000
|
||||
AND public.tbl_person.person_id IN(SELECT public.tbl_person.person_id FROM public.tbl_person
|
||||
JOIN public.tbl_prestudent ON(public.tbl_person.person_id=public.tbl_prestudent.person_id)
|
||||
JOIN public.tbl_prestudentstatus ON(public.tbl_prestudent.prestudent_id=public.tbl_prestudentstatus.prestudent_id)
|
||||
|
||||
@@ -46,8 +46,8 @@ echo "<?xml-stylesheet href=\"".APP_ROOT."content/bindings.css\" type=\"text/css
|
||||
<popupset>
|
||||
<menupopup id="student-noten-tree-popup">
|
||||
<menuitem label="Entfernen" oncommand="StudentNotenDelete();" id="student-noten-tree-popup-delete" hidden="false"/>
|
||||
<menuitem label="Zertifikat erstellen" oncommand="StudentFFZertifikatPrint();" id="student-noten-tree-popup-ffzertifikat" hidden="false"/>
|
||||
<menuitem label="Lehrveranstaltungszeugnis erstellen" oncommand="StudentLVZeugnisPrint();" id="student-noten-tree-popup-lvzeugnis" hidden="false"/>
|
||||
<menuitem label="Zertifikat erstellen" oncommand="StudentFFZertifikatPrint(event);" id="student-noten-tree-popup-ffzertifikat" hidden="false"/>
|
||||
<menuitem label="Lehrveranstaltungszeugnis erstellen" oncommand="StudentLVZeugnisPrint(event);" id="student-noten-tree-popup-lvzeugnis" hidden="false"/>
|
||||
</menupopup>
|
||||
</popupset>
|
||||
<hbox flex="1" style="margin-top: 10px;">
|
||||
@@ -60,6 +60,10 @@ echo "<?xml-stylesheet href=\"".APP_ROOT."content/bindings.css\" type=\"text/css
|
||||
flags="dont-build-content"
|
||||
>
|
||||
<treecols>
|
||||
<treecol id="student-noten-tree-zeugnis" label="Zeugnis" hidden="false" persist="hidden, width, ordinal"
|
||||
class="sortDirectionIndicator" tooltiptext="Zeugnisoption deaktiviert"
|
||||
sort="rdf:http://www.technikum-wien.at/zeugnisnote/rdf#Zeugnis"/>
|
||||
<splitter class="tree-splitter"/>
|
||||
<treecol id="student-noten-tree-lehrveranstaltung_bezeichnung" label="Lehrveranstaltung" flex="2" hidden="false" primary="true" persist="hidden, width, ordinal"
|
||||
class="sortDirectionIndicator"
|
||||
sortActive="true"
|
||||
@@ -136,6 +140,7 @@ echo "<?xml-stylesheet href=\"".APP_ROOT."content/bindings.css\" type=\"text/css
|
||||
<treechildren flex="1" >
|
||||
<treeitem uri="rdf:*">
|
||||
<treerow>
|
||||
<treecell src="rdf:http://www.technikum-wien.at/zeugnisnote/rdf#zeugnis"/>
|
||||
<treecell label="rdf:http://www.technikum-wien.at/zeugnisnote/rdf#lehrveranstaltung_bezeichnung"/>
|
||||
<treecell label="rdf:http://www.technikum-wien.at/zeugnisnote/rdf#note_bezeichnung"/>
|
||||
<treecell label="rdf:http://www.technikum-wien.at/zeugnisnote/rdf#uebernahmedatum"/>
|
||||
|
||||
@@ -394,7 +394,7 @@ function StudentTreeKeyPress(event)
|
||||
// ****
|
||||
// * Erstellt das Zertifikat fuer die Freifaecher
|
||||
// ****
|
||||
function StudentFFZertifikatPrint()
|
||||
function StudentFFZertifikatPrint(event)
|
||||
{
|
||||
// netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
||||
var tree = document.getElementById('student-noten-tree');
|
||||
@@ -411,7 +411,14 @@ function StudentFFZertifikatPrint()
|
||||
col = tree.columns ? tree.columns["student-noten-tree-studiengang_kz"] : "student-noten-tree-studiengang_kz";
|
||||
stg_kz = tree.view.getCellText(tree.currentIndex,col);
|
||||
|
||||
url = '<?php echo APP_ROOT; ?>content/pdfExport.php?xml=zertifikat.rdf.php&xsl=Zertifikat&stg_kz='+stg_kz+'&uid=;'+uid+'&ss='+stsem+'&lvid='+lvid+'&'+gettimestamp();
|
||||
if (event.shiftKey)
|
||||
var output='odt';
|
||||
else if (event.ctrlKey)
|
||||
var output='doc';
|
||||
else
|
||||
var output='pdf';
|
||||
|
||||
url = '<?php echo APP_ROOT; ?>content/pdfExport.php?xml=zertifikat.rdf.php&xsl=Zertifikat&stg_kz='+stg_kz+'&uid=;'+uid+'&output='+output+'&ss='+stsem+'&lvid='+lvid+'&'+gettimestamp();
|
||||
|
||||
// alert('url: '+url);
|
||||
window.location.href = url;
|
||||
@@ -420,7 +427,7 @@ function StudentFFZertifikatPrint()
|
||||
//****
|
||||
//* Erstellt ein Lehrveranstaltungszeugnis fuer die LV
|
||||
//****
|
||||
function StudentLVZeugnisPrint()
|
||||
function StudentLVZeugnisPrint(event)
|
||||
{
|
||||
// netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
||||
var tree = document.getElementById('student-noten-tree');
|
||||
@@ -437,7 +444,15 @@ function StudentLVZeugnisPrint()
|
||||
col = tree.columns ? tree.columns["student-noten-tree-studiengang_kz"] : "student-noten-tree-studiengang_kz";
|
||||
stg_kz = tree.view.getCellText(tree.currentIndex,col);
|
||||
|
||||
url = '<?php echo APP_ROOT; ?>content/pdfExport.php?xml=lehrveranstaltungszeugnis.rdf.php&xsl=LVZeugnis&stg_kz='+stg_kz+'&uid=;'+uid+'&ss='+stsem+'&lvid='+lvid+'&'+gettimestamp();
|
||||
if (event.shiftKey)
|
||||
var output='odt';
|
||||
else if (event.ctrlKey)
|
||||
var output='doc';
|
||||
else
|
||||
var output='pdf';
|
||||
|
||||
|
||||
url = '<?php echo APP_ROOT; ?>content/pdfExport.php?xml=lehrveranstaltungszeugnis.rdf.php&xsl=LVZeugnis&stg_kz='+stg_kz+'&uid=;'+uid+'&output='+output+'&ss='+stsem+'&lvid='+lvid+'&'+gettimestamp();
|
||||
|
||||
window.location.href = url;
|
||||
}
|
||||
|
||||
@@ -1547,5 +1547,84 @@ class content extends basis_db
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Loescht wahlweise den geamten Content oder nur eine Version in der uebergebenen Sprache
|
||||
*
|
||||
* @param integer $content_id ID des Contents, der geloescht werden soll
|
||||
* @param string $sprache (optional) Sprache des Contents, die geloescht werden soll
|
||||
* @param string $version (optional) Version des Contents, die geloescht werden soll (nur in Kombination mit Sprache)
|
||||
* @return boolean
|
||||
*/
|
||||
|
||||
public function deleteContent($content_id, $sprache = NULL, $version = NULL)
|
||||
{
|
||||
if($content_id=='' || !is_numeric($content_id))
|
||||
{
|
||||
$this->errormsg = 'ContentID ungueltig';
|
||||
return false;
|
||||
}
|
||||
|
||||
if (is_null($version) && is_null($sprache))
|
||||
{
|
||||
//gesamter content wird gelöscht
|
||||
$qry = "DELETE FROM campus.tbl_contentchild WHERE content_id=".$this->db_add_param($content_id, FHC_INTEGER).";
|
||||
DELETE FROM campus.tbl_contentchild WHERE child_content_id=".$this->db_add_param($content_id, FHC_INTEGER).";
|
||||
DELETE FROM campus.tbl_contentlog WHERE contentsprache_id IN (SELECT contentsprache_id FROM campus.tbl_contentsprache WHERE content_id=".$this->db_add_param($content_id, FHC_INTEGER).");
|
||||
DELETE FROM campus.tbl_contentchild WHERE content_id=".$this->db_add_param($content_id, FHC_INTEGER).";
|
||||
DELETE FROM campus.tbl_contentsprache WHERE content_id=".$this->db_add_param($content_id, FHC_INTEGER).";
|
||||
DELETE FROM campus.tbl_contentgruppe WHERE content_id=".$this->db_add_param($content_id, FHC_INTEGER).";
|
||||
DELETE FROM campus.tbl_content WHERE content_id=".$this->db_add_param($content_id, FHC_INTEGER).";";
|
||||
}
|
||||
else
|
||||
{
|
||||
//eine version wird gelöscht
|
||||
$qry = "DELETE FROM campus.tbl_contentlog WHERE contentsprache_id IN (SELECT contentsprache_id FROM campus.tbl_contentsprache WHERE content_id=".$this->db_add_param($content_id, FHC_INTEGER)." AND sprache=".$this->db_add_param($sprache)." AND version=".$this->db_add_param($version, FHC_INTEGER).");
|
||||
DELETE FROM campus.tbl_contentsprache WHERE content_id=".$this->db_add_param($content_id, FHC_INTEGER)." AND sprache=".$this->db_add_param($sprache)." AND version=".$this->db_add_param($version, FHC_INTEGER).";";
|
||||
}
|
||||
$this->errormsg = $qry;
|
||||
|
||||
if($this->db_query($qry))
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Gibt die Anzahl der verbliebenen Eintraege in tbl_contentsprache in der uebergebenen Sprache zurueck
|
||||
*
|
||||
* @param integer $content_id ID des Contents
|
||||
* @param string $sprache Sprache des Contents
|
||||
* @return anzahl
|
||||
*/
|
||||
|
||||
public function getNumberOfVersions($content_id, $sprache)
|
||||
{
|
||||
$qry = "SELECT COUNT(*) as anzahl FROM campus.tbl_contentsprache WHERE content_id = ".$this->db_add_param($content_id, FHC_INTEGER)." AND sprache = ".$this->db_add_param($sprache).";";
|
||||
|
||||
if($result = $this->db_query($qry))
|
||||
{
|
||||
$row = $this->db_fetch_object($result);
|
||||
return $row->anzahl;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
+44
-8
@@ -614,16 +614,33 @@ class dms extends basis_db
|
||||
* Laedt die Dokumente einer Kategorie
|
||||
*
|
||||
* @param $kategorie_kurzbz
|
||||
* @param $dpp = Documents Per Page
|
||||
*/
|
||||
public function getDocuments($kategorie_kurzbz)
|
||||
public function getDocuments($kategorie_kurzbz, $dpp=NULL, $page=NULL)
|
||||
{
|
||||
if (!is_null($dpp) && !is_null($page))
|
||||
{
|
||||
if ($page == 0)
|
||||
{
|
||||
$limit = '';
|
||||
$offset = '';
|
||||
}
|
||||
else
|
||||
{
|
||||
$limit = 'LIMIT '.$dpp;
|
||||
$offset = ' OFFSET '.($page-1)*$dpp;
|
||||
}
|
||||
}
|
||||
$qry = "SELECT * FROM campus.tbl_dms JOIN campus.tbl_dms_version USING(dms_id)
|
||||
WHERE (dms_id, version) in(
|
||||
SELECT dms_id, max(version)
|
||||
FROM campus.tbl_dms_version
|
||||
GROUP BY dms_id)
|
||||
AND kategorie_kurzbz=".$this->db_add_param($kategorie_kurzbz)."
|
||||
ORDER BY name;";
|
||||
ORDER BY name ";
|
||||
if (isset($limit)) $qry .= $limit;
|
||||
if (isset($offset)) $qry .= $offset;
|
||||
$qry .= ";";
|
||||
|
||||
if($result = $this->db_query($qry))
|
||||
{
|
||||
@@ -660,16 +677,35 @@ class dms extends basis_db
|
||||
*
|
||||
* @param $kategorie_kurzbz
|
||||
*/
|
||||
public function search($suchstring)
|
||||
public function search($suchstring, $dpp=NULL, $page=NULL)
|
||||
{
|
||||
if (!is_null($dpp) && !is_null($page))
|
||||
{
|
||||
if ($page == 0)
|
||||
{
|
||||
$limit = '';
|
||||
$offset = '';
|
||||
}
|
||||
else
|
||||
{
|
||||
$limit = ' LIMIT '.$dpp;
|
||||
$offset = ' OFFSET '.($page-1)*$dpp;
|
||||
}
|
||||
}
|
||||
|
||||
$qry = "SELECT * FROM campus.tbl_dms JOIN campus.tbl_dms_version USING(dms_id)
|
||||
WHERE lower(name) like lower('%".$this->db_escape($suchstring)."%')
|
||||
OR lower(beschreibung) like lower('%".$this->db_escape($suchstring)."%')
|
||||
";
|
||||
if (is_numeric($suchstring))
|
||||
$qry.= "OR dms_id = ".$this->db_escape($suchstring)."";
|
||||
";
|
||||
|
||||
$qry.=";";
|
||||
|
||||
if (is_numeric($suchstring))
|
||||
$qry.= " OR dms_id = ".$this->db_escape($suchstring)."";
|
||||
|
||||
if (isset($limit)) $qry .= $limit;
|
||||
if (isset($offset)) $qry .= $offset;
|
||||
|
||||
$qry.=";";
|
||||
|
||||
if($result = $this->db_query($qry))
|
||||
{
|
||||
@@ -701,7 +737,7 @@ class dms extends basis_db
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* Sucht nach Dokumenten (nur Spalte Beschreibung) mit der aktuellsten Version.
|
||||
* Optional kann die Anzahl an Suchergebnissen übergeben werden.
|
||||
*
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
// ****
|
||||
// * Liefert einen Timestamp in Sekunden
|
||||
// * zum anhaengen an eine URL um Caching zu verhindern
|
||||
// ****
|
||||
function gettimestamp()
|
||||
{
|
||||
var now = new Date();
|
||||
var ret = now.getHours()*60*60*60;
|
||||
ret = ret + now.getMinutes()*60*60;
|
||||
ret = ret + now.getSeconds()*60;
|
||||
ret = ret + now.getMilliseconds();
|
||||
return ret;
|
||||
}
|
||||
/**
|
||||
* schließt das fenster
|
||||
*/
|
||||
function closeWindow() {
|
||||
window.close();
|
||||
}
|
||||
|
||||
$('document').ready(function() {
|
||||
|
||||
$('#saveimgbutton').click(function() {
|
||||
//src und person_id von hidden input feldern
|
||||
var img = document.getElementById('croppingdiv').getElementsByTagName('img')[0];
|
||||
var src = (img.src).substring(22, (img.src).length);
|
||||
var person_id = document.getElementById('person_id');
|
||||
var person_idValue = person_id.getAttribute('value');
|
||||
|
||||
//in crop.php wird das bild verarbeitet und abgespeichert
|
||||
$.post('crop.php', {src:src, person_idValue:person_idValue}, function() {});
|
||||
|
||||
//cis seite auf zwei verschiedenen arten neu laden, damit das bild auch sicher nicht im cache abgelegt wird
|
||||
window.opener.location.reload(true);
|
||||
var locat=window.opener.location.href+'?ts='+gettimestamp();
|
||||
window.opener.location.href = locat;
|
||||
//warten bevor das fenster geschlossen wird, weil chrome und opera sonst probleme haben das bild zu speichern
|
||||
setTimeout(closeWindow, 100);
|
||||
});
|
||||
});
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,221 @@
|
||||
/*
|
||||
Author : Tomaz Dragar
|
||||
Mail : <tomaz@dragar.net>
|
||||
Homepage : http://www.dragar.net
|
||||
*/
|
||||
|
||||
(function($) {
|
||||
|
||||
$.fn.simpleCropper = function() {
|
||||
|
||||
var image_dimension_x = 600;
|
||||
var image_dimension_y = 600;
|
||||
var scaled_width = 0;
|
||||
var scaled_height = 0;
|
||||
var x1 = 0;
|
||||
var y1 = 0;
|
||||
var x2 = 0;
|
||||
var y2 = 0;
|
||||
var current_image = null;
|
||||
var aspX = 1;
|
||||
var aspY = 1;
|
||||
var file_display_area = null;
|
||||
var ias = null;
|
||||
var jcrop_api;
|
||||
var bottom_html = "<input type='file' id='fileInput' name='files[]'/><canvas id='myCanvas' style='display:none;'></canvas><div id='modal'></div><div id='preview'><div class='buttons'><div class='cancel' style='background-image:url(../../skin/images/false-27.png);'></div><div class='ok' style='background-image:url(../../skin/images/true-27.png);'></div></div></div>";
|
||||
$('body').append(bottom_html);
|
||||
|
||||
//add click to element
|
||||
this.click(function() {
|
||||
aspX = $(this).width();
|
||||
aspY = $(this).height();
|
||||
file_display_area = $(this);
|
||||
$('#fileInput').click();
|
||||
});
|
||||
|
||||
$(document).ready(function() {
|
||||
//capture selected filename
|
||||
$('#fileInput').change(function(click) {
|
||||
imageUpload($('#preview').get(0));
|
||||
// Reset input value
|
||||
$(this).val("");
|
||||
});
|
||||
|
||||
//ok listener
|
||||
$('.ok').click(function() {
|
||||
preview();
|
||||
$('#preview').delay(100).hide();
|
||||
$('#modal').hide();
|
||||
jcrop_api.destroy();
|
||||
reset();
|
||||
});
|
||||
|
||||
//cancel listener
|
||||
$('.cancel').click(function(event) {
|
||||
$('#preview').delay(100).hide();
|
||||
$('#modal').hide();
|
||||
jcrop_api.destroy();
|
||||
reset();
|
||||
});
|
||||
});
|
||||
|
||||
function reset() {
|
||||
scaled_width = 0;
|
||||
scaled_height = 0;
|
||||
x1 = 0;
|
||||
y1 = 0;
|
||||
x2 = 0;
|
||||
y2 = 0;
|
||||
current_image = null;
|
||||
aspX = 1;
|
||||
aspY = 1;
|
||||
file_display_area = null;
|
||||
}
|
||||
|
||||
function imageUpload(dropbox) {
|
||||
var file = $("#fileInput").get(0).files[0];
|
||||
//var file = document.getElementById('fileInput').files[0];
|
||||
var imageType = /image.*/;
|
||||
|
||||
if (file.type.match(imageType)) {
|
||||
var reader = new FileReader();
|
||||
|
||||
reader.onload = function(e) {
|
||||
// Clear the current image.
|
||||
$('#photo').remove();
|
||||
|
||||
// Create a new image with image crop functionality
|
||||
current_image = new Image();
|
||||
current_image.src = reader.result;
|
||||
current_image.id = "photo";
|
||||
current_image.style['maxWidth'] = image_dimension_x + 'px';
|
||||
current_image.style['maxHeight'] = image_dimension_y + 'px';
|
||||
current_image.onload = function() {
|
||||
// Calculate scaled image dimensions
|
||||
if (current_image.width > image_dimension_x || current_image.height > image_dimension_y) {
|
||||
if (current_image.width > current_image.height) {
|
||||
scaled_width = image_dimension_x;
|
||||
scaled_height = image_dimension_x * current_image.height / current_image.width;
|
||||
}
|
||||
if (current_image.width < current_image.height) {
|
||||
scaled_height = image_dimension_y;
|
||||
scaled_width = image_dimension_y * current_image.width / current_image.height;
|
||||
}
|
||||
if (current_image.width == current_image.height) {
|
||||
scaled_width = image_dimension_x;
|
||||
scaled_height = image_dimension_y;
|
||||
}
|
||||
}
|
||||
else {
|
||||
scaled_width = current_image.width;
|
||||
scaled_height = current_image.height;
|
||||
}
|
||||
|
||||
|
||||
// Position the modal div to the center of the screen
|
||||
$('#modal').css('display', 'block');
|
||||
var window_width = $(window).width() / 2 - scaled_width / 2 + "px";
|
||||
var window_height = $(window).height() / 2 - scaled_height / 2 + "px";
|
||||
|
||||
// Show image in modal view
|
||||
$("#preview").css("top", window_height);
|
||||
$("#preview").css("left", window_width);
|
||||
$('#preview').show(500);
|
||||
|
||||
|
||||
// Calculate selection rect
|
||||
var selection_width = 0;
|
||||
var selection_height = 0;
|
||||
|
||||
var max_x = Math.floor(scaled_height * aspX / aspY);
|
||||
var max_y = Math.floor(scaled_width * aspY / aspX);
|
||||
|
||||
|
||||
if (max_x > scaled_width) {
|
||||
selection_width = scaled_width;
|
||||
selection_height = max_y;
|
||||
}
|
||||
else {
|
||||
selection_width = max_x;
|
||||
selection_height = scaled_height;
|
||||
}
|
||||
|
||||
ias = $(this).Jcrop({
|
||||
onSelect: showCoords,
|
||||
onChange: showCoords,
|
||||
bgColor: '#747474',
|
||||
bgOpacity: .4,
|
||||
aspectRatio: aspX / aspY,
|
||||
setSelect: [0, 0, selection_width, selection_height]
|
||||
}, function() {
|
||||
jcrop_api = this;
|
||||
});
|
||||
}
|
||||
|
||||
// Add image to dropbox element
|
||||
dropbox.appendChild(current_image);
|
||||
}
|
||||
reader.readAsDataURL(file);
|
||||
|
||||
} else {
|
||||
dropbox.innerHTML = "File not supported!";
|
||||
}
|
||||
}
|
||||
|
||||
function showCoords(c) {
|
||||
x1 = c.x;
|
||||
y1 = c.y;
|
||||
x2 = c.x2;
|
||||
y2 = c.y2;
|
||||
}
|
||||
|
||||
function preview() {
|
||||
// Set canvas
|
||||
var canvas = document.getElementById('myCanvas');
|
||||
var context = canvas.getContext('2d');
|
||||
|
||||
// Delete previous image on canvas
|
||||
context.clearRect(0, 0, canvas.width, canvas.height);
|
||||
|
||||
// Set selection width and height
|
||||
var sw = x2 - x1;
|
||||
var sh = y2 - y1;
|
||||
|
||||
|
||||
// Set image original width and height
|
||||
var imgWidth = current_image.naturalWidth;
|
||||
var imgHeight = current_image.naturalHeight;
|
||||
|
||||
// Set selection koeficient
|
||||
var kw = imgWidth / $("#preview").width();
|
||||
var kh = imgHeight / $("#preview").height();
|
||||
|
||||
// Set canvas width and height and draw selection on it
|
||||
canvas.width = aspX;
|
||||
canvas.height = aspY;
|
||||
context.drawImage(current_image, (x1 * kw), (y1 * kh), (sw * kw), (sh * kh), 0, 0, aspX, aspY);
|
||||
|
||||
// Convert canvas image to normal img
|
||||
var dataUrl = canvas.toDataURL();
|
||||
var imageFoo = document.createElement('img');
|
||||
imageFoo.src = dataUrl;
|
||||
|
||||
// Append it to the body element
|
||||
$('#preview').delay(100).hide();
|
||||
$('#modal').hide();
|
||||
file_display_area.html('');
|
||||
file_display_area.append(imageFoo);
|
||||
|
||||
}
|
||||
|
||||
$(window).resize(function() {
|
||||
// Position the modal div to the center of the screen
|
||||
var window_width = $(window).width() / 2 - scaled_width / 2 + "px";
|
||||
var window_height = $(window).height() / 2 - scaled_height / 2 + "px";
|
||||
|
||||
// Show image in modal view
|
||||
$("#preview").css("top", window_height);
|
||||
$("#preview").css("left", window_width);
|
||||
});
|
||||
}
|
||||
}(jQuery));
|
||||
@@ -325,7 +325,7 @@ class lehreinheitmitarbeiter extends basis_db
|
||||
* @param $uid
|
||||
* @return true wenn die Zuteilung existiert sonst false
|
||||
*/
|
||||
public function existsLV($lehrveranstaltung_id, $studiensemester_kurzbz, $uid)
|
||||
public function existsLV($lehrveranstaltung_id, $studiensemester_kurzbz=NULL, $uid)
|
||||
{
|
||||
if(!is_numeric($lehrveranstaltung_id))
|
||||
{
|
||||
@@ -340,8 +340,12 @@ class lehreinheitmitarbeiter extends basis_db
|
||||
JOIN lehre.tbl_lehreinheit USING(lehreinheit_id)
|
||||
WHERE
|
||||
lehrveranstaltung_id=".$this->db_add_param($lehrveranstaltung_id, FHC_INTEGER)."
|
||||
AND studiensemester_kurzbz=".$this->db_add_param($studiensemester_kurzbz)."
|
||||
AND mitarbeiter_uid=".$this->db_add_param($uid).';';
|
||||
AND mitarbeiter_uid=".$this->db_add_param($uid);
|
||||
|
||||
if(!is_null($studiensemester_kurzbz))
|
||||
$qry .= " AND studiensemester_kurzbz=".$this->db_add_param($studiensemester_kurzbz);
|
||||
|
||||
$qry .= ";";
|
||||
|
||||
if($this->db_query($qry))
|
||||
{
|
||||
|
||||
@@ -168,6 +168,7 @@ $menu=array
|
||||
'Infoscreen'=>array('name'=>'Infoscreen', 'link'=>'stammdaten/infoscreen_frameset.html', 'target'=>'main','permissions'=>array('basis/infoscreen')),
|
||||
'Ferien'=>array('name'=>'Ferien', 'link'=>'lehre/ferienverwaltung.php', 'target'=>'main','permissions'=>array('admin')),
|
||||
'Service'=>array('name'=>'Service', 'link'=>'stammdaten/service_frameset.html', 'target'=>'main','permissions'=>array('basis/service')),
|
||||
'Dokumentvorlagen'=>array('name'=>'Dokumentvorlagen', 'link'=>'stammdaten/dokumentvorlagen_verwaltung.php', 'target'=>'main','permissions'=>array('basis/dokumente')),
|
||||
'FH Ausweis'=>array
|
||||
(
|
||||
'name'=>'FH Ausweis','permissions'=>array('basis/fhausweis'),
|
||||
|
||||
@@ -110,7 +110,7 @@ class vorlage extends basis_db
|
||||
$qry = 'UPDATE public.tbl_vorlage
|
||||
SET bezeichnung='.$this->db_add_param($this->bezeichnung).',
|
||||
anmerkung='.$this->db_add_param($this->anmerkung).',
|
||||
mimetype='.$this->db_add_param($this->mimetype).',
|
||||
mimetype='.$this->db_add_param($this->mimetype).'
|
||||
WHERE vorlage_kurzbz='.$this->db_add_param($this->vorlage_kurzbz).';';
|
||||
}
|
||||
|
||||
|
||||
@@ -4,6 +4,8 @@ $this->phrasen['courseInformation/achtungFehlerBeimSpeichern']='Achtung: Fehler
|
||||
$this->phrasen['courseInformation/fehlerLogFile']='Fehler beim Schreiben des Log Files';
|
||||
$this->phrasen['courseInformation/freigabe']='Freigabe';
|
||||
$this->phrasen['courseInformation/freigeben']='Freigeben';
|
||||
$this->phrasen['courseInformation/deutschFreigeben']='Deutsche LV-Infos freigeben';
|
||||
$this->phrasen['courseInformation/englischFreigeben']='Englische LV-Infos freigeben';
|
||||
$this->phrasen['courseInformation/terminologie']='Terminologie';
|
||||
$this->phrasen['courseInformation/lvInfoSemester']='LV-Information - %s - %s. Semester';
|
||||
$this->phrasen['courseInformation/ectsCredits']='ECTS - Credits';
|
||||
@@ -30,4 +32,14 @@ $this->phrasen['courseInformation/terminologieDeutschEnglisch']='Terminologie De
|
||||
$this->phrasen['courseInformation/incomingplaetze']='Incomingplätze';
|
||||
$this->phrasen['courseInformation/pflichtfelderWerdenAufDerExternenSeiteAngezeigt']='Pflichtfelder werden auch auf der offiziellen Webseite angezeigt und sollten daher ausgefüllt werden';
|
||||
$this->phrasen['courseInformation/fallsSieAufzaehlungslistenVerwenden']='Falls Sie Aufzählungslisten verwenden möchten, geben Sie diese bitte in der folgenden Form ein: <br/> <font style="color:blue"><ul></font><br/><font style="color:green"><li></font>Listeneintrag1<font style="color:green"></li></font><font style="color:green"><li></font>Listeneintrag2<font style="color:green"></li></font><br/><font style="color:blue"></ul></font>';
|
||||
$this->phrasen['courseInformation/zurFreigabeAbschicken']='Zur Freigabe Abschicken';
|
||||
$this->phrasen['courseInformation/diesIstEineAutomatischeMail']='Dies ist eine automatische Benachrichtigung';
|
||||
$this->phrasen['courseInformation/lvinfoWurdeUeberarbeitet']='%s hat die LV-Informationen der Lehrveranstaltung %s überarbeitet und Ihre Freigabe angefordert';
|
||||
$this->phrasen['courseInformation/sieKoennenDieseUnterFolgenderAdresseFreigeben']='Sie können diese unter folgendem Link freigeben';
|
||||
$this->phrasen['courseInformation/freigabeLvinfo']='Freigabe LV-Info';
|
||||
$this->phrasen['courseInformation/freigabemailWurdeVersandt']='Das Freigabemail wurde versandt an %s';
|
||||
$this->phrasen['courseInformation/fehlerBeimSendenAufgetreten']='Fehler beim Senden des Freigabemails an %s';
|
||||
$this->phrasen['courseInformation/konnteKeinFreigabemailVersendetWerden']='Die Nachricht zur Freigabe der LV-Info konnte nicht gesendet werden';
|
||||
$this->phrasen['courseInformation/nochNichtFreigegeben']='LV-Info noch nicht freigegeben';
|
||||
$this->phrasen['courseInformation/freigegeben']='LV-Info freigegeben';
|
||||
?>
|
||||
@@ -76,4 +76,5 @@ $this->phrasen['profil/fhausweisGedrucktAm']='FH-Ausweis gedruckt am';
|
||||
$this->phrasen['profil/fhausweisAbholbereitAmEmpfangAb']='FH-Ausweis abholbereit am Empfang ab';
|
||||
$this->phrasen['profil/fhausweisWurdeNochNichtGedruckt']='FH-Ausweis wurde noch nicht gedruckt';
|
||||
$this->phrasen['profil/ihrFotoWurdeNochNichtGeprueft']='Ihr Foto wurde noch nicht geprüft';
|
||||
$this->phrasen['profil/fotoAuswählen']='Klicken Sie auf das Bild um ein Foto hochzuladen';
|
||||
?>
|
||||
|
||||
@@ -4,6 +4,8 @@ $this->phrasen['courseInformation/achtungFehlerBeimSpeichern']='Warning: Error s
|
||||
$this->phrasen['courseInformation/fehlerLogFile']='Error writing the log files';
|
||||
$this->phrasen['courseInformation/freigabe']='Release';
|
||||
$this->phrasen['courseInformation/freigeben']='Release';
|
||||
$this->phrasen['courseInformation/deutschFreigeben']='Release german LV-Information';
|
||||
$this->phrasen['courseInformation/englischFreigeben']='Release english LV-Information';
|
||||
$this->phrasen['courseInformation/terminologie']='Terminology';
|
||||
$this->phrasen['courseInformation/lvInfoSemester']='LV-Information - %s - %s. Semester';
|
||||
$this->phrasen['courseInformation/ectsCredits']='ECTS - Credits';
|
||||
@@ -30,4 +32,14 @@ $this->phrasen['courseInformation/terminologieDeutschEnglisch']='Terminology Ger
|
||||
$this->phrasen['courseInformation/incomingplaetze']='Places Available for Incoming Students';
|
||||
$this->phrasen['courseInformation/pflichtfelderWerdenAufDerExternenSeiteAngezeigt']='Required fields are also displayed on the official website, and should therefore be completed';
|
||||
$this->phrasen['courseInformation/fallsSieAufzaehlungslistenVerwenden']='If you want to use bulleted lists, please enter them in the following format: <br/> <font style="color:blue"><ul></font><br/><font style="color:green"><li></font>List Item 1<font style="color:green"></li></font><font style="color:green"><li></font>List Item 2<font style="color:green"></li></font><br/><font style="color:blue"></ul></font>';
|
||||
$this->phrasen['courseInformation/zurFreigabeAbschicken']='Send for release';
|
||||
$this->phrasen['courseInformation/diesIstEineAutomatischeMail']='Dies ist eine automatische Benachrichtigung'; //Nur übersetzen, wenn die eMail in der eingestellten Sprache versandt werden soll
|
||||
$this->phrasen['courseInformation/lvinfoWurdeUeberarbeitet']='%s hat die LV-Informationen der Lehrveranstaltung %s überarbeitet und Ihre Freigabe angefordert'; //Nur übersetzen, wenn die eMail in der eingestellten Sprache versandt werden soll
|
||||
$this->phrasen['courseInformation/sieKoennenDieseUnterFolgenderAdresseFreigeben']='Sie können diese unter folgendem Link freigeben'; //Nur übersetzen, wenn die eMail in der eingestellten Sprache versandt werden soll
|
||||
$this->phrasen['courseInformation/freigabeLvinfo']='Freigabe LV-Info'; //Nur übersetzen, wenn die eMail in der eingestellten Sprache versandt werden soll
|
||||
$this->phrasen['courseInformation/freigabemailWurdeVersandt']='Mail was sent to %s';
|
||||
$this->phrasen['courseInformation/fehlerBeimSendenAufgetreten']='Error occured sending mail to %s';
|
||||
$this->phrasen['courseInformation/konnteKeinFreigabemailVersendetWerden']='Mail for release could not be sent';
|
||||
$this->phrasen['courseInformation/nochNichtFreigegeben']='LV-Information not released yet';
|
||||
$this->phrasen['courseInformation/freigegeben']='LV-Information released';
|
||||
?>
|
||||
@@ -73,4 +73,5 @@ $this->phrasen['profil/fhausweisGedrucktAm']='UAS ID card printed on';
|
||||
$this->phrasen['profil/fhausweisAbholbereitAmEmpfangAb']='UAS ID card will be ready for pick-up at the information desk on';
|
||||
$this->phrasen['profil/fhausweisWurdeNochNichtGedruckt']='UAS ID card has not yet been printed';
|
||||
$this->phrasen['profil/ihrFotoWurdeNochNichtGeprueft']='Your photo has not yet been approved';
|
||||
$this->phrasen['profil/fotoAuswählen']='Click on the image below to upload a photo';
|
||||
?>
|
||||
|
||||
@@ -94,6 +94,11 @@ foreach ($obj->result as $row)
|
||||
$lv_obj = new lehrveranstaltung();
|
||||
$lv_obj->load($row->lehrveranstaltung_id);
|
||||
|
||||
if ($lv_obj->zeugnis==false)
|
||||
$zeugnis=APP_ROOT.'skin/images/invisible.png';
|
||||
else
|
||||
$zeugnis='';
|
||||
|
||||
echo '
|
||||
<RDF:li>
|
||||
<RDF:Description id="'.$row->lehrveranstaltung_id.'/'.$row->student_uid.'/'.$row->studiensemester_kurzbz.'" about="'.$rdf_url.'/'.$row->lehrveranstaltung_id.'/'.$row->student_uid.'/'.$row->studiensemester_kurzbz.'" >
|
||||
@@ -118,6 +123,7 @@ foreach ($obj->result as $row)
|
||||
<NOTE:ects_lv><![CDATA['.$lv_obj->ects.']]></NOTE:ects_lv>
|
||||
<NOTE:student_semester><![CDATA['.$benutzer->semester.']]></NOTE:student_semester>
|
||||
<NOTE:punkte><![CDATA['.($row->punkte!=''?(float)$row->punkte:'').']]></NOTE:punkte>
|
||||
<NOTE:zeugnis><![CDATA['.$zeugnis.']]></NOTE:zeugnis>
|
||||
</RDF:Description>
|
||||
</RDF:li>';
|
||||
}
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 635 B |
Binary file not shown.
|
After Width: | Height: | Size: 752 B |
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
Vendored
+1757
-2
File diff suppressed because one or more lines are too long
@@ -0,0 +1,165 @@
|
||||
/* jquery.Jcrop.css v0.9.12 - MIT License */
|
||||
/*
|
||||
The outer-most container in a typical Jcrop instance
|
||||
If you are having difficulty with formatting related to styles
|
||||
on a parent element, place any fixes here or in a like selector
|
||||
|
||||
You can also style this element if you want to add a border, etc
|
||||
A better method for styling can be seen below with .jcrop-light
|
||||
(Add a class to the holder and style elements for that extended class)
|
||||
*/
|
||||
.jcrop-holder {
|
||||
direction: ltr;
|
||||
text-align: left;
|
||||
}
|
||||
/* Selection Border */
|
||||
.jcrop-vline,
|
||||
.jcrop-hline {
|
||||
background: #ffffff url("../images/Jcrop.gif");
|
||||
font-size: 0;
|
||||
position: absolute;
|
||||
}
|
||||
.jcrop-vline {
|
||||
height: 100%;
|
||||
width: 1px !important;
|
||||
}
|
||||
.jcrop-vline.right {
|
||||
right: 0;
|
||||
}
|
||||
.jcrop-hline {
|
||||
height: 1px !important;
|
||||
width: 100%;
|
||||
}
|
||||
.jcrop-hline.bottom {
|
||||
bottom: 0;
|
||||
}
|
||||
/* Invisible click targets */
|
||||
.jcrop-tracker {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
/* "turn off" link highlight */
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
/* disable callout, image save panel */
|
||||
-webkit-touch-callout: none;
|
||||
/* disable cut copy paste */
|
||||
-webkit-user-select: none;
|
||||
}
|
||||
/* Selection Handles */
|
||||
.jcrop-handle {
|
||||
background-color: #333333;
|
||||
border: 1px #eeeeee solid;
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
font-size: 1px;
|
||||
}
|
||||
.jcrop-handle.ord-n {
|
||||
left: 50%;
|
||||
margin-left: -4px;
|
||||
margin-top: -4px;
|
||||
top: 0;
|
||||
}
|
||||
.jcrop-handle.ord-s {
|
||||
bottom: 0;
|
||||
left: 50%;
|
||||
margin-bottom: -4px;
|
||||
margin-left: -4px;
|
||||
}
|
||||
.jcrop-handle.ord-e {
|
||||
margin-right: -4px;
|
||||
margin-top: -4px;
|
||||
right: 0;
|
||||
top: 50%;
|
||||
}
|
||||
.jcrop-handle.ord-w {
|
||||
left: 0;
|
||||
margin-left: -4px;
|
||||
margin-top: -4px;
|
||||
top: 50%;
|
||||
}
|
||||
.jcrop-handle.ord-nw {
|
||||
left: 0;
|
||||
margin-left: -4px;
|
||||
margin-top: -4px;
|
||||
top: 0;
|
||||
}
|
||||
.jcrop-handle.ord-ne {
|
||||
margin-right: -4px;
|
||||
margin-top: -4px;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
.jcrop-handle.ord-se {
|
||||
bottom: 0;
|
||||
margin-bottom: -4px;
|
||||
margin-right: -4px;
|
||||
right: 0;
|
||||
}
|
||||
.jcrop-handle.ord-sw {
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
margin-bottom: -4px;
|
||||
margin-left: -4px;
|
||||
}
|
||||
/* Dragbars */
|
||||
.jcrop-dragbar.ord-n,
|
||||
.jcrop-dragbar.ord-s {
|
||||
height: 7px;
|
||||
width: 100%;
|
||||
}
|
||||
.jcrop-dragbar.ord-e,
|
||||
.jcrop-dragbar.ord-w {
|
||||
height: 100%;
|
||||
width: 7px;
|
||||
}
|
||||
.jcrop-dragbar.ord-n {
|
||||
margin-top: -4px;
|
||||
}
|
||||
.jcrop-dragbar.ord-s {
|
||||
bottom: 0;
|
||||
margin-bottom: -4px;
|
||||
}
|
||||
.jcrop-dragbar.ord-e {
|
||||
margin-right: -4px;
|
||||
right: 0;
|
||||
}
|
||||
.jcrop-dragbar.ord-w {
|
||||
margin-left: -4px;
|
||||
}
|
||||
/* The "jcrop-light" class/extension */
|
||||
.jcrop-light .jcrop-vline,
|
||||
.jcrop-light .jcrop-hline {
|
||||
background: #ffffff;
|
||||
filter: alpha(opacity=70) !important;
|
||||
opacity: .70!important;
|
||||
}
|
||||
.jcrop-light .jcrop-handle {
|
||||
-moz-border-radius: 3px;
|
||||
-webkit-border-radius: 3px;
|
||||
background-color: #000000;
|
||||
border-color: #ffffff;
|
||||
border-radius: 3px;
|
||||
}
|
||||
/* The "jcrop-dark" class/extension */
|
||||
.jcrop-dark .jcrop-vline,
|
||||
.jcrop-dark .jcrop-hline {
|
||||
background: #000000;
|
||||
filter: alpha(opacity=70) !important;
|
||||
opacity: 0.7 !important;
|
||||
}
|
||||
.jcrop-dark .jcrop-handle {
|
||||
-moz-border-radius: 3px;
|
||||
-webkit-border-radius: 3px;
|
||||
background-color: #ffffff;
|
||||
border-color: #000000;
|
||||
border-radius: 3px;
|
||||
}
|
||||
/* Simple macro to turn off the antlines */
|
||||
.solid-line .jcrop-vline,
|
||||
.solid-line .jcrop-hline {
|
||||
background: #ffffff;
|
||||
}
|
||||
/* Fix for twitter bootstrap et al. */
|
||||
.jcrop-holder img,
|
||||
img.jcrop-preview {
|
||||
max-width: none;
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
#fileInput{
|
||||
width:0;
|
||||
height:0;
|
||||
overflow:hidden;
|
||||
}
|
||||
|
||||
#modal{
|
||||
z-index: 10;
|
||||
position: fixed;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: #5F5F5F;
|
||||
opacity: 0.95;
|
||||
display: none;
|
||||
}
|
||||
|
||||
#preview{
|
||||
z-index: 11;
|
||||
position: fixed;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
display: none;
|
||||
border: 4px solid #A5A2A2;
|
||||
border-radius: 4px;
|
||||
float: left;
|
||||
font-size: 0px;
|
||||
line-height: 0px;
|
||||
}
|
||||
|
||||
#preview .buttons{
|
||||
width: 36px;
|
||||
position: absolute;
|
||||
bottom:0px;
|
||||
right: -44px;
|
||||
}
|
||||
|
||||
#preview .buttons .ok{
|
||||
border: 4px solid #F5F5F5;
|
||||
border-radius: 4px;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
line-height: 0px;
|
||||
font-size: 0px;
|
||||
background-image: url('../images/Ok.png');
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
#preview .buttons .ok:hover{
|
||||
background-image: url('../images/OkGreen.png');
|
||||
}
|
||||
|
||||
#preview .buttons .cancel{
|
||||
margin-bottom: 4px;
|
||||
border: 4px solid #F5F5F5;
|
||||
border-radius: 4px;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
line-height: 0px;
|
||||
font-size: 0px;
|
||||
background-image: url('../images/Cancel.png');
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
#preview .buttons .cancel:hover{
|
||||
background-image: url('../images/CancelRed.png');
|
||||
}
|
||||
@@ -3240,6 +3240,24 @@ if(!$result = @$db->db_query("SELECT style FROM public.tbl_vorlagestudiengang"))
|
||||
echo '<br>public.tbl_vorlagestudiengang: Neue Spalten style, berechtigung und anmerkung_vorlagestudiengang hinzugefuegt. Neues Recht basis/dokumente angelegt';
|
||||
}
|
||||
|
||||
// Eigene Berechtigung fuer LV-Info Freigabe
|
||||
if($result = @$db->db_query("SELECT 1 FROM system.tbl_berechtigung WHERE berechtigung_kurzbz='lehre/lvinfo_freigabe' LIMIT 1"))
|
||||
{
|
||||
if($db->db_num_rows($result)==0)
|
||||
{
|
||||
$qry = "
|
||||
INSERT INTO system.tbl_berechtigung(berechtigung_kurzbz, beschreibung) VALUES('lehre/lvinfo_freigabe','Freigaberecht für Lehrveranstaltungsinformationen');
|
||||
|
||||
INSERT INTO system.tbl_rolleberechtigung(berechtigung_kurzbz, rolle_kurzbz, art) VALUES('lehre/lvinfo_freigabe','admin','suid');
|
||||
";
|
||||
|
||||
if(!$db->db_query($qry))
|
||||
echo '<strong>system.tbl_berechtigung '.$db->db_last_error().'</strong><br>';
|
||||
else
|
||||
echo ' system.tbl_berechtigung: Eigene Berechtigung lehre/lvinfo_freigabe fuer die Freigabe von LV-Infos hinzugefuegt!<br>';
|
||||
}
|
||||
}
|
||||
|
||||
echo '<br><br><br>';
|
||||
|
||||
$tabellen=array(
|
||||
|
||||
@@ -30,6 +30,7 @@ require_once('../../config/global.config.inc.php');
|
||||
require_once('../../include/functions.inc.php');
|
||||
require_once('../../include/studiensemester.class.php');
|
||||
require_once('../../include/mail.class.php');
|
||||
require_once('../../include/datum.class.php');
|
||||
|
||||
echo '<html>
|
||||
<head>
|
||||
@@ -48,6 +49,10 @@ if (isset($_GET['sendmail']))
|
||||
else
|
||||
$sendmail=(boolean)true;
|
||||
|
||||
$mailstudents=(boolean)true;
|
||||
|
||||
$datum = new datum();
|
||||
|
||||
$count_del=0;
|
||||
$count_ins=0;
|
||||
$count_upd=0;
|
||||
@@ -81,11 +86,12 @@ $stgwheredev = '';
|
||||
if(isset($_GET['custom']))
|
||||
{
|
||||
$sendmail = isset($_GET['mail']);
|
||||
$mailstudents = (isset($_GET['nostudentmail'])?false:true);
|
||||
$studiengang_kz=$_GET['studiengang_kz'];
|
||||
$stgwhere = " AND studiengang_kz='".addslashes($studiengang_kz)."'";
|
||||
$stgwheredev = " AND vw_stundenplandev.studiengang_kz='".addslashes($studiengang_kz)."'";
|
||||
$datum_begin = $_GET['von'];
|
||||
$datum_ende = $_GET['bis'];
|
||||
$datum_begin = $datum->formatDatum($_GET['von'],'Y-m-d');
|
||||
$datum_ende = $datum->formatDatum($_GET['bis'],'Y-m-d');
|
||||
}
|
||||
$db =new basis_db();
|
||||
// Beginnzeiten holen
|
||||
@@ -264,29 +270,32 @@ else
|
||||
$message[$row->uid]->message.='<TD>'.$row->titel.'</TD></TR>';
|
||||
}
|
||||
// Verband
|
||||
$studenten = getStudentsFromGroup($row->studiengang_kz, $row->semester, $row->verband, $row->gruppe, $row->gruppe_kurzbz, $ss->studiensemester_kurzbz);
|
||||
|
||||
foreach ($studenten as $student)
|
||||
if ($mailstudents)
|
||||
{
|
||||
if (!isset($message[$student]->isneu))
|
||||
$studenten = getStudentsFromGroup($row->studiengang_kz, $row->semester, $row->verband, $row->gruppe, $row->gruppe_kurzbz, $ss->studiensemester_kurzbz);
|
||||
|
||||
foreach ($studenten as $student)
|
||||
{
|
||||
if(!isset($message[$student]))
|
||||
$message[$student] = new stdClass();
|
||||
|
||||
$message[$student]->isneu=true;
|
||||
$message[$student]->mailadress=$student.'@'.DOMAIN;
|
||||
$message[$student]->message_begin=$message_begin.'<BR>';
|
||||
$message[$student]->message='<font style="color:green"><strong>Neue Stunden:</strong></font><BR>
|
||||
<TABLE><TR><TH>Ort</TH><TH>Verband</TH><TH>LektorIn</TH><TH>Datum</TH><TH>Std (Beginnzeit)</TH><TH>Lehrfach</TH><TH>Info</TH></TR>';
|
||||
if (!isset($message[$student]->isneu))
|
||||
{
|
||||
if(!isset($message[$student]))
|
||||
$message[$student] = new stdClass();
|
||||
|
||||
$message[$student]->isneu=true;
|
||||
$message[$student]->mailadress=$student.'@'.DOMAIN;
|
||||
$message[$student]->message_begin=$message_begin.'<BR>';
|
||||
$message[$student]->message='<font style="color:green"><strong>Neue Stunden:</strong></font><BR>
|
||||
<TABLE><TR><TH>Ort</TH><TH>Verband</TH><TH>LektorIn</TH><TH>Datum</TH><TH>Std (Beginnzeit)</TH><TH>Lehrfach</TH><TH>Info</TH></TR>';
|
||||
}
|
||||
$message[$student]->message.="\n";
|
||||
$message[$student]->message.='<TR><TD>'.$row->ort_kurzbz.'</TD>';
|
||||
$message[$student]->message.='<TD>'.mb_strtoupper($row->stg_typ.$row->stg_kurzbz).'-'.$row->semester.$row->verband.$row->gruppe.' '.$row->gruppe_kurzbz.'</TD>';
|
||||
$message[$student]->message.='<TD>'.$row->lektor.'</TD>';
|
||||
$message[$student]->message.='<TD>'.$row->datum.'</TD>';
|
||||
$message[$student]->message.='<TD>'.$row->stunde.' ('.$beginnzeit_arr[$row->stunde].')</TD>';
|
||||
$message[$student]->message.='<TD>'.$row->lehrfach.'-'.$row->lehrform.' ('.$row->lehrfach_bez.')</TD>';
|
||||
$message[$student]->message.='<TD>'.$row->titel.'</TD></TR>';
|
||||
}
|
||||
$message[$student]->message.="\n";
|
||||
$message[$student]->message.='<TR><TD>'.$row->ort_kurzbz.'</TD>';
|
||||
$message[$student]->message.='<TD>'.mb_strtoupper($row->stg_typ.$row->stg_kurzbz).'-'.$row->semester.$row->verband.$row->gruppe.' '.$row->gruppe_kurzbz.'</TD>';
|
||||
$message[$student]->message.='<TD>'.$row->lektor.'</TD>';
|
||||
$message[$student]->message.='<TD>'.$row->datum.'</TD>';
|
||||
$message[$student]->message.='<TD>'.$row->stunde.' ('.$beginnzeit_arr[$row->stunde].')</TD>';
|
||||
$message[$student]->message.='<TD>'.$row->lehrfach.'-'.$row->lehrform.' ('.$row->lehrfach_bez.')</TD>';
|
||||
$message[$student]->message.='<TD>'.$row->titel.'</TD></TR>';
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -355,29 +364,32 @@ else
|
||||
$message[$row->uid]->message.='<TD>'.$row->titel.'</TD></TR>';
|
||||
}
|
||||
// Verband
|
||||
$studenten = getStudentsFromGroup($row->studiengang_kz, $row->semester, $row->verband, $row->gruppe, $row->gruppe_kurzbz, $ss->studiensemester_kurzbz);
|
||||
|
||||
foreach ($studenten as $student)
|
||||
if ($mailstudents)
|
||||
{
|
||||
if (!isset($message[$student]->isalt))
|
||||
$studenten = getStudentsFromGroup($row->studiengang_kz, $row->semester, $row->verband, $row->gruppe, $row->gruppe_kurzbz, $ss->studiensemester_kurzbz);
|
||||
|
||||
foreach ($studenten as $student)
|
||||
{
|
||||
if(!isset($message[$student]))
|
||||
$message[$student] = new stdClass();
|
||||
|
||||
$message[$student]->isalt=true;
|
||||
$message[$student]->mailadress=$student.'@'.DOMAIN;
|
||||
$message[$student]->message_begin=$message_begin.'<BR>';
|
||||
$message[$student]->message.='<font style="color:#FFA100"><strong>Gelöschte Stunden:</strong></font><BR>
|
||||
<TABLE><TR><TH>Ort</TH><TH>Verband</TH><TH>LektorIn</TH><TH>Datum</TH><TH>Std (Beginnzeit)</TH><TH>Lehrfach</TH><TH>Info</TH></TR>';
|
||||
if (!isset($message[$student]->isalt))
|
||||
{
|
||||
if(!isset($message[$student]))
|
||||
$message[$student] = new stdClass();
|
||||
|
||||
$message[$student]->isalt=true;
|
||||
$message[$student]->mailadress=$student.'@'.DOMAIN;
|
||||
$message[$student]->message_begin=$message_begin.'<BR>';
|
||||
$message[$student]->message.='<font style="color:#FFA100"><strong>Gelöschte Stunden:</strong></font><BR>
|
||||
<TABLE><TR><TH>Ort</TH><TH>Verband</TH><TH>LektorIn</TH><TH>Datum</TH><TH>Std (Beginnzeit)</TH><TH>Lehrfach</TH><TH>Info</TH></TR>';
|
||||
}
|
||||
$message[$student]->message.="\n";
|
||||
$message[$student]->message.='<TR><TD>'.$row->ort_kurzbz.'</TD>';
|
||||
$message[$student]->message.='<TD>'.mb_strtoupper($row->stg_typ.$row->stg_kurzbz).'-'.$row->semester.$row->verband.$row->gruppe.' '.$row->gruppe_kurzbz.'</TD>';
|
||||
$message[$student]->message.='<TD>'.$row->lektor.'</TD>';
|
||||
$message[$student]->message.='<TD>'.$row->datum.'</TD>';
|
||||
$message[$student]->message.='<TD>'.$row->stunde.' ('.$beginnzeit_arr[$row->stunde].')</TD>';
|
||||
$message[$student]->message.='<TD>'.$row->lehrfach.'-'.$row->lehrform.' ('.$row->lehrfach_bez.')</TD>';
|
||||
$message[$student]->message.='<TD>'.$row->titel.'</TD></TR>';
|
||||
}
|
||||
$message[$student]->message.="\n";
|
||||
$message[$student]->message.='<TR><TD>'.$row->ort_kurzbz.'</TD>';
|
||||
$message[$student]->message.='<TD>'.mb_strtoupper($row->stg_typ.$row->stg_kurzbz).'-'.$row->semester.$row->verband.$row->gruppe.' '.$row->gruppe_kurzbz.'</TD>';
|
||||
$message[$student]->message.='<TD>'.$row->lektor.'</TD>';
|
||||
$message[$student]->message.='<TD>'.$row->datum.'</TD>';
|
||||
$message[$student]->message.='<TD>'.$row->stunde.' ('.$beginnzeit_arr[$row->stunde].')</TD>';
|
||||
$message[$student]->message.='<TD>'.$row->lehrfach.'-'.$row->lehrform.' ('.$row->lehrfach_bez.')</TD>';
|
||||
$message[$student]->message.='<TD>'.$row->titel.'</TD></TR>';
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -573,47 +585,50 @@ else
|
||||
}
|
||||
}
|
||||
// Verband
|
||||
$studenten = getStudentsFromGroup($row->studiengang_kz, $row->semester, $row->verband, $row->gruppe, $row->gruppe_kurzbz, $ss->studiensemester_kurzbz);
|
||||
|
||||
foreach ($studenten as $student)
|
||||
if ($mailstudents)
|
||||
{
|
||||
if (!isset($message[$student]->isset))
|
||||
$studenten = getStudentsFromGroup($row->studiengang_kz, $row->semester, $row->verband, $row->gruppe, $row->gruppe_kurzbz, $ss->studiensemester_kurzbz);
|
||||
|
||||
foreach ($studenten as $student)
|
||||
{
|
||||
if(!isset($message[$student]))
|
||||
$message[$student] = new stdClass();
|
||||
|
||||
$message[$student]->isset=true;
|
||||
$message[$student]->mailadress=$student.'@'.DOMAIN;
|
||||
$message[$student]->message_begin=$message_begin.'<BR>';
|
||||
$message[$student]->message.='<font style="color:blue"><strong>Geänderte Stunden:</strong></font><BR>
|
||||
<TABLE><TR><TH>Status</TH><TH>Ort</TH><TH>Verband</TH><TH>LektorIn</TH><TH>Datum</TH><TH>Std (Beginnzeit)</TH><TH>Lehrfach</TH><TH>Info</TH></TR>';
|
||||
if (!isset($message[$student]->isset))
|
||||
{
|
||||
if(!isset($message[$student]))
|
||||
$message[$student] = new stdClass();
|
||||
|
||||
$message[$student]->isset=true;
|
||||
$message[$student]->mailadress=$student.'@'.DOMAIN;
|
||||
$message[$student]->message_begin=$message_begin.'<BR>';
|
||||
$message[$student]->message.='<font style="color:blue"><strong>Geänderte Stunden:</strong></font><BR>
|
||||
<TABLE><TR><TH>Status</TH><TH>Ort</TH><TH>Verband</TH><TH>LektorIn</TH><TH>Datum</TH><TH>Std (Beginnzeit)</TH><TH>Lehrfach</TH><TH>Info</TH></TR>';
|
||||
}
|
||||
$message[$student]->message.="\n";
|
||||
$message[$student]->message.='<TR><TD>Vorher: </TD>';
|
||||
$message[$student]->message.='<TD>'.$row->old_ort_kurzbz.'</TD>';
|
||||
$message[$student]->message.='<TD>'.mb_strtoupper($row->stg_typ.$row->stg_kurzbz).'-'.$row->semester.$row->verband.$row->gruppe.' '.$row->gruppe_kurzbz.'</TD>';
|
||||
$message[$student]->message.='<TD>'.$row->old_lektor.'</TD>';
|
||||
$message[$student]->message.='<TD>'.$row->old_datum.'</TD>';
|
||||
$message[$student]->message.='<TD>'.$row->old_stunde.' ('.$beginnzeit_arr[$row->old_stunde].')</TD>';
|
||||
$message[$student]->message.='<TD>'.$row->lehrfach.'-'.$row->lehrform.' ('.$row->lehrfach_bez.')</TD>';
|
||||
$message[$student]->message.='<TD>'.$row->old_titel.'</TD></TR>';
|
||||
|
||||
$message[$student]->message.="\n";
|
||||
$message[$student]->message.='<TR><TD>Jetzt: </TD>';
|
||||
$myclass=($row->ort_kurzbz!=$row->old_ort_kurzbz?'marked':'unmarked');
|
||||
$message[$student]->message.='<TD><span class="'.$myclass.'">'.$row->ort_kurzbz.'</span></TD>';
|
||||
$myclass='unmarked';
|
||||
$message[$student]->message.='<TD><span class="'.$myclass.'">'.mb_strtoupper($row->stg_typ.$row->stg_kurzbz).'-'.$row->semester.$row->verband.$row->gruppe.' '.$row->gruppe_kurzbz.'</span></TD>';
|
||||
$myclass=($row->lektor!=$row->old_lektor?'marked':'unmarked');
|
||||
$message[$student]->message.='<TD><span class="'.$myclass.'">'.$row->lektor.'</span></TD>';
|
||||
$myclass=(($row->datum!=$row->old_datum)?'marked':'unmarked');
|
||||
$message[$student]->message.='<TD><span class="'.$myclass.'">'.$row->datum.'</span></TD>';
|
||||
$myclass=(($row->stunde!=$row->old_stunde)?'marked':'unmarked');
|
||||
$message[$student]->message.='<TD><span class="'.$myclass.'">'.$row->stunde.' ('.$beginnzeit_arr[$row->stunde].')</span></TD>';
|
||||
$myclass='unmarked';
|
||||
$message[$student]->message.='<TD><span class="'.$myclass.'">'.$row->lehrfach.'-'.$row->lehrform.' ('.$row->lehrfach_bez.')</span></TD>';
|
||||
$myclass=($row->titel!=$row->old_titel?'marked':'unmarked');
|
||||
$message[$student]->message.='<TD><span class="'.$myclass.'">'.$row->titel.'</span></TD></TR><TR><TD>----------------</TD></TR>';
|
||||
}
|
||||
$message[$student]->message.="\n";
|
||||
$message[$student]->message.='<TR><TD>Vorher: </TD>';
|
||||
$message[$student]->message.='<TD>'.$row->old_ort_kurzbz.'</TD>';
|
||||
$message[$student]->message.='<TD>'.mb_strtoupper($row->stg_typ.$row->stg_kurzbz).'-'.$row->semester.$row->verband.$row->gruppe.' '.$row->gruppe_kurzbz.'</TD>';
|
||||
$message[$student]->message.='<TD>'.$row->old_lektor.'</TD>';
|
||||
$message[$student]->message.='<TD>'.$row->old_datum.'</TD>';
|
||||
$message[$student]->message.='<TD>'.$row->old_stunde.' ('.$beginnzeit_arr[$row->old_stunde].')</TD>';
|
||||
$message[$student]->message.='<TD>'.$row->lehrfach.'-'.$row->lehrform.' ('.$row->lehrfach_bez.')</TD>';
|
||||
$message[$student]->message.='<TD>'.$row->old_titel.'</TD></TR>';
|
||||
|
||||
$message[$student]->message.="\n";
|
||||
$message[$student]->message.='<TR><TD>Jetzt: </TD>';
|
||||
$myclass=($row->ort_kurzbz!=$row->old_ort_kurzbz?'marked':'unmarked');
|
||||
$message[$student]->message.='<TD><span class="'.$myclass.'">'.$row->ort_kurzbz.'</span></TD>';
|
||||
$myclass='unmarked';
|
||||
$message[$student]->message.='<TD><span class="'.$myclass.'">'.mb_strtoupper($row->stg_typ.$row->stg_kurzbz).'-'.$row->semester.$row->verband.$row->gruppe.' '.$row->gruppe_kurzbz.'</span></TD>';
|
||||
$myclass=($row->lektor!=$row->old_lektor?'marked':'unmarked');
|
||||
$message[$student]->message.='<TD><span class="'.$myclass.'">'.$row->lektor.'</span></TD>';
|
||||
$myclass=(($row->datum!=$row->old_datum)?'marked':'unmarked');
|
||||
$message[$student]->message.='<TD><span class="'.$myclass.'">'.$row->datum.'</span></TD>';
|
||||
$myclass=(($row->stunde!=$row->old_stunde)?'marked':'unmarked');
|
||||
$message[$student]->message.='<TD><span class="'.$myclass.'">'.$row->stunde.' ('.$beginnzeit_arr[$row->stunde].')</span></TD>';
|
||||
$myclass='unmarked';
|
||||
$message[$student]->message.='<TD><span class="'.$myclass.'">'.$row->lehrfach.'-'.$row->lehrform.' ('.$row->lehrfach_bez.')</span></TD>';
|
||||
$myclass=($row->titel!=$row->old_titel?'marked':'unmarked');
|
||||
$message[$student]->message.='<TD><span class="'.$myclass.'">'.$row->titel.'</span></TD></TR><TR><TD>----------------</TD></TR>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,368 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
|
||||
xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0"
|
||||
>
|
||||
|
||||
<xsl:output method="xml" version="1.0" indent="yes"/>
|
||||
<xsl:template match="zertifikate">
|
||||
|
||||
<office:document-content xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rpt="http://openoffice.org/2005/report" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:officeooo="http://openoffice.org/2009/office" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:drawooo="http://openoffice.org/2010/draw" xmlns:calcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:formx="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0" xmlns:css3t="http://www.w3.org/TR/css3-text/" office:version="1.2">
|
||||
<office:scripts/>
|
||||
<office:font-face-decls>
|
||||
<style:font-face style:name="Mangal2" svg:font-family="Mangal"/>
|
||||
<style:font-face style:name="Mangal" svg:font-family="Mangal" style:font-family-generic="roman"/>
|
||||
<style:font-face style:name="Liberation Serif" svg:font-family="'Liberation Serif'" style:font-family-generic="roman" style:font-pitch="variable"/>
|
||||
<style:font-face style:name="Arial" svg:font-family="Arial" style:font-adornments="Standard" style:font-family-generic="swiss" style:font-pitch="variable"/>
|
||||
<style:font-face style:name="Liberation Sans" svg:font-family="'Liberation Sans'" style:font-family-generic="swiss" style:font-pitch="variable"/>
|
||||
<style:font-face style:name="Liberation Sans1" svg:font-family="'Liberation Sans'" style:font-family-generic="system" style:font-pitch="variable"/>
|
||||
<style:font-face style:name="Mangal1" svg:font-family="Mangal" style:font-family-generic="system" style:font-pitch="variable"/>
|
||||
<style:font-face style:name="Microsoft YaHei" svg:font-family="'Microsoft YaHei'" style:font-family-generic="system" style:font-pitch="variable"/>
|
||||
<style:font-face style:name="SimSun" svg:font-family="SimSun" style:font-family-generic="system" style:font-pitch="variable"/>
|
||||
<style:font-face style:name="Tahoma" svg:font-family="Tahoma" style:font-family-generic="system" style:font-pitch="variable"/>
|
||||
</office:font-face-decls>
|
||||
<office:automatic-styles>
|
||||
<style:style style:name="Tabelle3" style:family="table">
|
||||
<style:table-properties style:width="16.401cm" fo:margin-top="0cm" fo:margin-bottom="0cm" table:align="margins" style:may-break-between-rows="false"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle3.A" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="5.001cm" style:rel-column-width="19981*"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle3.B" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="3.9cm" style:rel-column-width="15583*"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle3.C" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="7.5cm" style:rel-column-width="29971*"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle3.A1" style:family="table-cell">
|
||||
<style:table-cell-properties style:vertical-align="" fo:padding-left="0cm" fo:padding-right="0cm" fo:padding-top="0.101cm" fo:padding-bottom="0.101cm" fo:border-left="none" fo:border-right="none" fo:border-top="none" fo:border-bottom="1pt dotted #000000"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle3.B1" style:family="table-cell">
|
||||
<style:table-cell-properties fo:padding-left="0cm" fo:padding-right="0cm" fo:padding-top="0.101cm" fo:padding-bottom="0.101cm" fo:border="none"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle3.C1" style:family="table-cell">
|
||||
<style:table-cell-properties fo:padding-left="0cm" fo:padding-right="0cm" fo:padding-top="0.101cm" fo:padding-bottom="0.101cm" fo:border-left="none" fo:border-right="none" fo:border-top="none" fo:border-bottom="1pt dotted #000000"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle3.A2" style:family="table-cell">
|
||||
<style:table-cell-properties fo:padding-left="0cm" fo:padding-right="0cm" fo:padding-top="0.101cm" fo:padding-bottom="0.101cm" fo:border="none"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle3.B2" style:family="table-cell">
|
||||
<style:table-cell-properties fo:padding-left="0cm" fo:padding-right="0cm" fo:padding-top="0.101cm" fo:padding-bottom="0.101cm" fo:border="none"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle3.C2" style:family="table-cell">
|
||||
<style:table-cell-properties fo:padding-left="0cm" fo:padding-right="0cm" fo:padding-top="0.101cm" fo:padding-bottom="0.101cm" fo:border="none"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle1" style:family="table">
|
||||
<style:table-properties style:width="16.401cm" fo:margin-top="0.199cm" fo:margin-bottom="0cm" table:align="margins"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle1.A" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="8.701cm" style:rel-column-width="4933*"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle1.B" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="3.799cm" style:rel-column-width="2154*"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle1.C" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="1.499cm" style:rel-column-width="850*"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle1.D" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="2.401cm" style:rel-column-width="1361*"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle1.1" style:family="table-row">
|
||||
<style:table-row-properties style:min-row-height="0.75cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle1.A1" style:family="table-cell">
|
||||
<style:table-cell-properties style:vertical-align="middle" fo:background-color="#afb8bc" fo:padding-left="0.101cm" fo:padding-right="0.101cm" fo:padding-top="0.079cm" fo:padding-bottom="0.079cm" fo:border-left="0.05pt solid #000000" fo:border-right="none" fo:border-top="0.05pt solid #000000" fo:border-bottom="0.05pt solid #000000">
|
||||
<style:background-image/>
|
||||
</style:table-cell-properties>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle1.D1" style:family="table-cell">
|
||||
<style:table-cell-properties style:vertical-align="middle" fo:background-color="#afb8bc" fo:padding-left="0.101cm" fo:padding-right="0.101cm" fo:padding-top="0.079cm" fo:padding-bottom="0.079cm" fo:border="0.05pt solid #000000">
|
||||
<style:background-image/>
|
||||
</style:table-cell-properties>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle1.A2" style:family="table-cell">
|
||||
<style:table-cell-properties style:vertical-align="middle" fo:padding-left="0.101cm" fo:padding-right="0.101cm" fo:padding-top="0.071cm" fo:padding-bottom="0.071cm" fo:border-left="0.05pt solid #000000" fo:border-right="none" fo:border-top="none" fo:border-bottom="0.05pt solid #000000"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle1.B2" style:family="table-cell">
|
||||
<style:table-cell-properties style:vertical-align="middle" fo:padding-left="0.101cm" fo:padding-right="0.101cm" fo:padding-top="0.071cm" fo:padding-bottom="0.071cm" fo:border-left="0.05pt solid #000000" fo:border-right="none" fo:border-top="none" fo:border-bottom="0.05pt solid #000000"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle1.C2" style:family="table-cell">
|
||||
<style:table-cell-properties style:vertical-align="middle" fo:padding-left="0.101cm" fo:padding-right="0.101cm" fo:padding-top="0.071cm" fo:padding-bottom="0.071cm" fo:border-left="0.05pt solid #000000" fo:border-right="none" fo:border-top="none" fo:border-bottom="0.05pt solid #000000"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle1.D2" style:family="table-cell">
|
||||
<style:table-cell-properties style:vertical-align="middle" fo:padding-left="0.101cm" fo:padding-right="0.101cm" fo:padding-top="0.071cm" fo:padding-bottom="0.071cm" fo:border-left="0.05pt solid #000000" fo:border-right="0.05pt solid #000000" fo:border-top="none" fo:border-bottom="0.05pt solid #000000"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle1.A7" style:family="table-cell">
|
||||
<style:table-cell-properties style:vertical-align="middle" fo:padding-left="0.101cm" fo:padding-right="0.101cm" fo:padding-top="0.071cm" fo:padding-bottom="0.071cm" fo:border-left="0.05pt solid #000000" fo:border-right="none" fo:border-top="none" fo:border-bottom="0.05pt solid #000000"/>
|
||||
</style:style>
|
||||
<style:style style:name="P1" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:text-properties fo:font-size="9pt" officeooo:rsid="000de2a1" officeooo:paragraph-rsid="000de2a1" style:font-size-asian="9pt" style:font-size-complex="9pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P2" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:paragraph-properties fo:text-align="end" style:justify-single-word="false"/>
|
||||
<style:text-properties fo:font-size="9pt" officeooo:rsid="000f65a0" officeooo:paragraph-rsid="000f65a0" style:font-size-asian="9pt" style:font-size-complex="9pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P3" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:text-properties fo:font-size="9pt" officeooo:rsid="000f65a0" officeooo:paragraph-rsid="000f65a0" style:font-size-asian="9pt" style:font-size-complex="9pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P4" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:paragraph-properties>
|
||||
<style:tab-stops>
|
||||
<style:tab-stop style:position="4.498cm"/>
|
||||
</style:tab-stops>
|
||||
</style:paragraph-properties>
|
||||
<style:text-properties fo:font-size="9pt" officeooo:rsid="000f65a0" officeooo:paragraph-rsid="000f65a0" style:font-size-asian="9pt" style:font-size-complex="9pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P5" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:text-properties fo:font-size="16pt" fo:font-weight="bold" officeooo:rsid="000de2a1" officeooo:paragraph-rsid="000de2a1" style:font-size-asian="16pt" style:font-weight-asian="bold" style:font-size-complex="16pt" style:font-weight-complex="bold"/>
|
||||
</style:style>
|
||||
<style:style style:name="P6" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:text-properties fo:font-size="2pt" officeooo:rsid="000f65a0" officeooo:paragraph-rsid="000f65a0" style:font-size-asian="1.75pt" style:font-size-complex="2pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P7" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:text-properties fo:font-size="5pt" officeooo:rsid="000f65a0" officeooo:paragraph-rsid="000f65a0" style:font-size-asian="1.75pt" style:font-size-complex="2pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P8" style:family="paragraph" style:parent-style-name="Table_20_Contents">
|
||||
<style:paragraph-properties fo:text-align="center" style:justify-single-word="false"/>
|
||||
<style:text-properties fo:font-size="9pt" officeooo:rsid="000f65a0" officeooo:paragraph-rsid="000f65a0" style:font-size-asian="9pt" style:font-size-complex="9pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P9" style:family="paragraph" style:parent-style-name="Table_20_Contents">
|
||||
<style:paragraph-properties fo:text-align="center" style:justify-single-word="false"/>
|
||||
<style:text-properties fo:font-size="9pt" officeooo:rsid="000f65a0" officeooo:paragraph-rsid="000f65a0" style:font-size-asian="9pt" style:font-size-complex="9pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P10" style:family="paragraph" style:parent-style-name="Table_20_Contents">
|
||||
<style:paragraph-properties fo:text-align="left" style:justify-single-word="false"/>
|
||||
<style:text-properties fo:font-size="9pt" style:font-size-asian="9pt" style:font-size-complex="9pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P11" style:family="paragraph" style:parent-style-name="Table_20_Contents">
|
||||
<style:paragraph-properties fo:text-align="start" style:justify-single-word="false"/>
|
||||
<style:text-properties fo:font-size="9pt" fo:font-weight="bold" officeooo:rsid="000f65a0" officeooo:paragraph-rsid="000f65a0" style:font-size-asian="9pt" style:font-weight-asian="bold" style:font-size-complex="9pt" style:font-weight-complex="bold"/>
|
||||
</style:style>
|
||||
<style:style style:name="P12" style:family="paragraph" style:parent-style-name="Table_20_Contents">
|
||||
<style:paragraph-properties fo:text-align="center" style:justify-single-word="false"/>
|
||||
<style:text-properties fo:font-size="9pt" fo:font-weight="bold" officeooo:rsid="000f65a0" officeooo:paragraph-rsid="000f65a0" style:font-size-asian="9pt" style:font-weight-asian="bold" style:font-size-complex="9pt" style:font-weight-complex="bold"/>
|
||||
</style:style>
|
||||
<style:style style:name="P13" style:family="paragraph" style:parent-style-name="Table_20_Contents">
|
||||
<style:text-properties fo:font-size="9pt" style:font-size-complex="9pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P14" style:family="paragraph" style:parent-style-name="Table_20_Contents">
|
||||
<style:text-properties fo:font-size="9pt" officeooo:rsid="0013c612" officeooo:paragraph-rsid="0013c612" style:font-size-complex="9pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P15" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:paragraph-properties fo:break-before="page"/>
|
||||
<style:text-properties fo:font-size="16pt" fo:font-weight="bold" officeooo:rsid="000de2a1" officeooo:paragraph-rsid="000de2a1" style:font-size-asian="16pt" style:font-weight-asian="bold" style:font-size-complex="16pt" style:font-weight-complex="bold"/>
|
||||
</style:style>
|
||||
<style:style style:name="P16" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:text-properties fo:font-size="16pt" officeooo:rsid="003032c4" officeooo:paragraph-rsid="003032c4" style:font-size-asian="16pt" style:font-size-complex="16pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P17" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:text-properties fo:font-size="9pt" officeooo:rsid="000de2a1" officeooo:paragraph-rsid="000de2a1" style:font-size-asian="9pt" style:font-size-complex="9pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P18" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:paragraph-properties>
|
||||
<style:tab-stops>
|
||||
<style:tab-stop style:position="4.498cm"/>
|
||||
</style:tab-stops>
|
||||
</style:paragraph-properties>
|
||||
<style:text-properties fo:font-size="9pt" officeooo:rsid="000f65a0" officeooo:paragraph-rsid="000f65a0" style:font-size-asian="9pt" style:font-size-complex="9pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P19" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:paragraph-properties>
|
||||
<style:tab-stops>
|
||||
<style:tab-stop style:position="4.498cm"/>
|
||||
</style:tab-stops>
|
||||
</style:paragraph-properties>
|
||||
<style:text-properties fo:font-size="9pt" officeooo:rsid="003032c4" officeooo:paragraph-rsid="003032c4" style:font-size-asian="9pt" style:font-size-complex="9pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P20" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:paragraph-properties>
|
||||
<style:tab-stops>
|
||||
<style:tab-stop style:position="1.499cm"/>
|
||||
</style:tab-stops>
|
||||
</style:paragraph-properties>
|
||||
<style:text-properties fo:font-size="6pt" officeooo:rsid="000f65a0" officeooo:paragraph-rsid="0024d69b" style:font-size-asian="6pt" style:font-size-complex="6pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P21" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:text-properties style:font-name="Arial" fo:font-size="9pt" officeooo:rsid="003032c4" officeooo:paragraph-rsid="000f65a0" style:font-size-asian="9pt" style:font-size-complex="9pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P22" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:text-properties style:font-name="Arial" fo:font-size="9pt" officeooo:rsid="003032c4" officeooo:paragraph-rsid="003032c4" style:font-size-asian="9pt" style:font-size-complex="9pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P23" style:family="paragraph" style:parent-style-name="Table_20_Contents">
|
||||
<style:text-properties fo:font-size="9pt" officeooo:rsid="003032c4" officeooo:paragraph-rsid="003032c4" style:font-size-complex="9pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P24" style:family="paragraph" style:parent-style-name="Table_20_Contents">
|
||||
<style:paragraph-properties fo:text-align="center" style:justify-single-word="false"/>
|
||||
<style:text-properties fo:font-size="9pt" officeooo:rsid="00317832" officeooo:paragraph-rsid="00317832" style:font-size-asian="9pt" style:font-size-complex="9pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="T1" style:family="text">
|
||||
<style:text-properties fo:font-weight="bold" style:font-weight-asian="bold" style:font-weight-complex="bold"/>
|
||||
</style:style>
|
||||
<style:style style:name="T2" style:family="text">
|
||||
<style:text-properties officeooo:rsid="003032c4"/>
|
||||
</style:style>
|
||||
<style:style style:name="T3" style:family="text">
|
||||
<style:text-properties officeooo:rsid="00317832"/>
|
||||
</style:style>
|
||||
<style:style style:name="fr1" style:family="graphic" style:parent-style-name="Frame">
|
||||
<style:graphic-properties style:wrap="run-through" style:number-wrapped-paragraphs="no-limit" style:vertical-pos="from-top" style:vertical-rel="page-content" style:horizontal-pos="center" style:horizontal-rel="page-content" fo:padding="0cm" fo:border="none" style:shadow="none" draw:shadow-opacity="100%"/>
|
||||
</style:style>
|
||||
<style:style style:name="fr2" style:family="graphic" style:parent-style-name="Graphics">
|
||||
<style:graphic-properties style:run-through="foreground" style:wrap="run-through" style:number-wrapped-paragraphs="no-limit" style:vertical-pos="bottom" style:vertical-rel="page-content" style:horizontal-pos="from-left" style:horizontal-rel="page-content" style:mirror="none" fo:clip="rect(0cm, 0cm, 0cm, 0cm)" draw:luminance="0%" draw:contrast="0%" draw:red="0%" draw:green="0%" draw:blue="0%" draw:gamma="100%" draw:color-inversion="false" draw:image-opacity="100%" draw:color-mode="standard"/>
|
||||
</style:style>
|
||||
<style:style style:name="fr3" style:family="graphic" style:parent-style-name="Graphics">
|
||||
<style:graphic-properties style:run-through="foreground" style:wrap="run-through" style:number-wrapped-paragraphs="no-limit" style:vertical-pos="bottom" style:vertical-rel="page-content" style:horizontal-pos="from-left" style:horizontal-rel="page-content" style:mirror="none" fo:clip="rect(0cm, 0cm, 0cm, 0cm)" draw:luminance="0%" draw:contrast="0%" draw:red="0%" draw:green="0%" draw:blue="0%" draw:gamma="100%" draw:color-inversion="false" draw:image-opacity="100%" draw:color-mode="standard"/>
|
||||
</style:style>
|
||||
</office:automatic-styles>
|
||||
<office:body>
|
||||
<xsl:apply-templates select="zertifikat"/>
|
||||
</office:body>
|
||||
</office:document-content>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="zertifikat">
|
||||
<office:text text:use-soft-page-breaks="true" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0">
|
||||
<text:sequence-decls>
|
||||
<text:sequence-decl text:display-outline-level="0" text:name="Illustration"/>
|
||||
<text:sequence-decl text:display-outline-level="0" text:name="Table"/>
|
||||
<text:sequence-decl text:display-outline-level="0" text:name="Text"/>
|
||||
<text:sequence-decl text:display-outline-level="0" text:name="Drawing"/>
|
||||
</text:sequence-decls>
|
||||
<!-- Wichtig für Mehrfachdruck (mehrere Studenten ausgewählt): Wenn ein Element (in diesem Fall Stempel und Unterschriftenblock) relativ zur SEITE ausgerichtet werden soll,
|
||||
muss für jedes Dokument (jeder neue Durchlauf der Schleife) ein draw:frame-Tag definiert werden. Diese müssen ALLE VOR den ersten text:p-Elementen stehen.
|
||||
Deshalb wirde erst die Schleife für die draw:frames aufgerufen, dann folg tder Inhalt -->
|
||||
<xsl:if test="position()=1">
|
||||
<xsl:for-each select="../zertifikat">
|
||||
<xsl:variable select="position()" name="number"/><!-- Variable number definieren, die nach jedem Dokument um eines erhöht wird (position) -->
|
||||
<draw:frame draw:style-name="fr1" draw:name="Rahmen{$number}" text:anchor-type="page" text:anchor-page-number="{$number}" svg:y="21.001cm" draw:z-index="0">
|
||||
<draw:text-box fo:min-height="0.499cm" fo:min-width="2cm">
|
||||
<table:table table:name="Tabelle3" table:style-name="Tabelle3">
|
||||
<table:table-column table:style-name="Tabelle3.A"/>
|
||||
<table:table-column table:style-name="Tabelle3.B"/>
|
||||
<table:table-column table:style-name="Tabelle3.C"/>
|
||||
<table:table-row>
|
||||
<table:table-cell table:style-name="Tabelle3.A1" office:value-type="string">
|
||||
<text:p text:style-name="P17">Wien, am <xsl:value-of select="ort_datum" /></text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle3.B1" office:value-type="string">
|
||||
<text:p text:style-name="P16"/>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle3.C1" office:value-type="string">
|
||||
<text:p text:style-name="P16"/>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
<table:table-row>
|
||||
<table:table-cell table:style-name="Tabelle3.A2" office:value-type="string">
|
||||
<text:p text:style-name="P17">Ort, Datum</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle3.B2" office:value-type="string">
|
||||
<text:p text:style-name="P16"/>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle3.C2" office:value-type="string">
|
||||
<text:p text:style-name="P14"><xsl:value-of select="lvleiter" /></text:p>
|
||||
<text:p text:style-name="P23">LeiterIn Freifach</text:p>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
</table:table>
|
||||
</draw:text-box>
|
||||
</draw:frame>
|
||||
<draw:frame xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" draw:style-name="fr3" draw:name="Bild{$number}" text:anchor-type="page" text:anchor-page-number="{$number}" svg:x="5.2cm" svg:width="3.51cm" svg:height="3.51cm" draw:z-index="1">
|
||||
<draw:image xlink:href="Pictures/10000201000002290000022939997AEC.png" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>
|
||||
</draw:frame>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
<text:p text:style-name="P15">ZERTIFIKAT</text:p>
|
||||
<text:p text:style-name="P16">
|
||||
<text:span text:style-name="T1">Freifächer</text:span>
|
||||
</text:p>
|
||||
<text:p text:style-name="P1"/>
|
||||
<text:p text:style-name="P1"/>
|
||||
<text:p text:style-name="P1"/>
|
||||
<text:p text:style-name="P1"/>
|
||||
<text:p text:style-name="P1"/>
|
||||
<text:p text:style-name="P1"/>
|
||||
<text:p text:style-name="P1"/>
|
||||
<text:p text:style-name="P2">Personenkennzeichen: <xsl:value-of select="matrikelnr" /></text:p>
|
||||
<text:p text:style-name="P2"/>
|
||||
<text:p text:style-name="P3"/>
|
||||
<text:p text:style-name="P3"/>
|
||||
<text:p text:style-name="P3"/>
|
||||
<text:p text:style-name="P7"/>
|
||||
<text:p text:style-name="P4">Vorname/Familienname:<text:tab/>
|
||||
<text:span text:style-name="T1"><xsl:value-of select="name"/></text:span>
|
||||
</text:p>
|
||||
<text:p text:style-name="P7"/>
|
||||
<text:p text:style-name="P4">Geburtsdatum:<text:tab/><xsl:value-of select="gebdatum" /></text:p>
|
||||
<text:p text:style-name="P4"/>
|
||||
<text:p text:style-name="P19">Herr/Frau <xsl:value-of select="name"/> hat im <xsl:value-of select="studiensemester" /> das folgende Freifach an der FH</text:p>
|
||||
<text:p text:style-name="P19">Technikum Wien belegt:</text:p>
|
||||
<text:p text:style-name="P19"/>
|
||||
<table:table table:name="Tabelle1" table:style-name="Tabelle1">
|
||||
<table:table-column table:style-name="Tabelle1.A"/>
|
||||
<table:table-column table:style-name="Tabelle1.B"/>
|
||||
<table:table-column table:style-name="Tabelle1.C"/>
|
||||
<table:table-column table:style-name="Tabelle1.D"/>
|
||||
<table:table-row table:style-name="Tabelle1.1">
|
||||
<table:table-cell table:style-name="Tabelle1.A1" office:value-type="string">
|
||||
<text:p text:style-name="P11">Lehrveranstaltung</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle1.A1" office:value-type="string">
|
||||
<text:p text:style-name="P12">Note</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle1.A1" office:value-type="string">
|
||||
<text:p text:style-name="P12">SWS</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle1.D1" office:value-type="string">
|
||||
<text:p text:style-name="P12">ECTS <text:span text:style-name="T3">credits</text:span>
|
||||
</text:p>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
<table:table-row>
|
||||
<table:table-cell table:style-name="Tabelle1.A7" office:value-type="string">
|
||||
<text:p text:style-name="P10"><xsl:value-of select="bezeichnung"/></text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle1.B2" office:value-type="string">
|
||||
<text:p text:style-name="P9">
|
||||
<xsl:choose>
|
||||
<xsl:when test="note='tg'">
|
||||
<xsl:text>teilgenommen</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="note='met'">
|
||||
<xsl:text>mit Erfolg teilgenommen</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="note=''">
|
||||
<xsl:text>-</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="note"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle1.C2" office:value-type="string">
|
||||
<text:p text:style-name="P9">
|
||||
<xsl:if test="sws=''">
|
||||
<xsl:text>-</xsl:text>
|
||||
</xsl:if>
|
||||
<xsl:value-of select="sws"/>
|
||||
</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle1.D2" office:value-type="string">
|
||||
<text:p text:style-name="P9">
|
||||
<xsl:if test="ects=''">
|
||||
<xsl:text>-</xsl:text>
|
||||
</xsl:if>
|
||||
<xsl:value-of select="ects"/>
|
||||
</text:p>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
</table:table>
|
||||
<text:p text:style-name="P6"/>
|
||||
<text:p text:style-name="P20"/>
|
||||
<text:p text:style-name="P21"/>
|
||||
<text:p text:style-name="P22">Inhalte der Lehrveranstaltung:</text:p>
|
||||
<text:p text:style-name="P22"/>
|
||||
<text:p text:style-name="P22"/>
|
||||
<text:p text:style-name="P22"><xsl:value-of select="lehrinhalte" /></text:p>
|
||||
</office:text>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
@@ -0,0 +1,496 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<xsl:stylesheet xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
|
||||
xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0"
|
||||
>
|
||||
|
||||
<xsl:output method="xml" version="1.0" indent="yes"/>
|
||||
<xsl:template match="studenten">
|
||||
|
||||
<office:document-content xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rpt="http://openoffice.org/2005/report" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:officeooo="http://openoffice.org/2009/office" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:drawooo="http://openoffice.org/2010/draw" xmlns:calcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:formx="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0" xmlns:css3t="http://www.w3.org/TR/css3-text/" office:version="1.2">
|
||||
<office:scripts/>
|
||||
<office:font-face-decls>
|
||||
<style:font-face style:name="Mangal2" svg:font-family="Mangal"/>
|
||||
<style:font-face style:name="Mangal" svg:font-family="Mangal" style:font-family-generic="roman"/>
|
||||
<style:font-face style:name="Liberation Serif" svg:font-family="'Liberation Serif'" style:font-family-generic="roman" style:font-pitch="variable"/>
|
||||
<style:font-face style:name="Arial" svg:font-family="Arial" style:font-adornments="Standard" style:font-family-generic="swiss" style:font-pitch="variable"/>
|
||||
<style:font-face style:name="Liberation Sans" svg:font-family="'Liberation Sans'" style:font-family-generic="swiss" style:font-pitch="variable"/>
|
||||
<style:font-face style:name="Liberation Sans1" svg:font-family="'Liberation Sans'" style:font-family-generic="system" style:font-pitch="variable"/>
|
||||
<style:font-face style:name="Mangal1" svg:font-family="Mangal" style:font-family-generic="system" style:font-pitch="variable"/>
|
||||
<style:font-face style:name="Microsoft YaHei" svg:font-family="'Microsoft YaHei'" style:font-family-generic="system" style:font-pitch="variable"/>
|
||||
<style:font-face style:name="SimSun" svg:font-family="SimSun" style:font-family-generic="system" style:font-pitch="variable"/>
|
||||
<style:font-face style:name="Tahoma" svg:font-family="Tahoma" style:font-family-generic="system" style:font-pitch="variable"/>
|
||||
</office:font-face-decls>
|
||||
<office:automatic-styles>
|
||||
<style:style style:name="Tabelle1" style:family="table">
|
||||
<style:table-properties style:width="17.701cm" table:align="left"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle1.A" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="12.991cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle1.B" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="4.71cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle1.1" style:family="table-row">
|
||||
<style:table-row-properties style:min-row-height="1.100cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle1.2" style:family="table-row">
|
||||
<style:table-row-properties style:min-row-height="0.500cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle1.A1" style:family="table-cell">
|
||||
<style:table-cell-properties fo:padding="0.097cm" fo:border="0.05pt solid #000000"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle1.B1" style:family="table-cell">
|
||||
<style:table-cell-properties style:vertical-align="bottom" fo:padding="0.097cm" fo:border="none"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle1.A2" style:family="table-cell">
|
||||
<style:table-cell-properties style:vertical-align="middle" style:min-row-height="0.600cm" fo:padding="0.0cm" fo:border="none"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle1.B2" style:family="table-cell">
|
||||
<style:table-cell-properties fo:padding="0.097cm" fo:border="0.05pt solid #000000"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle2" style:family="table">
|
||||
<style:table-properties style:width="17.7cm" fo:margin-left="0cm" table:align="left"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle2.A" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="8,850cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle2.B" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="8,851cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle2.A1" style:family="table-cell">
|
||||
<style:table-cell-properties fo:padding="0.0cm" fo:border="none"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle3" style:family="table">
|
||||
<style:table-properties style:width="17.701cm" table:align="left"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle3.A" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="12.991cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle3.B" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="4.71cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle3.1" style:family="table-row">
|
||||
<style:table-row-properties style:min-row-height="1.005cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle3.A1" style:family="table-cell">
|
||||
<style:table-cell-properties fo:padding="0.097cm" fo:border="0.05pt solid #000000"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle3.B1" style:family="table-cell">
|
||||
<style:table-cell-properties style:vertical-align="bottom" fo:padding="0.097cm" fo:border-left="0.05pt solid #000000" fo:border-right="none" fo:border-top="none" fo:border-bottom="0.05pt solid #000000"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle3.A2" style:family="table-cell">
|
||||
<style:table-cell-properties style:vertical-align="middle" fo:padding="0.097cm" fo:border="none"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle4" style:family="table">
|
||||
<style:table-properties style:width="17.013cm" fo:margin-left="0cm" table:align="left"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle4.A" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="7.911cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle4.B" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="9.102cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle4.A1" style:family="table-cell">
|
||||
<style:table-cell-properties fo:padding="0.097cm" fo:border="none"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle5" style:family="table">
|
||||
<style:table-properties style:width="17.701cm" table:align="left"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle5.A" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="12.991cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle5.B" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="4.71cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle5.1" style:family="table-row">
|
||||
<style:table-row-properties style:min-row-height="1.005cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle5.A1" style:family="table-cell">
|
||||
<style:table-cell-properties fo:padding="0.097cm" fo:border="0.05pt solid #000000"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle5.B1" style:family="table-cell">
|
||||
<style:table-cell-properties style:vertical-align="bottom" fo:padding="0.097cm" fo:border="none"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle5.A2" style:family="table-cell">
|
||||
<style:table-cell-properties style:vertical-align="middle" fo:padding="0.097cm" fo:border="none"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle6" style:family="table">
|
||||
<style:table-properties style:width="17.013cm" fo:margin-left="0cm" table:align="left"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle6.A" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="7.911cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle6.B" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="9.102cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle6.A1" style:family="table-cell">
|
||||
<style:table-cell-properties fo:padding="0.097cm" fo:border="none"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle7" style:family="table">
|
||||
<style:table-properties style:width="17.701cm" table:align="left"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle7.A" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="12.991cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle7.B" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="4.71cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle7.1" style:family="table-row">
|
||||
<style:table-row-properties style:min-row-height="1.005cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle7.A1" style:family="table-cell">
|
||||
<style:table-cell-properties fo:padding="0.097cm" fo:border="0.05pt solid #000000"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle7.B1" style:family="table-cell">
|
||||
<style:table-cell-properties style:vertical-align="bottom" fo:padding="0.097cm" fo:border="none"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle7.A2" style:family="table-cell">
|
||||
<style:table-cell-properties style:vertical-align="middle" fo:padding="0.097cm" fo:border="none"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle8" style:family="table">
|
||||
<style:table-properties style:width="17.013cm" fo:margin-left="0cm" table:align="left"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle8.A" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="7.911cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle8.B" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="9.102cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle8.A1" style:family="table-cell">
|
||||
<style:table-cell-properties fo:padding="0.097cm" fo:border="none"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle9" style:family="table">
|
||||
<style:table-properties style:width="17.701cm" table:align="left"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle9.A" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="12.991cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle9.B" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="4.71cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle9.1" style:family="table-row">
|
||||
<style:table-row-properties style:min-row-height="1.005cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle9.A1" style:family="table-cell">
|
||||
<style:table-cell-properties fo:padding="0.097cm" fo:border="0.05pt solid #000000"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle9.B1" style:family="table-cell">
|
||||
<style:table-cell-properties style:vertical-align="bottom" fo:padding="0.097cm" fo:border="none"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle9.A2" style:family="table-cell">
|
||||
<style:table-cell-properties style:vertical-align="middle" fo:padding="0.097cm" fo:border="none"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle10" style:family="table">
|
||||
<style:table-properties style:width="17.013cm" fo:margin-left="0cm" table:align="left"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle10.A" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="7.911cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle10.B" style:family="table-column">
|
||||
<style:table-column-properties style:column-width="9.102cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="Tabelle10.A1" style:family="table-cell">
|
||||
<style:table-cell-properties fo:padding="0.097cm" fo:border="none"/>
|
||||
</style:style>
|
||||
<style:style style:name="P1" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:text-properties officeooo:rsid="00094cd9" officeooo:paragraph-rsid="000a79ac" style:font-name="Arial" fo:font-size="8pt" style:font-size-asian="8pt" style:font-size-complex="8pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P2" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:paragraph-properties>
|
||||
<style:tab-stops/>
|
||||
</style:paragraph-properties>
|
||||
<style:text-properties style:font-name="Arial" fo:font-size="8pt" officeooo:rsid="00094cd9" officeooo:paragraph-rsid="000a79ac" style:font-size-asian="8pt" style:font-size-complex="8pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P3" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:paragraph-properties fo:text-align="end" style:justify-single-word="false">
|
||||
<style:tab-stops/>
|
||||
</style:paragraph-properties>
|
||||
<style:text-properties style:font-name="Arial" fo:font-size="8pt" officeooo:rsid="00094cd9" officeooo:paragraph-rsid="000a79ac" style:font-size-asian="8pt" style:font-size-complex="8pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P4" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:paragraph-properties fo:text-align="center" style:justify-single-word="false">
|
||||
<style:tab-stops/>
|
||||
</style:paragraph-properties>
|
||||
<style:text-properties style:font-name="Arial" fo:font-size="7pt" officeooo:rsid="00094cd9" officeooo:paragraph-rsid="000a79ac" style:font-size-asian="7pt" style:font-size-complex="7pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P5" style:family="paragraph" style:parent-style-name="Table_20_Contents">
|
||||
<style:text-properties style:font-name="Arial" fo:font-size="6pt" officeooo:rsid="00094cd9" officeooo:paragraph-rsid="000a79ac" style:font-size-asian="6pt" style:font-size-complex="6pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P6" style:family="paragraph" style:parent-style-name="Table_20_Contents">
|
||||
<style:paragraph-properties fo:text-align="center" style:justify-single-word="false"/>
|
||||
<style:text-properties style:font-name="Arial" fo:font-size="8pt" officeooo:rsid="00094cd9" officeooo:paragraph-rsid="000a79ac" style:font-size-asian="8pt" style:font-size-complex="8pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P7" style:family="paragraph" style:parent-style-name="Table_20_Contents">
|
||||
<style:paragraph-properties fo:text-align="center" style:justify-single-word="false"/>
|
||||
<style:text-properties style:font-name="Arial" fo:font-size="10pt" officeooo:rsid="00094cd9" officeooo:paragraph-rsid="000a79ac" style:font-size-asian="10pt" style:font-size-complex="10pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P8" style:family="paragraph" style:parent-style-name="Table_20_Contents">
|
||||
<style:text-properties style:font-name="Arial" fo:font-size="10pt" officeooo:rsid="00094cd9" officeooo:paragraph-rsid="000a79ac" style:font-size-asian="10pt" style:font-size-complex="10pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="P9" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:paragraph-properties fo:margin-top="0cm" fo:margin-bottom="0.101cm" loext:contextual-spacing="false"/>
|
||||
<style:text-properties style:font-name="Arial" fo:font-size="14pt" officeooo:rsid="00094cd9" officeooo:paragraph-rsid="000a79ac" style:font-size-asian="14pt" style:font-size-complex="14pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="T1" style:family="text">
|
||||
<style:text-properties style:font-name="Arial" fo:font-size="8pt" style:font-size-asian="8pt" style:font-size-complex="8pt"/>
|
||||
</style:style>
|
||||
</office:automatic-styles>
|
||||
<office:body>
|
||||
<xsl:apply-templates select="student"/>
|
||||
</office:body>
|
||||
</office:document-content>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="student">
|
||||
<office:text text:use-soft-page-breaks="true" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0">
|
||||
<text:sequence-decls>
|
||||
<text:sequence-decl text:display-outline-level="0" text:name="Illustration"/>
|
||||
<text:sequence-decl text:display-outline-level="0" text:name="Table"/>
|
||||
<text:sequence-decl text:display-outline-level="0" text:name="Text"/>
|
||||
<text:sequence-decl text:display-outline-level="0" text:name="Drawing"/>
|
||||
</text:sequence-decls>
|
||||
<text:p text:style-name="P9">Studienbestätigung Fachhochschule Technikum Wien</text:p>
|
||||
<table:table table:name="Tabelle1" table:style-name="Tabelle1">
|
||||
<table:table-column table:style-name="Tabelle1.A"/>
|
||||
<table:table-column table:style-name="Tabelle1.B"/>
|
||||
<table:table-row table:style-name="Tabelle1.1">
|
||||
<table:table-cell table:style-name="Tabelle1.A1" office:value-type="string">
|
||||
<text:p text:style-name="P5">Zur Vorlage an (Stelle an der die Bestätigung vorgelegt wird und deren Bezugszahl, z.B. Sozialversicherungsnr.)</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle1.B1" office:value-type="string">
|
||||
<text:p text:style-name="P6">Personenkennzeichen</text:p>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
<table:table-row table:style-name="Tabelle1.2">
|
||||
<table:table-cell table:style-name="Tabelle1.A2" office:value-type="string">
|
||||
<text:p text:style-name="P8">
|
||||
<xsl:value-of select="titelpre" /><xsl:text> </xsl:text><xsl:value-of select="vorname" /><xsl:text> </xsl:text><xsl:value-of select="vornamen" /><xsl:text> </xsl:text><xsl:value-of select="nachname" /><xsl:text> </xsl:text><xsl:value-of select="titelpost" />
|
||||
</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle1.B2" office:value-type="string">
|
||||
<text:p text:style-name="P7">
|
||||
<xsl:value-of select="matrikelnummer" />
|
||||
</text:p>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
</table:table>
|
||||
<text:p text:style-name="P1" />
|
||||
<text:p text:style-name="P1">
|
||||
geboren am<xsl:text> </xsl:text><xsl:value-of select="geburtsdatum" /><xsl:text> </xsl:text>
|
||||
ist im<xsl:text> </xsl:text><xsl:value-of select="studiensemester_aktuell" /><xsl:text> </xsl:text>(Beginn <xsl:text> </xsl:text><xsl:value-of select="studienbeginn_aktuell" />)
|
||||
als ordentliche(r) Studierende(r) (Studienbeginn,<xsl:text> </xsl:text><xsl:value-of select="studiensemester_beginn" /> Beginn<xsl:text> </xsl:text><xsl:value-of select="studienbeginn_beginn" />)
|
||||
<text:line-break />der Studienrichtung <xsl:text> </xsl:text><xsl:value-of select="studiengang_kz" /><xsl:text> </xsl:text><xsl:value-of select="studiengang_art" /><xsl:text> </xsl:text><xsl:value-of select="studiengang_bezeichnung" /> im
|
||||
<xsl:text> </xsl:text><xsl:value-of select="semester" />. Semester gemeldet.
|
||||
</text:p>
|
||||
<text:p text:style-name="P1"/>
|
||||
<table:table table:name="Tabelle2" table:style-name="Tabelle2">
|
||||
<table:table-column table:style-name="Tabelle2.A"/>
|
||||
<table:table-column table:style-name="Tabelle2.B"/>
|
||||
<table:table-row>
|
||||
<table:table-cell table:style-name="Tabelle2.A1" office:value-type="string">
|
||||
<text:p text:style-name="P2">Datum:<xsl:text> </xsl:text><xsl:value-of select="tagesdatum" /><xsl:text> </xsl:text>DVR: 0928381</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle2.A1" office:value-type="string">
|
||||
<text:p text:style-name="P3">Rektor:<xsl:text> </xsl:text><xsl:value-of select="rektor" /></text:p>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
</table:table>
|
||||
<text:p />
|
||||
<text:p text:style-name="P4">------------------------------------------------------------------------------------------------------------------------------------------------------------------------</text:p>
|
||||
<text:p />
|
||||
<text:p text:style-name="P9">Studienbestätigung Fachhochschule Technikum Wien</text:p>
|
||||
<table:table table:name="Tabelle1" table:style-name="Tabelle1">
|
||||
<table:table-column table:style-name="Tabelle1.A"/>
|
||||
<table:table-column table:style-name="Tabelle1.B"/>
|
||||
<table:table-row table:style-name="Tabelle1.1">
|
||||
<table:table-cell table:style-name="Tabelle1.A1" office:value-type="string">
|
||||
<text:p text:style-name="P5">Zur Vorlage an (Stelle an der die Bestätigung vorgelegt wird und deren Bezugszahl, z.B. Sozialversicherungsnr.)</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle1.B1" office:value-type="string">
|
||||
<text:p text:style-name="P6">Personenkennzeichen</text:p>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
<table:table-row table:style-name="Tabelle1.2">
|
||||
<table:table-cell table:style-name="Tabelle1.A2" office:value-type="string">
|
||||
<text:p text:style-name="P8">
|
||||
<xsl:value-of select="titelpre" /><xsl:text> </xsl:text><xsl:value-of select="vorname" /><xsl:text> </xsl:text><xsl:value-of select="vornamen" /><xsl:text> </xsl:text><xsl:value-of select="nachname" /><xsl:text> </xsl:text><xsl:value-of select="titelpost" />
|
||||
</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle1.B2" office:value-type="string">
|
||||
<text:p text:style-name="P7">
|
||||
<xsl:value-of select="matrikelnummer" />
|
||||
</text:p>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
</table:table>
|
||||
<text:p text:style-name="P1" />
|
||||
<text:p text:style-name="P1">
|
||||
geboren am<xsl:text> </xsl:text><xsl:value-of select="geburtsdatum" /><xsl:text> </xsl:text>
|
||||
ist im<xsl:text> </xsl:text><xsl:value-of select="studiensemester_aktuell" /><xsl:text> </xsl:text>(Beginn <xsl:text> </xsl:text><xsl:value-of select="studienbeginn_aktuell" />)
|
||||
als ordentliche(r) Studierende(r) (Studienbeginn,<xsl:text> </xsl:text><xsl:value-of select="studiensemester_beginn" /> Beginn<xsl:text> </xsl:text><xsl:value-of select="studienbeginn_beginn" />)
|
||||
<text:line-break />der Studienrichtung <xsl:text> </xsl:text><xsl:value-of select="studiengang_kz" /><xsl:text> </xsl:text><xsl:value-of select="studiengang_art" /><xsl:text> </xsl:text><xsl:value-of select="studiengang_bezeichnung" /> im
|
||||
<xsl:text> </xsl:text><xsl:value-of select="semester" />. Semester gemeldet.
|
||||
</text:p>
|
||||
<text:p text:style-name="P1"/>
|
||||
<table:table table:name="Tabelle2" table:style-name="Tabelle2">
|
||||
<table:table-column table:style-name="Tabelle2.A"/>
|
||||
<table:table-column table:style-name="Tabelle2.B"/>
|
||||
<table:table-row>
|
||||
<table:table-cell table:style-name="Tabelle2.A1" office:value-type="string">
|
||||
<text:p text:style-name="P2">Datum:<xsl:text> </xsl:text><xsl:value-of select="tagesdatum" /><xsl:text> </xsl:text>DVR: 0928381</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle2.A1" office:value-type="string">
|
||||
<text:p text:style-name="P3">Rektor:<xsl:text> </xsl:text><xsl:value-of select="rektor" /></text:p>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
</table:table>
|
||||
<text:p />
|
||||
<text:p text:style-name="P4">------------------------------------------------------------------------------------------------------------------------------------------------------------------------</text:p>
|
||||
<text:p />
|
||||
<text:p text:style-name="P9">Studienbestätigung Fachhochschule Technikum Wien</text:p>
|
||||
<table:table table:name="Tabelle1" table:style-name="Tabelle1">
|
||||
<table:table-column table:style-name="Tabelle1.A"/>
|
||||
<table:table-column table:style-name="Tabelle1.B"/>
|
||||
<table:table-row table:style-name="Tabelle1.1">
|
||||
<table:table-cell table:style-name="Tabelle1.A1" office:value-type="string">
|
||||
<text:p text:style-name="P5">Zur Vorlage an (Stelle an der die Bestätigung vorgelegt wird und deren Bezugszahl, z.B. Sozialversicherungsnr.)</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle1.B1" office:value-type="string">
|
||||
<text:p text:style-name="P6">Personenkennzeichen</text:p>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
<table:table-row table:style-name="Tabelle1.2">
|
||||
<table:table-cell table:style-name="Tabelle1.A2" office:value-type="string">
|
||||
<text:p text:style-name="P8">
|
||||
<xsl:value-of select="titelpre" /><xsl:text> </xsl:text><xsl:value-of select="vorname" /><xsl:text> </xsl:text><xsl:value-of select="vornamen" /><xsl:text> </xsl:text><xsl:value-of select="nachname" /><xsl:text> </xsl:text><xsl:value-of select="titelpost" />
|
||||
</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle1.B2" office:value-type="string">
|
||||
<text:p text:style-name="P7">
|
||||
<xsl:value-of select="matrikelnummer" />
|
||||
</text:p>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
</table:table>
|
||||
<text:p text:style-name="P1" />
|
||||
<text:p text:style-name="P1">
|
||||
geboren am<xsl:text> </xsl:text><xsl:value-of select="geburtsdatum" /><xsl:text> </xsl:text>
|
||||
ist im<xsl:text> </xsl:text><xsl:value-of select="studiensemester_aktuell" /><xsl:text> </xsl:text>(Beginn <xsl:text> </xsl:text><xsl:value-of select="studienbeginn_aktuell" />)
|
||||
als ordentliche(r) Studierende(r) (Studienbeginn,<xsl:text> </xsl:text><xsl:value-of select="studiensemester_beginn" /> Beginn<xsl:text> </xsl:text><xsl:value-of select="studienbeginn_beginn" />)
|
||||
<text:line-break />der Studienrichtung <xsl:text> </xsl:text><xsl:value-of select="studiengang_kz" /><xsl:text> </xsl:text><xsl:value-of select="studiengang_art" /><xsl:text> </xsl:text><xsl:value-of select="studiengang_bezeichnung" /> im
|
||||
<xsl:text> </xsl:text><xsl:value-of select="semester" />. Semester gemeldet.
|
||||
</text:p>
|
||||
<text:p text:style-name="P1"/>
|
||||
<table:table table:name="Tabelle2" table:style-name="Tabelle2">
|
||||
<table:table-column table:style-name="Tabelle2.A"/>
|
||||
<table:table-column table:style-name="Tabelle2.B"/>
|
||||
<table:table-row>
|
||||
<table:table-cell table:style-name="Tabelle2.A1" office:value-type="string">
|
||||
<text:p text:style-name="P2">Datum:<xsl:text> </xsl:text><xsl:value-of select="tagesdatum" /><xsl:text> </xsl:text>DVR: 0928381</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle2.A1" office:value-type="string">
|
||||
<text:p text:style-name="P3">Rektor:<xsl:text> </xsl:text><xsl:value-of select="rektor" /></text:p>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
</table:table>
|
||||
<text:p />
|
||||
<text:p text:style-name="P4">------------------------------------------------------------------------------------------------------------------------------------------------------------------------</text:p>
|
||||
<text:p />
|
||||
<text:p text:style-name="P9">Studienbestätigung Fachhochschule Technikum Wien</text:p>
|
||||
<table:table table:name="Tabelle1" table:style-name="Tabelle1">
|
||||
<table:table-column table:style-name="Tabelle1.A"/>
|
||||
<table:table-column table:style-name="Tabelle1.B"/>
|
||||
<table:table-row table:style-name="Tabelle1.1">
|
||||
<table:table-cell table:style-name="Tabelle1.A1" office:value-type="string">
|
||||
<text:p text:style-name="P5">Zur Vorlage an (Stelle an der die Bestätigung vorgelegt wird und deren Bezugszahl, z.B. Sozialversicherungsnr.)</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle1.B1" office:value-type="string">
|
||||
<text:p text:style-name="P6">Personenkennzeichen</text:p>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
<table:table-row table:style-name="Tabelle1.2">
|
||||
<table:table-cell table:style-name="Tabelle1.A2" office:value-type="string">
|
||||
<text:p text:style-name="P8">
|
||||
<xsl:value-of select="titelpre" /><xsl:text> </xsl:text><xsl:value-of select="vorname" /><xsl:text> </xsl:text><xsl:value-of select="vornamen" /><xsl:text> </xsl:text><xsl:value-of select="nachname" /><xsl:text> </xsl:text><xsl:value-of select="titelpost" />
|
||||
</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle1.B2" office:value-type="string">
|
||||
<text:p text:style-name="P7">
|
||||
<xsl:value-of select="matrikelnummer" />
|
||||
</text:p>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
</table:table>
|
||||
<text:p text:style-name="P1" />
|
||||
<text:p text:style-name="P1">
|
||||
geboren am<xsl:text> </xsl:text><xsl:value-of select="geburtsdatum" /><xsl:text> </xsl:text>
|
||||
ist im<xsl:text> </xsl:text><xsl:value-of select="studiensemester_aktuell" /><xsl:text> </xsl:text>(Beginn <xsl:text> </xsl:text><xsl:value-of select="studienbeginn_aktuell" />)
|
||||
als ordentliche(r) Studierende(r) (Studienbeginn,<xsl:text> </xsl:text><xsl:value-of select="studiensemester_beginn" /> Beginn<xsl:text> </xsl:text><xsl:value-of select="studienbeginn_beginn" />)
|
||||
<text:line-break />der Studienrichtung <xsl:text> </xsl:text><xsl:value-of select="studiengang_kz" /><xsl:text> </xsl:text><xsl:value-of select="studiengang_art" /><xsl:text> </xsl:text><xsl:value-of select="studiengang_bezeichnung" /> im
|
||||
<xsl:text> </xsl:text><xsl:value-of select="semester" />. Semester gemeldet.
|
||||
</text:p>
|
||||
<text:p text:style-name="P1"/>
|
||||
<table:table table:name="Tabelle2" table:style-name="Tabelle2">
|
||||
<table:table-column table:style-name="Tabelle2.A"/>
|
||||
<table:table-column table:style-name="Tabelle2.B"/>
|
||||
<table:table-row>
|
||||
<table:table-cell table:style-name="Tabelle2.A1" office:value-type="string">
|
||||
<text:p text:style-name="P2">Datum:<xsl:text> </xsl:text><xsl:value-of select="tagesdatum" /><xsl:text> </xsl:text>DVR: 0928381</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle2.A1" office:value-type="string">
|
||||
<text:p text:style-name="P3">Rektor:<xsl:text> </xsl:text><xsl:value-of select="rektor" /></text:p>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
</table:table>
|
||||
<text:p />
|
||||
<text:p text:style-name="P4">------------------------------------------------------------------------------------------------------------------------------------------------------------------------</text:p>
|
||||
<text:p />
|
||||
<text:p text:style-name="P9">Studienbestätigung Fachhochschule Technikum Wien</text:p>
|
||||
<table:table table:name="Tabelle1" table:style-name="Tabelle1">
|
||||
<table:table-column table:style-name="Tabelle1.A"/>
|
||||
<table:table-column table:style-name="Tabelle1.B"/>
|
||||
<table:table-row table:style-name="Tabelle1.1">
|
||||
<table:table-cell table:style-name="Tabelle1.A1" office:value-type="string">
|
||||
<text:p text:style-name="P5">Zur Vorlage an (Stelle an der die Bestätigung vorgelegt wird und deren Bezugszahl, z.B. Sozialversicherungsnr.)</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle1.B1" office:value-type="string">
|
||||
<text:p text:style-name="P6">Personenkennzeichen</text:p>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
<table:table-row table:style-name="Tabelle1.2">
|
||||
<table:table-cell table:style-name="Tabelle1.A2" office:value-type="string">
|
||||
<text:p text:style-name="P8">
|
||||
<xsl:value-of select="titelpre" /><xsl:text> </xsl:text><xsl:value-of select="vorname" /><xsl:text> </xsl:text><xsl:value-of select="vornamen" /><xsl:text> </xsl:text><xsl:value-of select="nachname" /><xsl:text> </xsl:text><xsl:value-of select="titelpost" />
|
||||
</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle1.B2" office:value-type="string">
|
||||
<text:p text:style-name="P7">
|
||||
<xsl:value-of select="matrikelnummer" />
|
||||
</text:p>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
</table:table>
|
||||
<text:p text:style-name="P1" />
|
||||
<text:p text:style-name="P1">
|
||||
geboren am<xsl:text> </xsl:text><xsl:value-of select="geburtsdatum" /><xsl:text> </xsl:text>
|
||||
ist im<xsl:text> </xsl:text><xsl:value-of select="studiensemester_aktuell" /><xsl:text> </xsl:text>(Beginn <xsl:text> </xsl:text><xsl:value-of select="studienbeginn_aktuell" />)
|
||||
als ordentliche(r) Studierende(r) (Studienbeginn,<xsl:text> </xsl:text><xsl:value-of select="studiensemester_beginn" /> Beginn<xsl:text> </xsl:text><xsl:value-of select="studienbeginn_beginn" />)
|
||||
<text:line-break />der Studienrichtung <xsl:text> </xsl:text><xsl:value-of select="studiengang_kz" /><xsl:text> </xsl:text><xsl:value-of select="studiengang_art" /><xsl:text> </xsl:text><xsl:value-of select="studiengang_bezeichnung" /> im
|
||||
<xsl:text> </xsl:text><xsl:value-of select="semester" />. Semester gemeldet.
|
||||
</text:p>
|
||||
<text:p text:style-name="P1"/>
|
||||
<table:table table:name="Tabelle2" table:style-name="Tabelle2">
|
||||
<table:table-column table:style-name="Tabelle2.A"/>
|
||||
<table:table-column table:style-name="Tabelle2.B"/>
|
||||
<table:table-row>
|
||||
<table:table-cell table:style-name="Tabelle2.A1" office:value-type="string">
|
||||
<text:p text:style-name="P2">Datum:<xsl:text> </xsl:text><xsl:value-of select="tagesdatum" /><xsl:text> </xsl:text>DVR: 0928381</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Tabelle2.A1" office:value-type="string">
|
||||
<text:p text:style-name="P3">Rektor:<xsl:text> </xsl:text><xsl:value-of select="rektor" /></text:p>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
</table:table>
|
||||
</office:text>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
@@ -288,26 +288,97 @@ if(isset($_POST['person_id']))
|
||||
$error=true;
|
||||
}
|
||||
}
|
||||
$qry_anzahl = "
|
||||
SELECT
|
||||
|
||||
//je nach ansicht (mitarbeiter/student/beides) wird $qry veraendert
|
||||
if (isset($_GET['ansicht']))
|
||||
{
|
||||
if ($_GET['ansicht'] == 'mitarbeiter')
|
||||
{
|
||||
$ansicht = 'AND uid IN (SELECT mitarbeiter_uid FROM public.tbl_mitarbeiter)';
|
||||
$mitarbeiterSubmit = '<input type="submit" name="MitarbeiterSubmit" sytle="background-color:#F5F5F5" value="Mitarbeiter" />';
|
||||
}
|
||||
if ($_GET['ansicht'] == 'studenten')
|
||||
$ansicht = 'AND uid NOT IN (SELECT mitarbeiter_uid FROM public.tbl_mitarbeiter)';
|
||||
}
|
||||
else
|
||||
{
|
||||
$ansicht = '';
|
||||
}
|
||||
|
||||
//anzahl mitarbeiter
|
||||
$qry_anzahl_mitarbeiter = "
|
||||
SELECT
|
||||
count(*) as anzahl
|
||||
FROM
|
||||
public.tbl_person
|
||||
FROM
|
||||
public.tbl_person
|
||||
JOIN public.tbl_benutzer USING(person_id)
|
||||
WHERE
|
||||
LEFT JOIN public.tbl_mitarbeiter ON (uid=mitarbeiter_uid)
|
||||
WHERE
|
||||
foto is not NULL
|
||||
AND tbl_benutzer.aktiv
|
||||
AND 'akzeptiert' NOT IN(SELECT fotostatus_kurzbz FROM public.tbl_person_fotostatus
|
||||
AND 'akzeptiert' NOT IN(SELECT fotostatus_kurzbz FROM public.tbl_person_fotostatus
|
||||
WHERE person_id=tbl_person.person_id ORDER BY datum desc, person_fotostatus_id desc LIMIT 1)
|
||||
AND 'abgewiesen' NOT IN (SELECT fotostatus_kurzbz FROM public.tbl_person_fotostatus
|
||||
WHERE person_id=tbl_person.person_id ORDER BY datum desc, person_fotostatus_id desc LIMIT 1)
|
||||
AND uid IN (SELECT mitarbeiter_uid FROM public.tbl_mitarbeiter)
|
||||
";
|
||||
$anzahl = '';
|
||||
if($result_anzahl = $db->db_query($qry_anzahl_mitarbeiter))
|
||||
if($row_anzahl = $db->db_fetch_object($result_anzahl))
|
||||
$anzahl = $row_anzahl->anzahl;
|
||||
echo '<br>Mitarbeiter: '.$anzahl;
|
||||
|
||||
//anzahl studenten
|
||||
$qry_anzahl_studenten = "
|
||||
SELECT
|
||||
count(*) as anzahl
|
||||
FROM
|
||||
public.tbl_person
|
||||
JOIN public.tbl_benutzer USING(person_id)
|
||||
LEFT JOIN public.tbl_mitarbeiter ON (uid=mitarbeiter_uid)
|
||||
WHERE
|
||||
foto is not NULL
|
||||
AND tbl_benutzer.aktiv
|
||||
AND 'akzeptiert' NOT IN(SELECT fotostatus_kurzbz FROM public.tbl_person_fotostatus
|
||||
WHERE person_id=tbl_person.person_id ORDER BY datum desc, person_fotostatus_id desc LIMIT 1)
|
||||
AND 'abgewiesen' NOT IN (SELECT fotostatus_kurzbz FROM public.tbl_person_fotostatus
|
||||
WHERE person_id=tbl_person.person_id ORDER BY datum desc, person_fotostatus_id desc LIMIT 1)
|
||||
AND uid NOT IN (SELECT mitarbeiter_uid FROM public.tbl_mitarbeiter)
|
||||
";
|
||||
$anzahl = '';
|
||||
if($result_anzahl = $db->db_query($qry_anzahl_studenten))
|
||||
if($row_anzahl = $db->db_fetch_object($result_anzahl))
|
||||
$anzahl = $row_anzahl->anzahl;
|
||||
echo '<br>Studenten: '.$anzahl;
|
||||
|
||||
//anzahl gesamt
|
||||
$qry_anzahl_gesamt = "
|
||||
SELECT
|
||||
count(*) as anzahl
|
||||
FROM
|
||||
public.tbl_person
|
||||
JOIN public.tbl_benutzer USING(person_id)
|
||||
WHERE
|
||||
foto is not NULL
|
||||
AND tbl_benutzer.aktiv
|
||||
AND 'akzeptiert' NOT IN(SELECT fotostatus_kurzbz FROM public.tbl_person_fotostatus
|
||||
WHERE person_id=tbl_person.person_id ORDER BY datum desc, person_fotostatus_id desc LIMIT 1)
|
||||
AND 'abgewiesen' NOT IN (SELECT fotostatus_kurzbz FROM public.tbl_person_fotostatus
|
||||
WHERE person_id=tbl_person.person_id ORDER BY datum desc, person_fotostatus_id desc LIMIT 1)
|
||||
";
|
||||
$anzahl = '';
|
||||
if($result_anzahl = $db->db_query($qry_anzahl))
|
||||
if($result_anzahl = $db->db_query($qry_anzahl_gesamt))
|
||||
if($row_anzahl = $db->db_fetch_object($result_anzahl))
|
||||
$anzahl = $row_anzahl->anzahl;
|
||||
|
||||
echo '<br>Gesamt: '.$anzahl;
|
||||
echo '<br>Gesamt: '.$anzahl.'<br />';
|
||||
|
||||
echo '<form action="'.$_SERVER['PHP_SELF'].'?ansicht=mitarbeiter" method="POST" style="float:left; margin-left:44%">
|
||||
<input type="submit" name="MitarbeiterSubmit" id="MitarbeiterSubmit" value="Mitarbeiter" '; if (isset($_GET['ansicht']) && $_GET['ansicht'] == 'mitarbeiter') echo 'disabled'; echo '/></form>';
|
||||
echo '<form action="'.$_SERVER['PHP_SELF'].'?ansicht=studenten" method="POST" style="float:left">
|
||||
<input type="submit" name="StudentenSubmit" id="StudentenSubmit" value="Studenten" '; if (isset($_GET['ansicht']) && $_GET['ansicht'] == 'studenten') echo 'disabled'; echo '/></form>';
|
||||
echo '<form action="'.$_SERVER['PHP_SELF'].'" method="POST" style="float:left">
|
||||
<input type="submit" name="BeideGruppenSubmit" id="BeideGruppenSubmit" value="Beide Gruppen" '; if (!isset($_GET['ansicht'])) echo 'disabled'; echo '/></form>';
|
||||
|
||||
// Laden einer Person deren Profilfoto noch nicht akzeptiert wurde
|
||||
$qry = "
|
||||
SELECT
|
||||
@@ -319,7 +390,10 @@ $qry = "
|
||||
JOIN public.tbl_benutzer USING(person_id)
|
||||
WHERE
|
||||
foto is not NULL
|
||||
AND tbl_benutzer.aktiv";
|
||||
AND tbl_benutzer.aktiv
|
||||
".$ansicht;
|
||||
|
||||
|
||||
if($error==true && $person_id!='')
|
||||
{
|
||||
// Wenn ein Fehler auftritt oder Bestof geklickt wird, wird die Person erneut angezeigt
|
||||
@@ -345,6 +419,8 @@ else
|
||||
}
|
||||
$qry.=" LIMIT 1";
|
||||
|
||||
//echo $qry;
|
||||
|
||||
if($result = $db->db_query($qry))
|
||||
{
|
||||
if($row = $db->db_fetch_object($result))
|
||||
@@ -368,7 +444,7 @@ if($result = $db->db_query($qry))
|
||||
</table>';
|
||||
|
||||
echo '<br><br>';
|
||||
echo '<form action="'.$_SERVER['PHP_SELF'].'" method="POST">';
|
||||
echo '<form action="'.$_SERVER['PHP_SELF']; if (isset($_GET['ansicht'])) echo '?ansicht='.$_GET['ansicht']; echo '" method="POST">';
|
||||
echo '<input type="hidden" name="person_id" value="'.$db->convert_html_chars($row->person_id).'" />';
|
||||
echo '<input type="submit" name="akzeptieren" value="Akzeptieren" /> ';
|
||||
echo '<input type="submit" name="fehlerhaft" value="Fehlerhaft / Infomail" /> ';
|
||||
@@ -381,7 +457,18 @@ if($result = $db->db_query($qry))
|
||||
}
|
||||
else
|
||||
{
|
||||
echo 'Es sind keine ungeprüften Bilder vorhanden';
|
||||
if (isset($_GET['ansicht']) && $_GET['ansicht'] == 'mitarbeiter')
|
||||
{
|
||||
echo '<br><br><br><span style="margin-left:40%">Es sind keine ungeprüften Bilder von Mitarbeitern vorhanden</span>';
|
||||
}
|
||||
elseif (isset($_GET['ansicht']) && $_GET['ansicht'] == 'studenten')
|
||||
{
|
||||
echo '<br><br><br><span style="margin-left:40%">Es sind keine ungeprüften Bilder von Studenten vorhanden</span>';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<br><br><br><span style="margin-left:42%">Es sind keine ungeprüften Bilder vorhanden</span>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -29,13 +29,92 @@ require_once('../../include/studiengang.class.php');
|
||||
<title>LV-Plan Syncronisation</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<link rel="stylesheet" href="../../skin/vilesci.css" type="text/css">
|
||||
<link href="../../skin/jquery-ui-1.9.2.custom.min.css" rel="stylesheet" type="text/css">
|
||||
<script src="../../include/js/jquery1.9.min.js" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function()
|
||||
{
|
||||
$( ".datepicker_datum" ).datepicker({
|
||||
changeMonth: true,
|
||||
changeYear: true,
|
||||
dateFormat: 'dd.mm.yy',
|
||||
});
|
||||
});
|
||||
|
||||
function enable()
|
||||
{
|
||||
if(document.getElementById("nostudentmail").disabled == false)
|
||||
{
|
||||
document.getElementById("nostudentmail").disabled = true;
|
||||
if (document.getElementById("nostudentmail").checked == true)
|
||||
document.getElementById("nostudentmail").checked = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById("nostudentmail").disabled = false
|
||||
}
|
||||
}
|
||||
function set_bis()
|
||||
{
|
||||
document.getElementById("bis").value=document.getElementById("von").value;
|
||||
|
||||
}
|
||||
function checkdatum()
|
||||
{
|
||||
var Datum,Tag,Monat,Jahr,vonDatum,bisDatum;
|
||||
|
||||
Datum=document.getElementById("von").value;
|
||||
Tag=Datum.substring(0,2);
|
||||
Monat=Datum.substring(3,5);
|
||||
Jahr=Datum.substring(6,10);
|
||||
vonDatum=Jahr+''+Monat+''+Tag;
|
||||
|
||||
Datum=document.getElementById("bis").value;
|
||||
Tag=Datum.substring(0,2);
|
||||
Monat=Datum.substring(3,5);
|
||||
Jahr=Datum.substring(6,10);
|
||||
bisDatum=Jahr+''+Monat+''+Tag;
|
||||
|
||||
if (bisDatum<vonDatum)
|
||||
{
|
||||
alert("Das Bis-Datum darf nicht kleiner als das Von-Datum sein");
|
||||
document.getElementById("bis").focus();
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
<style type="text/css">
|
||||
.ui-datepicker
|
||||
{
|
||||
width:13em;
|
||||
padding:.2em .2em 0;
|
||||
display:none
|
||||
}
|
||||
.ui-datepicker .ui-datepicker-title select
|
||||
{
|
||||
font-size:0.6em;
|
||||
margin:1px 0
|
||||
}
|
||||
.ui-datepicker table
|
||||
{
|
||||
width:100%;
|
||||
font-size:0.6em;
|
||||
border-collapse:collapse;
|
||||
margin:0 0 .4em
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h2>LV-Plan Synronisation</h2>
|
||||
<?php
|
||||
echo '
|
||||
<a href="../../system/sync/sync_stpldev_stpl.php">LV-Plan Sync - Normal - mit Mail</a><br><br>
|
||||
<a href="../../system/sync/sync_stpldev_stpl.php?sendmail=false">LV-Plan Sync - Normal - ohne Mails</a><br>
|
||||
<a href="../../system/sync/sync_stpldev_stpl.php">LV-Plan Sync - Normal (Alle) - mit Mails</a><br><br>
|
||||
<a href="../../system/sync/sync_stpldev_stpl.php?sendmail=false">LV-Plan Sync - Normal (Alle) - ohne Mails</a><br>
|
||||
<br>
|
||||
<fieldset>
|
||||
<legend>Sync für speziellen Studiengang / Zeitraum</legend>
|
||||
@@ -58,19 +137,23 @@ require_once('../../include/studiengang.class.php');
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Von</td>
|
||||
<td><input type="text" name="von" size="10" value="'.date('Y-m-d').'"></td>
|
||||
<td><input id="von" class="datepicker_datum" type="text" name="von" size="10" value="'.date('d.m.Y').'" oninput="set_bis()" onchange="set_bis()"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Bis</td>
|
||||
<td><input type="text" name="bis" size="10" value="'.date('Y-m-d').'"></td>
|
||||
<td><input id="bis" class="datepicker_datum" type="text" name="bis" size="10" value="'.date('d.m.Y').'"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Mails senden</td>
|
||||
<td><input type="checkbox" name="mail"></td>
|
||||
<td><input type="checkbox" name="mail" onclick="enable()"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Mails nur an Lektoren senden</td>
|
||||
<td><input id="nostudentmail" type="checkbox" name="nostudentmail" disabled></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td><input type="submit" value="Start"></td>
|
||||
<td><input type="submit" value="Start" onclick="return checkdatum()"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
@@ -168,7 +168,7 @@ if ($insert)
|
||||
if($db->db_num_rows($result_stplcheck)==0)
|
||||
{
|
||||
$qry="INSERT INTO lehre.$stpl_table (datum,stunde,ort_kurzbz,unr,mitarbeiter_uid,studiengang_kz,
|
||||
semester,verband,gruppe,gruppe_kurzbz,lehreinheit_id, insertvon)
|
||||
semester,verband,gruppe,gruppe_kurzbz,lehreinheit_id, updatevon, insertvon)
|
||||
VALUES (".$db->db_add_param($row->datum).",".
|
||||
$db->db_add_param($row->stunde).",".
|
||||
$db->db_add_param($row_ort->ort_kurzbz).",".
|
||||
@@ -184,7 +184,7 @@ if ($insert)
|
||||
else
|
||||
$qry.="NULL,";
|
||||
|
||||
$qry.=$db->db_add_param($leid, FHC_INTEGER).",'LVPlanCheck');";
|
||||
$qry.=$db->db_add_param($leid, FHC_INTEGER).",'".$user." via LVPlanWartung','".$user." via LVPlanWartung');";
|
||||
|
||||
if(!$result_insert=$db->db_query($qry))
|
||||
die ("DB Fehler $qry" .' '.$db->db_last_error());
|
||||
|
||||
@@ -240,13 +240,123 @@ else
|
||||
//Formular zum Bearbeiten der Vorlage
|
||||
echo '
|
||||
<input type="button" value="Neue OE-Vorlage anlegen" onclick="window.location.href=\''.$_SERVER['PHP_SELF'].'?vorlage_kurzbz='.$vorlage_kurzbz.'&oe_kurzbz='.$oe_kurzbz.'&neu=true\'" >
|
||||
<hr>
|
||||
<form method="POST" action="'.$_SERVER['PHP_SELF'].'">
|
||||
<table>
|
||||
<tr>
|
||||
<td>Vorlage</td>
|
||||
<td>';
|
||||
|
||||
<input type="button" value="Neue Vorlage anlegen" onclick="window.location.href=\''.$_SERVER['PHP_SELF'].'?neueVorlage=true\'" >
|
||||
<input type="button" value="Vorlage bearbeiten" onclick="window.location.href=\''.$_SERVER['PHP_SELF'].'?vorlageBearbeiten='.$vorlage_kurzbz.'\'" >
|
||||
<hr>';
|
||||
if ((isset($_GET['neueVorlage']) && $_GET['neueVorlage'] == 'true'))
|
||||
{
|
||||
echo'
|
||||
<form action="'.$_SERVER['PHP_SELF'].'?neueVorlage=save" method="POST">
|
||||
<table>
|
||||
<tr>
|
||||
<td>Vorlagenkurzbezeichnung</td>
|
||||
<td>
|
||||
<input type="text" size="64" maxlength="64" name="neueVorlage_vorlage_kurzbz">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Bezeichnung</td>
|
||||
<td>
|
||||
<textarea cols="80" rows="4" name="neueVorlage_bezeichnung"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Anmerkung</td>
|
||||
<td>
|
||||
<textarea cols="80" rows="4" name="neueVorlage_anmerkung"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Mimetype</td>
|
||||
<td>
|
||||
<textarea cols="80" rows="4" name="neueVorlage_mimetype"></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input type="submit" value="Neu anlegen">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
';
|
||||
}
|
||||
elseif (isset($_GET['vorlageBearbeiten']))
|
||||
{
|
||||
$vorlage = new vorlage();
|
||||
$vorlage->loadVorlage($_GET['vorlageBearbeiten']);
|
||||
echo'
|
||||
<form action="'.$_SERVER['PHP_SELF'].'?updateVorlage=true&vorlage_kurzbz='.$vorlage->vorlage_kurzbz.'" method="POST">
|
||||
<table>
|
||||
<tr>
|
||||
<td>Vorlagenkurzbezeichnung</td>
|
||||
<td>
|
||||
<input type="text" size="64" maxlength="64" name="updateVorlage_vorlage_kurzbz" value="'.$db->convert_html_chars($vorlage->vorlage_kurzbz).'" disabled>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Bezeichnung</td>
|
||||
<td>
|
||||
<textarea cols="80" rows="4" name="updateVorlage_bezeichnung">'.$db->convert_html_chars($vorlage->bezeichnung).'</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Anmerkung</td>
|
||||
<td>
|
||||
<textarea cols="80" rows="4" name="updateVorlage_anmerkung">'.$db->convert_html_chars($vorlage->anmerkung).'</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Mimetype</td>
|
||||
<td>
|
||||
<textarea cols="80" rows="4" name="updateVorlage_mimetype">'.$db->convert_html_chars($vorlage->mimetype).'</textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input type="submit" value="Änderungen speichern">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
';
|
||||
}
|
||||
else
|
||||
{
|
||||
if ((isset($_GET['neueVorlage']) && $_GET['neueVorlage'] == 'save'))
|
||||
{
|
||||
$neuevorlage = new vorlage();
|
||||
$neuevorlage->vorlage_kurzbz = htmlspecialchars($_POST['neueVorlage_vorlage_kurzbz']);
|
||||
$neuevorlage->bezeichnung = htmlspecialchars($_POST['neueVorlage_bezeichnung']);
|
||||
$neuevorlage->anmerkung = htmlspecialchars($_POST['neueVorlage_anmerkung']);
|
||||
$neuevorlage->mimetype = htmlspecialchars($_POST['neueVorlage_mimetype']);
|
||||
if (!($neuevorlage->saveVorlage(true)))
|
||||
{
|
||||
echo 'Fehler beim Speichern';
|
||||
}
|
||||
}
|
||||
elseif (isset($_GET['updateVorlage']) && $_GET['updateVorlage'] == 'true')
|
||||
{
|
||||
$updatevorlage = new vorlage();
|
||||
$updatevorlage->loadVorlage($_GET['vorlage_kurzbz']);
|
||||
$updatevorlage->bezeichnung = htmlspecialchars($_POST['updateVorlage_bezeichnung']);
|
||||
$updatevorlage->anmerkung = htmlspecialchars($_POST['updateVorlage_anmerkung']);
|
||||
$updatevorlage->mimetype = htmlspecialchars($_POST['updateVorlage_mimetype']);
|
||||
if (!($updatevorlage->saveVorlage()))
|
||||
{
|
||||
echo 'Fehler beim Speichern';
|
||||
}
|
||||
}
|
||||
|
||||
echo '
|
||||
<form method="POST" action="'.$_SERVER['PHP_SELF'].'">
|
||||
<table>
|
||||
<tr>
|
||||
<td>Vorlage</td>
|
||||
<td>';
|
||||
|
||||
if($vorlageOE->oe_kurzbz!='')
|
||||
$oe=$vorlageOE->oe_kurzbz;
|
||||
elseif($oe_kurzbz!='')
|
||||
@@ -256,9 +366,9 @@ echo '
|
||||
//Vorlagen DropDown
|
||||
$vorlage = new vorlage();
|
||||
$vorlage->getAllVorlagen('bezeichnung');
|
||||
|
||||
|
||||
echo '<SELECT name="vorlage_kurzbz" id="vorlage">';
|
||||
foreach ($vorlage->result as $row)
|
||||
foreach ($vorlage->result as $row)
|
||||
{
|
||||
//if($reihungstest_id=='')
|
||||
// $reihungstest_id=$row->reihungstest_id;
|
||||
@@ -266,22 +376,22 @@ echo '
|
||||
$selected='selected';
|
||||
else
|
||||
$selected='';
|
||||
|
||||
|
||||
echo '<OPTION value="'.$row->vorlage_kurzbz.'" '.$selected.'>'.$db->convert_html_chars(($row->bezeichnung==''?$row->vorlage_kurzbz:$row->bezeichnung)).'</OPTION>';
|
||||
echo "\n";
|
||||
}
|
||||
echo '</SELECT>
|
||||
|
||||
</td>
|
||||
<tr>
|
||||
<td>Organisationseinheit</td>
|
||||
<td>';
|
||||
|
||||
</td>
|
||||
<tr>
|
||||
<td>Organisationseinheit</td>
|
||||
<td>';
|
||||
//OE-Dropdown
|
||||
$organisationseinheit = new organisationseinheit();
|
||||
$organisationseinheit->getAll(true, true);
|
||||
|
||||
|
||||
echo "<SELECT name='oe_kurzbz'>";
|
||||
|
||||
|
||||
foreach ($organisationseinheit->result as $row)
|
||||
{
|
||||
//Wenn keine OE uebergeben wurde, nimm die OE vom Studiengang 0
|
||||
@@ -289,50 +399,51 @@ echo '
|
||||
$selected='selected';
|
||||
else
|
||||
$selected='';
|
||||
|
||||
|
||||
echo '<OPTION value="'.$row->oe_kurzbz.'" '.$selected.'>'.$db->convert_html_chars($row->organisationseinheittyp_kurzbz.' '.$row->bezeichnung).'</OPTION>';
|
||||
echo "\n";
|
||||
}
|
||||
echo '</SELECT>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Version</td>
|
||||
<td><input type="text" size="4" maxlength="3" name="version" id="version" value="'.$db->convert_html_chars($vorlageOE->version).'"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Content (XML)</td>
|
||||
<td><textarea cols="80" rows="8" name="content">'.$db->convert_html_chars($vorlageOE->text).'</textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Style (XML)</td>
|
||||
<td><textarea cols="80" rows="8" name="style">'.$db->convert_html_chars($vorlageOE->style).'</textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Berechtigung</td>
|
||||
<td><input type="text" size="64" maxlength="64" name="berechtigung" value="'.$db->convert_html_chars($vorlageOE->berechtigung).'"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Anmerkung</td>
|
||||
<td><textarea cols="80" rows="2" name="anmerkung">'.$db->convert_html_chars($vorlageOE->anmerkung_vorlagestudiengang).'</textarea></td>
|
||||
</tr>';
|
||||
if(!$neu)
|
||||
$val = 'Änderung Speichern';
|
||||
else
|
||||
$val = 'Neu anlegen';
|
||||
|
||||
echo '<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input type="hidden" value="'.$vorlageOE->vorlagestudiengang_id.'" name="vorlagestudiengang_id" />
|
||||
<input type="hidden" value="'.$vorlageOE->vorlage_kurzbz.'" name="vorlage_kurzbz" />
|
||||
<input type="submit" name="speichern" value="'.$val.'">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Version</td>
|
||||
<td><input type="text" size="4" maxlength="3" name="version" id="version" value="'.$db->convert_html_chars($vorlageOE->version).'"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Content (XML)</td>
|
||||
<td><textarea cols="80" rows="8" name="content">'.$db->convert_html_chars($vorlageOE->text).'</textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Style (XML)</td>
|
||||
<td><textarea cols="80" rows="8" name="style">'.$db->convert_html_chars($vorlageOE->style).'</textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Berechtigung</td>
|
||||
<td><input type="text" size="64" maxlength="64" name="berechtigung" value="'.$db->convert_html_chars($vorlageOE->berechtigung).'"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Anmerkung</td>
|
||||
<td><textarea cols="80" rows="2" name="anmerkung">'.$db->convert_html_chars($vorlageOE->anmerkung_vorlagestudiengang).'</textarea></td>
|
||||
</tr>';
|
||||
if(!$neu)
|
||||
$val = 'Änderung Speichern';
|
||||
else
|
||||
$val = 'Neu anlegen';
|
||||
|
||||
echo '<tr>
|
||||
<td></td>
|
||||
<td>
|
||||
<input type="hidden" value="'.$vorlageOE->vorlagestudiengang_id.'" name="vorlagestudiengang_id" />
|
||||
<input type="hidden" value="'.$vorlageOE->vorlage_kurzbz.'" name="vorlage_kurzbz" />
|
||||
<input type="submit" name="speichern" value="'.$val.'">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>';
|
||||
}
|
||||
|
||||
<hr>';
|
||||
echo '<hr>';
|
||||
|
||||
if($vorlage_kurzbz!='' || $oe_kurzbz!='')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user