$mc->showMachineLog(); } if (isset($_GET['actlid'])) { $ml->setValue('activitylogid', $_GET['actlid']); $ml->showMaintenanceUI(); } if (isset($_GET['session'])) { checksession('activitylog.html'); } if (isset($_GET['ui'])) { $ml->setValue('mainttypeid', $_GET['mtid']); $ml->setValue('machineid', $_GET['mcid']); $ml->showMaintenanceUI(); } if (isset($_GET['gspmlist'])) { $spm = new SPMaintenance(); $spm->setValue('machineid', $_GET['mcid']); $spm->createSPMTitleList(); $sel = new selectlist('SPM_ID', $spm->getSPMTitleList(), 'Select Maintenance Plan', 'SPM_ID', 'SPM_Title', 'class="required"', '', '1'); } if (isset($_GET['gprop'])) { $ml->setValue('spmid', $_GET['spmid']); $ml->showGPUI(); } if (isset($_GET['spareqty'])) { $spare = new Spares(); $spare->setValue('spareid', $_GET['sid']); $spare->showSpareStockQty(); } if (isset($_GET['viewlog'])) { $data = array('sa' => $_GET['sa']);
<?php require_once 'autoload.php'; $spm = new SPMaintenance(); // print_r($_POST); if (isset($_POST['spmtitle'])) { //print_r($_POST); if (isset($_POST['spmtitle'])) { $spm->setValue('spmtitle', $_POST['spmtitle']); } if (isset($_POST['Machine_ID'])) { $spm->setValue('machineid', $_POST['Machine_ID']); } else { if (isset($_POST['EMachine_ID'])) { $spm->setValue('machineid', $_POST['EMachine_ID']); } } if (isset($_POST['spminterval'])) { $spm->setValue('spminterval', $_POST['spminterval']); } if (isset($_POST['spmtol'])) { $spm->setValue('spmtol', $_POST['spmtol']); } if (isset($_POST['SPM_ID'])) { $spm->setValue('spmid', $_POST['SPM_ID']); $spmid = $_POST['SPM_ID']; } else { $spmid = ''; } if (isset($_POST['spmdesc'])) { $spmdesc = $_POST['spmdesc'];