cvs: pear /HTML_Form package.xml /HTML_Form/HTML Form.php /HTML_Form/tests form.phpt
| From: | Daniel Convissor | Date: | Tue, 15 Jun 2004 19:24:58 +0000 |
| Subject: | cvs: pear /HTML_Form package.xml /HTML_Form/HTML Form.php /HTML_Form/tests form.phpt | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-20703@lists.php.net to get a copy of this message | ||
danielc Tue Jun 15 15:24:58 2004 EDT
Modified files:
/pear/HTML_Form package.xml
/pear/HTML_Form/HTML Form.php
/pear/HTML_Form/tests form.phpt
Log:
* Remove $attr from *PlaintextRow() methods.
* Remove ":" from all $title cells to improve flexibility.
http://cvs.php.net/diff.php/pear/HTML_Form/package.xml?r1=1.12&r2=1.13&ty=u Index: pear/HTML_Form/package.xml diff -u pear/HTML_Form/package.xml:1.12 pear/HTML_Form/package.xml:1.13 --- pear/HTML_Form/package.xml:1.12 Tue Jun 15 14:27:30 2004 +++ pear/HTML_Form/package.xml Tue Jun 15 15:24:57 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="ISO-8859-1" ?> <package version="1.0"> - <!-- $Id: package.xml,v 1.12 2004/06/15 18:27:30 danielc Exp $ --> + <!-- $Id: package.xml,v 1.13 2004/06/15 19:24:57 danielc Exp $ --> <name>HTML_Form</name> <summary>Simple HTML form package</summary> <description> @@ -31,7 +31,11 @@ <notes><![CDATA[ * Add $attr, $caption and $capattr parameters to dislpay(). -* Improve docblocks for *passwordRow() methods. +* Remove $attr from *PlaintextRow() methods. + +* Remove ":" from all $title cells to improve flexibility. + +* Improve docblocks for *PasswordRow() methods. ]]> </notes> <filelist> http://cvs.php.net/diff.php/pear/HTML_Form/HTML/Form.php?r1=1.10&r2=1.11&ty=u Index: pear/HTML_Form/HTML/Form.php diff -u pear/HTML_Form/HTML/Form.php:1.10 pear/HTML_Form/HTML/Form.php:1.11 --- pear/HTML_Form/HTML/Form.php:1.10 Tue Jun 15 14:27:30 2004 +++ pear/HTML_Form/HTML/Form.php Tue Jun 15 15:24:57 2004 @@ -18,7 +18,7 @@ // | Daniel Convissor <danielc@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Form.php,v 1.10 2004/06/15 18:27:30 danielc Exp $ +// $Id: Form.php,v 1.11 2004/06/15 19:24:57 danielc Exp $ // // HTML form utility functions. @@ -51,7 +51,7 @@ * @author Stig Bakken <ssb@fast.no> * @author Urs Gehrig <urs@circle.ch> * @author Daniel Convissor <danielc@php.net> - * @version $Id: Form.php,v 1.10 2004/06/15 18:27:30 danielc Exp $ + * @version $Id: Form.php,v 1.11 2004/06/15 19:24:57 danielc Exp $ * @access public */ class HTML_Form @@ -517,8 +517,6 @@ * * @param string $title the string used as the label * @param string $text a string to be displayed - * @param string $attr a string of additional attributes to be put - * in the element (example: 'id="foo"') * @param string $thattr a string of additional attributes to be put * in the <th> element (example: 'class="foo"') * @param string $tdattr a string of additional attributes to be put @@ -530,11 +528,10 @@ * HTML_Form::displayPlaintext(), HTML_Form::displayPlaintextRow(), * HTML_Form::returnPlaintext(), HTML_Form::returnPlaintextRow() */ - function addPlaintext($title, $text = ' ', $attr = '', - $thattr = 'align="right"', $tdattr = '') + function addPlaintext($title, $text = ' ', + $thattr = 'align="right" valign="top"', $tdattr = '') { - $this->fields[] = array('plaintext', $title, $text, $attr, $thattr, - $tdattr); + $this->fields[] = array('plaintext', $title, $text, $thattr, $tdattr); } @@ -1255,8 +1252,6 @@ * * @param string $title the string used as the label * @param string $text a string to be displayed - * @param string $attr a string of additional attributes to be put - * in the element (example: 'id="foo"') * @param string $thattr a string of additional attributes to be put * in the <th> element (example: 'class="foo"') * @param string $tdattr a string of additional attributes to be put @@ -1268,12 +1263,11 @@ * @see HTML_Form::displayPlaintext(), HTML_Form::addPlaintext(), * HTML_Form::returnPlaintext(), HTML_Form::returnPlaintextRow() */ - function displayPlaintextRow($title, $text = ' ', $attr = '', + function displayPlaintextRow($title, $text = ' ', $thattr = 'align="right valign="top""', $tdattr = '') { - print HTML_Form::returnPlaintextRow($title, $text, $attr, $thattr, - $tdattr); + print HTML_Form::returnPlaintextRow($title, $text, $thattr, $tdattr); } @@ -1338,7 +1332,7 @@ $attr = '', $thattr = 'align="right"', $tdattr = '') { $str = " <tr>\n"; - $str .= ' <th ' . $thattr . '>' . $title . ":</th>\n"; + $str .= ' <th ' . $thattr . '>' . $title . "</th>\n"; $str .= ' <td ' . $tdattr . ">\n "; $str .= HTML_Form::returnText($name, $default, $size, $maxlength, $attr); @@ -1410,7 +1404,7 @@ $thattr = 'align="right"', $tdattr = '') { $str = " <tr>\n"; - $str .= ' <th ' . $thattr . '>' . $title . ":</th>\n"; + $str .= ' <th ' . $thattr . '>' . $title . "</th>\n"; $str .= ' <td ' . $tdattr . ">\n "; $str .= HTML_Form::returnPassword($name, $default, $size, $maxlength, $attr); @@ -1475,7 +1469,7 @@ $thattr = 'align="right"', $tdattr = '') { $str = " <tr>\n"; - $str .= ' <th ' . $thattr . '>' . $title . ":</th>\n"; + $str .= ' <th ' . $thattr . '>' . $title . "</th>\n"; $str .= ' <td ' . $tdattr . ">\n "; $str .= HTML_Form::returnCheckbox($name, $default, $attr); $str .= " </td>\n"; @@ -1553,7 +1547,7 @@ $thattr = 'align="right"', $tdattr = '') { $str = " <tr>\n"; - $str .= ' <th ' . $thattr . '>' . $title . ":</th>\n"; + $str .= ' <th ' . $thattr . '>' . $title . "</th>\n"; $str .= ' <td ' . $tdattr . ">\n "; $str .= HTML_Form::returnTextarea($name, $default, $width, $height, $maxlength, $attr); @@ -1781,7 +1775,7 @@ $thattr = 'align="right"', $tdattr = '') { $str = " <tr>\n"; - $str .= ' <th ' . $thattr . '>' . $title . ":</th>\n"; + $str .= ' <th ' . $thattr . '>' . $title . "</th>\n"; $str .= ' <td ' . $tdattr . ">\n"; $str .= HTML_Form::returnSelect($name, $entries, $default, $size, $blank, $multiple, $attr); @@ -1846,7 +1840,7 @@ $attr = '', $thattr = 'align="right"', $tdattr = '') { return " <tr>\n" . - ' <th ' . $thattr . '>' . $title . ":</th>\n" . + ' <th ' . $thattr . '>' . $title . "</th>\n" . ' <td ' . $tdattr . ">\n " . HTML_Form::returnRadio($name, $value, $default, $attr) . " </td>\n" . @@ -1906,7 +1900,7 @@ $thattr = 'align="right"', $tdattr = '') { return " <tr>\n" . - ' <th ' . $thattr . '>' . $title . ":</th>\n" . + ' <th ' . $thattr . '>' . $title . "</th>\n" . ' <td ' . $tdattr . ">\n " . HTML_Form::returnImage($name, $src, $attr) . " </td>\n" . @@ -1989,7 +1983,7 @@ return $str; } else { return " <tr>\n" . - ' <th ' . $thattr . '>' . $title . ":</th>\n" . + ' <th ' . $thattr . '>' . $title . "</th>\n" . ' <td ' . $tdattr . '>' . HTML_Form::returnBlank() . "</td>\n" . " </tr>\n"; } @@ -2063,7 +2057,7 @@ $tdattr = '') { $str = " <tr>\n"; - $str .= ' <th ' . $thattr . '>' . $title . ":</th>\n"; + $str .= ' <th ' . $thattr . '>' . $title . "</th>\n"; $str .= ' <td ' . $tdattr . ">\n"; $str .= HTML_Form::returnFile($name, $maxsize, $size, $accept, $attr); @@ -2207,8 +2201,6 @@ * * @param string $title the string used as the label * @param string $text a string to be displayed - * @param string $attr a string of additional attributes to be put - * in the element (example: 'id="foo"') * @param string $thattr a string of additional attributes to be put * in the <th> element (example: 'class="foo"') * @param string $tdattr a string of additional attributes to be put @@ -2220,12 +2212,12 @@ * @see HTML_Form::displayPlaintext(), HTML_Form::displayPlaintextRow(), * HTML_Form::returnPlaintext(), HTML_Form::addPlaintext() */ - function returnPlaintextRow($title, $text = ' ', $attr = '', + function returnPlaintextRow($title, $text = ' ', $thattr = 'align="right" valign="top"', $tdattr = '') { $str = " <tr>\n"; - $str .= ' <th ' . $thattr . '>' . $title . ":</th>\n"; + $str .= ' <th ' . $thattr . '>' . $title . "</th>\n"; $str .= ' <td ' . $tdattr . ">\n "; $str .= HTML_Form::returnPlaintext($text) . "\n"; $str .= " </td>\n"; @@ -2331,8 +2323,8 @@ $defind = 7; break; case 'plaintext': - $params = 5; - $defind = 4; + $params = 4; + $defind = 3; break; default: // unknown field type http://cvs.php.net/diff.php/pear/HTML_Form/tests/form.phpt?r1=1.3&r2=1.4&ty=u Index: pear/HTML_Form/tests/form.phpt diff -u pear/HTML_Form/tests/form.phpt:1.3 pear/HTML_Form/tests/form.phpt:1.4 --- pear/HTML_Form/tests/form.phpt:1.3 Tue Jun 15 14:32:24 2004 +++ pear/HTML_Form/tests/form.phpt Tue Jun 15 15:24:57 2004 @@ -9,7 +9,7 @@ * * @category HTML * @package HTML_Form - * @version $Id: form.phpt,v 1.3 2004/06/15 18:32:24 danielc Exp $ + * @version $Id: form.phpt,v 1.4 2004/06/15 19:24:57 danielc Exp $ */ if (!defined('PATH_SEPARATOR')) { @@ -481,14 +481,14 @@ <input type="text" name="nm" size="20" value="" /> ------------ RETURN ROW <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <input type="text" name="nm" size="20" value="" /> </td> </tr> ------------ DISPLAY ROW <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <input type="text" name="nm" size="20" value="" /> </td> @@ -497,7 +497,7 @@ <form action="test.php" method="get" > <table > <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <input type="text" name="nm" size="20" value="" /> </td> @@ -513,14 +513,14 @@ <input type="text" name="nm" size="5" value="v" maxlength="9" id="i"/> ------------ RETURN ROW <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <input type="text" name="nm" size="5" value="v" maxlength="9" id="i"/> </td> </tr> ------------ DISPLAY ROW <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <input type="text" name="nm" size="5" value="v" maxlength="9" id="i"/> </td> @@ -529,7 +529,7 @@ <form action="test.php" method="get" > <table > <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <input type="text" name="nm" size="5" value="v" maxlength="9" id="i"/> </td> @@ -545,7 +545,7 @@ <input type="password" name="nm" size="8" value="" /> ------------ RETURN ROW <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <input type="password" name="nm" size="8" value="" /> repeat: <input type="password" name="nm2" size="8" value="" /> @@ -553,7 +553,7 @@ </tr> ------------ DISPLAY ROW <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <input type="password" name="nm" size="8" value="" /> repeat: <input type="password" name="nm2" size="8" value="" /> @@ -563,7 +563,7 @@ <form action="test.php" method="get" > <table > <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <input type="password" name="nm" size="8" value="" /> repeat: <input type="password" name="nm2" size="8" value="" /> @@ -580,7 +580,7 @@ <input type="password" name="nm" size="5" value="v" maxlength="9" id="i"/> ------------ RETURN ROW <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <input type="password" name="nm" size="5" value="v" maxlength="9" id="i"/> repeat: <input type="password" name="nm2" size="5" value="v" maxlength="9" id="i"/> @@ -588,7 +588,7 @@ </tr> ------------ DISPLAY ROW <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <input type="password" name="nm" size="5" value="v" maxlength="9" id="i"/> repeat: <input type="password" name="nm2" size="5" value="v" maxlength="9" id="i"/> @@ -598,7 +598,7 @@ <form action="test.php" method="get" > <table > <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <input type="password" name="nm" size="5" value="v" maxlength="9" id="i"/> repeat: <input type="password" name="nm2" size="5" value="v" maxlength="9" id="i"/> @@ -615,14 +615,14 @@ <input type="checkbox" name="nm" /> ------------ RETURN ROW <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <input type="checkbox" name="nm" /> </td> </tr> ------------ DISPLAY ROW <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <input type="checkbox" name="nm" /> </td> @@ -631,7 +631,7 @@ <form action="test.php" method="get" > <table > <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <input type="checkbox" name="nm" /> </td> @@ -647,14 +647,14 @@ <input type="checkbox" name="nm" checked="checked" id="i"/> ------------ RETURN ROW <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <input type="checkbox" name="nm" checked="checked" id="i"/> </td> </tr> ------------ DISPLAY ROW <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <input type="checkbox" name="nm" checked="checked" id="i"/> </td> @@ -663,7 +663,7 @@ <form action="test.php" method="get" > <table > <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <input type="checkbox" name="nm" checked="checked" id="i"/> </td> @@ -679,14 +679,14 @@ <textarea name="nm" cols="40" rows="5" ></textarea> ------------ RETURN ROW <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <textarea name="nm" cols="40" rows="5" ></textarea> </td> </tr> ------------ DISPLAY ROW <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <textarea name="nm" cols="40" rows="5" ></textarea> </td> @@ -695,7 +695,7 @@ <form action="test.php" method="get" > <table > <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <textarea name="nm" cols="40" rows="5" ></textarea> </td> @@ -711,14 +711,14 @@ <textarea name="nm" cols="5" rows="6" maxlength="9" id="i">v</textarea> ------------ RETURN ROW <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <textarea name="nm" cols="5" rows="6" maxlength="9" id="i">v</textarea> </td> </tr> ------------ DISPLAY ROW <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <textarea name="nm" cols="5" rows="6" maxlength="9" id="i">v</textarea> </td> @@ -727,7 +727,7 @@ <form action="test.php" method="get" > <table > <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <textarea name="nm" cols="5" rows="6" maxlength="9" id="i">v</textarea> </td> @@ -877,7 +877,7 @@ </select> ------------ RETURN ROW <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <select name="nm" size="1" > <option value="0">first</option> @@ -887,7 +887,7 @@ </tr> ------------ DISPLAY ROW <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <select name="nm" size="1" > <option value="0">first</option> @@ -899,7 +899,7 @@ <form action="test.php" method="get" > <table > <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <select name="nm" size="1" > <option value="0">first</option> @@ -924,7 +924,7 @@ </select> ------------ RETURN ROW <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <select name="nm" size="1" > <option value="a">first</option> @@ -934,7 +934,7 @@ </tr> ------------ DISPLAY ROW <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <select name="nm" size="1" > <option value="a">first</option> @@ -946,7 +946,7 @@ <form action="test.php" method="get" > <table > <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <select name="nm" size="1" > <option value="a">first</option> @@ -973,7 +973,7 @@ </select> ------------ RETURN ROW <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <select name="nm[]" size="2" multiple="multiple" id="i"> <option value="">pick</option> @@ -984,7 +984,7 @@ </tr> ------------ DISPLAY ROW <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <select name="nm[]" size="2" multiple="multiple" id="i"> <option value="">pick</option> @@ -997,7 +997,7 @@ <form action="test.php" method="get" > <table > <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <select name="nm[]" size="2" multiple="multiple" id="i"> <option value="">pick</option> @@ -1017,14 +1017,14 @@ <input type="radio" name="nm" value="v" /> ------------ RETURN ROW <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <input type="radio" name="nm" value="v" /> </td> </tr> ------------ DISPLAY ROW <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <input type="radio" name="nm" value="v" /> </td> @@ -1033,7 +1033,7 @@ <form action="test.php" method="get" > <table > <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <input type="radio" name="nm" value="v" /> </td> @@ -1049,14 +1049,14 @@ <input type="radio" name="nm" value="v" checked="checked" id="i"/> ------------ RETURN ROW <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <input type="radio" name="nm" value="v" checked="checked" id="i"/> </td> </tr> ------------ DISPLAY ROW <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <input type="radio" name="nm" value="v" checked="checked" id="i"/> </td> @@ -1065,7 +1065,7 @@ <form action="test.php" method="get" > <table > <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <input type="radio" name="nm" value="v" checked="checked" id="i"/> </td> @@ -1081,14 +1081,14 @@ <input type="image" name="nm" src="gr" /> ------------ RETURN ROW <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <input type="image" name="nm" src="gr" /> </td> </tr> ------------ DISPLAY ROW <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <input type="image" name="nm" src="gr" /> </td> @@ -1097,7 +1097,7 @@ <form action="test.php" method="get" > <table > <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <input type="image" name="nm" src="gr" /> </td> @@ -1113,14 +1113,14 @@ <input type="image" name="nm" src="gr" id="i"/> ------------ RETURN ROW <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <input type="image" name="nm" src="gr" id="i"/> </td> </tr> ------------ DISPLAY ROW <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <input type="image" name="nm" src="gr" id="i"/> </td> @@ -1129,7 +1129,7 @@ <form action="test.php" method="get" > <table > <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <input type="image" name="nm" src="gr" id="i"/> </td> @@ -1167,19 +1167,19 @@ ============ BLANK DEFAULT ============ ------------ RETURN ROW <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > </td> </tr> ------------ DISPLAY ROW <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > </td> </tr> ------------ DISPLAY ADD <form action="test.php" method="get" > <table > <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > </td> </tr> </table> @@ -1189,19 +1189,19 @@ ============ BLANK MANUAL ============ ------------ RETURN ROW <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> </td> </tr> ------------ DISPLAY ROW <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> </td> </tr> ------------ DISPLAY ADD <form action="test.php" method="get" > <table > <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> </td> </tr> </table> @@ -1231,7 +1231,7 @@ <form action="test.php" method="get" > <table > <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > </td> </tr> </table> @@ -1281,7 +1281,7 @@ <input type="file" name="nm" size="20" /> ------------ RETURN ROW <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <input type="hidden" name="MAX_FILE_SIZE" value="1048576" /> <input type="file" name="nm" size="20" /> @@ -1289,7 +1289,7 @@ </tr> ------------ DISPLAY ROW <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <input type="hidden" name="MAX_FILE_SIZE" value="1048576" /> <input type="file" name="nm" size="20" /> @@ -1299,7 +1299,7 @@ <form action="test.php" method="get" enctype="multipart/form-data" > <table > <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <input type="hidden" name="MAX_FILE_SIZE" value="1048576" /> <input type="file" name="nm" size="20" /> @@ -1318,7 +1318,7 @@ <input type="file" name="nm" size="5" accept="ac" id="i"/> ------------ RETURN ROW <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <input type="hidden" name="MAX_FILE_SIZE" value="9" /> <input type="file" name="nm" size="5" accept="ac" id="i"/> @@ -1326,7 +1326,7 @@ </tr> ------------ DISPLAY ROW <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <input type="hidden" name="MAX_FILE_SIZE" value="9" /> <input type="file" name="nm" size="5" accept="ac" id="i"/> @@ -1336,7 +1336,7 @@ <form action="test.php" method="get" enctype="multipart/form-data" > <table > <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <input type="hidden" name="MAX_FILE_SIZE" value="9" /> <input type="file" name="nm" size="5" accept="ac" id="i"/> @@ -1364,7 +1364,7 @@ A Caption For You </caption> <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <input type="text" name="nm" size="20" value="" /> </td>
http://cvs.php.net/diff.php/pear/HTML_Form/package.xml?r1=1.12&r2=1.13&ty=u Index: pear/HTML_Form/package.xml diff -u pear/HTML_Form/package.xml:1.12 pear/HTML_Form/package.xml:1.13 --- pear/HTML_Form/package.xml:1.12 Tue Jun 15 14:27:30 2004 +++ pear/HTML_Form/package.xml Tue Jun 15 15:24:57 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="ISO-8859-1" ?> <package version="1.0"> - <!-- $Id: package.xml,v 1.12 2004/06/15 18:27:30 danielc Exp $ --> + <!-- $Id: package.xml,v 1.13 2004/06/15 19:24:57 danielc Exp $ --> <name>HTML_Form</name> <summary>Simple HTML form package</summary> <description> @@ -31,7 +31,11 @@ <notes><![CDATA[ * Add $attr, $caption and $capattr parameters to dislpay(). -* Improve docblocks for *passwordRow() methods. +* Remove $attr from *PlaintextRow() methods. + +* Remove ":" from all $title cells to improve flexibility. + +* Improve docblocks for *PasswordRow() methods. ]]> </notes> <filelist> http://cvs.php.net/diff.php/pear/HTML_Form/HTML/Form.php?r1=1.10&r2=1.11&ty=u Index: pear/HTML_Form/HTML/Form.php diff -u pear/HTML_Form/HTML/Form.php:1.10 pear/HTML_Form/HTML/Form.php:1.11 --- pear/HTML_Form/HTML/Form.php:1.10 Tue Jun 15 14:27:30 2004 +++ pear/HTML_Form/HTML/Form.php Tue Jun 15 15:24:57 2004 @@ -18,7 +18,7 @@ // | Daniel Convissor <danielc@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Form.php,v 1.10 2004/06/15 18:27:30 danielc Exp $ +// $Id: Form.php,v 1.11 2004/06/15 19:24:57 danielc Exp $ // // HTML form utility functions. @@ -51,7 +51,7 @@ * @author Stig Bakken <ssb@fast.no> * @author Urs Gehrig <urs@circle.ch> * @author Daniel Convissor <danielc@php.net> - * @version $Id: Form.php,v 1.10 2004/06/15 18:27:30 danielc Exp $ + * @version $Id: Form.php,v 1.11 2004/06/15 19:24:57 danielc Exp $ * @access public */ class HTML_Form @@ -517,8 +517,6 @@ * * @param string $title the string used as the label * @param string $text a string to be displayed - * @param string $attr a string of additional attributes to be put - * in the element (example: 'id="foo"') * @param string $thattr a string of additional attributes to be put * in the <th> element (example: 'class="foo"') * @param string $tdattr a string of additional attributes to be put @@ -530,11 +528,10 @@ * HTML_Form::displayPlaintext(), HTML_Form::displayPlaintextRow(), * HTML_Form::returnPlaintext(), HTML_Form::returnPlaintextRow() */ - function addPlaintext($title, $text = ' ', $attr = '', - $thattr = 'align="right"', $tdattr = '') + function addPlaintext($title, $text = ' ', + $thattr = 'align="right" valign="top"', $tdattr = '') { - $this->fields[] = array('plaintext', $title, $text, $attr, $thattr, - $tdattr); + $this->fields[] = array('plaintext', $title, $text, $thattr, $tdattr); } @@ -1255,8 +1252,6 @@ * * @param string $title the string used as the label * @param string $text a string to be displayed - * @param string $attr a string of additional attributes to be put - * in the element (example: 'id="foo"') * @param string $thattr a string of additional attributes to be put * in the <th> element (example: 'class="foo"') * @param string $tdattr a string of additional attributes to be put @@ -1268,12 +1263,11 @@ * @see HTML_Form::displayPlaintext(), HTML_Form::addPlaintext(), * HTML_Form::returnPlaintext(), HTML_Form::returnPlaintextRow() */ - function displayPlaintextRow($title, $text = ' ', $attr = '', + function displayPlaintextRow($title, $text = ' ', $thattr = 'align="right valign="top""', $tdattr = '') { - print HTML_Form::returnPlaintextRow($title, $text, $attr, $thattr, - $tdattr); + print HTML_Form::returnPlaintextRow($title, $text, $thattr, $tdattr); } @@ -1338,7 +1332,7 @@ $attr = '', $thattr = 'align="right"', $tdattr = '') { $str = " <tr>\n"; - $str .= ' <th ' . $thattr . '>' . $title . ":</th>\n"; + $str .= ' <th ' . $thattr . '>' . $title . "</th>\n"; $str .= ' <td ' . $tdattr . ">\n "; $str .= HTML_Form::returnText($name, $default, $size, $maxlength, $attr); @@ -1410,7 +1404,7 @@ $thattr = 'align="right"', $tdattr = '') { $str = " <tr>\n"; - $str .= ' <th ' . $thattr . '>' . $title . ":</th>\n"; + $str .= ' <th ' . $thattr . '>' . $title . "</th>\n"; $str .= ' <td ' . $tdattr . ">\n "; $str .= HTML_Form::returnPassword($name, $default, $size, $maxlength, $attr); @@ -1475,7 +1469,7 @@ $thattr = 'align="right"', $tdattr = '') { $str = " <tr>\n"; - $str .= ' <th ' . $thattr . '>' . $title . ":</th>\n"; + $str .= ' <th ' . $thattr . '>' . $title . "</th>\n"; $str .= ' <td ' . $tdattr . ">\n "; $str .= HTML_Form::returnCheckbox($name, $default, $attr); $str .= " </td>\n"; @@ -1553,7 +1547,7 @@ $thattr = 'align="right"', $tdattr = '') { $str = " <tr>\n"; - $str .= ' <th ' . $thattr . '>' . $title . ":</th>\n"; + $str .= ' <th ' . $thattr . '>' . $title . "</th>\n"; $str .= ' <td ' . $tdattr . ">\n "; $str .= HTML_Form::returnTextarea($name, $default, $width, $height, $maxlength, $attr); @@ -1781,7 +1775,7 @@ $thattr = 'align="right"', $tdattr = '') { $str = " <tr>\n"; - $str .= ' <th ' . $thattr . '>' . $title . ":</th>\n"; + $str .= ' <th ' . $thattr . '>' . $title . "</th>\n"; $str .= ' <td ' . $tdattr . ">\n"; $str .= HTML_Form::returnSelect($name, $entries, $default, $size, $blank, $multiple, $attr); @@ -1846,7 +1840,7 @@ $attr = '', $thattr = 'align="right"', $tdattr = '') { return " <tr>\n" . - ' <th ' . $thattr . '>' . $title . ":</th>\n" . + ' <th ' . $thattr . '>' . $title . "</th>\n" . ' <td ' . $tdattr . ">\n " . HTML_Form::returnRadio($name, $value, $default, $attr) . " </td>\n" . @@ -1906,7 +1900,7 @@ $thattr = 'align="right"', $tdattr = '') { return " <tr>\n" . - ' <th ' . $thattr . '>' . $title . ":</th>\n" . + ' <th ' . $thattr . '>' . $title . "</th>\n" . ' <td ' . $tdattr . ">\n " . HTML_Form::returnImage($name, $src, $attr) . " </td>\n" . @@ -1989,7 +1983,7 @@ return $str; } else { return " <tr>\n" . - ' <th ' . $thattr . '>' . $title . ":</th>\n" . + ' <th ' . $thattr . '>' . $title . "</th>\n" . ' <td ' . $tdattr . '>' . HTML_Form::returnBlank() . "</td>\n" . " </tr>\n"; } @@ -2063,7 +2057,7 @@ $tdattr = '') { $str = " <tr>\n"; - $str .= ' <th ' . $thattr . '>' . $title . ":</th>\n"; + $str .= ' <th ' . $thattr . '>' . $title . "</th>\n"; $str .= ' <td ' . $tdattr . ">\n"; $str .= HTML_Form::returnFile($name, $maxsize, $size, $accept, $attr); @@ -2207,8 +2201,6 @@ * * @param string $title the string used as the label * @param string $text a string to be displayed - * @param string $attr a string of additional attributes to be put - * in the element (example: 'id="foo"') * @param string $thattr a string of additional attributes to be put * in the <th> element (example: 'class="foo"') * @param string $tdattr a string of additional attributes to be put @@ -2220,12 +2212,12 @@ * @see HTML_Form::displayPlaintext(), HTML_Form::displayPlaintextRow(), * HTML_Form::returnPlaintext(), HTML_Form::addPlaintext() */ - function returnPlaintextRow($title, $text = ' ', $attr = '', + function returnPlaintextRow($title, $text = ' ', $thattr = 'align="right" valign="top"', $tdattr = '') { $str = " <tr>\n"; - $str .= ' <th ' . $thattr . '>' . $title . ":</th>\n"; + $str .= ' <th ' . $thattr . '>' . $title . "</th>\n"; $str .= ' <td ' . $tdattr . ">\n "; $str .= HTML_Form::returnPlaintext($text) . "\n"; $str .= " </td>\n"; @@ -2331,8 +2323,8 @@ $defind = 7; break; case 'plaintext': - $params = 5; - $defind = 4; + $params = 4; + $defind = 3; break; default: // unknown field type http://cvs.php.net/diff.php/pear/HTML_Form/tests/form.phpt?r1=1.3&r2=1.4&ty=u Index: pear/HTML_Form/tests/form.phpt diff -u pear/HTML_Form/tests/form.phpt:1.3 pear/HTML_Form/tests/form.phpt:1.4 --- pear/HTML_Form/tests/form.phpt:1.3 Tue Jun 15 14:32:24 2004 +++ pear/HTML_Form/tests/form.phpt Tue Jun 15 15:24:57 2004 @@ -9,7 +9,7 @@ * * @category HTML * @package HTML_Form - * @version $Id: form.phpt,v 1.3 2004/06/15 18:32:24 danielc Exp $ + * @version $Id: form.phpt,v 1.4 2004/06/15 19:24:57 danielc Exp $ */ if (!defined('PATH_SEPARATOR')) { @@ -481,14 +481,14 @@ <input type="text" name="nm" size="20" value="" /> ------------ RETURN ROW <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <input type="text" name="nm" size="20" value="" /> </td> </tr> ------------ DISPLAY ROW <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <input type="text" name="nm" size="20" value="" /> </td> @@ -497,7 +497,7 @@ <form action="test.php" method="get" > <table > <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <input type="text" name="nm" size="20" value="" /> </td> @@ -513,14 +513,14 @@ <input type="text" name="nm" size="5" value="v" maxlength="9" id="i"/> ------------ RETURN ROW <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <input type="text" name="nm" size="5" value="v" maxlength="9" id="i"/> </td> </tr> ------------ DISPLAY ROW <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <input type="text" name="nm" size="5" value="v" maxlength="9" id="i"/> </td> @@ -529,7 +529,7 @@ <form action="test.php" method="get" > <table > <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <input type="text" name="nm" size="5" value="v" maxlength="9" id="i"/> </td> @@ -545,7 +545,7 @@ <input type="password" name="nm" size="8" value="" /> ------------ RETURN ROW <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <input type="password" name="nm" size="8" value="" /> repeat: <input type="password" name="nm2" size="8" value="" /> @@ -553,7 +553,7 @@ </tr> ------------ DISPLAY ROW <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <input type="password" name="nm" size="8" value="" /> repeat: <input type="password" name="nm2" size="8" value="" /> @@ -563,7 +563,7 @@ <form action="test.php" method="get" > <table > <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <input type="password" name="nm" size="8" value="" /> repeat: <input type="password" name="nm2" size="8" value="" /> @@ -580,7 +580,7 @@ <input type="password" name="nm" size="5" value="v" maxlength="9" id="i"/> ------------ RETURN ROW <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <input type="password" name="nm" size="5" value="v" maxlength="9" id="i"/> repeat: <input type="password" name="nm2" size="5" value="v" maxlength="9" id="i"/> @@ -588,7 +588,7 @@ </tr> ------------ DISPLAY ROW <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <input type="password" name="nm" size="5" value="v" maxlength="9" id="i"/> repeat: <input type="password" name="nm2" size="5" value="v" maxlength="9" id="i"/> @@ -598,7 +598,7 @@ <form action="test.php" method="get" > <table > <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <input type="password" name="nm" size="5" value="v" maxlength="9" id="i"/> repeat: <input type="password" name="nm2" size="5" value="v" maxlength="9" id="i"/> @@ -615,14 +615,14 @@ <input type="checkbox" name="nm" /> ------------ RETURN ROW <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <input type="checkbox" name="nm" /> </td> </tr> ------------ DISPLAY ROW <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <input type="checkbox" name="nm" /> </td> @@ -631,7 +631,7 @@ <form action="test.php" method="get" > <table > <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <input type="checkbox" name="nm" /> </td> @@ -647,14 +647,14 @@ <input type="checkbox" name="nm" checked="checked" id="i"/> ------------ RETURN ROW <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <input type="checkbox" name="nm" checked="checked" id="i"/> </td> </tr> ------------ DISPLAY ROW <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <input type="checkbox" name="nm" checked="checked" id="i"/> </td> @@ -663,7 +663,7 @@ <form action="test.php" method="get" > <table > <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <input type="checkbox" name="nm" checked="checked" id="i"/> </td> @@ -679,14 +679,14 @@ <textarea name="nm" cols="40" rows="5" ></textarea> ------------ RETURN ROW <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <textarea name="nm" cols="40" rows="5" ></textarea> </td> </tr> ------------ DISPLAY ROW <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <textarea name="nm" cols="40" rows="5" ></textarea> </td> @@ -695,7 +695,7 @@ <form action="test.php" method="get" > <table > <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <textarea name="nm" cols="40" rows="5" ></textarea> </td> @@ -711,14 +711,14 @@ <textarea name="nm" cols="5" rows="6" maxlength="9" id="i">v</textarea> ------------ RETURN ROW <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <textarea name="nm" cols="5" rows="6" maxlength="9" id="i">v</textarea> </td> </tr> ------------ DISPLAY ROW <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <textarea name="nm" cols="5" rows="6" maxlength="9" id="i">v</textarea> </td> @@ -727,7 +727,7 @@ <form action="test.php" method="get" > <table > <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <textarea name="nm" cols="5" rows="6" maxlength="9" id="i">v</textarea> </td> @@ -877,7 +877,7 @@ </select> ------------ RETURN ROW <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <select name="nm" size="1" > <option value="0">first</option> @@ -887,7 +887,7 @@ </tr> ------------ DISPLAY ROW <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <select name="nm" size="1" > <option value="0">first</option> @@ -899,7 +899,7 @@ <form action="test.php" method="get" > <table > <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <select name="nm" size="1" > <option value="0">first</option> @@ -924,7 +924,7 @@ </select> ------------ RETURN ROW <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <select name="nm" size="1" > <option value="a">first</option> @@ -934,7 +934,7 @@ </tr> ------------ DISPLAY ROW <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <select name="nm" size="1" > <option value="a">first</option> @@ -946,7 +946,7 @@ <form action="test.php" method="get" > <table > <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <select name="nm" size="1" > <option value="a">first</option> @@ -973,7 +973,7 @@ </select> ------------ RETURN ROW <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <select name="nm[]" size="2" multiple="multiple" id="i"> <option value="">pick</option> @@ -984,7 +984,7 @@ </tr> ------------ DISPLAY ROW <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <select name="nm[]" size="2" multiple="multiple" id="i"> <option value="">pick</option> @@ -997,7 +997,7 @@ <form action="test.php" method="get" > <table > <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <select name="nm[]" size="2" multiple="multiple" id="i"> <option value="">pick</option> @@ -1017,14 +1017,14 @@ <input type="radio" name="nm" value="v" /> ------------ RETURN ROW <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <input type="radio" name="nm" value="v" /> </td> </tr> ------------ DISPLAY ROW <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <input type="radio" name="nm" value="v" /> </td> @@ -1033,7 +1033,7 @@ <form action="test.php" method="get" > <table > <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <input type="radio" name="nm" value="v" /> </td> @@ -1049,14 +1049,14 @@ <input type="radio" name="nm" value="v" checked="checked" id="i"/> ------------ RETURN ROW <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <input type="radio" name="nm" value="v" checked="checked" id="i"/> </td> </tr> ------------ DISPLAY ROW <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <input type="radio" name="nm" value="v" checked="checked" id="i"/> </td> @@ -1065,7 +1065,7 @@ <form action="test.php" method="get" > <table > <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <input type="radio" name="nm" value="v" checked="checked" id="i"/> </td> @@ -1081,14 +1081,14 @@ <input type="image" name="nm" src="gr" /> ------------ RETURN ROW <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <input type="image" name="nm" src="gr" /> </td> </tr> ------------ DISPLAY ROW <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <input type="image" name="nm" src="gr" /> </td> @@ -1097,7 +1097,7 @@ <form action="test.php" method="get" > <table > <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <input type="image" name="nm" src="gr" /> </td> @@ -1113,14 +1113,14 @@ <input type="image" name="nm" src="gr" id="i"/> ------------ RETURN ROW <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <input type="image" name="nm" src="gr" id="i"/> </td> </tr> ------------ DISPLAY ROW <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <input type="image" name="nm" src="gr" id="i"/> </td> @@ -1129,7 +1129,7 @@ <form action="test.php" method="get" > <table > <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <input type="image" name="nm" src="gr" id="i"/> </td> @@ -1167,19 +1167,19 @@ ============ BLANK DEFAULT ============ ------------ RETURN ROW <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > </td> </tr> ------------ DISPLAY ROW <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > </td> </tr> ------------ DISPLAY ADD <form action="test.php" method="get" > <table > <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > </td> </tr> </table> @@ -1189,19 +1189,19 @@ ============ BLANK MANUAL ============ ------------ RETURN ROW <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> </td> </tr> ------------ DISPLAY ROW <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> </td> </tr> ------------ DISPLAY ADD <form action="test.php" method="get" > <table > <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> </td> </tr> </table> @@ -1231,7 +1231,7 @@ <form action="test.php" method="get" > <table > <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > </td> </tr> </table> @@ -1281,7 +1281,7 @@ <input type="file" name="nm" size="20" /> ------------ RETURN ROW <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <input type="hidden" name="MAX_FILE_SIZE" value="1048576" /> <input type="file" name="nm" size="20" /> @@ -1289,7 +1289,7 @@ </tr> ------------ DISPLAY ROW <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <input type="hidden" name="MAX_FILE_SIZE" value="1048576" /> <input type="file" name="nm" size="20" /> @@ -1299,7 +1299,7 @@ <form action="test.php" method="get" enctype="multipart/form-data" > <table > <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <input type="hidden" name="MAX_FILE_SIZE" value="1048576" /> <input type="file" name="nm" size="20" /> @@ -1318,7 +1318,7 @@ <input type="file" name="nm" size="5" accept="ac" id="i"/> ------------ RETURN ROW <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <input type="hidden" name="MAX_FILE_SIZE" value="9" /> <input type="file" name="nm" size="5" accept="ac" id="i"/> @@ -1326,7 +1326,7 @@ </tr> ------------ DISPLAY ROW <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <input type="hidden" name="MAX_FILE_SIZE" value="9" /> <input type="file" name="nm" size="5" accept="ac" id="i"/> @@ -1336,7 +1336,7 @@ <form action="test.php" method="get" enctype="multipart/form-data" > <table > <tr> - <th class="h">Ttl:</th> + <th class="h">Ttl</th> <td class="d"> <input type="hidden" name="MAX_FILE_SIZE" value="9" /> <input type="file" name="nm" size="5" accept="ac" id="i"/> @@ -1364,7 +1364,7 @@ A Caption For You </caption> <tr> - <th align="right">Ttl:</th> + <th align="right">Ttl</th> <td > <input type="text" name="nm" size="20" value="" /> </td>