生成离线申请表的时候所有都是必选项

This commit is contained in:
wlx 2009-12-25 10:59:13 +00:00
parent 32e038c402
commit bfc996fc3d
2 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,7 @@ class OfflinePdfForm extends Zend_Form
$email->setLabel('E-Mail') $email->setLabel('E-Mail')
->addFilter('StringTrim') ->addFilter('StringTrim')
->addValidator('NotEmpty') ->addValidator('NotEmpty')
->setRequired(true)
->addValidator('EmailAddress'); ->addValidator('EmailAddress');
$realname=new Zend_Form_Element_Text('realname'); $realname=new Zend_Form_Element_Text('realname');

View File

@ -15,3 +15,4 @@ dl.userform dt{float:left;}
dl.zend_form dt label{float:left;width:100px;} dl.zend_form dt label{float:left;width:100px;}
#submitbutton,#savebutton {float:left;} #submitbutton,#savebutton {float:left;}
.zend_form dt{float:left;} .zend_form dt{float:left;}
label.required { background:url(/images/req-asterisk.gif) right no-repeat; padding-right:26px; }