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);
69 if (!$status_arr[
"db"][
"status"])
72 "<a href=\"setup.php?cmd=db&client_id=".$key.
"&back=clientlist\">".
73 $status_arr[
"db"][
"comment"].
"</a>";
75 elseif (!$status_arr[
"finish"][
"status"])
77 $status = $lng->txt(
"setup_not_finished");
81 $status =
"<font color=\"green\"><strong>OK</strong></font>";
84 if ($status_arr[
"access"][
"status"])
93 if ($key == $this->setup->default_client)
95 $default =
" checked=\"checked\"";
102 if ($status_arr[
"finish"][
"status"] and $status_arr[
"access"][
"status"])
104 $login =
"<a href=\"../login.php?client_id=".$key.
"\">Login</a>";
111 $access_html =
"<a href=\"setup.php?cmd=changeaccess&client_id=".$key.
"&back=clientlist\">".$this->lng->txt($access).
"</a>";
113 $client_name = (
$client->getName()) ?
$client->getName() :
"<".$lng->txt(
"no_client_name").
">";
117 "default" =>
"<input type=\"radio\" name=\"form[default]\" value=\"".$key.
"\"".$default.
"/>",
118 "name" => $client_name,
119 "desc" =>
$client->getDescription(),
122 "details" =>
"<a href=\"setup.php?cmd=view&client_id=".$key.
"\">Details</a>",
124 "access_html" => $access_html
138 $this->tpl->setVariable(
"DEF_RADIO", $a_set[
"default"]);
139 $this->tpl->setVariable(
"NAME", $a_set[
"name"]);
140 $this->tpl->setVariable(
"DESC", $a_set[
"desc"]);
141 $this->tpl->setVariable(
"ID", $a_set[
"id"]);
142 $this->tpl->setVariable(
"LOGIN", $a_set[
"login"]);
143 $this->tpl->setVariable(
"DETAILS", $a_set[
"details"]);
144 $this->tpl->setVariable(
"STATUS", $a_set[
"status"]);
145 $this->tpl->setVariable(
"ACCESS", $a_set[
"access_html"]);