bootstrapping
parent
6ebee2c46b
commit
a537f4bf73
@ -1,27 +1,29 @@
|
||||
<?php
|
||||
$title = "Himmel";
|
||||
$header = "Engelbesprechung";
|
||||
include "../../../camp2011/includes/header.php";
|
||||
require_once ('../bootstrap.php');
|
||||
|
||||
$SQL = "SELECT * FROM `News` ORDER BY 'Datum' DESC";
|
||||
$Erg = mysql_query($SQL, $con);
|
||||
$title = "Himmel";
|
||||
$header = "Engelbesprechung";
|
||||
include "includes/header.php";
|
||||
|
||||
// anzahl zeilen
|
||||
$Zeilen = mysql_num_rows($Erg);
|
||||
$SQL = "SELECT * FROM `News` ORDER BY 'Datum' DESC";
|
||||
$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") {
|
||||
echo "<p class='question'><u>" . mysql_result($Erg, $n, "Betreff") . "</u>";
|
||||
|
||||
// Show Admin Page
|
||||
if($_SESSION['CVS']["admin/news.php"] == "Y")
|
||||
echo " <a href=\"./../admin/news.php?action=change&date=". mysql_result($Erg, $n, "Datum"). "\">[edit]</a>";
|
||||
if ($_SESSION['CVS']["admin/news.php"] == "Y")
|
||||
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 UID2Nick(mysql_result($Erg, $n, "UID"))."</font></p>\n";
|
||||
echo "<p class='answetion'>".nl2br(mysql_result($Erg, $n, "Text"))."</p>\n";
|
||||
}
|
||||
echo "<br /> <font size=1>" . mysql_result($Erg, $n, "Datum") . ", ";
|
||||
echo UID2Nick(mysql_result($Erg, $n, "UID")) . "</font></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
|
||||
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` ".
|
||||
"INNER JOIN `ShiftEntry` ".
|
||||
"ON `Shifts`.`SID`=`ShiftEntry`.`SID` ".
|
||||
"WHERE `ShiftEntry`.`UID`='". $_SESSION['UID']. "' ".
|
||||
"ORDER BY `DateS`";
|
||||
$erg = mysql_query($SQL, $con);
|
||||
include ("includes/funktion_schichtplan_aray.php");
|
||||
|
||||
$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("Content-Type: text/x-vCalendar");
|
||||
header("Content-Disposition: attachment; filename=\"Schichtplan.ics\"" );
|
||||
header("Content-Disposition: attachment; filename=\"Schichtplan.ics\"");
|
||||
|
||||
//DATA
|
||||
echo "BEGIN:VCALENDAR\n";
|
||||
echo "PRODID:-//Engelsystem//DE-EN\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 "CALSCALE:GREGORIAN\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 "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 "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 "SUMMARY:". str_replace( ',', '\\,',mysql_result( $erg, $i, "Man" ) ). "\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 "SUMMARY:" . str_replace(',', '\\,', mysql_result($erg, $i, "Man")) . "\n";
|
||||
echo "CLASS:PUBLIC\n";
|
||||
echo "STATUS:CONFIRMED\n";
|
||||
echo "URL:". $url. $ENGEL_ROOT. "nonpublic/myschichtplan.php\n";
|
||||
echo "LOCATION:". $RoomID[mysql_result( $erg, $i, "RID" )]. "\n";
|
||||
echo "URL:" . $url . $ENGEL_ROOT . "nonpublic/myschichtplan.php\n";
|
||||
echo "LOCATION:" . $RoomID[mysql_result($erg, $i, "RID")] . "\n";
|
||||
echo "BEGIN:VALARM\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 "END:VALARM\n";
|
||||
echo "END:VEVENT\n";
|
||||
}
|
||||
echo "END:VCALENDAR\n";
|
||||
|
||||
include( "../../../camp2011/includes/funktion_counter.php");
|
||||
|
||||
include ("includes/funktion_counter.php");
|
||||
?>
|
||||
|
||||
|
@ -1,21 +1,20 @@
|
||||
<h4> Tage </h4>
|
||||
|
||||
<?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;
|
||||
echo "\t<li><a href='./schichtplan.php?ausdatum=$Datum";
|
||||
// ist ein raum gesetzt?
|
||||
if (IsSet($raum))
|
||||
if (IsSet ($raum))
|
||||
echo "&raum=$raum";
|
||||
echo "'>$Datum</a></li>\n";
|
||||
} //function Printlink(
|
||||
|
||||
if( isset ($VeranstaltungsTage))
|
||||
foreach( $VeranstaltungsTage as $k => $v)
|
||||
Printlink( $v);
|
||||
|
||||
|
||||
if (isset ($VeranstaltungsTage))
|
||||
foreach ($VeranstaltungsTage as $k => $v)
|
||||
Printlink($v);
|
||||
?>
|
||||
|
Loading…
Reference in New Issue