<?php require_once 'autoload.php'; $ecn = new ECN(); $_SESSION['LAST_ACTIVITY'] = time(); if (isset($_GET['ecnid'])) { $ecn->setValue('ecnid', $_GET['ecnid']); $ecn->showECN(); }
case 'notation': //machine list $not = new OpeNotation(); $not->createList(); if (isset($_GET['class'])) { $class = 'class="required"'; } else { $class = ''; } $sel = new selectlist('Notation_ID', $not->getList(), 'Select Notation', 'Notation', 'description', $class, '', ''); break; case 'ecn': //machine list $ecn = new ECN(); if (isset($_GET['did'])) { $ecn->setValue('drawingid', $_GET['did']); } if (isset($_GET['closed'])) { $ecn->setValue('onlyclosed', $_GET['closed']); } $ecn->createECNList(); if (isset($_GET['class'])) { $class = 'class="required"'; } else { $class = ''; } $sel = new selectlist('ECN_ID', $ecn->getECNList(), 'Select ECN To Edit', 'ECN_ID', 'ECN_NO', $class, '', '1'); break; case 'gage': //machine list $gage = new Gage();
<?php require_once 'autoload.php'; $ecn = new ECN(); if (isset($_POST['problemdescription'])) { //print_r($_POST); //print_r($_FILES); if (isset($_POST['ECN_ID'])) { $ecn->setValue('ecnid', $_POST['ECN_ID']); $ncid = $_POST['ECN_ID']; } $ecn->setValue('requestdatedb', $_POST['ecnddb']); if (isset($_POST['Drawing_ID'])) { $drawingid = $_POST['Drawing_ID']; } else { $drawingid = $_POST['drawing']; } $ecn->setValue('drawingid', $drawingid); $ecn->setValue('problemdescription', $_POST['problemdescription']); $ecn->setValue('solutionrequirement', $_POST['solutionrequirement']); //$ecn->setValue('disposition',$_POST['disposition']); $ecn->setValue('ecnno', $_POST['ecnno']); $targetdate = $_POST['tdatedb']; $department = $_POST['department']; $work = $_POST['work']; $memberremarks = $_POST['memberremarks']; $teammember = $_POST['teammember']; if (isset($_POST['ecntmid'])) { $ecntmid = $_POST['ecntmid']; } if (isset($_POST['pimg'])) {