/[pliva-si]/back/zaposleni/global.inc
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/zaposleni/global.inc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Mon Jul 2 21:10:41 2001 UTC (22 years, 10 months ago) by dpavlin
Branch: MAIN
zaposleni back-end

1 dpavlin 1.1 <?
2    
3     $phormationdir = "../phormation";
4     $DB = "pgsql";
5    
6     //-------------------------------------------------------------------
7    
8     $table="zaposleni";
9    
10     $params["query"] = "select id,titula,ime,note,tel,email,pozicija,visible from zaposleni";
11     $params["defaultsort"] = "id";
12     $params["key"] = "id";
13     $params["delquery"] = "delete from $table where $params[key] = ";
14    
15     //-------------------------------------------------------------------
16    
17     $fields[] = "visible"; $names[] = "Visible";
18     $types[]="type=boolean&default=1";
19    
20     //$fields[] = "id"; $names[] = "Ordinal number";
21     //$types[]="type=text&length=4&required=1&default=null";
22    
23     $fields[] = "titula"; $names[] = "Titula (prije imena)";
24     $types[]="type=text&length=50";
25    
26     $fields[] = "ime"; $names[] = "Ime ili naziv (bold)";
27     $types[]="type=text&length=50&required=1";
28    
29     $fields[] = "pozicija"; $names[] = "Position";
30     $types[]="type=select&map[l]=<< Left&map[c]=|| Center&map[r]=>> Right&selecttype=dropdown";
31    
32     $fields[] = "note"; $names[] = "Note";
33     $types[]="type=text&length=50";
34    
35     $fields[] = "tel"; $names[] = "Tel";
36     $types[]="type=text&length=50";
37    
38     $fields[] = "email"; $names[] = "e-mail";
39     $types[]="type=text&length=50";
40    
41     //-------------------------------------------------------------------
42    
43     $conn = pg_connect( "dbname=plivasi user=dpavlin" );
44     if( !$conn ) {
45     echo "Couldn't connect to database!<BR>";
46     } else {
47     $result=pg_Exec($conn,"set datestyle = 'german'");
48     }
49    
50     //-------------------------------------------------------------------
51    
52     ?>

  ViewVC Help
Powered by ViewVC 1.1.26