tribe; $start = ($tribe - 1) * 10 + 1; $end = $tribe * 10; $hasHero = $village->unitarray['hero'] != 0; $colspan = $hasHero ? 11 : 10; ?>