--- back/menu/index.php 2001/07/02 12:42:23 1.3 +++ back/menu/index.php 2001/07/02 21:03:49 1.4 @@ -28,31 +28,31 @@ if ($what=="detail") { - include_once( "$phormationdir/form.php" ); - include_once( "$phormationdir/file_upload.php" ); + include_once( "$phormationdir/form.php" ); + include_once( "$phormationdir/file_upload.php" ); - $opts = array(); - $url = array(); + $opts = array(); + $url = array(); - form_main( "menu", "num", $fields, $names, $types, $record_id, $url, $opts ); + form_main( "$table", $params["key"], $fields, $names, $types, $record_id, $url, $opts ); } elseif ($what=="multi") { - include_once( "$phormationdir/form.php" ); - include_once( "$phormationdir/multiform.php" ); - include_once( "$phormationdir/file_upload.php" ); - - if( empty( $numforms ) ) { - $numforms = 2; - } - - $opts = array(); - $url = array(); - $opts["maxforms"] = 10; - $opts["numforms_prompt"] = "Select the number of records to create:"; - $opts["item_heading"] = "Multiple edit"; + include_once( "$phormationdir/form.php" ); + include_once( "$phormationdir/multiform.php" ); + include_once( "$phormationdir/file_upload.php" ); + + if( empty( $numforms ) ) { + $numforms = 2; + } + + $opts = array(); + $url = array(); + $opts["maxforms"] = 10; + $opts["numforms_prompt"] = "Select the number of records to create:"; + $opts["item_heading"] = "Multiple edit"; - multiform_main( "$table", $params["key"], $fields, $names, $types, $record_id, $url, $opts, $numforms ); + multiform_main( "$table", $params["key"], $fields, $names, $types, $record_id, $url, $opts, $numforms ); } else { include_once( "$phormationdir/displaytable.php" );