<?php

require_once 'autoload.php';
$mc = new Machine();
if (isset($_GET['typeid'])) {
    $mc->setValue('typeid', $_GET['typeid']);
    $mc->showEquipmentList();
}
if (isset($_GET['type'])) {
    $any = new Anylist();
    $any->createList('Machine_Type');
    $sel2 = new selectlist('Type_ID', $any->anylist, 'Select Equipment Type', 'Type_ID', 'Type_Description', 'class="required"', '', '1');
}
?>