<?php
if (isset($_POST['sortorder_from'])) $sortorder_from = addslashes(trim(strip_tags(stripslashes($_POST['sortorder_from']))));
else $sortorder_from = NULL;

if (isset($_POST['sortorder_to'])) $sortorder_to = addslashes(trim(strip_tags(stripslashes($_POST['sortorder_to']))));
else $sortorder_to = NULL;

print "
<div class='form-row'>
	<label for='sortorder_from' 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_from' name='sortorder_from' value='".$sortorder_from."'>
			</div><!-- /.form-controls -->
		</div><!-- /.form-col-->
		
		<label for='sortorder_from' class='form-label-after'>&nbsp;-&nbsp;</label>
		
		<div class='form-col form-xsmall'>
			<div class='form-controls'>
				<input type='text' class='field alignright' id='sortorder_to' name='sortorder_to' value='".$sortorder_to."'>
			</div><!-- /.form-controls -->
		</div><!-- /.form-col-->
	</div><!-- /.form-cols -->
</div><!-- /.form-row -->

<hr />";