<select name="class">
{foreach $res as $value}
<option>{$value["class"]}</option>
{/foreach}
</select>
the above code, in my template file, different places, repeated 3 times (exactly the same), excuse me, can it be simplified?