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,9 +234,13 @@
$fields = array();
foreach($signupForm as $formInfo){
if ($formInfo->required || $formInfo->mustRequired && $formInfo->name != 'password')
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));
FileHandler::writeFile($xml_file, $xml_buff);

View file

@ -27,7 +27,7 @@
<p class="q">{$identifierForm->title} <em style="color:red">*</em></p>
<p class="a">
<input type="hidden" name="{$identifierForm->name}" value="{$identifierForm->value}" />
<input type="text" name="{$identifierForm->name}" value="{$identifierForm->value}" disabled="disabled" />
<input type="text" name="{$identifierForm->name}" value="{$identifierForm->value}" />
</p>
</li>
<li>