search.php: Use template class