aboutsummaryrefslogtreecommitdiff
path: root/apps/field.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/field.php')
-rw-r--r--apps/field.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/field.php b/apps/field.php
index cc79a20..8d78f89 100644
--- a/apps/field.php
+++ b/apps/field.php
@@ -7,13 +7,13 @@
require_once '../index.php';
// Get input data.
-$entry = CinisisHttpHelper::get_numeric_arg('entry');
-$field_key = CinisisHttpHelper::get_numeric_arg('field_key');
+$entry = CinisisHttpHelper::get_numeric_arg('entry');
+$fid = CinisisHttpHelper::get_numeric_arg('fid');
// Draw the document.
$display = new CinisisDisplayHelper('Field finder');
$form = $display->form_input_text('entry', $entry);
-$form .= $display->form_input_text('field_key', $field_key);
+$form .= $display->form_input_text('fid', $fid);
$display->form($form, basename(__FILE__));
// Get a db instance.
@@ -22,15 +22,15 @@ $isis = new IsisFinder();
// Setup database and entry number.
if ($isis) {
// Query database.
- $field = $isis->getFieldArray($field_key);
+ $field = $isis->getFieldArray($fid);
list($entry, $result) = $isis->nextField($entry, $field);
// Navigation bar.
- $display->navbar($entry, $isis->entries, $repetition, '&field_key='. $field_key);
+ $display->navbar($entry, $isis->entries, $repetition, '&fid='. $fid);
// Format output.
echo "<pre>\n";
- echo "Selected field: $field_key: ". $field['name'] ."\n";
+ echo "Selected field: $fid: ". $field['name'] ."\n";
echo "Showing entry ". $display->entry_link($entry) ." from $entries total entries.\n";
echo "Repetitions found: ". count($result[$field['name']]) .".\n";
echo "\n";