Location: PHPKode > projects > GnomePHP > peec-GnomePHP-b5a360b/gnomephp/res/view/crud/form_field.php
<?php 

	if (is_object($value)){
		$value = $value->format('Y-m-d H:i:s');
	}

?>
<?php if (	$fieldInfo['length'] > 75 ||
			$fieldInfo['type'] == 'text'): ?>
	<textarea cols="30" rows="5" name="<?php echo $fieldName?>"><?php echo $value?></textarea>
<?php elseif(isset($fieldInfo['id']) && $fieldInfo['id'] == true): /* Skip ID. */ ?>

<?php elseif($fieldInfo['type']=='boolean'): /* Skip ID. */ ?>
	Yes<input type="radio" name="<?php echo $fieldName?>" value="1" <?php if ($value==1)echo 'checked="checked"'?> />
	No<input type="radio" name="<?php echo $fieldName?>" value="0" <?php if ($value==0)echo 'checked="checked"'?> />

<?php else: ?>
	<input type="text" name="<?php echo $fieldName?>" value="<?php echo $value?>" />
<?php endif; ?>
Return current item: GnomePHP