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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Fri Jun 29 14:11:51 2001 UTC (22 years, 10 months ago) by dpavlin
Branch: MAIN
CVS Tags: HEAD
news back-end

1 dpavlin 1.1 <?
2     $phormationdir = "../phormation";
3     $DB = "pgsql";
4    
5     $comm_dir="/data/pliva-si/more";
6     $more_dir="/data/pliva-si/more";
7     $pdf_dir="/data/pliva-si/blob";
8    
9     $fields[] = "visible"; $names[] = "Visible";
10     $types[]="type=boolean&default=1";
11    
12     $fields[] = "title"; $names[] = "Title";
13     $types[]="type=text&width=50&height=2&length=200&required=1";
14    
15     $fields[] = "town_date"; $names[] = "Town, Date";
16     $types[]="type=text&width=50&length=100&required=1";
17    
18     $fields[] = "date"; $names[] = "Date (real)";
19     $types[]="type=date&yearspan=8&default=now";
20    
21     $fields[] = "priority"; $names[] = "Priority";
22     $types[]="type=text&length=2&default=0";
23    
24     $fields[] = "type"; $names[] = "Type";
25    
26     include("../../inc/news_sif.inc");
27     $t="";
28     while (list($key, $val) = each($news_sif)) {
29     $t.="map[$key]=";
30     if (substr($key,0,1) == "e") {
31     $t.="evnt : ";
32     } elseif (substr($key,0,1) == "n") {
33     $t.="news : ";
34     } elseif (substr($key,0,1) == "m") {
35     $t.="misc : ";
36     }
37     $t.=$val;
38     if (substr($key,2,1) == "x") {
39     $t.=" O-m";
40     }
41     $t.="&";
42     }
43    
44     $types[]="type=select&${t}selecttype=dropdown";
45    
46     $fields[] = "body"; $names[] = "Short text";
47     $types[]="type=text&height=10&width=50&length=5000&required=1";
48    
49     $fields[] = "pic"; $names[] = "Picture";
50     $types[]="type=myfile&delete_hook=my_delete_comm&targetdir=$comm_dir&showfilename=1&imagemode=1&serverdir=comm";
51    
52     $fields[] = "more"; $names[] = "HTML file:";
53     $types[]="type=myfile&delete_hook=my_delete_more&targetdir=$more_dir&showfilename=1";
54    
55     $fields[] = "pdf"; $names[] = "PDF or PPT file:";
56     $types[]="type=myfile&delete_hook=my_delete_comm&targetdir=$pdf_dir&showfilename=1";
57     ?>

  ViewVC Help
Powered by ViewVC 1.1.26