<div>
    <div><?php _e('Select course', 'ulp');?></div>
    <select name="ulp_course_id">
        <?php foreach ($data['courses'] as $courseObject):?>
            <option value="<?php echo $courseObject['ID'];?>" <?php if ($courseObject['ID']==$data['ulp_course_id']) echo 'selected';?> ><?php echo $courseObject['post_title'];?></option>
        <?php endforeach;?>
    </select>
</div>
