#!/usr/bin/perl

#use utf8;
use strict;
use POSIX qw(
    ceil
    floor
);
use CGI;

use Opals::Context;
use Opals::Constant;


 
use Opals::Template qw(
    tmpl_read
    tmpl_write
);

use Opals::Locale qw(
    loc_getMsgFile
    loc_write
);
use Opals::Tb_Transactions qw(
    trans_tb_getBalance
);
use Opals::Tb_Circulation qw(

    circ_getUserListLoan

    
);

use Time::localtime;

my $debugStr="";
my $dbh = Opals::Context->dbh();
END { $dbh->disconnect(); }

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

my $textbookMgmnt = Opals::Context->preference('textbookMgmnt');
my $equipmentMgmnt= Opals::Context->preference('equipmentMgmnt');
my $libType = Opals::Context->preference('libraryType') || 'k-12';

my ($permission, $cookie, $template) = tmpl_read(
        {
            dbh             => $dbh,
            cgi             => $cgi,
            tmplFile        => 'user/grpedit.tmpl',
            reqPermission   => 'user_edit',
        }
);
   #Thu, Jan 07, 2010 @ 13:50:35 EST
   push @$cookie,$cgi->cookie(-name => 'userGrpEditSrchParam', -value => "{}");
my $msgValMap ={};
my $msgMap            =loc_getMsgFile('user/userInfo.msg',$msgValMap);
loc_write($template,$msgMap);
 $template->param(hlpUrl        => Opals::Constant->getHlpUrl('grpedit'),
                 libType        =>$libType ,
                 equipmentMgmnt =>$equipmentMgmnt,
                 textbookMgmnt  =>$textbookMgmnt);

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

#-------------------------------------------------------------------------------------------------
__END_OF_FILE:

