output($this->javascript->link('sha1').$this->javascript->link('d_auth')); } function formHeader($action,$formAction,$cleartext) { $output =''; if($action && $formAction) { if ($cleartext) { $output = "
"; } else { $output = "

$action $this->noClearTextErrorMessage

"; $output .= ""; $output .= $this->javascript->codeBlock("removeError('$this->noClearTextErrorId');fixForm('$this->noClearTextFormId','$formAction');"); } } return $this->output($output); } function errorMsg($action,$error) { $output = ''; if(!$action) { $action = 'Action'; } if ($error) { $output = "

$action failed: $error

"; } return $this->output($output); } function emptyField($id = null) { $output =''; if ($id) { $output = $this->javascript->codeBlock("emptyField('$id');"); } return $this->output($output); } function formInput($name,$type) { $output =''; if($name && $type) { $output = "
"; $output .= $this->html->input($type, array('size' => 20, 'class' => 'TextField', 'id'=>low($name))); $output .= $this->html->tagErrorMsg($type, 'Please enter your '.low($name)).'
'; } return $this->output($output); } function formPassword($name,$type) { $output =''; if($name && $type) { $output = "
"; $output .= $this->html->password($type, array('size' => 20, 'class' => 'TextField', 'id'=>low($name))); $output .= $this->html->tagErrorMsg($type, 'Please enter your '.low($name)).'
'; } return $this->output($output); } function hiddenField($name,$type,$value) { $output =''; if($name && $type) { $output = $this->html->input($type, array('type' => 'hidden', 'id'=>low($name), 'value' => $value)).'
'; } return $this->output($output); } function submit($name = null,$stage2 = true) { if(!$name) { $name = 'Submit'; } $onclick =''; if($stage2) { $onClick = 'Javascript:return doStage2();'; } else { $onClick = 'Javascript:return doStage1();'; } $output = $this->html->submit($name, array('class'=>'Button', 'onclick'=>$onClick)); return $this->output($output); } } ?>