<?php
if (isset($level_data) && is_array($level_data)){
	print "
<span class='headline'>".LABEL_LINK."</span>";
	foreach ($level_data AS $key => $value){
		print "
<div class='form-row'>
	<label for='level_link_".$key."' class='form-label'>".$value['title']."</label>
	<div class='form-cols'>
		<div class='form-col form-medium'>
			<div class='form-controls'>
				<input type='text' class='field' id='level_link_".$key."' name='level_data[".$key."][value_link]' value='".$value['value_link']."'>
			</div><!-- /.form-controls -->
		</div><!-- /.form-col -->
	</div><!-- /.form-cols -->
</div><!-- /.form-row -->";
	}
	print "<hr />";
}
if (isset($level_data) && is_array($level_data)){
	print "
<span class='headline'>".LABEL_LINKTEXT."</span>";
	foreach ($level_data AS $key => $value){
		print "
<div class='form-row'>
	<label for='level_linktext_".$key."' class='form-label'>".$value['title']."</label>
	<div class='form-cols'>
		<div class='form-col form-medium'>
			<div class='form-controls'>
				<input type='text' class='field' id='level_linktext_".$key."' name='level_data[".$key."][value_linktext]' value='".$value['value_linktext']."'>
			</div><!-- /.form-controls -->
		</div><!-- /.form-col -->
	</div><!-- /.form-cols -->
</div><!-- /.form-row -->";
	}
	print "<hr />";
}