add signup form

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9108 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
devjin 2011-09-08 03:18:40 +00:00
parent 113fd92399
commit c82f734f6f
2 changed files with 7 additions and 3 deletions

View file

@ -234,8 +234,12 @@
$fields = array();
foreach($signupForm as $formInfo){
if ($formInfo->required || $formInfo->mustRequired && $formInfo->name != 'password')
$fields[] = sprintf('<field name="%s" required="true" />', $formInfo->name);
if ($formInfo->required || $formInfo->mustRequired){
if($formInfo->name == 'password')
$fields[] = '<field name="password" ><if test="$act == \'procMemberInsert\'" attr="password" value="true" /></field>';
else
$fields[] = sprintf('<field name="%s" required="true" />', $formInfo->name);
}
}
$xml_buff = sprintf($buff, implode('', $fields));