DetectIphoneOrIpod()) { return \mobile_view_funcions\display_form($form_id, $populated_values, $error_elements, $custom_error, $edit_id, $embed); } else { return \standard_view_funcions\display_form($form_id, $populated_values, $error_elements, $custom_error, $edit_id, $embed); } } //this function is similar as display_form, but designed to display form without IFRAME function display_integrated_form($form_id,$populated_values=array(),$error_elements=array(),$custom_error='',$edit_id=0,$machform_path){ $agent_info = new uagent_info(); if ($agent_info->DetectIphoneOrIpod()) { return \mobile_view_funcions\display_integrated_form($form_id, $populated_values, $error_elements, $custom_error, $edit_id, $machform_path); } else { return \standard_view_funcions\display_integrated_form($form_id, $populated_values, $error_elements, $custom_error, $edit_id, $machform_path); } } function display_success($form_id,$embed=false){ $agent_info = new uagent_info(); if ($agent_info->DetectIphoneOrIpod()) { return \mobile_view_funcions\display_success($form_id, $embed); } else { return \standard_view_funcions\display_success($form_id, $embed); } } //this function is similar as display_success, but designed to display success page without IFRAME function display_integrated_success($form_id,$machform_path){ $agent_info = new uagent_info(); if ($agent_info->DetectIphoneOrIpod()) { return \mobile_view_funcions\display_integrated_success($form_id, $machform_path); } else { return \standard_view_funcions\display_integrated_success($form_id, $machform_path); } } //display form confirmation page function display_form_review($form_id,$record_id,$embed=false){ $agent_info = new uagent_info(); if ($agent_info->DetectIphoneOrIpod()) { return \mobile_view_funcions\display_form_review($form_id, $record_id, $embed); } else { return \standard_view_funcions\display_form_review($form_id, $record_id, $embed); } } //display form confirmation page for integrated embed code function display_integrated_form_review($form_id,$record_id,$machform_path){ $agent_info = new uagent_info(); if ($agent_info->DetectIphoneOrIpod()) { return \mobile_view_funcions\display_integrated_form_review($form_id, $record_id, $machform_path); } else { return \standard_view_funcions\display_integrated_form_review($form_id, $record_id, $machform_path); } } ?>