aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@devlet.com.br>2010-08-19 10:54:14 -0300
committerSilvio <silvio@devlet.com.br>2010-08-19 10:54:14 -0300
commit74d77de3d578893489d959215be921196a511684 (patch)
treefc2c630cefc2b93b907d38c4993a6c746b3bcbb3
parented250793255353582ae32d2cf5dc726004f3e0d8 (diff)
downloadcinisis-74d77de3d578893489d959215be921196a511684.tar.gz
cinisis-74d77de3d578893489d959215be921196a511684.tar.bz2
Using fid and sid instead of field_key and subfield_key at apps
-rw-r--r--apps/field.php12
-rw-r--r--apps/repetition.php12
-rw-r--r--apps/subfield.php20
3 files changed, 22 insertions, 22 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";
diff --git a/apps/repetition.php b/apps/repetition.php
index a206976..3fce88f 100644
--- a/apps/repetition.php
+++ b/apps/repetition.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('Repetition 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->nextRepetition($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";
diff --git a/apps/subfield.php b/apps/subfield.php
index 4694d74..352a9f5 100644
--- a/apps/subfield.php
+++ b/apps/subfield.php
@@ -7,15 +7,15 @@
require_once '../index.php';
// Get input data.
-$entry = CinisisHttpHelper::get_numeric_arg('entry');
-$field_key = CinisisHttpHelper::get_numeric_arg('field_key');
-$subfield_key = CinisisHttpHelper::get_textual_arg('subfield_key');
+$entry = CinisisHttpHelper::get_numeric_arg('entry');
+$fid = CinisisHttpHelper::get_numeric_arg('fid');
+$sid = CinisisHttpHelper::get_textual_arg('sid');
// Draw the document.
$display = new CinisisDisplayHelper('Subfield finder');
$form = $display->form_input_text('entry', $entry);
-$form .= $display->form_input_text('field_key', $field_key);
-$form .= $display->form_input_text('subfield_key', $subfield_key);
+$form .= $display->form_input_text('fid', $fid);
+$form .= $display->form_input_text('sid', $sid);
$display->form($form, basename(__FILE__));
// Get a db instance.
@@ -24,17 +24,17 @@ $isis = new IsisFinder();
// Setup database and entry number.
if ($isis) {
// Query database.
- $field = $isis->getFieldArray($field_key);
- $subfield = $isis->getSubfieldName($field_key, $subfield_key);
+ $field = $isis->getFieldArray($fid);
+ $subfield = $isis->getSubfieldName($fid, $sid);
list($entry, $result) = $isis->nextSubfield($entry, $field, $subfield);
// Navigation bar.
- $display->navbar($entry, $isis->entries, $repetition, '&field_key='. $field_key . '&subfield_key='. $subfield_key);
+ $display->navbar($entry, $isis->entries, $repetition, '&fid='. $fid . '&sid='. $sid);
// Format output.
echo "<pre>\n";
- echo "Selected field: $field_key: ". $field['name'] .".\n";
- echo "Selected subfield: $subfield_key: $subfield.\n";
+ echo "Selected field: $fid: ". $field['name'] .".\n";
+ echo "Selected subfield: $sid: $subfield.\n";
echo "Showing entry ". $display->entry_link($entry) ." from $entries total entries.\n";
echo "Repetitions found: ". count($result[$field['name']]) .".\n";
echo "\n";