Example #1
0
                            echo $fields[$n]["ref"];
                            ?>
"} );
					})
				
				</script>
				<div class="SearchItem">
			<?php 
                        }
                        # Add to the clear function so clicking 'clear' clears this box.
                        $clear_function .= "document.getElementById('field_" . $fields[$n]["name"] . "').value='';";
                        break;
                    case 2:
                    case 3:
                        // Dropdown and checkbox types - display a list for each
                        $options = get_field_options($fields[$n]["ref"]);
                        $adjusted_dropdownoptions = hook("adjustdropdownoptions");
                        if ($adjusted_dropdownoptions) {
                            $options = $adjusted_dropdownoptions;
                        }
                        $optionfields[] = $fields[$n]["name"];
                        # Append to the option fields array, used by the AJAX dropdown filtering
                        ?>
			<select id="field_<?php 
                        echo $fields[$n]["name"];
                        ?>
" name="field_drop_<?php 
                        echo $fields[$n]["name"];
                        ?>
" class="SearchWidth" onChange="FilterBasicSearchOptions('<?php 
                        echo $fields[$n]["name"];
    <tbody>
<?php 
    foreach ($shortcode['sections'] as $section) {
        foreach ($section['fields'] as $field) {
            ?>
<tr>
    <td><?php 
            echo $field['id'];
            ?>
</td>
    <td>
        <?php 
            echo isset($field['desc']) ? $field['desc'] : '';
            ?>
        <?php 
            echo get_field_options($field);
            ?>
    </td>
    <td><?php 
            echo isset($field['default']) ? $field['default'] : '';
            ?>
</td>
</tr>
<?php 
        }
    }
    ?>
</tbody>
</table>

<?php 
    <tbody>
<?php 
        foreach ($section['fields'] as $option) {
            ?>
<tr>
    <td><?php 
            echo $option['name'];
            ?>
</td>
    <td>
        <?php 
            echo isset($option['desc']) ? $option['desc'] : '';
            ?>

        <?php 
            echo get_field_options($option);
            ?>
    </td>
    <td><?php 
            echo isset($option['default']) ? $option['default'] : '';
            ?>
</td>
</tr>
<?php 
        }
        ?>
</tbody>
</table>

<?php 
    }