22 include_once (
"Class.SubForm.php");
23 include_once (
"Class.Domain.php");
24 include_once (
"Class.MailAccount.php");
25 include_once (
"Class.User.php");
32 if (
$id == 0)
$action->exitError(_(
"the user identification is unknow"));
35 $paction =
GetHttpVars(
"paction",
"PARAM_CUACCOUNT");
41 $tpasswd[0][
"passwd"] =
"";
43 $tfirstname = array();
44 $tfirstname[0][
"firstname"] =
"";
51 $action->lay->Set(
"expdate",
$user->expires > 0 ? strftime(
"%d/%m/%Y %X", intval(
$user->expires)) :
"no date limit");
54 $action->lay->Set(
"domain", $dom->name);
57 $ugroup = $ug->groups;
62 while (list($k, $v) = each($ugroup)) {
64 $tab[$k][
"groupid"] = $v;
65 $dom =
new Domain(
$action->GetParam(
"CORE_DB") , $gu->iddomain);
66 $tab[$k][
"groupname"] =
"{$gu->login}@{$dom->name}";
69 $action->lay->SetBlockData(
"VIEWGROUP", $tab);
71 $action->lay->Set(
"APP", $papp);
72 $action->lay->Set(
"ACTION", $paction);
73 $action->lay->Set(
"ARGS", $pargs);
76 $form->SetParam(
"firstname");
77 $form->SetParam(
"lastname");
78 $form->SetParam(
"passwd");
79 $form->SetParam(
"id");
80 $form->SetParam(
"domainid",
"",
"sel");
81 $action->parent->AddJsCode($form->GetSubJs());
82 $control =
$action->GetLayoutFile(
"user_control.js");
83 $lay =
new Layout($control);
84 $action->parent->AddJsCode($lay->gen());