<div id="attributeValuesWrap">
	<?php 
	Loader::helper('text');
	if(!is_array($akValues)) $akValues=explode("\n",$akValues);
	foreach($akValues as $akValue){ 
		if(!strlen(trim($akValue))) continue;
		?>
		<div id="akValueWrap_<?php echo $akValue?>" class="akValueWrap">
			<?php echo getAttributeOptionHTML( $akValue )?>
		</div>
	<?php  } ?>
	</div>
	<div class="ccm-spacer"></div>
	
	<div id="akValueWrapTemplate" class="akValueWrap" style="display:none">
		<?php echo getAttributeOptionHTML() ?>
	</div>
	<div class="ccm-spacer"></div>
	
	<div id="addAttributeValueWrap"> 
		<input id="akValueFieldNew" name="akValueNew" type="text" value="<?php echo $defaultNewOptionNm ?>" size="40" class="faint" 
		onfocus="ccmAttributesHelper.clrInitTxt(this,'<?php echo $defaultNewOptionNm ?>','faint',0)" 
		onblur="ccmAttributesHelper.clrInitTxt(this,'<?php echo $defaultNewOptionNm ?>','faint',1)"
		onkeypress="ccmAttributesHelper.addEnterClick(event,function(){ccmAttributesHelper.saveNewOption()})"
		 /> 
		<a onClick="ccmAttributesHelper.saveNewOption()"><?php echo t('Add') ?> +</a>
	</div>
	
	<div id="allowOtherValuesWrap" style="display:<?php echo ($akType != 'SELECT' && $akType != 'SELECT_MULTIPLE')?'none':'block' ?>">
		<input type="checkbox" name="akAllowOtherValues" style="vertical-align: middle" <?php  if ($akAllowOtherValues) { ?> checked <?php  } ?> /> <?php echo t('Allow users to add to this list.')?>
	</div>
Beispiel #2
0
 akSelectValueWrapSortable <?php 
    }
    ?>
">
			<?php 
    echo getAttributeOptionHTML($v);
    ?>
		</div>
	<?php 
}
?>
	</div>

	<div id="akSelectValueWrapTemplate" class="akSelectValueWrap" style="display:none">
		<?php 
echo getAttributeOptionHTML('TEMPLATE');
?>
	</div>

	<div id="addAttributeValueWrap">
		<input id="akSelectValueFieldNew" name="akSelectValueNew" type="text" value="<?php 
echo $defaultNewOptionNm;
?>
" size="40" class="faint"
		onfocus="ccmAttributesHelper.clrInitTxt(this,'<?php 
echo $defaultNewOptionNm;
?>
','faint',0)"
		onblur="ccmAttributesHelper.clrInitTxt(this,'<?php 
echo $defaultNewOptionNm;
?>
    echo $akValue;
    ?>
" class="akValueWrap">
			<?php 
    echo getAttributeOptionHTML($akValue);
    ?>
		</div>
	<?php 
}
?>
	</div>
	<div class="ccm-spacer"></div>
	
	<div id="akValueWrapTemplate" class="akValueWrap" style="display:none">
		<?php 
echo getAttributeOptionHTML();
?>
	</div>
	<div class="ccm-spacer"></div>
	
	<div id="addAttributeValueWrap"> 
		<input id="akValueFieldNew" name="akValueNew" type="text" value="<?php 
echo $defaultNewOptionNm;
?>
" size="40" class="faint" 
		onfocus="ccmAttributesHelper.clrInitTxt(this,'<?php 
echo $defaultNewOptionNm;
?>
','faint',0)" 
		onblur="ccmAttributesHelper.clrInitTxt(this,'<?php 
echo $defaultNewOptionNm;