ausgabe angepasst

git-svn-id: svn://svn.cccv.de/engel-system@223 29ba0400-6e00-0410-a75a-ca02368028f8
main
cookie 18 years ago
parent 94a1cc73ae
commit b432f8d6c6

@ -4,79 +4,40 @@ $header = "Schichtpläne";
$submenus = 1; $submenus = 1;
if (!IsSet($_POST["action"])) if (!IsSet($_GET["action"]))
{ {
include ("./inc/header.php"); include ("./inc/header.php");
include ("./inc/funktionen.php"); include ("./inc/funktionen.php");
include ("./inc/funktion_schichtplan_aray.php"); include ("./inc/funktion_schichtplan_aray.php");
include ("./inc/funktion_schichtplan.php"); include ("./inc/funktion_schichtplan.php");
?>
Hallo <?PHP echo $_SESSION['Nick']?>,<br>
auf dieser Seite kannst du dir den Schichtplan in einer Druckansicht generieren lassen. W&auml;hle hierf&uuml;r ein Datum und den Raum:
<br><br>
<form action="./schichtplan_druck.php" method="post" target="_print">
<input type="hidden" name="action" value="1">
echo "Hallo ". $_SESSION['Nick']. "<br>\n".
"auf dieser Seite kannst du dir den Schichtplan in einer Druckansicht generieren lassen. W&auml;hle hierf&uuml;r ein Datum und den Raum:\n".
"<br>\n";
<table> foreach( $VeranstaltungsTage as $k => $v)
<tr>
<td align="right">Datum:</td>
<td align="left">
<select name="ausdatum">
<?PHP
$SQL = "SELECT DateS FROM `Shifts` ORDER BY 'DateS'";
$Erg = mysql_query($SQL, $con);
if (!isset($ausdatum))
$ausdatum = substr(mysql_result($Erg, $i , 0), 0,10);
for ($i = 0 ; $i < mysql_fetch_row($Erg) ; $i++)
{
if ($tmp != substr(mysql_result($Erg, $i , 0), 0,10))
{ {
$tmp = substr(mysql_result($Erg, $i , 0), 0,10);
echo "\t\t\t\t<option value=\"$tmp\">$tmp</option>\n";
}
}
?> $res = mysql_query("SELECT Name, RID FROM `Room` WHERE `show`!='N' ORDER BY `Name`;",$con);
</select> for ($i = 0; $i < mysql_num_rows($res); $i++)
</td> {
</tr> $Tag = $VeranstaltungsTage[$k];
<tr> $RID = mysql_result($res,$i,"RID");
<td align="right">Raum:</td> $Rname = mysql_result($res, $i, "Name");
<td align="left"> echo "\t<a href=\"./schichtplan_druck.php?action=1&Raum=$RID&ausdatum=$Tag\" target=\"_blank\">$Tag $Rname</a><br>\n";
<select name="Raum"> }
<?php echo "<br>\n";
$res = mysql_query("SELECT Name, RID FROM `Room` WHERE `show`!='N' ORDER BY `Name`;",$con);
for ($i = 0; $i < mysql_num_rows($res); $i++)
{
$rid=mysql_result($res,$i,"RID");
$raum_name=mysql_result($res, $i, "Name");
echo "\t\t\t\t<option value=\"$rid\">$raum_name</option>\n";
} }
?> echo "<br><br>";
</select>
</td>
</tr>
</table>
<br>
<input type="submit" value="generieren...">
</form>
<br><br>
<?PHP
include ("./inc/footer.php"); include ("./inc/footer.php");
} }
else //################################################################# else //#################################################################
{ {
if (IsSet($_POST["Raum"]) AND IsSet($_POST["ausdatum"])) if (IsSet($_GET["Raum"]) AND IsSet($_GET["ausdatum"]))
{ {
$Raum = $_POST["Raum"]; $Raum = $_GET["Raum"];
$ausdatum = $_POST["ausdatum"]; $ausdatum = $_GET["ausdatum"];
include ("./inc/config_db.php"); include ("./inc/config_db.php");
include ("./inc/config.php"); include ("./inc/config.php");

Loading…
Cancel
Save