Update of /cvsroot/phpvortex/phpvortex/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22418/test
Modified Files:
tests.css vortex_test.css vortex_test.php
Log Message:
Improved the form in the test program
Index: vortex_test.php
===================================================================
RCS file: /cvsroot/phpvortex/phpvortex/test/vortex_test.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** vortex_test.php 4 Oct 2004 21:15:33 -0000 1.6
--- vortex_test.php 5 Oct 2004 15:10:18 -0000 1.7
***************
*** 37,42 ****
$this->name = 'phones';
$this->fields['ph_id'] =& new FT_Text($db, array('name' => 'ph_id', 'pkey' => TRUE, 'required' => TRUE));
! $this->fields['ph_name'] =& new FT_Text($db, array('name' => 'ph_name', 'label' => 'Name'));
! $this->fields['ph_phone'] =& new FT_Text($db, array('name' => 'ph_phone', 'label' => 'Phone'));
$this->fields_list[] =& $this->fields['ph_name'];
$this->fields_list[] =& $this->fields['ph_phone'];
--- 37,42 ----
$this->name = 'phones';
$this->fields['ph_id'] =& new FT_Text($db, array('name' => 'ph_id', 'pkey' => TRUE, 'required' => TRUE));
! $this->fields['ph_name'] =& new FT_Text($db, array('name' => 'ph_name', 'label' => 'Name', 'required' => TRUE));
! $this->fields['ph_phone'] =& new FT_Text($db, array('name' => 'ph_phone', 'label' => 'Phone', 'required' => TRUE));
$this->fields_list[] =& $this->fields['ph_name'];
$this->fields_list[] =& $this->fields['ph_phone'];
***************
*** 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'];
--- 69,77 ----
$tb->ShowList('vortex_test.php?PKEY',$i);
}
! echo "Insert form:<br>";
$tb->Seek() or print('Error(Seek): '.$tb->Error());
$tb->ShowForm('insert', 'vortex_test.php');
! echo "Update form:<br>";
! $tb->ShowForm('update', 'vortex_test.php', NULL, array('ph_id' => $id1));
$tb->Seek(array('ph_id' => $id1), FALSE) or print('Error(Seek): '.$tb->Error());
echo 'Seek ID:'.$tb->data['ph_id'];
Index: tests.css
===================================================================
RCS file: /cvsroot/phpvortex/phpvortex/test/tests.css,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** tests.css 4 Oct 2004 18:14:04 -0000 1.2
--- tests.css 5 Oct 2004 15:10:18 -0000 1.3
***************
*** 3,6 ****
--- 3,12 ----
}
+ .div_list {
+ text-align:center;
+ margin:0 auto;
+ width:50%;
+ }
+
.div_list table {
border-collapse:collapse;
***************
*** 25,27 ****
--- 31,69 ----
font-weight:bold;
color:#000000;
+ }
+
+ .div_form {
+ text-align:center;
+ margin:0 auto;
+ width:50%;
+ }
+
+ .div_form table {
+ border-collapse:collapse;
+ width:100%;
+ border:1pt solid black;
+ }
+
+ .div_form th {
+ text-align:right;
+ width:25%;
+ }
+
+ .div_form th:after {
+ content: " :";
+ }
+
+ .div_form td {
+ text-align:left;
+ width:75%;
+ }
+
+ .div_form tr.submit td {
+ text-align:center;
+ border-top:1px solid black;
+ width:100%;
+ }
+
+ .div_form input {
+ width:100%;
}
\ No newline at end of file
Index: vortex_test.css
===================================================================
RCS file: /cvsroot/phpvortex/phpvortex/test/vortex_test.css,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** vortex_test.css 4 Oct 2004 18:14:04 -0000 1.2
--- vortex_test.css 5 Oct 2004 15:10:18 -0000 1.3
***************
*** 1,8 ****
- .div_list {
- text-align:center;
- margin:0 auto;
- width:50%;
- }
-
#tb_phones .fd_ph_name {
text-align:left;
--- 1,2 ----
|