$i=1; ?> foreach ($top_names as $type => $value): ?>
if (!empty($books[$type])): ?> foreach ($books[$type] as $kk => $vv): ?>
endforeach; ?> else: ?>
暂无数据
endif; ?>
$i++; ?> endforeach; ?>