1 |
<? |
2 |
$phormationdir = "../phormation"; |
3 |
$DB = "pgsql"; |
4 |
|
5 |
$comm_dir="/data/corp_html/comm"; |
6 |
$more_dir="/data/corp_html/news"; |
7 |
$pdf_dir="/data/corp_html/pdf"; |
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 |
$types[]="type=select&map[n]=News&map[c]=Community&map[e]=Events&map[r]=Results&map[i]=Investors&map[a]=Annual Report&map[p]=Presentation&map[o]=Company Profile&selecttype=dropdown"; |
26 |
|
27 |
$fields[] = "body"; $names[] = "Short text"; |
28 |
$types[]="type=text&height=10&width=50&length=5000&required=1"; |
29 |
|
30 |
$fields[] = "pic"; $names[] = "Picture"; |
31 |
$types[]="type=myfile&delete_hook=my_delete_comm&targetdir=$comm_dir&showfilename=1&imagemode=1&serverdir=comm"; |
32 |
|
33 |
$fields[] = "more"; $names[] = "HTML file:"; |
34 |
$types[]="type=myfile&delete_hook=my_delete_more&targetdir=$more_dir&showfilename=1"; |
35 |
|
36 |
$fields[] = "pdf"; $names[] = "PDF or PPT file:"; |
37 |
$types[]="type=myfile&delete_hook=my_delete_comm&targetdir=$pdf_dir&showfilename=1"; |
38 |
?> |