mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-19 16:02:15 +00:00
This commit is contained in:
@@ -21,17 +21,21 @@
|
||||
* Gerald Simane-Sequens < gerald.simane-sequens@technikum-wien.at >
|
||||
*/
|
||||
|
||||
|
||||
|
||||
// ---------------- CIS Include Dateien einbinden
|
||||
require_once('../../../config/cis.config.inc.php');
|
||||
require_once('../../../include/functions.inc.php');
|
||||
|
||||
// ---------------- Datenbank-Verbindung
|
||||
// ---------------- Datenbank-Verbindung
|
||||
include_once('../../../include/person.class.php');
|
||||
include_once('../../../include/benutzer.class.php');
|
||||
include_once('../../../include/benutzerberechtigung.class.php');
|
||||
|
||||
setlocale (LC_ALL, 'de_DE.UTF8','de_DE@euro', 'de_DE', 'de','DE', 'ge','German');
|
||||
|
||||
// ------------------------------------------------------------------------------------------
|
||||
// Jahresplan Classe
|
||||
// Jahresplan Classe
|
||||
// ------------------------------------------------------------------------------------------
|
||||
include_once('../../../include/jahresplan.class.php');
|
||||
// ---------------- Check User und Jahresplan-Classe Init
|
||||
@@ -40,8 +44,8 @@
|
||||
// ------------------------------------------------------------------------------------------
|
||||
// Init
|
||||
// ------------------------------------------------------------------------------------------
|
||||
$error='';
|
||||
|
||||
$error='';
|
||||
|
||||
// ------------------------------------------------------------------------------------------
|
||||
// Request Parameter einlesen
|
||||
// ------------------------------------------------------------------------------------------
|
||||
@@ -53,16 +57,16 @@
|
||||
$Jahr=trim((isset($_REQUEST['Jahr']) ? $_REQUEST['Jahr']:date("Y", mktime(0,0,0,date("m"),date("d"),date("y")))));
|
||||
$Monat=trim((isset($_REQUEST['Monat']) ? $_REQUEST['Monat']:date("m", mktime(0,0,0,date("m"),date("d"),date("y")))));
|
||||
$suchtext=trim((isset($_REQUEST['suchtext']) ? $_REQUEST['suchtext']:''));
|
||||
|
||||
|
||||
|
||||
|
||||
// ------------------------------------------------------------------------------------------
|
||||
// Alle Kategoriedaten lesen fuer Selektfeld (open in jahresplan_funktionen)
|
||||
// ------------------------------------------------------------------------------------------
|
||||
$Jahresplan->InitVeranstaltungskategorie();
|
||||
if (!$veranstaltungskategorie=$Jahresplan->loadVeranstaltungskategorie())
|
||||
die('Fehler beim lesen der Veranstaltungskategorie ! '.$Jahresplan->errormsg);
|
||||
|
||||
?>
|
||||
|
||||
?>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
@@ -70,9 +74,9 @@
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<link href="../../../skin/style.css.php" rel="stylesheet" type="text/css">
|
||||
<style type="text/css">
|
||||
<!--
|
||||
<!--
|
||||
form {display:inline;}
|
||||
|
||||
|
||||
/* Kategorien Abrundungen im Detail */
|
||||
b.rtop, b.rbottom{display:block;background: transparent;}
|
||||
b.rtop b, b.rbottom b{display:block;height: 1px; overflow: hidden; background: #E5E5E5;}
|
||||
@@ -80,11 +84,11 @@
|
||||
b.r2{margin: 0 3px}
|
||||
b.r3{margin: 0 2px}
|
||||
b.rtop b.r4, b.rbottom b.r4{margin: 0 1px;height: 2px}
|
||||
|
||||
|
||||
.cursor_hand {cursor:pointer;vertical-align: top;white-space : nowrap;}
|
||||
.ausblenden {display:none;}
|
||||
.footer_zeile {color: silver;}
|
||||
|
||||
|
||||
/* Kalender */ kalender_kpl_monat
|
||||
tr.kalender_header {text-align:left;}
|
||||
|
||||
@@ -97,52 +101,52 @@
|
||||
.kalender_kpl_monat_tagname tr {text-align:center;}
|
||||
.kalender_kpl_monat_tagname th {border:0px; font-weight: normal;}
|
||||
#kalender_kpl_monat_woche {font-weight: normal;width: 2%;}
|
||||
|
||||
|
||||
|
||||
/* Woche - Tages - Rows */
|
||||
td.kalender_woche_on_of_container {vertical-align:top;width: 2%;}
|
||||
td.kalender_woche_tages_kpl_container {vertical-align:top;width: 13%;border:1px solid #E5E5E5;background-color:#FFFFFF;}
|
||||
|
||||
|
||||
.kalender_woche_anzeigen {white-space: nowrap;cursor:pointer;vertical-align:top;}
|
||||
.kalender_woche_verbergen {white-space: nowrap;cursor:pointer;display:none;vertical-align:top;}
|
||||
|
||||
|
||||
|
||||
table.kalender_woche_tages_container {width: 100%;background-color:#FFFFFF;}
|
||||
td.kalender_woche_tages_container {vertical-align:top;}
|
||||
|
||||
|
||||
|
||||
|
||||
/* - Header Tagesansicht im Kalender - */
|
||||
div.kalender_woche_tag_falscher_monat {width:100%;text-align:left;border:0px solid #B2B2B2;color:silver;background-color:#E5E5E5;}
|
||||
div.kalender_woche_tag_ohne_termin {width:100%;text-align:left;border:0px solid #B2B2B2;color:black;background-color:#E5E5E5;}
|
||||
div.kalender_woche_tag_mit_termin {width:100%;text-align:left;border:0px solid #B2B2B2;color:black;background-color:#E5E5E5;font-weight: bold;}
|
||||
|
||||
|
||||
div.kalender_tages_container_on {width: 100%;border:0px;padding: 1px 0px 1px 0px;}
|
||||
div.kalender_tages_container_off {width: 100%;display:none;border:0px;padding: 1px 0px 1px 0px;}
|
||||
|
||||
table.kalender_tages_info {width: 100%;border:0px;text-align:left;}
|
||||
tr.kalender_tages_info {text-align:left;vertical-align:top;cursor:pointer;}
|
||||
td.kalender_tages_info {text-align:left;}
|
||||
|
||||
|
||||
table.kalender_tages_info {width: 100%;border:0px;text-align:left;}
|
||||
tr.kalender_tages_info {text-align:left;vertical-align:top;cursor:pointer;}
|
||||
td.kalender_tages_info {text-align:left;}
|
||||
|
||||
/* Listen */
|
||||
tr.header_liste_titelzeile {background-color: #F0F0F0;text-align:center;}
|
||||
tr.header_liste_row_0 {background:#FEFFEC;vertical-align: top;}
|
||||
tr.header_liste_row_1 {background:#F7F7F7;vertical-align: top;}
|
||||
|
||||
|
||||
-->
|
||||
</style>
|
||||
|
||||
|
||||
<script language="JavaScript1.2" type="text/javascript">
|
||||
<!--
|
||||
function show_layer(x)
|
||||
{
|
||||
if (document.getElementById && document.getElementById(x))
|
||||
{
|
||||
if (document.getElementById && document.getElementById(x))
|
||||
{
|
||||
document.getElementById(x).style.visibility = 'visible';
|
||||
document.getElementById(x).style.display = 'inline';
|
||||
} else if (document.all && document.all[x]) {
|
||||
} else if (document.all && document.all[x]) {
|
||||
document.all[x].visibility = 'visible';
|
||||
document.all[x].style.display='inline';
|
||||
} else if (document.layers && document.layers[x]) {
|
||||
} else if (document.layers && document.layers[x]) {
|
||||
document.layers[x].visibility = 'show';
|
||||
document.layers[x].style.display='inline';
|
||||
}
|
||||
@@ -151,45 +155,45 @@
|
||||
|
||||
function hide_layer(x)
|
||||
{
|
||||
if (document.getElementById && document.getElementById(x))
|
||||
{
|
||||
if (document.getElementById && document.getElementById(x))
|
||||
{
|
||||
document.getElementById(x).style.visibility = 'hidden';
|
||||
document.getElementById(x).style.display = 'none';
|
||||
} else if (document.all && document.all[x]) {
|
||||
} else if (document.all && document.all[x]) {
|
||||
document.all[x].visibility = 'hidden';
|
||||
document.all[x].style.display='none';
|
||||
} else if (document.layers && document.layers[x]) {
|
||||
} else if (document.layers && document.layers[x]) {
|
||||
document.layers[x].visibility = 'hide';
|
||||
document.layers[x].style.display='none';
|
||||
}
|
||||
}
|
||||
|
||||
var InfoWin;
|
||||
}
|
||||
|
||||
var InfoWin;
|
||||
function callWindows(url,nameID)
|
||||
{
|
||||
// width=(Pixel) - erzwungene Fensterbreite
|
||||
// height=(Pixel) - erzwungene Fensterhöhe
|
||||
// resizable=yes/no - Größe fest oder veränderbar
|
||||
// scrollbars=yes/no - fenstereigene Scrollbalken
|
||||
// toolbar=yes/no - fenstereigene Buttonleiste
|
||||
// status=yes/no - fenstereigene Statuszeile
|
||||
// directories=yes/no - fenstereigene Directory-Buttons (Netscape)
|
||||
// menubar=yes/no - fenstereigene Menüleiste
|
||||
// location=yes/no - fenstereigenes Eingabe-/Auswahlfeld für URLs
|
||||
|
||||
// width=(Pixel) - erzwungene Fensterbreite
|
||||
// height=(Pixel) - erzwungene Fensterhöhe
|
||||
// resizable=yes/no - Größe fest oder veränderbar
|
||||
// scrollbars=yes/no - fenstereigene Scrollbalken
|
||||
// toolbar=yes/no - fenstereigene Buttonleiste
|
||||
// status=yes/no - fenstereigene Statuszeile
|
||||
// directories=yes/no - fenstereigene Directory-Buttons (Netscape)
|
||||
// menubar=yes/no - fenstereigene Menüleiste
|
||||
// location=yes/no - fenstereigenes Eingabe-/Auswahlfeld für URLs
|
||||
|
||||
if (InfoWin) {
|
||||
InfoWin.close();
|
||||
}
|
||||
InfoWin=window.open(url,nameID,"copyhistory=no,directories=no,location=no,dependent=no,toolbar=yes,menubar=no,status=no,resizable=yes,scrollbars=yes, width=550,height=600,left=60, top=15");
|
||||
InfoWin=window.open(url,nameID,"copyhistory=no,directories=no,location=no,dependent=no,toolbar=yes,menubar=no,status=no,resizable=yes,scrollbars=yes, width=550,height=600,left=60, top=15");
|
||||
InfoWin.focus();
|
||||
InfoWin.setTimeout("window.close()",800000);
|
||||
}
|
||||
-->
|
||||
</script>
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
<?php
|
||||
// Wartungsberechtigt bekommen noch ein Spezielles Menue
|
||||
if ($is_wartungsberechtigt)
|
||||
echo '[ <a href="index.php">Veranstaltung</a> | <a href="jahresplan_kategorie.php">Kategorie</a> ] '.$userNAME;
|
||||
@@ -197,10 +201,10 @@
|
||||
|
||||
|
||||
<h1> Veranstaltungen </h1>
|
||||
<form name="selJahresplan" target="_self" action="<?php echo $_SERVER['PHP_SELF'];?>" method="post" enctype="multipart/form-data">
|
||||
<form accept-charset="UTF-8" name="selJahresplan" target="_self" action="<?php echo $_SERVER['PHP_SELF'];?>" method="post" enctype="multipart/form-data">
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<!-- Jahresauswahl -->
|
||||
<tr>
|
||||
<!-- Jahresauswahl -->
|
||||
<td title="1 Jahr zurück" ><img onclick="if (window.document.selJahresplan.Jahr.options.selectedIndex==0) {window.document.selJahresplan.Jahr.options.selectedIndex=(window.document.selJahresplan.Jahr.options.length - 1);} else { window.document.selJahresplan.Jahr.options.selectedIndex--; }; window.document.selJahresplan.submit();" alt="1 Jahr zurück" src="../../../skin/images/left.gif" border="0"></td>
|
||||
<td><select name="Jahr" onchange="window.document.selJahresplan.submit();" >
|
||||
<?php
|
||||
@@ -210,11 +214,11 @@
|
||||
$cTmpStart++;
|
||||
echo '<option '.($Jahr==$cTmpStart?' selected="selected" ':'').' value="'.$cTmpStart.'">'.$cTmpStart.'</option>';
|
||||
}
|
||||
?>
|
||||
?>
|
||||
</select></td>
|
||||
<td title="1 Jahr vor" ><img onclick="if (window.document.selJahresplan.Jahr.options.selectedIndex==(window.document.selJahresplan.Jahr.options.length - 1)) {window.document.selJahresplan.Jahr.options.selectedIndex=0} else {window.document.selJahresplan.Jahr.options.selectedIndex++;};window.document.selJahresplan.submit();" alt="1 Jahr vor" src="../../../skin/images/right.gif" border="0"></td>
|
||||
<td> </td>
|
||||
<!-- Monatsauswahl -->
|
||||
<!-- Monatsauswahl -->
|
||||
<td title="1 Monat zurück" ><img onclick="if (window.document.selJahresplan.Monat.options.selectedIndex==0) {window.document.selJahresplan.Monat.options.selectedIndex=(window.document.selJahresplan.Monat.options.length - 1);} else { window.document.selJahresplan.Monat.options.selectedIndex--; }; window.document.selJahresplan.veranstaltung_id.value='';window.document.selJahresplan.suchtext.value='';window.document.selJahresplan.submit();" alt="1 Monat zurück" src="../../../skin/images/left.gif" border="0"></td>
|
||||
<td><select name="Monat" onchange="window.document.selJahresplan.veranstaltung_id.value='';window.document.selJahresplan.suchtext.value='';window.document.selJahresplan.submit();" >
|
||||
<?php
|
||||
@@ -222,14 +226,14 @@
|
||||
{
|
||||
echo '<option '.($Monat==$iTmpZehler || $Monat=='0'.$iTmpZehler?' selected="selected" ':'').' value="'.(!empty($iTmpZehler)?strftime ("%m", mktime(0, 0, 0, $iTmpZehler, 1,date("y"))):'').'">'.(!empty($iTmpZehler)?strftime ("%B", mktime(0, 0, 0, $iTmpZehler, 1,date("y"))):'gesamtes Jahr').'</option>';
|
||||
}
|
||||
?>
|
||||
?>
|
||||
</select></td>
|
||||
<td title="1 Monat vor" ><img onclick="if (window.document.selJahresplan.Monat.options.selectedIndex==(window.document.selJahresplan.Monat.options.length - 1)) {window.document.selJahresplan.Monat.options.selectedIndex=0} else {window.document.selJahresplan.Monat.options.selectedIndex++;};window.document.selJahresplan.veranstaltung_id.value='';window.document.selJahresplan.suchtext.value='';window.document.selJahresplan.submit();" alt="1 Monat vor" src="../../../skin/images/right.gif" border="0"></td>
|
||||
<td> </td>
|
||||
<!-- Kategorieauswahl -->
|
||||
<td><select name="veranstaltungskategorie_kurzbz" onchange="window.document.selJahresplan.submit();" >
|
||||
<?php
|
||||
|
||||
|
||||
echo '<option '.(empty($veranstaltungskategorie_kurzbz)?' selected="selected" ':'').' value="">alle Kategorien</option>';
|
||||
// Init Direktzugriffstabelle der Kategorien fuer Kalender - Key:veranstaltungskategorie_kurzbz
|
||||
// Verarbeitungskategorie - Auswahl.- Selektliste
|
||||
@@ -245,7 +249,7 @@
|
||||
$cURL='jahresplan_bilder.php?time='.time().'&'.(strlen($veranstaltungskategorie[$iTmpZehler]->bild)<800?'heximg='.$veranstaltungskategorie[$iTmpZehler]->bild:'veranstaltungskategorie_kurzbz='.$veranstaltungskategorie[$iTmpZehler]->veranstaltungskategorie_kurzbz);
|
||||
$veranstaltungskategorie[$iTmpZehler]->bild_image='<img height="20" border="0" alt="Kategoriebild" titel="'.$veranstaltungskategorie[$iTmpZehler]->bezeichnung.'" src="'.$cURL.'" />';
|
||||
echo '<option '.(!empty($veranstaltungskategorie[$iTmpZehler]->farbe)?' style="background-color:#'.$veranstaltungskategorie[$iTmpZehler]->farbe.'" ':'').' '.($veranstaltungskategorie_kurzbz==$veranstaltungskategorie[$iTmpZehler]->veranstaltungskategorie_kurzbz?' selected="selected" ':'').' value="'.$veranstaltungskategorie[$iTmpZehler]->veranstaltungskategorie_kurzbz.'">'.$veranstaltungskategorie[$iTmpZehler]->bezeichnung.'</option>';
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select></td>
|
||||
@@ -274,21 +278,21 @@
|
||||
|
||||
// Veranstaltung Initialisieren der Klasse
|
||||
$Jahresplan->InitVeranstaltung();
|
||||
// Nur Berechtigte duerfen auch noch nicht freigegebene Sehen
|
||||
// Nur Berechtigte duerfen auch noch nicht freigegebene Sehen
|
||||
$Jahresplan->show_only_public_kategorie=($is_mitarbeiter?false:true);
|
||||
$Jahresplan->freigabe=($is_wartungsberechtigt?false:true);
|
||||
|
||||
|
||||
$Jahresplan->veranstaltungskategorie_kurzbz=$veranstaltungskategorie_kurzbz;
|
||||
$Jahresplan->veranstaltung_id=$veranstaltung_id;
|
||||
$Jahresplan->suchtext=(!empty($suchtext)?str_replace('*','%',$suchtext):'');
|
||||
|
||||
// Datum setzen ausser wenn eine eindeutige ID selektiert wurde. Diese soll in allen Perioden gesucht werden
|
||||
if (empty($veranstaltung_id))
|
||||
if (empty($veranstaltung_id))
|
||||
{
|
||||
if (empty($Jahr))
|
||||
{
|
||||
$Jahr=date("Y", mktime(0,0,0,date("m"),date("d"),date("y")));
|
||||
}
|
||||
$Jahr=date("Y", mktime(0,0,0,date("m"),date("d"),date("y")));
|
||||
}
|
||||
|
||||
$Jahresplan->start_jahr=$Jahr;
|
||||
if (!empty($Woche))
|
||||
@@ -305,8 +309,8 @@
|
||||
{
|
||||
$Jahresplan->start_jahr_monat=$Jahr.(empty($Monat) || $Monat>12?'01':$Monat);
|
||||
$Jahresplan->ende_jahr_monat=$Jahr.(empty($Monat) || $Monat>12?'01':$Monat);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// **************************************
|
||||
// Veranstaltungen zu Selektion - lesen
|
||||
@@ -314,11 +318,11 @@
|
||||
if (!$veranstaltung=$Jahresplan->loadVeranstaltung())
|
||||
{
|
||||
$veranstaltung=array();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
# var_dump($veranstaltung);
|
||||
# exit;
|
||||
|
||||
|
||||
// Ausgabe der Veranstaltungsdaten bzw Hinweisstext
|
||||
if (is_array($veranstaltung) && isset($veranstaltung[0]))
|
||||
{
|
||||
@@ -347,9 +351,8 @@
|
||||
{
|
||||
echo "<br />keine Daten gefunden ".(!empty($suchtext)? ' suchtext '.$suchtext:'' ).(!empty($veranstaltung_id)? ' ID '.$veranstaltung_id:'' );
|
||||
}
|
||||
// Fehlerausgabe
|
||||
// Fehlerausgabe
|
||||
echo '<p>'.$Jahresplan->errormsg.'</p>';
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -87,7 +87,6 @@
|
||||
$string = fread($fp, filesize($filename));
|
||||
fclose($fp);
|
||||
if (isset($fp)) unset($fp);
|
||||
|
||||
$_REQUEST["bild"]=base64_encode($string);
|
||||
}
|
||||
}
|
||||
@@ -220,7 +219,7 @@
|
||||
|
||||
?>
|
||||
|
||||
<form name="selJahresplanVeranstaltung<?php echo ($iTmpZehler<0?'':$iTmpZehler); ?>" target="_self" action="<?php echo $_SERVER['PHP_SELF'];?>" method="post" enctype="multipart/form-data">
|
||||
<form accept-charset="UTF-8" name="selJahresplanVeranstaltung<?php echo ($iTmpZehler<0?'':$iTmpZehler); ?>" target="_self" action="<?php echo $_SERVER['PHP_SELF'];?>" method="post" enctype="multipart/form-data">
|
||||
<tr <?php echo ($iTmpZehler%2? ' class="header_liste_row_0" ':' class="header_liste_row_1" ');?> >
|
||||
|
||||
<td>
|
||||
|
||||
@@ -331,7 +331,7 @@
|
||||
{
|
||||
$showHTML.='
|
||||
<tr '.($iTmpZehler%2? ' class="header_liste_row_0" ':' class="header_liste_row_1" ').'>
|
||||
<form name="selJahresplanReservierung'.($iTmpZehler<0?'':$iTmpZehler).'_alle" target="_self" action="'. $_SERVER['PHP_SELF'] .'" method="post" enctype="multipart/form-data">
|
||||
<form accept-charset="UTF-8" name="selJahresplanReservierung'.($iTmpZehler<0?'':$iTmpZehler).'_alle" target="_self" action="'. $_SERVER['PHP_SELF'] .'" method="post" enctype="multipart/form-data">
|
||||
<td align="center"><a href="javascript:window.document.selJahresplanReservierung'.($iTmpZehler<0?'':$iTmpZehler).'_alle.work.value=\'save\';window.document.selJahresplanReservierung'.($iTmpZehler<0?'':$iTmpZehler).'_alle.submit();">alle</a></td>
|
||||
<td>'. implode("</td><td>",explode('|',$lastkey)).'</td>
|
||||
<td colspan="5">
|
||||
|
||||
@@ -391,7 +391,7 @@
|
||||
<fieldset>
|
||||
<legend><?php echo (!empty($veranstaltung_id)?"Datenpflege ID $veranstaltung_id":' Neuanlage '); ?><font style="font-size:xx-small;"> durch <?php echo $userNAME; ?> </font></legend>
|
||||
|
||||
<form name="selVeranstaltung" target="_self" action="<?php echo $_SERVER['PHP_SELF'];?>" method="post" enctype="multipart/form-data">
|
||||
<form accept-charset="UTF-8" name="selVeranstaltung" target="_self" action="<?php echo $_SERVER['PHP_SELF'];?>" method="post" enctype="multipart/form-data">
|
||||
<table cellpadding="10" cellspacing="0">
|
||||
|
||||
<tr>
|
||||
|
||||
Reference in New Issue
Block a user