<td><?php echo $item->getOrden(); ?> </td> <td><?php $value = ""; if (!$item->getEsInconsistente()) { $value = image_tag('/images/icons/tick.png', array('alt' => __('ok'), 'title' => __('ok'))); } else { $value = image_tag('/images/icons/error.png', array('alt' => __('ha sido alterado'), 'title' => __('ha sido alterado'))); } echo $value; ?> </td> <td><?php $valor = item_base_to_string($item); echo $valor ? $valor : '-'; ?> </td> <td><?php $tiene_ayuda = $item->getAyuda() && $item->getAyuda() != ''; echo image_ok($tiene_ayuda); ?> </td> <td><?php $tiene_texto_auxiliar = $item->getTextoAuxiliar(); echo image_ok($tiene_texto_auxiliar); ?> </td>
} if ($cerrado) { $value .= "<div class=\"content\">"; } $control_name_radio = $campo_name . "[item_base]"; $control_id_radio = $campo_name . "_item_base_"; $control_name_check = $campo_name . "[item_base_"; if ($campo->getDesplegable()) { $value .= "<select name=\"" . $control_name_radio . "\" id=\"" . $control_id_radio . "\">\n"; } else { $value .= "<ul class=\"sf_admin_checklist\">\n"; } $es_primero = true; foreach ($items_base as $item_base) { $valor = isset($items_formulario[$item_base->getIdItemBase()]) ? $items_formulario[$item_base->getIdItemBase()] : null; $etiqueta = item_base_to_string($item_base, $campo); if ($campo->getDesplegable()) { if ($valor) { if ($valor->getSiNo()) { $selected = "SELETED"; } else { $selected = ""; } } else { $selected = ""; } $value .= "<option value=\"" . $item_base->getPrimaryKey() . "\" {$selected}>" . (isset($etiqueta) ? $etiqueta : '-') . "</option>"; } else { $value .= "<li>"; if (!$campo->getSeleccionMultiple()) { $id_aux = $control_id_radio . $item_base->getPrimaryKey();