From 896640c17c8cd011aa2138411b8f59e057ac6788 Mon Sep 17 00:00:00 2001 From: Silvio Date: Fri, 6 Aug 2010 15:21:50 -0300 Subject: Adding navitagion script --- config/config.yaml | 2 +- tests/navigate.php | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 tests/navigate.php diff --git a/config/config.yaml b/config/config.yaml index 0f81b48..a8ab772 100644 --- a/config/config.yaml +++ b/config/config.yaml @@ -1,3 +1,3 @@ --- implementation: BiblioIsis -database: film +database: poster diff --git a/tests/navigate.php b/tests/navigate.php new file mode 100644 index 0000000..5eed190 --- /dev/null +++ b/tests/navigate.php @@ -0,0 +1,58 @@ + + + + + + + + + +db) { + $result = $isis->db->read($entry); + $entries = $isis->db->entries(); + + if ($entries < $entry) { + $entry = 1; + } + + if ($entry != 1) { + $prev = $entry - 1; + echo '< prev '; + } + + if ($entry < $entries) { + $next = $entry + 1; + echo 'next >'; + } + + // Format output. + echo '
';
+  echo "Connection test:\n";
+  echo "Rows: $entries\n";
+  print_r($result);
+  echo '
'; +} + +?> + -- cgit v1.2.3