private function renderDropdown($name, $options, $raw) { $value = $this->model->fieldValue($name, $options['default']); $options['htmlOptions']['id'] = $options['id']; $htmlOptions = $this->makeHtmlOptions($options); if (!$raw) { echo '<tr valign="top"> <th> <label for="' . $options['id'] . '">' . $options['label'] . '</label> </th> <td>'; } echo "<select name='" . $this->model->fieldName($name) . "' " . $htmlOptions . ">"; $this->listOptions($name, $options['default']); echo "</select>"; if (!$raw) { echo '</td></tr>'; } }
<table class="form-table"> <tbody> <tr valign="top"> <td colspan="2"> <h2>Contact Map Location</h2> <p class="desc-text">In this section you can set one's company location on a map (the map is shown when using our custom contact-page template).</p> </td> </tr> <tr valign="top"> <td> <label for="contact_address">One's company address</label> </td> <td> <input id="contact_address" type="text" style="width:340px" name="<?php echo $form->fieldName('yopress_contact_address'); ?> " value="<?php echo $form->fieldValue('yopress_contact_address'); ?> " /> <input id="contact_address_lat" type="hidden" name="<?php echo $form->fieldName('yopress_contact_address_lat'); ?> " value="<?php echo $form->fieldValue('yopress_contact_address_lat'); ?> " /> <input id="contact_address_lng" type="hidden" name="<?php