/[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

Annotation of /back/menu/index.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations)
Mon Jul 2 21:03:49 2001 UTC (22 years, 10 months ago) by dpavlin
Branch: MAIN
Changes since 1.3: +19 -19 lines
shema independent fix

1 dpavlin 1.1 <?
2    
3 dpavlin 1.2 include_once( "global.inc" );
4    
5 dpavlin 1.3 $params["editlink"] = "$PHP_SELF?what=detail";
6     $params["newlink"] = "$PHP_SELF?what=detail";
7     $params["addmultiplelink"] = "$PHP_SELF?what=multi";
8 dpavlin 1.2
9 dpavlin 1.3 $url["home"] = "$PHP_SELF";
10 dpavlin 1.2
11     function html_before_form()
12     {
13     ?>
14     <HTML>
15     <HEAD>
16     <link rel="stylesheet" type="text/css" href="styles.css">
17     </HEAD>
18     <BODY bgcolor="#FFFFFF">
19     <?
20     }
21     function html_after_form()
22     {
23     ?>
24     </BODY>
25     </HTML>
26     <?
27     }
28    
29     if ($what=="detail") {
30    
31 dpavlin 1.4 include_once( "$phormationdir/form.php" );
32     include_once( "$phormationdir/file_upload.php" );
33 dpavlin 1.2
34 dpavlin 1.4 $opts = array();
35     $url = array();
36 dpavlin 1.2
37 dpavlin 1.4 form_main( "$table", $params["key"], $fields, $names, $types, $record_id, $url, $opts );
38 dpavlin 1.2
39     } elseif ($what=="multi") {
40    
41 dpavlin 1.4 include_once( "$phormationdir/form.php" );
42     include_once( "$phormationdir/multiform.php" );
43     include_once( "$phormationdir/file_upload.php" );
44    
45     if( empty( $numforms ) ) {
46     $numforms = 2;
47     }
48    
49     $opts = array();
50     $url = array();
51     $opts["maxforms"] = 10;
52     $opts["numforms_prompt"] = "Select the number of records to create:";
53     $opts["item_heading"] = "Multiple edit";
54 dpavlin 1.2
55 dpavlin 1.4 multiform_main( "$table", $params["key"], $fields, $names, $types, $record_id, $url, $opts, $numforms );
56 dpavlin 1.2
57     } else {
58     include_once( "$phormationdir/displaytable.php" );
59 dpavlin 1.1 table_index( $fields, $names, $params );
60 dpavlin 1.2 }
61    
62 dpavlin 1.1 ?>

  ViewVC Help
Powered by ViewVC 1.1.26