secure bugfix SQLcommand wurde nicht am programmstart geleert
ausgabe user frendly gestalltet git-svn-id: svn://svn.cccv.de/engel-system@7 29ba0400-6e00-0410-a75a-ca02368028f8
This commit is contained in:
parent
1c8b0b3784
commit
1cccb4a2ad
|
@ -21,7 +21,10 @@ if( !IsSet($action) )
|
||||||
|
|
||||||
for( $i = 1; $i < mysql_num_fields($Erg); $i++ )
|
for( $i = 1; $i < mysql_num_fields($Erg); $i++ )
|
||||||
{
|
{
|
||||||
echo "\t<td>". mysql_field_name($Erg, $i). "</td>";
|
if( substr( mysql_field_name($Erg, $i), 0, 12) == "DEFAULT_EID_")
|
||||||
|
echo "\t<td> Anzahl ". $EngelTypeID[substr( mysql_field_name($Erg, $i), 12)]. "</td>";
|
||||||
|
else
|
||||||
|
echo "\t<td>". mysql_field_name($Erg, $i)."</td>";
|
||||||
}
|
}
|
||||||
echo "\t<td>Ändern</td>";
|
echo "\t<td>Ändern</td>";
|
||||||
echo "</tr>";
|
echo "</tr>";
|
||||||
|
@ -52,11 +55,14 @@ case 'new':
|
||||||
|
|
||||||
for( $Uj = 1; $Uj < mysql_num_fields($Erg); $Uj++ )
|
for( $Uj = 1; $Uj < mysql_num_fields($Erg); $Uj++ )
|
||||||
{
|
{
|
||||||
echo "<td>".mysql_field_name($Erg, $Uj)."</td>".
|
|
||||||
"<td><input type=\"text\" size=\"40\" name=\"".mysql_field_name($Erg, $Uj)."\">";
|
|
||||||
//sonderfall fuer Default Engel
|
//sonderfall fuer Default Engel
|
||||||
if( substr( mysql_field_name($Erg, $Uj), 0, 12) == "DEFAULT_EID_")
|
if( substr( mysql_field_name($Erg, $Uj), 0, 12) == "DEFAULT_EID_")
|
||||||
echo " ". $EngelTypeID[substr( mysql_field_name($Erg, $Uj), 12)];
|
$FeldName = "Anzahl ". $EngelTypeID[substr( mysql_field_name($Erg, $Uj), 12)];
|
||||||
|
else
|
||||||
|
$FeldName = mysql_field_name($Erg, $Uj);
|
||||||
|
|
||||||
|
echo "<td>$FeldName</td>".
|
||||||
|
"<td><input type=\"text\" size=\"40\" name=\"".mysql_field_name($Erg, $Uj)."\">";
|
||||||
echo "</td></tr>\n";
|
echo "</td></tr>\n";
|
||||||
}
|
}
|
||||||
echo "</table>\n";
|
echo "</table>\n";
|
||||||
|
@ -105,12 +111,15 @@ case 'change':
|
||||||
|
|
||||||
for ($Uj = 1; $Uj < mysql_num_fields($ERG); $Uj++)
|
for ($Uj = 1; $Uj < mysql_num_fields($ERG); $Uj++)
|
||||||
{
|
{
|
||||||
echo "<tr><td>".mysql_field_name($ERG, $Uj)."</td>".
|
|
||||||
"<td><input type=\"text\" size=\"40\" name=\"e".mysql_field_name($ERG, $Uj)."\" ".
|
|
||||||
"value=\"".mysql_result($ERG, 0, $Uj)."\">";
|
|
||||||
//sonderfall fuer Default Engel
|
//sonderfall fuer Default Engel
|
||||||
if( substr( mysql_field_name($ERG, $Uj), 0, 12) == "DEFAULT_EID_")
|
if( substr( mysql_field_name($ERG, $Uj), 0, 12) == "DEFAULT_EID_")
|
||||||
echo " ". $EngelTypeID[substr( mysql_field_name($ERG, $Uj), 12)];
|
$FeldName = "Anzahl ". $EngelTypeID[substr( mysql_field_name($ERG, $Uj), 12)];
|
||||||
|
else
|
||||||
|
$FeldName = mysql_field_name($ERG, $Uj);
|
||||||
|
|
||||||
|
echo "<tr><td>$FeldName</td>".
|
||||||
|
"<td><input type=\"text\" size=\"40\" name=\"e".mysql_field_name($ERG, $Uj)."\" ".
|
||||||
|
"value=\"".mysql_result($ERG, 0, $Uj)."\">";
|
||||||
echo"</td></tr>\n";
|
echo"</td></tr>\n";
|
||||||
}
|
}
|
||||||
echo "</table>\n";
|
echo "</table>\n";
|
||||||
|
@ -149,8 +158,8 @@ case 'delete':
|
||||||
SetHeaderGo2Back();
|
SetHeaderGo2Back();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
} //switch
|
||||||
}
|
|
||||||
|
|
||||||
// Update ???
|
// Update ???
|
||||||
|
|
||||||
|
@ -166,5 +175,7 @@ if (IsSet($SQL)){
|
||||||
}
|
}
|
||||||
} // Ende Update
|
} // Ende Update
|
||||||
|
|
||||||
|
} //IF IsSet($action)
|
||||||
|
|
||||||
include ("./inc/footer.php");
|
include ("./inc/footer.php");
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue