/[pliva-si]/back/menu/index.php
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /back/menu/index.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by dpavlin, Mon Jul 2 12:20:24 2001 UTC revision 1.5 by dpavlin, Mon Nov 5 10:56:32 2001 UTC
# Line 2  Line 2 
2    
3  include_once( "global.inc" );  include_once( "global.inc" );
4    
5  $params["editlink"] = "detail.php";  $params["editlink"] = "$PHP_SELF?what=detail";
6  $params["newlink"] = "detail.php";  $params["newlink"] = "$PHP_SELF?what=detail";
7  $params["addmultiplelink"] = "multi.php";  $params["addmultiplelink"] = "$PHP_SELF?what=multi";
8    $params["back"] = "../";
9    
10  $what=str_replace(".php","",basename($PHP_SELF));  $url["home"] = "$PHP_SELF";
   
 $url["home"] = "index.php";  
11    
12      function html_before_form()      function html_before_form()
13      {      {
# Line 30  $url["home"] = "index.php"; Line 29  $url["home"] = "index.php";
29    
30  if ($what=="detail") {  if ($what=="detail") {
31    
32      include_once( "$phormationdir/form.php" );          include_once( "$phormationdir/form.php" );
33      include_once( "$phormationdir/file_upload.php" );          include_once( "$phormationdir/file_upload.php" );
34    
35      $opts = array();          $opts = array();
36      $url = array();          $url = array();
37    
38      form_main( "menu", "num", $fields, $names, $types, $record_id, $url, $opts );          form_main( "$table", $params["key"], $fields, $names, $types, $record_id, $url, $opts );
39    
40  } elseif ($what=="multi") {  } elseif ($what=="multi") {
41    
42      include_once( "$phormationdir/form.php" );          include_once( "$phormationdir/form.php" );
43      include_once( "$phormationdir/multiform.php" );          include_once( "$phormationdir/multiform.php" );
44      include_once( "$phormationdir/file_upload.php" );          include_once( "$phormationdir/file_upload.php" );
45    
46      if( empty( $numforms ) ) {          if( empty( $numforms ) ) {
47          $numforms = 2;                  $numforms = 2;
48      }          }
49    
50      $opts = array();          $opts = array();
51      $url = array();          $url = array();
52      $opts["maxforms"] = 10;          $opts["maxforms"] = 10;
53      $opts["numforms_prompt"] = "Select the number of records to create:";          $opts["numforms_prompt"] = "Select the number of records to create:";
54      $opts["item_heading"] = "Multiple edit";          $opts["item_heading"] = "Multiple edit";
55    
56      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 );
57    
58  } else {  } else {
59          include_once( "$phormationdir/displaytable.php" );          include_once( "$phormationdir/displaytable.php" );

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.26