Ejemplo n.º 1
0
     //machine list
     $tpi = new Training();
     if (isset($_GET['id'])) {
         $id = $_GET['id'];
     } else {
         $id = 'Training_Plan_ID';
     }
     if (isset($_GET['fut'])) {
         $tpi->setValue('futureplans', $_GET['fut']);
     }
     if (isset($_GET['desc'])) {
         $tpd = $_GET['desc'];
     } else {
         $tpd = 'Training Plan';
     }
     $tpi->createPlanList();
     $sel = new selectlist($id, $tpi->getPlanList(), $tpd, 'Training_Plan_ID', 'pldesc', '', '', '1');
     break;
 case 'tcatagory':
     //machine list
     $any = new Anylist();
     $any->createlist('Training_Catagory');
     if (isset($_GET['id'])) {
         $id = $_GET['id'];
     } else {
         $id = 'Catagory_ID';
     }
     if (isset($_GET['class'])) {
         $class = 'class="required"';
     } else {
         $class = '';