457 lines
21 KiB
Perl
457 lines
21 KiB
Perl
package WebGUI::Operation::User;
|
|
|
|
#-------------------------------------------------------------------
|
|
# WebGUI is Copyright 2001-2002 Plain Black LLC.
|
|
#-------------------------------------------------------------------
|
|
# Please read the legal notices (docs/legal.txt) and the license
|
|
# (docs/license.txt) that came with this distribution before using
|
|
# this software.
|
|
#-------------------------------------------------------------------
|
|
# http://www.plainblack.com info@plainblack.com
|
|
#-------------------------------------------------------------------
|
|
|
|
use Digest::MD5 qw(md5_base64);
|
|
use Exporter;
|
|
use strict qw(vars subs);
|
|
use Tie::CPHash;
|
|
use Tie::IxHash;
|
|
use WebGUI::DateTime;
|
|
use WebGUI::HTMLForm;
|
|
use WebGUI::Icon;
|
|
use WebGUI::International;
|
|
use WebGUI::Operation::Shared;
|
|
use WebGUI::Paginator;
|
|
use WebGUI::Privilege;
|
|
use WebGUI::Session;
|
|
use WebGUI::SQL;
|
|
use WebGUI::URL;
|
|
use WebGUI::User;
|
|
use WebGUI::Utility;
|
|
|
|
our @ISA = qw(Exporter);
|
|
our @EXPORT = qw(&www_editUserKarma &www_editUserKarmaSave &www_editUserGroup &www_editUserProfile &www_editUserProfileSave &www_addUserToGroupSave &www_deleteGrouping &www_editGrouping &www_editGroupingSave &www_becomeUser &www_addUser &www_addUserSave &www_deleteUser &www_deleteUserConfirm &www_editUser &www_editUserSave &www_listUsers);
|
|
|
|
|
|
#-------------------------------------------------------------------
|
|
sub _submenu {
|
|
my ($output, %menu);
|
|
tie %menu, 'Tie::IxHash';
|
|
$menu{WebGUI::URL::page("op=addUser")} = WebGUI::International::get(169);
|
|
unless ($session{form}{op} eq "listUsers"
|
|
|| $session{form}{op} eq "addUser"
|
|
|| $session{form}{op} eq "deleteUserConfirm") {
|
|
$menu{WebGUI::URL::page("op=editUser&uid=".$session{form}{uid})} = WebGUI::International::get(457);
|
|
$menu{WebGUI::URL::page("op=editUserGroup&uid=".$session{form}{uid})} = WebGUI::International::get(458);
|
|
$menu{WebGUI::URL::page("op=editUserProfile&uid=".$session{form}{uid})} = WebGUI::International::get(459);
|
|
$menu{WebGUI::URL::page('op=viewProfile&uid='.$session{form}{uid})} = WebGUI::International::get(752);
|
|
$menu{WebGUI::URL::page('op=becomeUser&uid='.$session{form}{uid})} = WebGUI::International::get(751);
|
|
$menu{WebGUI::URL::page('op=deleteUser&uid='.$session{form}{uid})} = WebGUI::International::get(750);
|
|
if ($session{setting}{useKarma}) {
|
|
$menu{WebGUI::URL::page("op=editUserKarma&uid=".$session{form}{uid})} = WebGUI::International::get(555);
|
|
}
|
|
}
|
|
$menu{WebGUI::URL::page("op=listUsers")} = WebGUI::International::get(456);
|
|
return menuWrapper($_[0],\%menu);
|
|
}
|
|
|
|
#-------------------------------------------------------------------
|
|
sub www_addUser {
|
|
my (@array, $output, $groups, %hash, $f, $cmd, $html, %status);
|
|
tie %hash, 'Tie::IxHash';
|
|
return WebGUI::Privilege::adminOnly() unless (WebGUI::Privilege::isInGroup(3));
|
|
$output .= helpIcon(5);
|
|
$output .= '<h1>'.WebGUI::International::get(163).'</h1>';
|
|
$f = WebGUI::HTMLForm->new;
|
|
if ($session{form}{op} eq "addUserSave") {
|
|
$output .= '<ul><li>'.WebGUI::International::get(77).' '.$session{form}{username}.'Too or '.$session{form}{username}.'02</ul>';
|
|
}
|
|
$f->hidden("op","addUserSave");
|
|
$f->text("username",WebGUI::International::get(50),$session{form}{username});
|
|
$f->email("email",WebGUI::International::get(56));
|
|
|
|
tie %status, 'Tie::IxHash';
|
|
%status = (
|
|
Active =>WebGUI::International::get(817),
|
|
Deactivated =>WebGUI::International::get(818)
|
|
);
|
|
$f->select("status",\%status,WebGUI::International::get(816), ['Active']);
|
|
push(@array,1); #visitors
|
|
push(@array,2); #registered users
|
|
push(@array,7); #everyone
|
|
$groups = WebGUI::SQL->buildHashRef("select groupId,groupName from groups where groupId not in (".join(",",@array).") order by groupName");
|
|
$f->select("groups",$groups,WebGUI::International::get(605),[],5,1);
|
|
%hash = map {$_ => $_} @{$session{authentication}{available}};
|
|
$f->select("authMethod",\%hash,WebGUI::International::get(164),[$session{setting}{authMethod}]);
|
|
|
|
foreach (@{$session{authentication}{available}}) {
|
|
$cmd = "WebGUI::Authentication::".$_."::formAddUser";
|
|
$html = eval{&$cmd};
|
|
WebGUI::ErrorHandler::fatalError("Unable to load method formAddUser on Authentication module: $_. ".$@) if($@);
|
|
$f->raw($html);
|
|
}
|
|
$f->submit;
|
|
$output .= $f->print;
|
|
return _submenu($output);
|
|
}
|
|
|
|
#-------------------------------------------------------------------
|
|
sub www_addUserSave {
|
|
my (@groups, $uid, $u, $gid, $encryptedPassword, $expireAfter, $cmd);
|
|
return WebGUI::Privilege::adminOnly() unless (WebGUI::Privilege::isInGroup(3));
|
|
($uid) = WebGUI::SQL->quickArray("select userId from users where username=".quote($session{form}{username}));
|
|
unless ($uid) {
|
|
$encryptedPassword = Digest::MD5::md5_base64($session{form}{identifier});
|
|
$u = WebGUI::User->new("new");
|
|
$session{form}{uid}=$u->userId;
|
|
$u->username($session{form}{username});
|
|
|
|
foreach (@{$session{authentication}{available}}) {
|
|
$cmd = "WebGUI::Authentication::".$_."::saveAddUser";
|
|
eval{&$cmd};
|
|
WebGUI::ErrorHandler::fatalError("Unable to load method saveAddUser on Authentication module: $_. ".$@) if($@);
|
|
}
|
|
|
|
$u->status($session{form}{status});
|
|
$u->authMethod($session{form}{authMethod});
|
|
@groups = $session{cgi}->param('groups');
|
|
$u->addToGroups(\@groups);
|
|
$u->profileField("email",$session{form}{email});
|
|
return www_editUser();
|
|
} else {
|
|
$session{form}{op} = "addUser";
|
|
return www_addUser();
|
|
}
|
|
}
|
|
|
|
#-------------------------------------------------------------------
|
|
sub www_addUserToGroupSave {
|
|
return WebGUI::Privilege::adminOnly() unless (WebGUI::Privilege::isInGroup(3));
|
|
my (@groups, $u);
|
|
@groups = $session{cgi}->param('groups');
|
|
$u = WebGUI::User->new($session{form}{uid});
|
|
$u->addToGroups(\@groups);
|
|
return www_editUserGroup();
|
|
}
|
|
|
|
#-------------------------------------------------------------------
|
|
sub www_becomeUser {
|
|
return WebGUI::Privilege::adminOnly() unless (WebGUI::Privilege::isInGroup(3));
|
|
WebGUI::Session::end($session{var}{sessionId});
|
|
WebGUI::Session::start($session{form}{uid});
|
|
return "";
|
|
}
|
|
|
|
#-------------------------------------------------------------------
|
|
sub www_deleteGrouping {
|
|
my ($u);
|
|
return WebGUI::Privilege::adminOnly() unless (WebGUI::Privilege::isInGroup(3));
|
|
if (($session{user}{userId} == $session{form}{uid} || $session{form}{uid} == 3) && $session{form}{gid} == 3) {
|
|
return WebGUI::Privilege::vitalComponent();
|
|
} else {
|
|
$u = WebGUI::User->new($session{form}{uid});
|
|
$u->deleteFromGroups([$session{form}{gid}]);
|
|
return www_editUserGroup();
|
|
}
|
|
}
|
|
|
|
#-------------------------------------------------------------------
|
|
sub www_deleteUser {
|
|
my ($output);
|
|
return WebGUI::Privilege::adminOnly() unless (WebGUI::Privilege::isInGroup(3));
|
|
if ($session{form}{uid} < 26) {
|
|
return WebGUI::Privilege::vitalComponent();
|
|
} else {
|
|
$output .= helpIcon(7);
|
|
$output .= '<h1>'.WebGUI::International::get(42).'</h1>';
|
|
$output .= WebGUI::International::get(167).'<p>';
|
|
$output .= '<div align="center"><a href="'.WebGUI::URL::page('op=deleteUserConfirm&uid='.$session{form}{uid}).
|
|
'">'.WebGUI::International::get(44).'</a>';
|
|
$output .= ' <a href="'.WebGUI::URL::page('op=listUsers').'">'.
|
|
WebGUI::International::get(45).'</a></div>';
|
|
return _submenu($output);
|
|
}
|
|
}
|
|
|
|
#-------------------------------------------------------------------
|
|
sub www_deleteUserConfirm {
|
|
return WebGUI::Privilege::adminOnly() unless (WebGUI::Privilege::isInGroup(3));
|
|
my ($u);
|
|
if ($session{form}{uid} < 26) {
|
|
return WebGUI::Privilege::vitalComponent();
|
|
} else {
|
|
$u = WebGUI::User->new($session{form}{uid});
|
|
$u->delete;
|
|
return www_listUsers();
|
|
}
|
|
}
|
|
|
|
#-------------------------------------------------------------------
|
|
sub www_editGrouping {
|
|
return WebGUI::Privilege::adminOnly() unless (WebGUI::Privilege::isInGroup(3));
|
|
my ($output, $username, $group, $expireDate, $f);
|
|
$output .= '<h1>'.WebGUI::International::get(370).'</h1>';
|
|
$f = WebGUI::HTMLForm->new;
|
|
$f->hidden("op","editGroupingSave");
|
|
$f->hidden("uid",$session{form}{uid});
|
|
$f->hidden("gid",$session{form}{gid});
|
|
($username) = WebGUI::SQL->quickArray("select username from users where userId=$session{form}{uid}");
|
|
($group) = WebGUI::SQL->quickArray("select groupName from groups where groupId=$session{form}{gid}");
|
|
($expireDate) = WebGUI::SQL->quickArray("select expireDate from groupings where groupId=$session{form}{gid} and userId=$session{form}{uid}");
|
|
$f->readOnly($username,WebGUI::International::get(50));
|
|
$f->readOnly($group,WebGUI::International::get(84));
|
|
$f->date("expireDate",WebGUI::International::get(369),$expireDate);
|
|
$f->submit;
|
|
$output .= $f->print;
|
|
return _submenu($output);
|
|
}
|
|
|
|
#-------------------------------------------------------------------
|
|
sub www_editGroupingSave {
|
|
return WebGUI::Privilege::adminOnly() unless (WebGUI::Privilege::isInGroup(3));
|
|
WebGUI::SQL->write("update groupings set expireDate=".setToEpoch($session{form}{expireDate})." where groupId=$session{form}{gid} and userId=$session{form}{uid}");
|
|
return www_editUserGroup();
|
|
}
|
|
|
|
#-------------------------------------------------------------------
|
|
sub www_editUser {
|
|
return WebGUI::Privilege::adminOnly() unless (WebGUI::Privilege::isInGroup(3));
|
|
my ($output, $f, $u, $cmd, $html, %hash, %status);
|
|
$u = WebGUI::User->new($session{form}{uid});
|
|
$output .= helpIcon(5);
|
|
$output .= '<h1>'.WebGUI::International::get(168).'</h1>';
|
|
$f = WebGUI::HTMLForm->new;
|
|
$f->hidden("op","editUserSave");
|
|
$f->hidden("uid",$session{form}{uid});
|
|
$f->readOnly($session{form}{uid},WebGUI::International::get(378));
|
|
$f->readOnly($u->karma,WebGUI::International::get(537)) if ($session{setting}{useKarma});
|
|
$f->readOnly(epochToHuman($u->dateCreated,"%z"),WebGUI::International::get(453));
|
|
$f->readOnly(epochToHuman($u->lastUpdated,"%z"),WebGUI::International::get(454));
|
|
$f->text("username",WebGUI::International::get(50),$u->username);
|
|
|
|
tie %status, 'Tie::IxHash';
|
|
%status = (
|
|
Active =>WebGUI::International::get(817),
|
|
Deactivated =>WebGUI::International::get(818),
|
|
Selfdestructed =>WebGUI::International::get(819)
|
|
);
|
|
$f->select("status",\%status,WebGUI::International::get(816),[$u->status]);
|
|
|
|
%hash = map {$_ => $_} @{$session{authentication}{available}};
|
|
$f->select("authMethod",\%hash,WebGUI::International::get(164),[$session{setting}{authMethod}]);
|
|
|
|
foreach (@{$session{authentication}{available}}) {
|
|
$cmd = "WebGUI::Authentication::".$_."::formEditUser";
|
|
$html = eval{&$cmd};
|
|
WebGUI::ErrorHandler::fatalError("Unable to load method formEditUser on Authentication module: $_. ".$@) if($@);
|
|
$f->raw($html);
|
|
}
|
|
|
|
$f->submit;
|
|
$output .= $f->print;
|
|
return _submenu($output);
|
|
}
|
|
|
|
#-------------------------------------------------------------------
|
|
sub www_editUserSave {
|
|
return WebGUI::Privilege::adminOnly() unless (WebGUI::Privilege::isInGroup(3));
|
|
my ($error, $uid, $u, $encryptedPassword, $passwordStatement, $cmd);
|
|
($uid) = WebGUI::SQL->quickArray("select userId from users where username=".quote($session{form}{username}));
|
|
if ($uid == $session{form}{uid} || $uid < 1) {
|
|
$u = WebGUI::User->new($session{form}{uid});
|
|
$u->username($session{form}{username});
|
|
$u->authMethod($session{form}{authMethod});
|
|
$u->status($session{form}{status});
|
|
foreach (@{$session{authentication}{available}}) {
|
|
$cmd = "WebGUI::Authentication::".$_."::saveEditUser";
|
|
eval{&$cmd};
|
|
WebGUI::ErrorHandler::fatalError("Unable to load method saveEditUser on Authentication module: $_. ".$@) if($@);
|
|
}
|
|
} else {
|
|
$error = '<ul><li>'.WebGUI::International::get(77).' '.$session{form}{username}.'Too or '.$session{form}{username}.'02</ul>';
|
|
}
|
|
return $error.www_editUser();
|
|
}
|
|
|
|
#-------------------------------------------------------------------
|
|
sub www_editUserGroup {
|
|
return WebGUI::Privilege::adminOnly() unless (WebGUI::Privilege::isInGroup(3));
|
|
my ($output, $f, $groups, @array, $sth, %hash);
|
|
tie %hash, 'Tie::CPHash';
|
|
$output .= '<h1>'.WebGUI::International::get(372).'</h1>';
|
|
$f = WebGUI::HTMLForm->new;
|
|
$f->hidden("op","addUserToGroupSave");
|
|
$f->hidden("uid",$session{form}{uid});
|
|
@array = WebGUI::SQL->buildArray("select groupId from groupings where userId=$session{form}{uid}");
|
|
push(@array,1); #visitors
|
|
push(@array,2); #registered users
|
|
push(@array,7); #everyone
|
|
$groups = WebGUI::SQL->buildHashRef("select groupId,groupName from groups where groupId not in (".join(",",@array).") order by groupName");
|
|
$f->select("groups",$groups,WebGUI::International::get(605),[],5,1);
|
|
$f->submit;
|
|
$output .= $f->print;
|
|
$output .= '<p><table><tr><td class="tableHeader">'.WebGUI::International::get(89).
|
|
'</td><td class="tableHeader">'.WebGUI::International::get(84).
|
|
'</td><td class="tableHeader">'.WebGUI::International::get(369).'</td></tr>';
|
|
$sth = WebGUI::SQL->read("select groups.groupId,groups.groupName,groupings.expireDate
|
|
from groupings,groups where groupings.groupId=groups.groupId and
|
|
groupings.userId=$session{form}{uid} order by groups.groupName");
|
|
while (%hash = $sth->hash) {
|
|
$output .= '<tr><td>'
|
|
.deleteIcon('op=deleteGrouping&uid='.$session{form}{uid}.'&gid='.$hash{groupId})
|
|
.editIcon('op=editGrouping&uid='.$session{form}{uid}.'&gid='.$hash{groupId})
|
|
.'</td>';
|
|
$output .= '<td class="tableData">'.$hash{groupName}.'</td>';
|
|
$output .= '<td class="tableData">'.epochToHuman($hash{expireDate},"%z").'</td></tr>';
|
|
}
|
|
$sth->finish;
|
|
$output .= '</table>';
|
|
return _submenu($output);
|
|
}
|
|
|
|
#-------------------------------------------------------------------
|
|
sub www_editUserKarma {
|
|
return WebGUI::Privilege::adminOnly() unless (WebGUI::Privilege::isInGroup(3));
|
|
my ($output, $f, $a, %user, %data, $method, $values, $category, $label, $default, $previousCategory);
|
|
$output = helpIcon(36);
|
|
$output .= '<h1>'.WebGUI::International::get(558).'</h1>';
|
|
$f = WebGUI::HTMLForm->new;
|
|
$f->hidden("op","editUserKarmaSave");
|
|
$f->hidden("uid",$session{form}{uid});
|
|
$f->integer("amount",WebGUI::International::get(556));
|
|
$f->text("description",WebGUI::International::get(557));
|
|
$f->submit;
|
|
$output .= $f->print;
|
|
return _submenu($output);
|
|
}
|
|
|
|
#-------------------------------------------------------------------
|
|
sub www_editUserKarmaSave {
|
|
return WebGUI::Privilege::adminOnly() unless (WebGUI::Privilege::isInGroup(3));
|
|
my ($u);
|
|
$u = WebGUI::User->new($session{form}{uid});
|
|
$u->karma($session{form}{amount},$session{user}{username}." (".$session{user}{userId}.")",$session{form}{description});
|
|
return www_editUser();
|
|
}
|
|
|
|
#-------------------------------------------------------------------
|
|
sub www_editUserProfile {
|
|
return WebGUI::Privilege::adminOnly() unless (WebGUI::Privilege::isInGroup(3));
|
|
my ($output, $f, $a, %user, %data, $method, $values, $category, $label, $default, $previousCategory);
|
|
$output = helpIcon(32);
|
|
$output .= '<h1>'.WebGUI::International::get(455).'</h1>';
|
|
$f = WebGUI::HTMLForm->new;
|
|
$f->hidden("op","editUserProfileSave");
|
|
$f->hidden("uid",$session{form}{uid});
|
|
%user = WebGUI::SQL->buildHash("select fieldName,fieldData from userProfileData where userId=$session{form}{uid}");
|
|
$a = WebGUI::SQL->read("select * from userProfileField,userProfileCategory
|
|
where userProfileField.profileCategoryId=userProfileCategory.profileCategoryId
|
|
order by userProfileCategory.sequenceNumber,userProfileField.sequenceNumber");
|
|
while(%data = $a->hash) {
|
|
$category = eval $data{categoryName};
|
|
if ($category ne $previousCategory) {
|
|
$f->raw('<tr><td colspan="2" class="tableHeader">'.$category.'</td></tr>');
|
|
}
|
|
$values = eval $data{dataValues};
|
|
$method = $data{dataType};
|
|
$label = eval $data{fieldLabel};
|
|
if ($method eq "select") {
|
|
# note: this big if statement doesn't look elegant, but doing regular
|
|
# ORs caused problems with the array reference.
|
|
if ($session{form}{$data{fieldName}}) {
|
|
$default = [$session{form}{$data{fieldName}}];
|
|
} elsif ($user{$data{fieldName}} && (defined($values->{$user{$data{fieldName}}}))) {
|
|
$default = [$user{$data{fieldName}}];
|
|
} else {
|
|
$default = eval $data{dataDefault};
|
|
}
|
|
$f->select($data{fieldName},$values,$label,$default);
|
|
} else {
|
|
$default = $session{form}{$data{fieldName}} || $user{$data{fieldName}} || eval $data{dataDefault};
|
|
$f->$method($data{fieldName},$label,$default);
|
|
}
|
|
$previousCategory = $category;
|
|
}
|
|
$a->finish;
|
|
$f->submit;
|
|
$output .= $f->print;
|
|
return _submenu($output);
|
|
}
|
|
|
|
#-------------------------------------------------------------------
|
|
sub www_editUserProfileSave {
|
|
return WebGUI::Privilege::adminOnly() unless (WebGUI::Privilege::isInGroup(3));
|
|
my ($a, %field, $u);
|
|
tie %field, 'Tie::CPHash';
|
|
$u = WebGUI::User->new($session{form}{uid});
|
|
$a = WebGUI::SQL->read("select * from userProfileField");
|
|
while (%field = $a->hash) {
|
|
if ($field{fieldType} eq "date") {
|
|
$session{form}{$field{fieldName}} = setToEpoch($session{form}{$field{fieldName}});
|
|
}
|
|
$u->profileField($field{fieldName},$session{form}{$field{fieldName}}) if (exists $session{form}{$field{fieldName}});
|
|
}
|
|
$a->finish;
|
|
return www_editUserProfile();
|
|
}
|
|
|
|
#-------------------------------------------------------------------
|
|
sub www_listUsers {
|
|
return WebGUI::Privilege::adminOnly() unless (WebGUI::Privilege::isInGroup(3));
|
|
WebGUI::Session::setScratch("userSearchKeyword",$session{form}{keyword});
|
|
WebGUI::Session::setScratch("userSearchStatus",$session{form}{status});
|
|
my ($output, $data, $f, $rows, $p, $search, %status, $selectedStatus);
|
|
$output = helpIcon(8);
|
|
$output .= '<h1>'.WebGUI::International::get(149).'</h1>';
|
|
$output .= '<div align="center">';
|
|
tie %status, 'Tie::IxHash';
|
|
%status = (
|
|
"" => WebGUI::International::get(821),
|
|
Active => WebGUI::International::get(817),
|
|
Deactivated => WebGUI::International::get(818),
|
|
Selfdestructed => WebGUI::International::get(819)
|
|
);
|
|
$f = WebGUI::HTMLForm->new(1);
|
|
$f->hidden("op","listUsers");
|
|
$f->text("keyword",'',$session{scratch}{userSearchKeyword});
|
|
$f->select(
|
|
-name => "status",
|
|
-value => [$session{form}{status} || "status like '%'"],
|
|
-options=> \%status
|
|
);
|
|
$f->submit(WebGUI::International::get(170));
|
|
$output .= $f->print;
|
|
$output .= '</div>';
|
|
$output .= '<table border=1 cellpadding=5 cellspacing=0 align="center">';
|
|
$output .= '<tr>
|
|
<td class="tableHeader">'.WebGUI::International::get(816).'</td>
|
|
<td class="tableHeader">'.WebGUI::International::get(50).'</td>
|
|
<td class="tableHeader">'.WebGUI::International::get(453).'</td>
|
|
<td class="tableHeader">'.WebGUI::International::get(454).'</td></tr>';
|
|
if ($session{scratch}{userSearchStatus}) {
|
|
$selectedStatus = "status='".$session{scratch}{userSearchStatus}."'";
|
|
} else {
|
|
$selectedStatus = "status like '%'";
|
|
}
|
|
if ($session{scratch}{userSearchKeyword} ne "") {
|
|
$search = " and users.username like ".quote("%".$session{scratch}{userSearchKeyword}."%");
|
|
}
|
|
$p = WebGUI::Paginator->new(WebGUI::URL::page("op=listUsers"));
|
|
$p->setDataByQuery("select userId,username,status,dateCreated,lastUpdated from users
|
|
where $selectedStatus $search order by users.username");
|
|
$rows = $p->getPageData;
|
|
foreach $data (@$rows) {
|
|
$output .= '<tr class="tableData">';
|
|
$output .= '<td>'.$status{$data->{status}}.'</td>';
|
|
$output .= '<td><a href="'.WebGUI::URL::page('op=editUser&uid='.$data->{userId})
|
|
.'">'.$data->{username}.'</a></td>';
|
|
$output .= '<td class="tableData">'.epochToHuman($data->{dateCreated},"%z").'</td>';
|
|
$output .= '<td class="tableData">'.epochToHuman($data->{lastUpdated},"%z").'</td>';
|
|
$output .= '</tr>';
|
|
}
|
|
$output .= '</table>';
|
|
$output .= $p->getBarTraditional;
|
|
return _submenu($output);
|
|
}
|
|
|
|
1;
|
|
|