<td><input name="<?php 
        echo strtolower(str_replace(' ', '_', $field));
        ?>
" value="<?php 
        echo esc_html($entry->getRaw(strtolower(str_replace(' ', '_', $field))));
        ?>
"></td>
					</tr>
				<?php 
    }
    ?>
				<?php 
    if ($_GET['form'] == 'festival') {
        ?>
					<?php 
        $entry_types = $entry->getEntryTypes();
        ?>
					<tr>
						<th>Entry Type:</th>
						<td>
							<select name="entry_type_id">
								<?php 
        foreach ($entry_types as $entry_type_id => $entry_type) {
            ?>
									<option value="<?php 
            echo $entry_type_id;
            ?>
"<?php 
            if ($entry_type_id == $entry->getEntryTypeId()) {
                ?>
 selected<?php