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