if (!empty($e) && isset($e[0])) { switch (strtolower(trim($e[0]))) { case 'image': $attributes = array(); if (isset($e[1]) && !empty($e[1])) { $attributes = $e[1]; } $attributes['style'] = 'display:none;'; echo __image('data.' . $field, $attributes); break; case 'text': $attributes = array(); if (isset($e[1]) && !empty($e[1])) { $attributes = $e[1]; } echo __text('data.' . $field, $attributes); break; case 'date': $attributes = array(); $attributes['style'] = "width:180px;"; if (isset($e[1]) && !empty($e[1])) { $attributes = $e[1]; } echo __date('data.' . $field, $attributes); break; case 'datetime': $attributes = array(); $attributes['style'] = "width:180px;"; if (isset($e[1]) && !empty($e[1])) { $attributes = $e[1]; }
} } else { $options = $e[1]; } } $attributes = array(); if (isset($e[2]) && !empty($e[2])) { $attributes = $e[2]; } echo __select('src.' . $field, $options, $attributes); break; } } ?> </div> </div> <?php } } else { if ($this->search == 'one_field') { ?> <?php $attributes = array(); echo __text('src.one_field', $attributes); ?> <?php } } ?> </div>