function show_edit_detail_form($config, $id) { $detail = get_detail($config, $id); if ($detail) { show_detail_form("edit", $config, $detail); } else { echo "<p>Error: Can't get detail that has id = {$id}</p>"; } }
function show_edit_detail_form($id) { $record = CRecordManager::GetRecordById($id); if ($record) { show_detail_form("edit", $record); } else { echo "<p>Error: Can't get detail that has id = {$id}</p>"; } }