function df_buildQuickCaptureForm($EID, $addQuery = false) { parse_str($addQuery, $_GET); $Data = getelement($EID); //$Return = '<h2>'.$Data['Content']['_New_Item_Title'].'</h2>'; if (!empty($Data['Content']['_New_Item_Hide'])) { $Return['title'] = 'Access Denied'; $Return['html'] = '<div class="notice">Entry Insertion is disabled on this interface</div>'; return $Return; } $Data['_ActiveProcess'] = 'insert'; $Out = df_BuildCaptureForm($Data); $Out['title'] = $Data['Content']['_New_Item_Title']; if (!empty($addQuery)) { $Out['addQuery'] = $addQuery; } if ($Data['Content']['_ViewMode'] != 'form') { $Out['script'] = $_SESSION['dataform']['OutScripts']; unset($_SESSION['dataform']['OutScripts']); } if (!isset($Out['width'])) { //$Out['width'] = 1550; } //$Return = df_BuildCaptureForm($Data); return $Out; //$Return; }
function df_buildDataSheet($EID, $ID) { $Data = getelement($EID); $Return = '<h2>Edit Entry</h2>'; $Return .= df_BuildCaptureForm($Data, $ID); return $Return; }