starbrood88
Neues Mitglied
Tag zusammenich hab n Problem dass mich schon seit tagen ärgert. ich hab ein php file dass mir immer weider den fehler "Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\medoIf\client_infoForm.html on line 348 " ausgibt. Ich hab das file nun zig mal auf fehlende klammern gescannt und nix gefunden. Bitte helft mir ich verzweifle hier langsam aber sicher ...
NOTE: ich bin recht neu in php bitte enschuldigt falls das ganze nich so toll geschriben ist^^
NOTE: ich bin recht neu in php bitte enschuldigt falls das ganze nich so toll geschriben ist^^
PHP:
<link href="Style\style.css" rel="stylesheet" type= "text/css">
<h1 class="StilCaption">KUNDENDATEN</h1>
<?php
$action ="client.php?COM=";
if(!empty($nKNr)) {$action .= "up'";}
else $action .= "new'";
?>
<form id="client" name="client" method="post" action='<?php echo $action;?>'>
<?php if (!$nKNr || $_SESSION['userType'] == 1 || ($_SESSION['userType'] == 2 && $bLight))
{ ?>
<table width="608" border="1">
<tr>
<td width="141"><strong>Kundennummer:</strong></td>
<td><?php
if($nKNr) {echo $nKNr;?> <input name="KNR" type="hidden" id="KNR" maxlength="6" size="10" value="<?php echo $nKNr;?>" disabled="disabled"/>}
else {<input name="KNR" type= "hidden" id="KNR" maxlength="6" size="10" value="<?php echo $nKNr;?>"/>}
?>
</td>
</tr>
<tr>
<td><strong>Titel:</strong></td>
<td><?php
if($nKNr) {?><input name="TITEL" type="text" id="TITEL" maxlength="20" size="20" value="<?php echo $sTitel;?>" disabled="disabled"/>}
else {<input name="TITEL" type="text" id="TITEL" maxlength="20" size="20" value="<?php echo $sTitel;?>" />}
?>
</td>
</tr>
<tr>
<td><strong>Vorname:</strong></td>
<td><?php
if($nKNr) {?><input name="VNAME" type="text" id="VNAME" maxlength="50" size="50" value="<?php echo $sVName;?>" disabled="disabled"/>}
else {<input name="VNAME" type="text" id="VNAME" maxlength="50" size="50" value="<?php echo $sVName;?>"/>}
?>
</td>
</tr>
<tr>
<td><strong>Nachname:</strong></td>
<td><?php
if($nKNr) {?><input name="NNAME" type="text" id="NNAME" maxlength="70" size="70" value="<?php echo $sNName;?>" disabled="disabled">}
else {<input name="NNAME" type="text" id="NNAME" maxlength="70" size="70" value="<?php echo $sNName;?>"/>}
?>
</td>
</tr>
<tr>
<td><strong>Gruppe:</strong></td>
<td>
<input name="KNDGRP" type="text" id="KNDGRP" maxlength="3" size="5" value="<?php echo $sKndGrp;?>"/>
</td>
</tr>
<tr>
<td><strong>Version:</strong></td>
<td><input name="VNR" type="text" id="VNR" maxlength="5" size="10" value="<?php echo $sVNr;?>" disabled="disabled"></td>
</tr>
<tr>
<td><strong>Datum letzter Abruf:</strong></td>
<td><input name="LASTUSE" type="text" id="LASTUSE" maxlength="10" size="10" value="<?php echo $sLastUse; ?>" disabled="disabled" ></td>
</tr>
<tr>
<td><strong>Erstellungsdatum:</strong></td>
<td><input name="CREATETIME" type="text" id="CREATETIME"
maxlength="10" size="10" value="<?php echo $sCreateTime;?>" disabled="disabled" ></td>
</tr>
<tr>
<td colspan="2">
<table width="608" border="0">
<tr>
<td><strong>Gesperrt: </strong><?php
if($bLocked > 0){?><input name="LOCKED" type="checkbox" id="LOCKED" checked="checked">}
else {<input name="LOCKED" type="checkbox" id="LOCKED" >}
?>
</td>
<td><strong>light: </strong><?php
$sLBox = "<input name='ISLIGHT' type='checkbox' id='ISLIGHT'";
if($bLight > 0 ) $sLBox .= " checked='checked'";
if ($_SESSION['userType'] == 2) $sLBox .= " disabled";
$sLBox .= " />";
echo $sLBox;
?>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><strong>Bundesland:</strong></td>
<td>
<select name="BNDLD" id="BNDLD">
<?php
echo $arrayBndLd[$sBndLd];
echo $arrayBndLd[($sBndLd == 1 ? 0 : 1)];
echo $arrayBndLd[($sBndLd == 2 ? 0 : 2)];
echo $arrayBndLd[($sBndLd == 3 ? 0 : 3)];
echo $arrayBndLd[($sBndLd == 4 ? 0 : 4)];
echo $arrayBndLd[($sBndLd == 5 ? 0 : 5)];
echo $arrayBndLd[($sBndLd == 6 ? 0 : 6)];
echo $arrayBndLd[($sBndLd == 7 ? 0 : 7)];
echo $arrayBndLd[($sBndLd == 8 ? 0 : 8)];
echo $arrayBndLd[($sBndLd == 9 ? 0 : 9)];
echo"</select>";
echo"</td>";
echo "</tr>";
echo"</table>";
}