<?php
/******************************************************************************/
/* MODUL: index.php4 */
/* */
/* DATUM: 27.03.2006, Version 0.1 */
/* BESCHR.: Haupteinstiegsseite zur Applikation. */
/* Bei erstmaligem Aufruf wird der Installer gestartet. */
/* */
/* AUTOR: Marcus Groh */
/* LIZENZ: GPL v2 vom Juni 1991 */
/* */
/* AENDERUNGEN: xx.xx.2003 -initiale Version */
/* 27.03.2006 v 0.1, -Versionskennzeichnung eingefuehrt */
/* -Code unter GPL v2 gestellt */
/* */
/******************************************************************************/
#
# Send HEADER to Browser
#
include ('./_include/header.php4');
$self = basename ($PHP_SELF);
// 1st call
if (!isset ($frmsnd))
{
// check finished installation
$checkfile="install/DONE";
$fn=file_exists ($checkfile);
if (!$fn)
{
echo "<meta http-equiv=\"refresh\" content=\"0; URL=install/index.php4\">\n";
exit();
}
else
{
$job = 0;
?>
<BR><BR><BR>
<CENTER>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">
<TR>
<TD COLSPAN="3" BGCOLOR="#000000"><IMG SRC="_img/spacer.gif" HEIGHT="1" BORDER="0"></TD>
</TR>
<TR>
<TD BGCOLOR="#000000"><IMG SRC="_img/spacer.gif" WIDTH="1" BORDER="0"></TD>
<TD><IMG SRC="_img/logo_kl.gif" WIDTH="400" HEIGHT="300" BORDER="0" ALT="WebETB"></TD>
<TD BGCOLOR="#000000"><IMG SRC="_img/spacer.gif" HEIGHT="1" BORDER="0"></TD>
</TR>
<TR>
<TD COLSPAN="3" BGCOLOR="#000000"><IMG SRC="_img/spacer.gif" WIDTH="1" BORDER="0"></TD>
</TR>
</TABLE>
<BR><BR>
<TABLE BORDER="0">
<FORM action="<?php echo $self; ?>" method=post name="Daten">
<TR>
<TD><INPUT TYPE="submit" Value="Neuer Einsatz" NAME="opt1" style="border: 1px solid silver;"></TD>
<TD><INPUT TYPE="submit" Value="Aktueller Einsatz" NAME="opt2" style="border: 1px solid silver;"></TD>
<TD><INPUT TYPE="submit" Value="Administration" NAME="opt3" style="border: 1px solid silver;"></TD>
</TD>
</TR>
<INPUT type="hidden" name="frmsnd" value="true">
</FORM>
</TABLE>
</CENTER>
<?php
}
}
// otherwise do action given from form
else
{
// read given options and give it a job number
if (isset ($opt1))
{
$job = 1;
}
elseif (isset ($opt2))
{
$job = 2;
}
elseif (isset ($opt3))
{
$job = 3;
}
else
{
$job = 0;
}
//depending on job number call the related function
switch ($job)
{
case 0:
$frmsnd="";
echo "<meta http-equiv=\"refresh\" content=\"0; URL=$self\">\n";
break;
case 1:
$action="NEU";
echo "<meta http-equiv=\"refresh\" content=\"0; URL=action.php4\">\n";
break;
case 2:
$action="MIT";
echo "<meta http-equiv=\"refresh\" content=\"0; URL=action.php4\">\n";
break;
case 3:
echo "<meta http-equiv=\"refresh\" content=\"0; URL=install/index.php4\">\n";
break;
default:
$frmsnd="";
echo "<meta http-equiv=\"refresh\" content=\"0; URL=$self\">\n";
}
}
#
# Send FOOTER to Browser
#
include ('./_include/footer.php4'); # Get the project HTML-footer
?>