function switch_panel_configuration()
{
    global $wpdb, $table_name;
    $config_panel = '';
    $get_all_fields = $wpdb->get_results("SELECT * FROM {$table_name} ORDER BY sequence ASC", ARRAY_A);
    if (!empty($get_all_fields)) {
        foreach ($get_all_fields as $get_all_field) {
            $config_panel .= generate_fields($get_all_field['id_form_field'], $get_all_field['title'], $get_all_field['field_name'], $get_all_field['field_type'], $get_all_field['option_type'], $get_all_field['popup_image'], $get_all_field['popup_description'], $get_all_field['is_dependent']);
        }
    }
    return $config_panel;
}
Exemple #2
0
    }
    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    ?>
					
				</div> 
				
			</div> 
		
			<div id="edit_main"> 
				<div class="fieldset"> 
					
					<?php 
    //////////////////////////////////////////////////////////////////////////////
    //////////////////////////////////////////////////////////////////////////////
    // Display all the fields
    generate_fields($table_rows);
    //////////////////////////////////////////////////////////////////////////////
    //////////////////////////////////////////////////////////////////////////////
    ?>
					
				</div> 
			</div> 
			
		</form> 
		
	</div>
		
	<?php 
    require_once "inc/footer.php";
    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
}