";
get "Id=*", "$toget$_add", "felder";
push @fieldset, $Field while (get_next("felder"));
out "
";
my $cn=1;
foreach(@fieldset)
{
outl $cn++ .".) $_";
}
out "
";
out "
";}
sub keywords
{my $toget=$_[0];
put "", "/$USER{uid}/.htx";
my %hash=eval get "/$USER{uid}/.htx";
my $keywords=$hash{keywords}{"$toget"};
out "
Keywords: $keywords
";
}
sub data_dump
{my $toget=$_[0];
my $_add="";
%dbf_file="";
$_add=$_[1];
&keywords($toget);
out "
";
get "$toget$_add","dbf_file";
out "
$toget$_add
";
outl dump(%dbf_file);
out "";
out "
";}
sub page
{$toget=$_[0];
my @PAGE=get "$toget";
put "", "/$USER{uid}/.htx";
my %hash=eval get "/$USER{uid}/.htx";
my $keywords=$hash{keywords}{"$toget"};
out "
Keywords: $keywords
";
out "
";
out "";
foreach(@PAGE)
{
outl convert_html($_);
}
out "";
out "
";}
sub editpage
{$toget=$_[0];
$filename=$_[1];
$dir=$_[2];
my @PAGE=get "$toget","raw";
#my $iadd="_files";
put "", "/$USER{uid}/.htx" ;
%hash=eval get "/$USER{uid}/.htx";
$in=$hash{keywords}{"$toget"};
out "
";
my $form="";
$form="";
out $form;
out "
";}
sub dir
{@DIR=get "/$USER{uid}/$dir","dir,join" ;
$anzDIR=@DIR;
@HTX=get "/$USER{uid}/$dir", "join,htx,cut";
#$anzHTX=@HTX;
@DBF=get "/$USER{uid}/$dir", "db,join";
$anzDBF=@DBF;
my $templates="";
my $datenbanken="";
my $verzeichnisse="";
out "
$anzHTX Templates";
out &action("page","new");
out "$templates
";
out "
$anzDBF Datenbanken";
#out &action("data","new");
out "
$datenbanken
";
out "
$anzDIR Verzeichnisse";
#out &action("dir","new");
out "
$verzeichnisse
";
out "";
}
#---------------------------- ende sub
#----------------------------- file
if($_get{filetype} eq"")
{######################
$filetype="dir";
$filename="$_get{dir}";
#----------------------
if($_get{data})
{
$filetype="data";
$filename="$_get{data}";
}
elsif($_get{page})
{
$filetype="page";
$filename="$_get{page}";
}
else
{
$filetype="dir";
$filename="$_get{dir}";
}
}######################
else
{
$filename=$_get{$_get{filetype}};
}
#---------------------------- menü
$OPT=&optiondir();
%CMD_CONTENT = (
'page' => sub {&HTX(@_)},
'data' => sub {&DBF(@_)},
'dir' => sub {&DIR(@_)},
);
%CMD_MENU = (
'page' => sub {&HTX_MENU(@_)},
'data' => sub {&DBF_MENU(@_)},
'dir' => sub {&DIR_MENU(@_)},
);
#--------------------------- html
out<