<?php require_once 'autoload.php'; $gage = new Gage(); // print_r($_POST); if (isset($_POST['rdatedb'])) { //print_r($_POST); if (isset($_POST['slno'])) { $gage->setValue('slno', $_POST['slno']); } if (isset($_POST['Gage_ID'])) { $gage->setValue('gageid', $_POST['Gage_ID']); } if (isset($_POST['gagetype'])) { $gage->setValue('gagetype', $_POST['gagetype']); } if (isset($_POST['gatepassno'])) { $gage->setValue('gatepassno', $_POST['gatepassno']); } if (isset($_POST['rdatedb'])) { $gage->setValue('rdatedb', $_POST['rdatedb']); } $gage->saveProperty(); } else { if (isset($_POST['delgage'])) { //print_r($_POST); $delgage = $_POST['delgage']; $gid = $_POST['Gage_SlNo_ID']; $i = 0; $j = count($gid); while ($i < $j) {
$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(); $gage->createGageList(); if (isset($_GET['id'])) { $id = $_GET['id']; } else { $id = 'Gage_ID'; } $sel = new selectlist($id, $gage->getGageList(), 'Select Thread Sizes', 'Gage_ID', 'Gage_Desc', '', '', '1'); break; case 'infocatagory': //machine list $any = new Anylist(); $any->createlist('Information_Catagory'); if (isset($_GET['id'])) { $id = $_GET['id']; } else {
$do_upload = $upload->upload($_FILES['pdraw'], '', $drev); } } } if ($do_upload) { $message = '<p>' . $upload->upload_success() . '</p>'; print "{$message}"; } else { $message = $upload->show_errors(); print "{$message}"; } } } else { if (isset($_GET['ui'])) { if (isset($_GET['opid'])) { $operationid = $_GET['opid']; $operation->setOperationID($operationid); } $operation->showOperationUI(); } if (isset($_GET['gl'])) { $gage = new Gage(); $opid = $_GET['opid']; $gl = explode(',', $_GET['gl']); foreach ($gl as $key => $value) { if ($value != '') { $gage->saveOPGageList($opid, $value); } } } }