<?php
if (!isset($sortorder)) $sortorder = NULL;
if (!isset($c_show_sortorder) || (int)$c_show_sortorder === 1){
	print "
<div class='form-row'>
	<label for='sortorder' class='form-label'>".LABEL_SORTORDER."</label>
	<div class='form-cols'>
		<div class='form-col form-xsmall'>
			<div class='form-controls'>
				<input type='text' class='field alignright' id='sortorder' name='sortorder' value='".$sortorder."'>
			</div><!-- /.form-controls -->
		</div><!-- /.form-col-->
	</div><!-- /.form-cols -->
</div><!-- /.form-row -->

<hr/>";
} else {
	print "<input type='hidden' name='sortorder' id='sortorder' value='".$sortorder."'>";
}