[- use File::Basename ; use Data::Dumper ; $DBIx::Recordset::Debug = 3; $maxrow = 3; $r = shift ; -]
[$ if $r -> {edit} $][= edit1 =] [$ else $][= add1 =] [$ endif $] [+ $r -> {category_set}{category} +]
[$ if !$r->{error} $]
[= add2a =]
[= add2b =]

[$ if $r -> {category_set}{add_info}$] [+ $r -> {category_set}{add_info} +]

[$ endif $] [$if $r -> {user_admin} $]
[= state =]: {item_set}{state}) $] CHECKED[$ endif $]>[= display =]
{item_set}{state} $] CHECKED[$ endif $]>[= hide =]
[$endif$] [- $ct = $r->{category_texts}; $cy = $r->{category_types}; $cf = $r->{category_fields}; -] [$while $rec = ${$r -> {language_set}} -> Next $] [$endwhile$]
[+ $rec -> {name} +]
[$ syntax EmbperlBlocks $] [$ foreach $type (@$cf) $] [$ if $txt = $ct->{$type . '_text'} $] [$ syntax Embperl $] [# #] [$ if $cy->{$type} =~ /textarea/ $] [$ elsif $cy->{$type} =~ /pulldown/ $] [$ else $] [$ endif $] [$ syntax EmbperlBlocks $] [$ endif $] [$ endforeach $]
[+ $txt +] / [+ $type +] / [+ $i++ +][+ $txt +]:  [+ $txt +]:  [- ($table = $type) =~ s/_id$//; $poss = $r->app->get_titles($r,$table); -] [# [+ $type +] / [+ $table +] / [+ $r->{category_title_type} +]
[+ Dumper $poss +]
#]
[+ $txt +]: 
[$ syntax Embperl $]


[$ if $r -> {edit} $]           [$ else $]      [$endif$] [$ endif $] [#
[+
 Data::Dumper->Dump(
		    [
		     {%fdat},
		     $r->{edit},
		     $r->{category_set}{add_info},
		     $r->{action_prefix},
		     $r->{category_set}{category},
		     $r->{user_admin},
		     [keys %$r],
		     $r->{category_fields},
		     $r->{category_texts},
$state,
$item_set,
#		     ${$r->{category_set}},
#		     ${$r->{language_set}},
#		     $r->{item_set},
		     ],[qw[
			   fdat
			   edit
			   add_info
			   action_prefix
			   category
			   user_admin
			   r_keys
			   category_fields
			   category_texts
		            state
                	   category_set
			   language_set
			   item_set
			   ]
			]
		    )
+]
#]