retrieve($_POST[$prefix.'record']); foreach($focus->column_fields as $field) { if(isset($_POST[$prefix.$field])) { $focus->$field = $_POST[$prefix.$field]; } } foreach($focus->additional_column_fields as $field) { if(isset($_POST[$prefix.$field])) { $value = $_POST[$prefix.$field]; $focus->$field = $value; } } return $focus; } function getPostToForm(){ $fields = ''; foreach ($_POST as $key=>$value){ $fields.= ""; } return $fields; } function handleRedirect($return_id, $return_module){ if(isset($_POST['return_module']) && $_POST['return_module'] != "") $return_module = $_POST['return_module']; else $return_module = $return_module; if(isset($_POST['return_action']) && $_POST['return_action'] != "") $return_action = $_POST['return_action']; else $return_action = "DetailView"; if(isset($_POST['return_id']) && $_POST['return_id'] != "") $return_id = $_POST['return_id']; header("Location: index.php?action=$return_action&module=$return_module&record=$return_id"); } ?>