</tr>
					</table>
					<table>
						<tr id="header">
							<th>Part #</th>
							<th class="th_alt">Part Name</th>
							<th>Subsystem</th>
							<th class="th_alt">$ / Unit</th>
							<th id="quantity">Quantity</th>
							<th class="th_alt">Total</th>
						</tr>';
for ($i = 0; $i < count($orderslist); $i++) {
    echo "<tr class=\"data\">";
    echo "<td>" . refineOrderVal($orderslist[$i]["PartNumber"]) . "</td>";
    echo "<td>" . refineOrderVal($orderslist[$i]["PartName"]) . "</td>";
    echo "<td>" . refineOrderVal($orderslist[$i]["PartSubsystem"]) . "</td>";
    echo "<td>" . $orderslist[$i]["PartIndividualPrice"] . "</td>";
    echo "<td>" . $orderslist[$i]["PartQuantity"] . "</td>";
    echo "<td>" . $orderslist[$i]["PartTotalPrice"] . "</td>";
    echo "</tr>";
}
echo '</table>
				</div>';
?>
				<div id="form-submitbuttons">
					<form id="approval" method="post" action="">
						<fieldset id="comment">
							<p>Comment</p>
							<?php 
$comment = $orders[0]["MentorComment"];
echo "<textarea class=\"form_textarea\" name=\"comment\">{$comment}</textarea>";
if (count($orders) == 0) {
    echo "<br />";
    echo '<p>There are currently no orders in the database.</p>';
}
for ($i = 0; $i < count($orders); $i++) {
    echo '<div class="forms_display clearfix"><span class="forms_display_head"><p><strong>';
    echo refineOrderVal($orders[$i]["UserSubteam"]);
    echo "</strong> - <em>" . refineStatus($orders[$i]["Status"]) . "</em></p></span><h3>";
    echo "<a href=\"vieworder.php?id=" . $orders[$i]["OrderID"] . "\">";
    echo refineOrderVal($orders[$i]["PartVendorName"]);
    echo '</a></h3><ul><li><strong>Order ID: </strong>';
    echo $orders[$i]["OrderID"];
    echo '</li><li><strong>Current Status: </strong>';
    echo refineStatus($orders[$i]["Status"]);
    echo '</li><li><strong>Submitted by: </strong>';
    echo refineOrderVal($orders[$i]["Username"]);
    echo '</li></ul><span class="forms_display_price">$';
    echo $orders[$i]["EstimatedTotalPrice"];
    echo '</span><span class="forms_display_viewmore"><a href="';
    echo "vieworder.php?id=" . $orders[$i]["OrderID"] . "\">";
    echo 'View More &raquo;</a></span>';
    if ($orders[$i]["MentorApproved"] === "1" && $controller->isAdmin($viewerUsername)) {
        echo '<span class="forms_display_viewmore">';
        echo '<a href="';
        echo "changeorder.php?id=" . $orders[$i]["OrderID"] . "\">";
        echo "Change Order &raquo;</a>";
        echo "</span>";
    }
    echo '</div>';
}
?>
 			echo "<td>" . $orders[$i][0]["EstimatedTotalPrice"] . "</td>";
 			echo "<td>" . refineOrderVal($orders[$i][0]["PartVendorName"]) . "</td>";
 			echo "<td>" . refineOrderVal($orders[$i][0]["PartVendorEmail"]) . "</td>";
 			echo "<td>" . refineOrderVal($orders[$i][0]["PartVendorAddress"]) . "</td>";
 			echo "<td>" . refineOrderVal($orders[$i][0]["PartVendorPhoneNumber"]) . "</td>";
 			echo "<td>" . refineOrderVal($orders[$i][0]["AdminComment"]) . "</td>";
 			echo "<td>" . refineOrderVal($orders[$i][0]["AdminApproved"]) . "</td>";
 			echo "<td>" . refineOrderVal($orders[$i][0]["AdminUsername"]) . "</td>";
 			echo "<td>" . refineOrderVal($orders[$i][0]["Locked"]) . "</td>";
 			echo "</tr>"; */
 //echo "</a>";
 echo '<div class="forms_display clearfix"><span class="forms_display_head"><p><strong>';
 echo refineOrderVal($orders[$i]["UserSubteam"]);
 echo "</strong> - <em>" . refineStatus($orders[$i]["Status"]) . "</em></p></span><h3>";
 echo "<a href=\"vieworder.php?id=" . $orders[$i]["OrderID"] . "\">";
 echo refineOrderVal($orders[$i]["PartVendorName"]);
 echo '</a></h3><ul><li><strong>Order ID: </strong>';
 echo $orders[$i]["OrderID"];
 echo '</li><li><strong>Current Status: </strong>';
 echo refineStatus($orders[$i]["Status"]);
 echo '</li>';
 if ($orders[$i]["MentorApproved"] === "1") {
     $count = $controller->getPrintCount($orders[0]["OrderID"]);
     $plural = "";
     if ($count != 1) {
         $plural = "s";
     }
     echo "<li>This order has been printed {$count} time{$plural}</li>";
 }
 //all orders in viewmyforms have submittinguser as the current user, unnecessary code
 //echo '<li><strong>Submitted by: </strong>';