Пример #1
0
     break;
 case 'leave':
     //machine list
     $l = new Operator();
     $l->createLEaveList();
     $sel = new selectlist('Leave_ID', $l->getLeaveList(), 'Select Leave to Approve', 'Leave_ID', 'leavedesc', '', '', '1');
     break;
 case 'qmsactivity':
     //machine list
     $l = new QMS();
     if (isset($_GET['id'])) {
         $id = $_GET['id'];
     } else {
         $id = '';
     }
     $l->createQMSTitleList();
     $sel = new selectlist('QMS_Sch_ID', $l->getQMSTitleList(), 'Select QMS Activity', 'QMS_Sch_ID', 'QMS_Title', 'class="required"', $id, '1');
     break;
 case 'qmsdesc':
     //machine list
     $any = new Anylist();
     if (isset($_GET['qmsdescid'])) {
         $qmsdescid = $_GET['qmsdescid'];
     } else {
         $qmsdescid = '';
     }
     $any->createAnyGrid('QMS_Desc', 'QMS_Desc', 'QMS_Desc_ID', $qmsdescid, 'QMS_Sch_ID', $_GET['qmsschid']);
     break;
 default:
     # code...
     break;
Пример #2
0
        $i = 0;
        $j = count($qmsdesc);
        while ($i < $j) {
            $qms->setValue('qmsdesc', $qmsdesc[$i]);
            if (isset($qmsdescid[$i])) {
                $qms->setValue('qmsdescid', $qmsdescid[$i]);
            } else {
                $qms->setValue('qmsdescid', '');
            }
            $qms->saveQMSDesc();
            $i++;
        }
    }
    if (isset($deldesc)) {
        $qms->delQMSDesc($deldesc);
    }
} else {
    if (isset($_GET['ui'])) {
        if (isset($_GET['qmsschid'])) {
            $qms->setValue('qmsschid', $_GET['qmsschid']);
        }
        $qms->showQMSUI();
    }
    if (isset($_GET['qmslist'])) {
        $qms->createQMSTitleList();
        $sel = new selectlist('QMS_Sch_ID', $qms->getQMSTitleList(), 'Select title To Edit', 'QMS_Sch_ID', 'QMS_Title', '', '', '1');
    }
    if (isset($_GET['newtmrow'])) {
        $qms->showQMSrow($_GET['id']);
    }
}