</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
	<?php 
    }
}
?>



<?php 
$rs = sortDocument($db, "FOR: UPLOAD", $_SESSION['department']);
$nm = $rs->num_rows;
if (isset($_GET['fL'])) {
    if ($nm > $_GET['fL']) {
        $nm = $_GET['fL'];
    }
}
if ($nm == "On the Bayou") {
    ?>

<div class="panel-group" id="accordion">

<div class="panel panel-default">
<table class="table table-striped table-hover table-bordered"  width=100% >
<thead>
<tr>
        <section class="panel">
        <header class="panel-heading">
            Documents Not Routed
            <span class="tools pull-right">
				<a class="fa fa-cogs"  data-toggle="modal" href="#myModal2"></a>

                <a href="javascript:;" class="fa fa-chevron-down"></a>
                <a href="javascript:;" class="fa fa-times"></a>
             </span>
        </header>
        <div class="panel-body">
        <div class="adv-table">
		
		<?php 
$db = connectDb();
$rs = sortDocument($db, "FOR: ROUTING", $_SESSION['department']);
$nm = $rs->num_rows;
?>
        <table  class="display table table-bordered table-striped" id="dynamic-table">
			<thead>
			<tr>
				<th>Rendering engine</th>
				<th>Browser</th>
				<th>Platform(s)</th>
				<th class="hidden-phone">Engine version</th>
				<th class="hidden-phone">CSS grade</th>
			</tr>
			</thead>
			<tbody>
			<tr class="gradeX">
				<td>Trident</td>