function Fetch() { $res = parent::Fetch(); if ($res) { $res["DISPLAY_VALUE"] = CControllerCounter::FormatValue($res["VALUE"], $res["COUNTER_FORMAT"]); } return $res; }
} elseif ($f_DISCONNECTED == 'I') { $str = GetMessage("CTRL_MEMB_ADMIN_DISCON"); } else { $str = GetMessage("admin_lib_list_no"); } $row->AddViewField("DISCONNECTED", $str); $row->AddViewField("URL", '<a href="' . $f_URL . '">' . $f_URL . '</a>'); $row->AddInputField("EMAIL", array("size" => "35")); $row->AddInputField("CONTACT_PERSON", array("size" => "35")); if ($f_EMAIL != '') { $row->AddViewField("EMAIL", '<a href="mailto:' . $f_EMAIL . '">' . $f_EMAIL . '</a>'); } $row->AddSelectField("CONTROLLER_GROUP_ID", $arGroups); foreach ($arCounters as $key => $arCounter) { if (isset($arRes[$key])) { $html = CControllerCounter::FormatValue($arRes[$key], $arCounter["COUNTER_FORMAT"]); if ($arCounter["COUNTER_FORMAT"] == "F") { $html = str_replace(" ", " ", $html); } $row->AddViewField($key, $html); } } $arActions = array(array("ICON" => "edit", "DEFAULT" => "Y", "TEXT" => GetMessage("CTRL_MEMB_ADMIN_MENU_EDIT"), "ACTION" => $lAdmin->ActionRedirect("controller_member_edit.php?ID=" . $f_ID . "&lang=" . LANG)), array("SEPARATOR" => true)); if ($f_DISCONNECTED == 'N') { $arActions[] = array("ICON" => "other", "TEXT" => GetMessage("CTRL_MEMB_ADMIN_MENU_GOADMIN"), "ACTION" => $lAdmin->ActionRedirect("controller_goto.php?member=" . $f_ID . "&lang=" . LANG)); if ($f_SHARED_KERNEL != 'Y') { $arActions[] = array("ICON" => "other", "TEXT" => GetMessage("CTRL_MEMB_ADMIN_MENU_UPD"), "ACTION" => $lAdmin->ActionDoGroup($f_ID, "site_update")); } $arActions[] = array("ICON" => "other", "TEXT" => GetMessage("CTRL_MEMB_ADMIN_MENU_UPDSETT"), "ACTION" => $lAdmin->ActionDoGroup($f_ID, "update_settings")); $arActions[] = array("ICON" => "other", "TEXT" => GetMessage("CTRL_MEMB_ADMIN_MENU_UPDCNT"), "ACTION" => $lAdmin->ActionDoGroup($f_ID, "update_counters")); $arActions[] = array("ICON" => "other", "TEXT" => GetMessage("CTRL_MEMB_ADMIN_MENU_RUNPHP"), "ACTION" => $lAdmin->ActionRedirect("controller_run_command.php?controller_member_id=" . $f_ID . "&lang=" . LANG));