aboutsummaryrefslogtreecommitdiff
path: root/apps/field.php
diff options
context:
space:
mode:
authorSilvio <silvio@devlet.com.br>2010-08-20 16:55:05 -0300
committerSilvio <silvio@devlet.com.br>2010-08-20 16:55:05 -0300
commit29e055f10a5ddf6424415c9cd9265d9d38e46ab3 (patch)
tree81c335672c2e4452e0ae0b6354565e7fa2e55a00 /apps/field.php
parentbf67bc20b46f3e464a21ca618e367efa503c6df6 (diff)
downloadcinisis-29e055f10a5ddf6424415c9cd9265d9d38e46ab3.tar.gz
cinisis-29e055f10a5ddf6424415c9cd9265d9d38e46ab3.tar.bz2
Code cleanup
Diffstat (limited to 'apps/field.php')
-rw-r--r--apps/field.php16
1 files changed, 7 insertions, 9 deletions
diff --git a/apps/field.php b/apps/field.php
index 6c7662e..09a2016 100644
--- a/apps/field.php
+++ b/apps/field.php
@@ -14,7 +14,8 @@ $fid = CinisisHttpHelper::getNumericArg('fid');
$display = new CinisisDisplayHelper('Field 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->nextField($field, $entry);
// Navigation bar.
- $display->navbar($entry, $isis->entries, 'field.php', '&fid='. $fid);
+ $display->navbar($entry, $isis->entries, $script, '&fid='. $fid);
// Format output.
- echo "<pre>\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 '</pre>';
+ $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();