19 include_once (
"Class.SubForm.php");
20 include_once (
"Class.Application.php");
31 $action->lay->Set(
"short_name",
"");
32 $action->lay->Set(
"description",
"");
33 $action->lay->Set(
"passwd",
"");
37 if (
$action->HasPermission(
"ADMIN")) {
39 }
else if (
$action->HasPermission(
"DOMAIN_MASTER")) {
40 $seldom =
$action->AppCour->iddomain;
42 $action->info(
"Not Allowed Access Attempt");
47 $action->lay->Set(
"name", $AppCour->name);
48 $action->lay->Set(
"short_name", $AppCour->short_name);
49 $action->lay->Set(
"description", $AppCour->description);
50 $action->lay->Set(
"passwd",
"");
55 $action->lay->Set(
"access_free", $AppCour->access_free);
58 if ($AppCour->ssl ==
'Y') {
59 $tab[0][
"selected"] =
"selected";
60 $tab[1][
"selected"] =
"";
62 $tab[0][
"selected"] =
"";
63 $tab[1][
"selected"] =
"selected";
68 $action->lay->SetBlockData(
"SELECTSSL", $tab);
72 if ($AppCour->available ==
'Y') {
73 $tab[0][
"selected"] =
"selected";
74 $tab[1][
"selected"] =
"";
76 $tab[0][
"selected"] =
"";
77 $tab[1][
"selected"] =
"selected";
79 $tab[0][
"available"] =
"Y";
80 $tab[1][
"available"] =
"N";
82 $action->lay->SetBlockData(
"SELECTAVAILABLE", $tab);
86 if ($AppCour->displayable ==
'Y') {
87 $tab[0][
"selected"] =
"selected";
88 $tab[1][
"selected"] =
"";
90 $tab[0][
"selected"] =
"";
91 $tab[1][
"selected"] =
"selected";
93 $tab[0][
"displayable"] =
"Y";
94 $tab[1][
"displayable"] =
"N";
96 $action->lay->SetBlockData(
"SELECTDISPLAYABLE", $tab);
99 $form->SetParam(
"name");
100 $form->SetParam(
"short_name");
101 $form->SetParam(
"description");
102 $form->SetParam(
"available",
"",
"sel");
103 $form->SetParam(
"displayable",
"",
"sel");
104 $form->SetParam(
"access_free",
"",
"sel");
105 $form->SetParam(
"id");
106 $action->parent->AddJsCode($form->GetSubJs());
107 $control =
$action->GetLayoutFile(
"app_control.js");
108 $lay =
new Layout($control);
109 $action->parent->AddJsCode($lay->gen());