From 29e055f10a5ddf6424415c9cd9265d9d38e46ab3 Mon Sep 17 00:00:00 2001 From: Silvio Date: Fri, 20 Aug 2010 16:55:05 -0300 Subject: Code cleanup --- apps/repetition.php | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'apps/repetition.php') diff --git a/apps/repetition.php b/apps/repetition.php index 4eb3e7b..66d153f 100644 --- a/apps/repetition.php +++ b/apps/repetition.php @@ -14,7 +14,8 @@ $fid = CinisisHttpHelper::getNumericArg('fid'); $display = new CinisisDisplayHelper('Repetition finder'); $form = $display->formInputText('entry', $entry); $form .= $display->formInputText('fid', $fid); -$display->form($form, basename(__FILE__)); +$script = basename(__FILE__); +$display->form($form, $script); // Get a db instance. $isis = new IsisFinder(); @@ -26,16 +27,13 @@ if ($isis) { list($entry, $result) = $isis->nextRepetition($field, $entry); // Navigation bar. - $display->navbar($entry, $isis->entries, 'repetition.php', '&fid='. $fid); + $display->navbar($entry, $isis->entries, $script, '&fid='. $fid); // Format output. - echo "
\n";
-  echo "Selected field: $fid: ". $field['name'] ."\n";
-  echo "Showing entry ". $display->entryLink($entry) ." from ". $isis->entries ." total entries.\n";
-  echo "Repetitions found: ". count($result[$field['name']]) .".\n";
-  echo "\n";
-  print_r($result[$field['name']]);
-  echo '
'; + $display->pre("Selected field: $fid: ". $field['name'] ."."); + $display->pre("Showing entry ". $display->entryLink($entry) ." from ". $isis->entries ." total entries."); + $display->pre("Repetitions found: ". count($result[$field['name']]) ."."); + $display->dump($result[$field['name']]); } $display->footer(); -- cgit v1.2.3