<?php
 class Html { function getSelect($A,$opt=array()) { $R = '<select name="'.$opt['name'].'" id="'.$opt['id'].'" >'; foreach($A as $k => $v) { $s = ''; if($k==$opt['value']) { $s = 'selected="selected"'; } $R.='<option value="'.$k.'" '.$s.'>'.$v.'</option>'; } $R.='</select>'; return $R; } } ?>