From d40338d7cf451f4303b2ae0f0b084d7209eeffe1 Mon Sep 17 00:00:00 2001 From: Silvio Date: Fri, 6 Aug 2010 15:31:52 -0300 Subject: Moving index.php to navigate.php --- tests/index.php | 38 +++++++++++++++++++++++++++----- tests/navigate.php | 64 ------------------------------------------------------ tests/test.php | 36 ++++++++++++++++++++++++++++++ 3 files changed, 69 insertions(+), 69 deletions(-) delete mode 100644 tests/navigate.php create mode 100644 tests/test.php (limited to 'tests') diff --git a/tests/index.php b/tests/index.php index ebd465f..f17cae5 100644 --- a/tests/index.php +++ b/tests/index.php @@ -11,23 +11,51 @@ +
+Entry: + +
+
+ db) { - $result = $isis->db->read(1); + $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";
+  echo "
\n";
+  echo "Showing entry $entry from $entries total entries.\n";
+  echo "\n";
   print_r($result);
   echo '
'; } diff --git a/tests/navigate.php b/tests/navigate.php deleted file mode 100644 index fc57800..0000000 --- a/tests/navigate.php +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - - -
-Entry: - -
-
- -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 "
\n";
-  echo "Showing entry $entry from $entries total entries.\n";
-  echo "\n";
-  print_r($result);
-  echo '
'; -} - -?> - diff --git a/tests/test.php b/tests/test.php new file mode 100644 index 0000000..ebd465f --- /dev/null +++ b/tests/test.php @@ -0,0 +1,36 @@ + + + + + + + + + +db) { + $result = $isis->db->read(1); + $entries = $isis->db->entries(); + + // Format output. + echo '
';
+  echo "Connection test:\n";
+  echo "Rows: $entries\n";
+  print_r($result);
+  echo '
'; +} + +?> + -- cgit v1.2.3