From e3e32378e9c75303d32c7c7af92852884f73afa0 Mon Sep 17 00:00:00 2001 From: Silvio Date: Tue, 24 Aug 2010 15:53:45 -0300 Subject: Using radio buttons for field and subfield selection on apps --- apps/repetition.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'apps/repetition.php') diff --git a/apps/repetition.php b/apps/repetition.php index 66d153f..6706162 100644 --- a/apps/repetition.php +++ b/apps/repetition.php @@ -10,18 +10,18 @@ require_once '../index.php'; $entry = CinisisHttpHelper::getNumericArg('entry'); $fid = CinisisHttpHelper::getNumericArg('fid'); -// Draw the document. -$display = new CinisisDisplayHelper('Repetition 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('Repetition 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->nextRepetition($field, $entry); -- cgit v1.2.3