--- nfo/php/libs/com.newsblob.phphtmllib/form/StandardFormContent.inc 2004/05/06 16:27:24 1.3
+++ nfo/php/libs/com.newsblob.phphtmllib/form/StandardFormContent.inc 2005/08/11 14:09:26 1.4
@@ -8,9 +8,9 @@
* as a Confirmation of the Form.
*
*
- * $Id: StandardFormContent.inc,v 1.3 2004/05/06 16:27:24 jonen Exp $
+ * $Id: StandardFormContent.inc,v 1.4 2005/08/11 14:09:26 jonen Exp $
*
- * @author Walter A. Boring IV
+ * @author Walter A. Boring IV
* @package phpHtmlLib
* @subpackage FormProcessing
*/
@@ -110,7 +110,13 @@
*/
function form_confirm( $title = "Form Confirmation", $show_buttons=TRUE ) {
$title = $title._HTML_SPACE;
- $title .="( ".$this->_required_field_marker." ".$this->_required_field_text." )";
+
+ //only show this if we aren't readonly
+ //if we are in read only mode...required doesn't make sense
+ if (!$this->is_readonly()) {
+ $title .="( ".$this->_required_field_marker." ".$this->_required_field_text." )";
+ }
+
$table = new InfoTable($title, $this->_width);
$this->build_confirm_table( $table );