4 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
25 $this->
setTitle($lng->txt(
"clients"));
27 $this->setup = $a_setup;
29 $this->
addColumn($this->lng->txt(
""),
"",
"1");
30 $this->
addColumn($this->lng->txt(
"name"),
"");
31 $this->
addColumn($this->lng->txt(
"id"),
"");
32 $this->
addColumn($this->lng->txt(
"login"),
"");
33 $this->
addColumn($this->lng->txt(
"details"),
"");
34 $this->
addColumn($this->lng->txt(
"status"),
"");
35 $this->
addColumn($this->lng->txt(
"access"),
"");
48 $this->
addMultiCommand(
"changedefault", $lng->txt(
"set_default_client"));
62 $clientlist =
new ilClientList($this->setup->db_connections);
63 $list = $clientlist->getClients();
65 foreach ($list as $key =>
$client)
68 $status_arr = $this->setup->getStatus(
$client);
70 if (!$status_arr[
"db"][
"status"])
73 "<a href=\"setup.php?cmd=db&client_id=".$key.
"&back=clientlist\">".
74 $status_arr[
"db"][
"comment"].
"</a>";
76 elseif (!$status_arr[
"finish"][
"status"])
78 $status = $lng->txt(
"setup_not_finished");
82 $status =
"<font color=\"green\"><strong>OK</strong></font>";
85 if ($status_arr[
"access"][
"status"])
94 if ($key == $this->setup->default_client)
96 $default =
" checked=\"checked\"";
103 if ($status_arr[
"finish"][
"status"] and $status_arr[
"access"][
"status"])
105 $login =
"<a href=\"../login.php?client_id=".$key.
"\">Login</a>";
112 $access_html =
"<a href=\"setup.php?cmd=changeaccess&client_id=".$key.
"&back=clientlist\">".$this->lng->txt($access).
"</a>";
114 $client_name = (
$client->getName()) ?
$client->getName() :
"<".$lng->txt(
"no_client_name").
">";
118 "default" =>
"<input type=\"radio\" name=\"form[default]\" value=\"".$key.
"\"".$default.
"/>",
119 "name" => $client_name,
120 "desc" =>
$client->getDescription(),
123 "details" =>
"<a href=\"setup.php?cmd=view&client_id=".$key.
"\">Details</a>",
125 "access_html" => $access_html
139 $this->tpl->setVariable(
"DEF_RADIO", $a_set[
"default"]);
140 $this->tpl->setVariable(
"NAME", $a_set[
"name"]);
141 $this->tpl->setVariable(
"DESC", $a_set[
"desc"]);
142 $this->tpl->setVariable(
"ID", $a_set[
"id"]);
143 $this->tpl->setVariable(
"LOGIN", $a_set[
"login"]);
144 $this->tpl->setVariable(
"DETAILS", $a_set[
"details"]);
145 $this->tpl->setVariable(
"STATUS", $a_set[
"status"]);
146 $this->tpl->setVariable(
"ACCESS", $a_set[
"access_html"]);