<?php
if(isset($_POST['SUBMIT2'])){
include("work.php");
}
else
{
$gsanzahl = "125";
for($index = 1; $index < $gsanzahl; $index++)
{
$feld = "feld$index";
$$feld = "";
}
if (($_POST['send'] == 1) AND isset($_POST['gssubmit'])) {
$name = substr($_POST['pass'], 0, -4);
$name = ucfirst($name);
$feld121 = 'Bestätigt von Hr. '.$name.$_POST[''].'';
if ( $_POST['pass'] == 'etges1574' ) {
} elseif ( $_POST['pass'] == 'horst2345') {
} elseif ( $_POST['pass'] == 'grund1234') {
} else {
$feld121 = '';
}
for($indexgs = 1; $indexgs < $gsanzahl; $indexgs++)
{
$feld = "feld$indexgs";
$gsfi = "Array[a$indexgs]";
$$feld = $_POST['$gsfi'];
}
}
?>
<html>
<head>
<title>Leistungsschein TNT - - - I N T E R N E T - - -</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
<body link="#000066" vlink="#000066" alink="#000066">
<?php
$host = "............";
$user = ".............";
$password = "............";
$dbname = "............";
$tabelle ="tnt";
error_reporting(E_ALL);
$dbverbindung = mysql_connect ($host, $user, $password);
mysql_select_db(".................", $dbverbindung);
if(isset($_GET["load_ds"])) {
$result = mysql_query("select * from tnt order by id desc limit 1") or die(mysql_error());
if($row = mysql_fetch_array($result, MYSQL_NUM)) {
$feld1 = $row[1];
for($gsindex = 1; $gsindex < $gsanzahl; $gsindex++)
{
$feld = "feld$gsindex";
$$feld = "$row[$gsindex]";
}
}
}
?>
<form action="leistungsschein.php" method=post>
<div align="center">
<p><font face="Verdana, Arial, Helvetica, sans-serif"><strong><font size="5"><br>
<br>
LEISTUNGSSCHEIN<br>
</font></strong></font></p>
<font face="Verdana, Arial, Helvetica, sans-serif"><strong><font size="5">
</font></strong></font>
<table width="936">
<tr>
<td width="234"><strong><font color="#000000"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Firma:</font></font></strong></td>
<td width="248"><input name="Array[a1]" type="text" value="" size="40" row="5"></td>
<td width="438" rowspan="4"><div align="center"></div></td>
</tr>
<tr>
<td><strong><font color="#000000" size="2" face="Verdana, Arial, Helvetica, sans-serif">Mitarbeiter</font><font size="2" face="Verdana, Arial, Helvetica, sans-serif">:</font></strong></td>
<td><input name="Array[a2]" type="text" value="" size="40" row="5"></td>
</tr>
<tr>
<td><strong><font color="#000000" size="2" face="Verdana, Arial, Helvetica, sans-serif">Von
Datum</font><font size="2" face="Verdana, Arial, Helvetica, sans-serif">:</font></strong></td>
<td><input name="Array[a3]" type="text" value="" size="40" row="5"></td>
</tr>
<tr>
<td><strong><font color="#000000"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Bis
Datum:</font></font></strong></td>
<td><input name="Array[a4]" type="text" value="" size="40" row="5"></td>
</tr>
</table>
<br>
<hr>
<p> </p>
<p>
<input type=submit name="SUBMIT2" value="Datensatz senden">
<input name="button2" type="button" onClick="window.location.href='/leistungsscheintnt000.php?load_ds';" value="Letzten Datensatz einladen"/>
<input name="Submit2" type="button" onClick="window.print()
" value="Drucken">
<br>
<br>
</p>
<table width="93%">
<tr>
<td width="6%" height="22"> <div align="left"></div>
<div align="left"><font size="2"><strong><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif">Nr:</font></strong></font></div></td>
<td width="33%"><strong><font color="#000000" size="2" face="Verdana, Arial, Helvetica, sans-serif">Tätigkeiten:</font></strong></td>
<td width="12%"><strong><font color="#000000" size="2" face="Verdana, Arial, Helvetica, sans-serif">Montag</font></strong></td>
<td width="12%"><strong><font color="#000000" size="2" face="Verdana, Arial, Helvetica, sans-serif">Dienstag</font></strong></td>
<td width="12%"><strong><font color="#000000" size="2" face="Verdana, Arial, Helvetica, sans-serif">Mittwoch</font></strong></td>
<td width="12%"><strong><font color="#000000" size="2" face="Verdana, Arial, Helvetica, sans-serif">Donnerstag</font></strong></td>
<td width="13%"><strong><font color="#000000" size="2" face="Verdana, Arial, Helvetica, sans-serif">Freitag</font></strong></td>
</tr>
<tr>
<td><font color="#000000">
<input name="Array[a5]" type="text" value="" size="8" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a6]" type="text" value="" size="50" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a7]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a8]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a9]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a10]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a11]" type="text" value="" size="15" row="5">
</font></td>
</tr>
<tr>
<td><font color="#000000">
<input name="Array[a12]" type="text" value="" size="8" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a13]" type="text" value="" size="50" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a14]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a15]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a16]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a17]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a18]" type="text" value="" size="15" row="5">
</font></td>
</tr>
<tr>
<td><font color="#000000">
<input name="Array[a19]" type="text" value="" size="8" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a20]" type="text" value="" size="50" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a21]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a22]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a23]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a24]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a25]" type="text" value="" size="15" row="5">
</font></td>
</tr>
<tr>
<td><font color="#000000">
<input name="Array[a26]" type="text" value="" size="8" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a27]" type="text" value="" size="50" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a28]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a29]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a30]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a31]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a32]" type="text" value="" size="15" row="5">
</font></td>
</tr>
<tr>
<td height="27"><font color="#000000">
<input name="Array[a33]" type="text" value="" size="8" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a34]" type="text" value="" size="50" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a35]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a36]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a37]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a38]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a39]" type="text" value="" size="15" row="5">
</font></td>
</tr>
<tr>
<td><font color="#000000">
<input name="Array[a40]" type="text" value="" size="8" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a41]" type="text" value="" size="50" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a42]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a43]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a44]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a45]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a46]" type="text" value="" size="15" row="5">
</font></td>
</tr>
<tr>
<td><font color="#000000">
<input name="Array[a47]" type="text" value="" size="8" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a48]" type="text" value="" size="50" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a49]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a50]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a51]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a52]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a53]" type="text" value="" size="15" row="5">
</font></td>
</tr>
<tr>
<td><font color="#000000">
<input name="Array[a54]" type="text" value="" size="8" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a55]" type="text" value="" size="50" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a56]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a57]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a58]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a59]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a60]" type="text" value="" size="15" row="5">
</font></td>
</tr>
<tr>
<td><font color="#000000">
<input name="Array[a61]" type="text" value="" size="8" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a62]" type="text" value="" size="50" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a63]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a64]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a65]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a66]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a67]" type="text" value="" size="15" row="5">
</font></td>
</tr>
<tr>
<td><font color="#000000">
<input name="Array[a68]" type="text" value="" size="8" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a69]" type="text" value="" size="50" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a70]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a71]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a72]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a73]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a74]" type="text" value="" size="15" row="5">
</font></td>
</tr>
<tr>
<td><font color="#000000">
<input name="Array[a75]" type="text" value="" size="8" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a76]" type="text" value="" size="50" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a77]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a78]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a79]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a80]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a81]" type="text" value="" size="15" row="5">
</font></td>
</tr>
<tr>
<td><font color="#000000">
<input name="Array[a82]" type="text" value="" size="8" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a83]" type="text" value="" size="50" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a84]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a85]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a86]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a87]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a88]" type="text" value="" size="15" row="5">
</font></td>
</tr>
<tr>
<td><font color="#000000">
<input name="Array[a89]" type="text" value="" size="8" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a90]" type="text" value="" size="50" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a91]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a92]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a93]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a94]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a95]" type="text" value="" size="15" row="5">
</font></td>
</tr>
<tr>
<td><font color="#000000">
<input name="Array[a96]" type="text" value="" size="8" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a97]" type="text" value="" size="50" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a98]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a99]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a100]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a101]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a102]" type="text" value="" size="15" row="5">
</font></td>
</tr>
<tr>
<td><font color="#000000">
<input name="Array[a103]" type="text" value="" size="8" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a104]" type="text" value="" size="50" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a105]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a106]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a107]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a108]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a109]" type="text" value="" size="15" row="5">
</font></td>
</tr>
</table>
<p> <br>
<br>
<font size="2"><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif">*
Bitte in den Spalten (Mo. bis Fr.) die Stunden eintragen: Beispiel: für
1 Stunde und 30 Minuten. bitte 1,5 eintragen<br>
* Bitte in der Spalte Nummer ein R + RFC Nummer oder ein P + Projektnummer
eintragen.</font></font><br>
</p>
<hr>
<br>
<br>
<table width="91%">
<tr>
<td width="39%"><font color="#000000" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Arbeitsbeginn</strong></font></td>
<td width="12%"><font color="#000000">
<input name="Array[a110]" type="text" value="" size="15" row="5">
</font></td>
<td width="12%"><font color="#000000">
<input name="Array[a111]" type="text" value="" size="15" row="5">
</font></td>
<td width="12%"><font color="#000000">
<input name="Array[a112]" type="text" value="" size="15" row="5">
</font></td>
<td width="12%"><font color="#000000">
<input name="Array[a113]" type="text" value="" size="15" row="5">
</font></td>
<td width="13%"><font color="#000000">
<input name="Array[a114]" type="text" value="" size="15" row="5">
</font></td>
</tr>
<tr>
<td><font color="#000000" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Arbeitsende</strong></font></td>
<td><font color="#000000">
<input name="Array[a115]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a116]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a117]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a118]" type="text" value="" size="15" row="5">
</font></td>
<td><font color="#000000">
<input name="Array[a119]" type="text" value="" size="15" row="5">
</font></td>
</tr>
<tr>
<td><font color="#000000" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Gesamt
Arbeitszeit </strong></font></td>
<td><font color="#000000">
<input name="Array[a120]" type="text" value="" size="15" row="5">
</font></td>
<td bordercolor="#FFFFFF"><font color="#000000"> </font></td>
<td bordercolor="#FFFFFF"><font color="#000000"> </font></td>
<td bordercolor="#FFFFFF"><font color="#000000"> </font></td>
<td bordercolor="#FFFFFF"><font color="#000000"> </font></td>
</tr>
</table>
<p> </p>
<hr>
<p> </p>
<table width="91%">
<tr>
<td width="50%"><div align="center"><strong><font color="#000000">
<?php
if(empty($feld121)){
echo "Keine Kennung";
echo "<br>";
?>
<input type='password' name='pass' size="25">
<input type='submit' name='gssubmit' value=' Absenden '>
<input type='hidden' name='send' value='1'>
<?php
}else{
?> <input name="Array[a121]" type="text" value="<?php echo $feld121; ?>" size="40" row="5"readonly>
<?php
}
?>
</font></strong></div></td>
<td><div align="center"><font color="#000000">
<input name="Array[a122]" type="text" value="" size="40" row="5">
</font></div></td>
</tr>
<tr>
<td width="50%"> </td>
<td> </td>
</tr>
<tr>
<td><div align="center"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><font color="#000000">Datum:
<input name="Array[a123]" type="text" value=" " size="22" row="5">
</font> </font></div></td>
<td><div align="center"><font color="#000000" size="2" face="Verdana, Arial, Helvetica, sans-serif">Datum:
<input name="Array[a124]" type="text" value="" size="22" row="5">
</font><font size="2" face="Verdana, Arial, Helvetica, sans-serif">
</font></div></td>
</tr>
<tr>
<td><div align="center"><strong></strong></div></td>
<td><div align="center"><strong><font color="#000000" size="2" face="Verdana, Arial, Helvetica, sans-serif">
</font></strong></div></td>
</tr>
</table>
<p> </p>
<hr>
<br>
<br>
</div>
</form>
</body>
</html>
<?php
}
?>