芝麻web文件管理V1.00
编辑当前文件:/home/p/r/i/prismawe/clients/canaldegap.fr_old/modules/FormBuilder/classes/HiddenField.class.php
More info at http://dev.cmsmadesimple.org/projects/formbuilder A Module for CMS Made Simple, Copyright (c) 2006 by Ted Kulp (wishy@cmsmadesimple.org) This project's homepage is: http://www.cmsmadesimple.org */ class fbHiddenField extends fbFieldBase { function fbHiddenField(&$form_ptr, &$params) { $this->fbFieldBase($form_ptr, $params); $mod = &$form_ptr->module_ptr; $this->Type = 'HiddenField'; $this->DisplayInForm = true; $this->NonRequirableField = true; $this->ValidationTypes = array(); $this->HasLabel = 0; $this->NeedsDiv = 0; $this->sortable = false; } function GetFieldInput($id, &$params, $returnid) { $mod = &$this->form_ptr->module_ptr; if ($this->Value !== false) { $v = $this->Value; } else { $v = $this->GetOption('value',''); } if ($this->GetOption('smarty_eval','0') == '1') { $v = $mod->ProcessTemplateFromData($v); } return '
GetCSSIdTag().' />'; } function PrePopulateAdminForm($formDescriptor) { $mod = &$this->form_ptr->module_ptr; $main = array( array($mod->Lang('title_value'), $mod->CreateInputText($formDescriptor, 'fbrp_opt_value',$this->GetOption('value',''),25,128)) ); $adv = array( array($mod->Lang('title_smarty_eval'), $mod->CreateInputCheckbox($formDescriptor, 'fbrp_opt_smarty_eval', '1',$this->GetOption('smarty_eval','0'))) ); return array('main'=>$main,'adv'=>$adv); } } ?>