summaryrefslogtreecommitdiff
path: root/www-ssl/admin/room.php
diff options
context:
space:
mode:
authorcookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8>2006-11-20 20:43:00 +0000
committercookie <cookie@29ba0400-6e00-0410-a75a-ca02368028f8>2006-11-20 20:43:00 +0000
commitff7cb3f40c6538ecebdcba0e8ef3ebea36b77fcd (patch)
treea2e58fbeca4300459f03ab6d8c92c5971d45d5fe /www-ssl/admin/room.php
parent1f450e08e0e963242c3ee4f2e1815896a6a9a2e6 (diff)
auswahlbox beim erstellen hinzugefuegt
git-svn-id: svn://svn.cccv.de/engel-system@165 29ba0400-6e00-0410-a75a-ca02368028f8
Diffstat (limited to 'www-ssl/admin/room.php')
-rwxr-xr-xwww-ssl/admin/room.php31
1 files changed, 21 insertions, 10 deletions
diff --git a/www-ssl/admin/room.php b/www-ssl/admin/room.php
index 8f2f08f7..ca381713 100755
--- a/www-ssl/admin/room.php
+++ b/www-ssl/admin/room.php
@@ -55,15 +55,26 @@ case 'new':
for( $Uj = 1; $Uj < mysql_num_fields($Erg); $Uj++ )
{
- //sonderfall fuer Default Engel
- if( substr( mysql_field_name($Erg, $Uj), 0, 12) == "DEFAULT_EID_")
- $FeldName = "Anzahl ". $EngelTypeID[substr( mysql_field_name($Erg, $Uj), 12)];
+ if( (mysql_field_name($Erg, $Uj) == "show") || (mysql_field_name($Erg, $Uj) == "FromPentabarf") )
+ {
+ echo "<tr><td>show</td>".
+ "<td>".
+ "<input type=\"radio\" name=\"e". mysql_field_name($Erg, $Uj). "\" value=\"Y\">Yes".
+ "<input type=\"radio\" name=\"e". mysql_field_name($Erg, $Uj). "\" value=\"N\">No".
+ "</td></tr>\n";
+ }
else
- $FeldName = mysql_field_name($Erg, $Uj);
+ {
+ //sonderfall fuer Default Engel
+ if( substr( mysql_field_name($Erg, $Uj), 0, 12) == "DEFAULT_EID_")
+ $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>$FeldName</td>".
+ "<td><input type=\"text\" size=\"40\" name=\"".mysql_field_name($Erg, $Uj)."\">";
+ echo "</td></tr>\n";
+ }
}
echo "</table>\n";
echo "<input type=\"hidden\" name=\"action\" value=\"newsave\">\n";
@@ -103,12 +114,12 @@ case 'change':
for ($Uj = 1; $Uj < mysql_num_fields($ERG); $Uj++)
{
- if( mysql_field_name($ERG, $Uj) == "show")
+ if( (mysql_field_name($ERG, $Uj) == "show") || (mysql_field_name($ERG, $Uj) == "FromPentabarf") )
{
echo "<tr><td>show</td>".
"<td>".
- "<input type=\"radio\" name=\"eshow\" value=\"Y\"". (mysql_result($ERG, 0, $Uj)=='Y'? " checked":""). ">Yes".
- "<input type=\"radio\" name=\"eshow\" value=\"N\"". (mysql_result($ERG, 0, $Uj)=='N'? " checked":""). ">No".
+ "<input type=\"radio\" name=\"e". mysql_field_name($ERG, $Uj). "\" value=\"Y\"". (mysql_result($ERG, 0, $Uj)=='Y'? " checked":""). ">Yes".
+ "<input type=\"radio\" name=\"e". mysql_field_name($ERG, $Uj). "\" value=\"N\"". (mysql_result($ERG, 0, $Uj)=='N'? " checked":""). ">No".
"</td></tr>\n";
}
else