#!/usr/bin/perl

#use utf8;
use strict;
use CGI;

use Opals::Context;

use Opals::Template qw(
    tmpl_read
    tmpl_write
);
my $dbh = Opals::Context->dbh();
END { $dbh->disconnect(); }

my $cgi = CGI->new;
my $input = $cgi->Vars();

my $id = $input->{'uId'};

my ($permission, $cookie, $template) = tmpl_read(
    {
        dbh             => $dbh,
        cgi             => $cgi,
        tmplFile        => 'svc/kTest.tmpl',
        #tmplLocalVars   => 1,
        #reqPermission   => 'reqPermission1|reqPermission2|etc.',
        #op              => $op,
    }
);

$template->param(
    uid => $id,
);

tmpl_write($dbh, $cgi, $cookie, $template);


#============================================================
