<?php
if (isset($category_data) && is_array($category_data)){
	print "
<span class='headline'>".LABEL_TITLE."</span>";
	foreach ($category_data AS $key => $value){
		print "
<div class='form-row'>
	<label for='category_title_".$key."' class='form-label'>".$value['title']."</label>
	<div class='form-cols'>
		<div class='form-col form-full'>
			<div class='form-controls'>
				<textarea name='category_data[".$key."][value_title]' class='field' id='category_title_".$key."'>".$value['value_title']."</textarea>
			</div><!-- /.form-controls -->
		</div><!-- /.form-col -->
	</div><!-- /.form-cols -->
</div><!-- /.form-row -->";
	}
	print "<hr />";
}