/[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.1 by dpavlin, Thu Jun 28 13:38:52 2001 UTC revision 1.2 by dpavlin, Mon Jul 2 12:20:24 2001 UTC
# Line 1  Line 1 
1  <?  <?
     include_once( "global.php" );  
     include_once( "dbconnect.php" );  
     include_once( "$phormationdir/displaytable.php" );  
   
     $params["query"] = "select section,level,item,url,file,num,visible from menu";  
     $params["defaultsort"] = "section,num,level";  
     $params["editlink"] = "detail.php";  
     $params["newlink"] = "detail.php";  
     $params["addmultiplelink"] = "multi.php";  
     $params["delquery"] = "delete from menu where num = ";  
     $params["key"] = "num";  
2    
3    include_once( "global.inc" );
4    
5    $params["editlink"] = "detail.php";
6    $params["newlink"] = "detail.php";
7    $params["addmultiplelink"] = "multi.php";
8    
9    $what=str_replace(".php","",basename($PHP_SELF));
10    
11    $url["home"] = "index.php";
12    
13        function html_before_form()
14        {
15            ?>
16            <HTML>
17            <HEAD>
18            <link rel="stylesheet" type="text/css" href="styles.css">
19            </HEAD>
20            <BODY bgcolor="#FFFFFF">
21            <?
22        }
23        function html_after_form()
24        {
25            ?>
26            </BODY>
27            </HTML>
28            <?
29        }
30    
31    if ($what=="detail") {
32    
33        include_once( "$phormationdir/form.php" );
34        include_once( "$phormationdir/file_upload.php" );
35    
36        $opts = array();
37        $url = array();
38    
39        form_main( "menu", "num", $fields, $names, $types, $record_id, $url, $opts );
40    
41    } elseif ($what=="multi") {
42    
43        include_once( "$phormationdir/form.php" );
44        include_once( "$phormationdir/multiform.php" );
45        include_once( "$phormationdir/file_upload.php" );
46    
47        if( empty( $numforms ) ) {
48            $numforms = 2;
49        }
50    
51        $opts = array();
52        $url = array();
53        $opts["maxforms"] = 10;
54        $opts["numforms_prompt"] = "Select the number of records to create:";
55        $opts["item_heading"] = "Multiple edit";
56    
57        multiform_main( "$table", $params["key"], $fields, $names, $types, $record_id, $url, $opts, $numforms );
58    
59    } else {
60            include_once( "$phormationdir/displaytable.php" );
61          table_index( $fields, $names, $params );          table_index( $fields, $names, $params );
62    }
63    
64  ?>  ?>

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

  ViewVC Help
Powered by ViewVC 1.1.26