/* $searchForm - убираем стандартный фильтр */ ?> $request_filter_form_visibility = $nc_core->input->fetch_cookie('nc_requests_request_filter_expanded'); $sql = "SELECT * FROM `Classificator_RequestStatus` ORDER BY `RequestStatus_Priority`"; $statuses = (array)$db->get_results($sql, ARRAY_A); ?>
| Дата | Номер заявки | Группа формы | Имя | Телефон | Товар | Источник заявки | Статус | ||
|---|---|---|---|---|---|---|---|---|---|
| = $f_Created_day ?>.= $f_Created_month ?>.= $f_Created_year ?> | = $f_RowID ?> | = $f_FormType ?> | = $f_Name ?> | = $f_Phone ?> | = $f_Email ?> | get_item_by_id($f_Item_ID); $is_netshop_item = $goods_data->are_netshop_items(); // (a) товар netshop if ($is_netshop_item) { $item = nc_netshop_item::by_id($item_data['Item_Component_ID'], $item_data['Item_ID']); if ($item['Sub_Class_ID']) { $item_name = '' . htmlspecialchars(trim($item['FullName'])) . ''; } else { $is_netshop_item = false; } } // (б) не товар в netshop (sic, not 'else') if (!$is_netshop_item) { $item_name = $item_data['Name'] . ' ' . $item_data['VariantName']; } echo $item_name . ' — ' . $f_Quantity . ' ' . $item['Units']; } ?> | sub_class->get_by_id($f_Source_Infoblock_ID, 'EnglishName') . '">' . htmlspecialchars( $nc_core->subdivision->get_by_id($f_Source_Subdivision_ID, 'Subdivision_Name') . ' / ' . $nc_core->sub_class->get_by_id($f_Source_Infoblock_ID, 'Sub_Class_Name') ) . ''; } catch (Exception $e) { } } ?> |