% if (@s) {

Existing Schemas

% foreach my $row (@rows) { % foreach my $s (@$row) { % } % }

<& 'href', text => $s, path => 'view_schema' . Alzabo::GUI::Mason::Config::mason_extension(), query => { schema => $s } &>

% }

Create a new schema

Schema name:

RDBMS:

Reverse engineer schema

Database name:

Username:

Password:

Host:

Port:

RDBMS:


<%init> my @s = sort { lc $a cmp lc $b } (Alzabo::Config::available_schemas()); my @rows; if ( @s > 10 ) { my @c1 = splice @s, 0, int( @s / 2 ); # first column should be larger if count is odd push @c1, shift @s if @s > @c1; my @c2 = @s; while (@c1) { push @rows, [ (shift @c1), (@c2 ? shift @c2 : '') ]; } } else { @rows = map { [ $_ ] } @s; }