Update of /cvsroot/phpvortex/phpvortex/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24928/test
Modified Files:
vortex_test.php
Log Message:
Added utility class URL (and used it in TB_Base)
Index: vortex_test.php
===================================================================
RCS file: /cvsroot/phpvortex/phpvortex/test/vortex_test.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** vortex_test.php 5 Oct 2004 19:35:10 -0000 1.8
--- vortex_test.php 6 Oct 2004 19:50:40 -0000 1.9
***************
*** 16,19 ****
--- 16,21 ----
/** Require the header for the field used in the test database. */
require_once('../FT_Text.class.php');
+ /** Require the header for the utility URL class. */
+ require_once('../URL.class.php');
?>
<html>
***************
*** 58,64 ****
echo 'Added ID:'.$id3.'<br>';
echo 'List the whole database:<br>';
! $tb->ShowList('vortex_test.php?PKEY');
echo 'List with a search ("5552"):<br>';
! $tb->ShowList('vortex_test.php?PKEY',-1,array('ph_phone' => '5552'));
echo 'Setting the number of records per page to 2.<br>';
$tb->list_recspage = 2;
--- 60,66 ----
echo 'Added ID:'.$id3.'<br>';
echo 'List the whole database:<br>';
! $tb->ShowList(new URL('vortex_test.php'));
echo 'List with a search ("5552"):<br>';
! $tb->ShowList(new URL('vortex_test.php'),-1,array('ph_phone' => '5552'));
echo 'Setting the number of records per page to 2.<br>';
$tb->list_recspage = 2;
***************
*** 67,71 ****
for ($i=0;$i < $pgs;$i++) {
echo "Page $i:<br>";
! $tb->ShowList('vortex_test.php?PKEY',$i);
}
echo "Insert form:<br>";
--- 69,73 ----
for ($i=0;$i < $pgs;$i++) {
echo "Page $i:<br>";
! $tb->ShowList(new URL('vortex_test.php'),$i);
}
echo "Insert form:<br>";
***************
*** 82,88 ****
$tb->Delete() or print('Error(Delete): '.$tb->Error());
echo '... Deleted<br>';
! $tb->Seek(array('ph_id' => $id3), FALSE) or print('Error(Seek): '.$tb->Error());
! echo 'Seek ID:'.$tb->data['ph_id'];
! $tb->Delete() or print('Error(Delete): '.$tb->Error());
echo '... Deleted<br>';
$db->Close();
--- 84,89 ----
$tb->Delete() or print('Error(Delete): '.$tb->Error());
echo '... Deleted<br>';
! echo "Just Delete ID:$id3";
! $tb->Delete(array('ph_id' => $id3)) or print('Error(Delete): '.$tb->Error());
echo '... Deleted<br>';
$db->Close();
|