07.18
php
saved
joomtex
Note
cf helper
cf helper
- <?php
- class CfHelper extends Helper {
- $output='';
- if($data['multiple_type']==1){
- foreach ($vals as $val){
- $value[$val]=$val;
- $values=$value;
- }
- $output .= $this->Form->label($data['name'],$data['name'].":");
- $output .= $this->Form->select('caractere'.$data['id'],$values);
- $output = $this->Html->para('',$output);
- }else{
- $output .= $this->Form->input('caractere'.$data['id'],array('div'=>false,'type'=>'text','size'=>'30','label'=>$data['name'],'name'=>'data[Annonce][Caractere]['.$data['id'].']'));
- $output = $this->Html->para('',$output);
- }
- }
- // return $this->output("<div id=\"".$options['id']."\" class=\"".$options['class']."\">$output</div>");
- return $this->output($output);
- }
- }
- ?>
Parsed in 0.088 seconds, using GeSHi 1.0.7.14