SetTitle('Контрагенты'); if(Service::IsClient()) LocalRedirect('/service/client.php'); ?> 22, "ACTIVE_DATE"=>"Y", "ACTIVE"=>"Y"); if(isset($_REQUEST['q'])) { $t = trim($_REQUEST['q']); if($t) $arFilter['NAME'] = "%" . $t . "%"; } $res = CIBlockElement::GetList(Array(), $arFilter, false, false, $arSelect); $counteragents = array(); while($ob = $res->GetNextElement()) { $arFields = $ob->GetFields(); $arProps = $ob->GetProperties(); // print_r($arProps); $item['id'] = $arFields['ID']; $item['name'] = $arFields['NAME']; $item['contacts'] = $arProps['CONTACTS']['VALUE']; $item['address'] = $arProps['ADDRESS']['VALUE']; $item['distance'] = $arProps['DISTANCE']['VALUE']; $item['engineer'] = Service::GetEngineer($arProps['ENGINEER']['VALUE'])['fullname']; $item['price'] = $arProps['PRICE']['VALUE']; $records = Register::GetRecords($total, 'UF_DATE', 'desc', 0, 0, 0, 0, 1, $arFields['ID'], 0,0,0,0,0); $item['last_date'] = $records[0]['date']; $records = Register::GetRecords($total, 'UF_DATE', 'desc', 0, 0, 0, 0, 1, $arFields['ID'], 0,0,0,0,0); $photos_t = array(); foreach($records as $rec) { foreach($rec['photos'] as $p) { $photos_t[] = $p; } foreach($rec['client_photos'] as $p) $photos_t[] = $p; foreach($rec['report_photos'] as $p) $photos_t[] = $p; } $photos_a = array(); $photos = array(); foreach($photos_t as $v) $photos_a[] = CFile::GetFileArray($v)['SRC']; foreach($photos_a as $p) { if(explode('.', $p)[1] != 'pdf' && explode('.', $p)[1] != 'PDF') $photos[] = $p; } $item['photo_count'] = count($photos); $counteragents[] = $item; } ?>
ФИО Контакты Адрес проведения работ Удаленность, км Дата последнего обслуживания Сервисный инженер Стоимость работ Фото

Warning: Undefined variable $c in D:\ktt\ttepla.com\public_html\service\counteragents_fiz.php on line 118

Warning: Trying to access array offset on value of type null in D:\ktt\ttepla.com\public_html\service\counteragents_fiz.php on line 118

Warning: Undefined variable $c in D:\ktt\ttepla.com\public_html\service\counteragents_fiz.php on line 119

Warning: Trying to access array offset on value of type null in D:\ktt\ttepla.com\public_html\service\counteragents_fiz.php on line 119

Warning: Undefined variable $c in D:\ktt\ttepla.com\public_html\service\counteragents_fiz.php on line 120

Warning: Trying to access array offset on value of type null in D:\ktt\ttepla.com\public_html\service\counteragents_fiz.php on line 120

Warning: Undefined variable $c in D:\ktt\ttepla.com\public_html\service\counteragents_fiz.php on line 121

Warning: Trying to access array offset on value of type null in D:\ktt\ttepla.com\public_html\service\counteragents_fiz.php on line 121

Warning: Undefined variable $c in D:\ktt\ttepla.com\public_html\service\counteragents_fiz.php on line 122

Warning: Trying to access array offset on value of type null in D:\ktt\ttepla.com\public_html\service\counteragents_fiz.php on line 122

Warning: Undefined variable $c in D:\ktt\ttepla.com\public_html\service\counteragents_fiz.php on line 123

Warning: Trying to access array offset on value of type null in D:\ktt\ttepla.com\public_html\service\counteragents_fiz.php on line 123

Warning: Undefined variable $c in D:\ktt\ttepla.com\public_html\service\counteragents_fiz.php on line 124

Warning: Trying to access array offset on value of type null in D:\ktt\ttepla.com\public_html\service\counteragents_fiz.php on line 124
(
Warning: Undefined variable $c in D:\ktt\ttepla.com\public_html\service\counteragents_fiz.php on line 125

Warning: Trying to access array offset on value of type null in D:\ktt\ttepla.com\public_html\service\counteragents_fiz.php on line 125
)