diff options
Diffstat (limited to 'apps/field.php')
-rw-r--r-- | apps/field.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/field.php b/apps/field.php index 09a2016..2829421 100644 --- a/apps/field.php +++ b/apps/field.php @@ -10,18 +10,18 @@ require_once '../index.php'; $entry = CinisisHttpHelper::getNumericArg('entry'); $fid = CinisisHttpHelper::getNumericArg('fid'); -// Draw the document. -$display = new CinisisDisplayHelper('Field finder'); -$form = $display->formInputText('entry', $entry); -$form .= $display->formInputText('fid', $fid); -$script = basename(__FILE__); -$display->form($form, $script); - // Get a db instance. $isis = new IsisFinder(); -// Setup database and entry number. if ($isis) { + // Draw the document. + $display = new CinisisDisplayHelper('Field finder'); + $form = $display->formInputText('entry', $entry); + //$form .= $display->formInputText('fid', $fid); + $form .= $display->radios('fid', $isis->getFieldNames(), $fid); + $script = basename(__FILE__); + $display->form($form, $script); + // Query database. $field = $isis->getFieldArray($fid); list($entry, $result) = $isis->nextField($field, $entry); |