Location: PHPKode > projects > OpenRat CMS > openrat/themes/default/include/html/input.inc.php
<?php if ($this->isEditable() && !$this->isEditMode()) $attr_readonly=true;
	  if ($attr_readonly && empty($$attr_name)) $$attr_name = '- '.lang('EMPTY').' -';
      if(!isset($attr_default)) $attr_default='';
//      $tmp_value = htmlentities(isset($$attr_name)?$$attr_name:$attr_default,ENT_COMPAT,'UTF-8');
      $tmp_value = Text::encodeHtml(isset($$attr_name)?$$attr_name:$attr_default);
      
?><?php if (!$attr_readonly || $attr_type=='hidden') {
	/* Feld editieren */
?><input<?php if ($attr_readonly) echo ' disabled="true"' ?> id="id_<?php echo $attr_name ?><?php if ($attr_readonly) echo '_disabled' ?>" name="<?php echo $attr_name ?><?php if ($attr_readonly) echo '_disabled' ?>" type="<?php echo $attr_type ?>" size="<?php echo $attr_size ?>" maxlength="<?php echo $attr_maxlength ?>" class="<?php echo $attr_class ?>" value="<?php echo $tmp_value ?>" <?php if (in_array($attr_name,$errors)) echo 'style="border:2px dashed red;"' ?> /><?php
if	($attr_readonly) {
	/* Nur anzeigen */
?><input type="hidden" id="id_<?php echo $attr_name ?>" name="<?php echo $attr_name ?>" value="<?php echo $tmp_value ?>" /><?php
 } } else { ?><span class="<?php echo $attr_class ?>"><?php echo $tmp_value ?></span><?php } ?>
Return current item: OpenRat CMS