<?php
if (isset($level_data) && is_array($level_data)){
	print "
<span class='headline'>".LABEL_ACTIVATED."</span>";
	foreach ($level_data AS $key => $value){
		print "
<div class='form-row'>
	<label for='level_c_active_".$key."' class='form-label'>".$value['title']."</label>
	<div class='form-cols'>
		<div class='form-col'>
			<div class='form-controls'>";
if ($value['value_c_active']){
	print "
				<input type='checkbox' class='field' id='level_c_active_".$key."' ' name='level_data[".$key."][value_c_active]' value='1' checked='checked'>";
} else {
	print "
				<input type='checkbox' class='field' id='level_c_active_".$key."' ' name='level_data[".$key."][value_c_active]' value='1'>";
}
print "
			</div><!-- /.form-controls -->
		</div><!-- /.form-col -->
	</div><!-- /.form-cols -->
</div><!-- /.form-row -->";
	}
	print "<hr />";
}