/[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.5 - (hide annotations)
Mon Nov 5 10:56:32 2001 UTC (22 years, 6 months ago) by dpavlin
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -0 lines
back-end update

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

  ViewVC Help
Powered by ViewVC 1.1.26