bootstrapping
parent
6ebee2c46b
commit
a537f4bf73
@ -1,27 +1,29 @@
|
|||||||
<?php
|
<?php
|
||||||
$title = "Himmel";
|
require_once ('../bootstrap.php');
|
||||||
$header = "Engelbesprechung";
|
|
||||||
include "../../../camp2011/includes/header.php";
|
|
||||||
|
|
||||||
$SQL = "SELECT * FROM `News` ORDER BY 'Datum' DESC";
|
$title = "Himmel";
|
||||||
$Erg = mysql_query($SQL, $con);
|
$header = "Engelbesprechung";
|
||||||
|
include "includes/header.php";
|
||||||
|
|
||||||
// anzahl zeilen
|
$SQL = "SELECT * FROM `News` ORDER BY 'Datum' DESC";
|
||||||
$Zeilen = mysql_num_rows($Erg);
|
$Erg = mysql_query($SQL, $con);
|
||||||
|
|
||||||
for ($n = 0 ; $n < $Zeilen ; $n++) {
|
// anzahl zeilen
|
||||||
|
$Zeilen = mysql_num_rows($Erg);
|
||||||
|
|
||||||
|
for ($n = 0; $n < $Zeilen; $n++) {
|
||||||
if (mysql_result($Erg, $n, "Treffen") == "1") {
|
if (mysql_result($Erg, $n, "Treffen") == "1") {
|
||||||
echo "<p class='question'><u>" . mysql_result($Erg, $n, "Betreff") . "</u>";
|
echo "<p class='question'><u>" . mysql_result($Erg, $n, "Betreff") . "</u>";
|
||||||
|
|
||||||
// Show Admin Page
|
// Show Admin Page
|
||||||
if($_SESSION['CVS']["admin/news.php"] == "Y")
|
if ($_SESSION['CVS']["admin/news.php"] == "Y")
|
||||||
echo " <a href=\"./../admin/news.php?action=change&date=". mysql_result($Erg, $n, "Datum"). "\">[edit]</a>";
|
echo " <a href=\"./../admin/news.php?action=change&date=" . mysql_result($Erg, $n, "Datum") . "\">[edit]</a>";
|
||||||
|
|
||||||
echo "<br /> <font size=1>".mysql_result($Erg, $n, "Datum").", ";
|
echo "<br /> <font size=1>" . mysql_result($Erg, $n, "Datum") . ", ";
|
||||||
echo UID2Nick(mysql_result($Erg, $n, "UID"))."</font></p>\n";
|
echo UID2Nick(mysql_result($Erg, $n, "UID")) . "</font></p>\n";
|
||||||
echo "<p class='answetion'>".nl2br(mysql_result($Erg, $n, "Text"))."</p>\n";
|
echo "<p class='answetion'>" . nl2br(mysql_result($Erg, $n, "Text")) . "</p>\n";
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
include ("../../../camp2011/includes/footer.php");
|
include ("includes/footer.php");
|
||||||
?>
|
?>
|
||||||
|
@ -1,52 +1,51 @@
|
|||||||
<?php
|
<?php
|
||||||
include ("../../../camp2011/includes/header_start.php");
|
require_once ('../bootstrap.php');
|
||||||
|
|
||||||
include ("../../../camp2011/includes/funktion_schichtplan_aray.php");
|
include ("includes/header_start.php");
|
||||||
|
|
||||||
$SQL = "SELECT *, `ShiftEntry`.`Comment`, `ShiftEntry`.`TID` FROM `Shifts` ".
|
include ("includes/funktion_schichtplan_aray.php");
|
||||||
"INNER JOIN `ShiftEntry` ".
|
|
||||||
"ON `Shifts`.`SID`=`ShiftEntry`.`SID` ".
|
|
||||||
"WHERE `ShiftEntry`.`UID`='". $_SESSION['UID']. "' ".
|
|
||||||
"ORDER BY `DateS`";
|
|
||||||
$erg = mysql_query($SQL, $con);
|
|
||||||
|
|
||||||
|
$SQL = "SELECT *, `ShiftEntry`.`Comment`, `ShiftEntry`.`TID` FROM `Shifts` " .
|
||||||
|
"INNER JOIN `ShiftEntry` " .
|
||||||
|
"ON `Shifts`.`SID`=`ShiftEntry`.`SID` " .
|
||||||
|
"WHERE `ShiftEntry`.`UID`='" . $_SESSION['UID'] . "' " .
|
||||||
|
"ORDER BY `DateS`";
|
||||||
|
$erg = mysql_query($SQL, $con);
|
||||||
|
|
||||||
//HEADER
|
//HEADER
|
||||||
header("Content-Type: text/x-vCalendar");
|
header("Content-Type: text/x-vCalendar");
|
||||||
header("Content-Disposition: attachment; filename=\"Schichtplan.ics\"" );
|
header("Content-Disposition: attachment; filename=\"Schichtplan.ics\"");
|
||||||
|
|
||||||
//DATA
|
//DATA
|
||||||
echo "BEGIN:VCALENDAR\n";
|
echo "BEGIN:VCALENDAR\n";
|
||||||
echo "PRODID:-//Engelsystem//DE-EN\n";
|
echo "PRODID:-//Engelsystem//DE-EN\n";
|
||||||
echo "VERSION:2.0\n";
|
echo "VERSION:2.0\n";
|
||||||
echo "PRODID:". md5('icalschichtplan:'.$_SESSION['UID']). "\n";
|
echo "PRODID:" . md5('icalschichtplan:' . $_SESSION['UID']) . "\n";
|
||||||
echo "METHOD:PUBLISH\n";
|
echo "METHOD:PUBLISH\n";
|
||||||
echo "CALSCALE:GREGORIAN\n";
|
echo "CALSCALE:GREGORIAN\n";
|
||||||
echo "METHOD:PUBLISH\n";
|
echo "METHOD:PUBLISH\n";
|
||||||
echo "X-WR-CALNAME;VALUE=TEXT:". "Himmel - Schichtplan\n";
|
echo "X-WR-CALNAME;VALUE=TEXT:" . "Himmel - Schichtplan\n";
|
||||||
|
|
||||||
for( $i=0; $i<mysql_num_rows( $erg ); $i++ )
|
for ($i = 0; $i < mysql_num_rows($erg); $i++) {
|
||||||
{
|
|
||||||
echo "BEGIN:VEVENT\n";
|
echo "BEGIN:VEVENT\n";
|
||||||
echo "UID:". md5(mysql_result( $erg, $i, "Man" ). mysql_result( $erg, $i, "DateS" ))."\n";
|
echo "UID:" . md5(mysql_result($erg, $i, "Man") . mysql_result($erg, $i, "DateS")) . "\n";
|
||||||
echo "METHOD:PUBLISH\n";
|
echo "METHOD:PUBLISH\n";
|
||||||
echo "DTSTART;TZID=Europe/Berlin:". date( 'Ymd\THis', strtotime( mysql_result( $erg, $i, "DateS" ) ) ). "\n";
|
echo "DTSTART;TZID=Europe/Berlin:" . date('Ymd\THis', strtotime(mysql_result($erg, $i, "DateS"))) . "\n";
|
||||||
echo "DTEND;TZID=Europe/Berlin:". date( 'Ymd\THis', strtotime( mysql_result( $erg, $i, "DateE" ) ) ). "\n";
|
echo "DTEND;TZID=Europe/Berlin:" . date('Ymd\THis', strtotime(mysql_result($erg, $i, "DateE"))) . "\n";
|
||||||
echo "SUMMARY:". str_replace( ',', '\\,',mysql_result( $erg, $i, "Man" ) ). "\n";
|
echo "SUMMARY:" . str_replace(',', '\\,', mysql_result($erg, $i, "Man")) . "\n";
|
||||||
echo "CLASS:PUBLIC\n";
|
echo "CLASS:PUBLIC\n";
|
||||||
echo "STATUS:CONFIRMED\n";
|
echo "STATUS:CONFIRMED\n";
|
||||||
echo "URL:". $url. $ENGEL_ROOT. "nonpublic/myschichtplan.php\n";
|
echo "URL:" . $url . $ENGEL_ROOT . "nonpublic/myschichtplan.php\n";
|
||||||
echo "LOCATION:". $RoomID[mysql_result( $erg, $i, "RID" )]. "\n";
|
echo "LOCATION:" . $RoomID[mysql_result($erg, $i, "RID")] . "\n";
|
||||||
echo "BEGIN:VALARM\n";
|
echo "BEGIN:VALARM\n";
|
||||||
echo "TRIGGER;VALUE=DURATION:-PT5M\n";
|
echo "TRIGGER;VALUE=DURATION:-PT5M\n";
|
||||||
echo "DESCRIPTION:". str_replace( ',', '\\,',mysql_result( $erg, $i, "Man" ) ). "\n";
|
echo "DESCRIPTION:" . str_replace(',', '\\,', mysql_result($erg, $i, "Man")) . "\n";
|
||||||
echo "ACTION:DISPLAY\n";
|
echo "ACTION:DISPLAY\n";
|
||||||
echo "END:VALARM\n";
|
echo "END:VALARM\n";
|
||||||
echo "END:VEVENT\n";
|
echo "END:VEVENT\n";
|
||||||
}
|
}
|
||||||
echo "END:VCALENDAR\n";
|
echo "END:VCALENDAR\n";
|
||||||
|
|
||||||
include( "../../../camp2011/includes/funktion_counter.php");
|
include ("includes/funktion_counter.php");
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
@ -1,21 +1,20 @@
|
|||||||
<h4> Tage </h4>
|
<h4> Tage </h4>
|
||||||
|
|
||||||
<?PHP
|
<?PHP
|
||||||
include ("../../../camp2011/includes/funktion_schichtplan_aray.php");
|
require_once ('../bootstrap.php');
|
||||||
|
|
||||||
function Printlink( $Datum)
|
include ("includes/funktion_schichtplan_aray.php");
|
||||||
{
|
|
||||||
|
function Printlink($Datum) {
|
||||||
GLOBAL $raum;
|
GLOBAL $raum;
|
||||||
echo "\t<li><a href='./schichtplan.php?ausdatum=$Datum";
|
echo "\t<li><a href='./schichtplan.php?ausdatum=$Datum";
|
||||||
// ist ein raum gesetzt?
|
// ist ein raum gesetzt?
|
||||||
if (IsSet($raum))
|
if (IsSet ($raum))
|
||||||
echo "&raum=$raum";
|
echo "&raum=$raum";
|
||||||
echo "'>$Datum</a></li>\n";
|
echo "'>$Datum</a></li>\n";
|
||||||
} //function Printlink(
|
} //function Printlink(
|
||||||
|
|
||||||
if( isset ($VeranstaltungsTage))
|
if (isset ($VeranstaltungsTage))
|
||||||
foreach( $VeranstaltungsTage as $k => $v)
|
foreach ($VeranstaltungsTage as $k => $v)
|
||||||
Printlink( $v);
|
Printlink($v);
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue