[PHPVortex-Commit] phpvortex/test vortex_test.php,1.5,1.6
Brought to you by:
nop144666
From: Thiago R. <nop...@us...> - 2004-10-04 21:15:45
|
Update of /cvsroot/phpvortex/phpvortex/test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4424/test Modified Files: vortex_test.php Log Message: Test program now testing TB_Base::ShowForm() Index: vortex_test.php =================================================================== RCS file: /cvsroot/phpvortex/phpvortex/test/vortex_test.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** vortex_test.php 4 Oct 2004 18:29:45 -0000 1.5 --- vortex_test.php 4 Oct 2004 21:15:33 -0000 1.6 *************** *** 41,44 **** --- 41,46 ---- $this->fields_list[] =& $this->fields['ph_name']; $this->fields_list[] =& $this->fields['ph_phone']; + $this->fields_form[] =& $this->fields['ph_name']; + $this->fields_form[] =& $this->fields['ph_phone']; $this->list_order = 'ph_name'; TB_Base::TB_Base($db); *************** *** 67,70 **** --- 69,78 ---- $tb->ShowList('vortex_test.php?PKEY',$i); } + echo "A insert form:<br>"; + $tb->Seek() or print('Error(Seek): '.$tb->Error()); + $tb->ShowForm('insert', 'vortex_test.php'); + echo "A update form:<br>"; + $tb->Seek(array('ph_id' => $id1), FALSE) or print('Error(Seek): '.$tb->Error()); + $tb->ShowForm('update', 'vortex_test.php'); $tb->Seek(array('ph_id' => $id1), FALSE) or print('Error(Seek): '.$tb->Error()); echo 'Seek ID:'.$tb->data['ph_id']; |