$GUI->ERR("Встреча не найдена"); page_reloadSec(); } $kln = kln_get($vis["client_id"]); $ypos = 0; $frm = $GUI->Form("Редактирование встречи №" . $vis["id"], "600", "0"); $frm->OnExecute = "editvisit_exec"; $h = $frm->Hidden($vis["id"]); $h->linkName = "vid"; $frm->Label("Клиент: <b>" . $kln["fio"] . "</b>", 10, $ypos += 10); $b = $frm->Button("Инфо", 520, $ypos, 70); $b->Event = 'window.open("?section=kln&subsection=2&edit=' . $kln["id"] . '");'; $ord = false; if ($vis["order_id"]) { $ord = Order::find($vis["order_id"]); $frm->Label("Заказ: <b>" . $ord["id"] . ". " . utils_crop_text($ord["subject"], 110) . "</b>", 10, $ypos += 30); $b = $frm->Button("Инфо", 520, $ypos, 70); $b->Event = 'window.open("?section=ord&subsection=2&p=1&order=' . $ord["id"] . '");'; } if ($vis["filial_id"] > 0) { // филиал $s = "филиал '" . $data_filials[$vis["filial_id"]]["name"] . "'"; } else { // курьер $s = "с курьером"; } $frm->Label("Место проведения: <b>" . $s . "</b>", 10, $ypos += 30); $frm->Label("Проводит: <b>" . sotr_getFullName($vis["user_id"]) . "</b>", 10, $ypos += 30); $frm->VLine(10, $ypos += 30, 580); $frm->Label("Цель встречи:", 10, $ypos += 20); $t = $frm->TextArea(25, $ypos += 20, 560, 80, $vis["about"]);
function tp_about($value, $row, $table, &$info) { if (strlen($value) > 100) { return utils_crop_text($value, 100); } else { return $value; } }