示例#1
0
 function showUI()
 {
     $db = Database::getInstance();
     $cxn = $db->getConnection();
     $any = new Anylist();
     $any->createlist('Information_Catagory');
     if ($this->infoid != '') {
         $q = "SELECT * FROM Gen_Info WHERE Info_ID={$this->infoid}";
         if (!($res = $cxn->query($q))) {
             exit("error (saveGenInfo): {$cxn->error}");
         }
         $r = mysqli_fetch_assoc($res);
         $this->infodesc = $r['Info_Description'];
         $this->catagoryid = $r['Catagory_ID'];
     }
     echo '<fieldset><legend>General Information File Details</legend>';
     if ($this->infoid != '') {
         $sel = new selectlist('Catagory_ID', $any->anylist, 'Select Information Type', 'Catagory_ID', 'Catagory', 'class="required"', $this->catagoryid, '1');
     }
     echo '<p><label>Information Description</label><input id="infodesc" name="infodesc" class="required" size="50" value="' . $this->infodesc . '"></p>';
     if ($this->infoid != '') {
         $this->listGenInfoFiles();
     }
     echo '</fieldset>';
 }
示例#2
0
     }
     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 = '';
     }
     $sel = new selectlist($id, $any->anylist, 'Select Training Catagory', 'Catagory_ID', 'Catagory', $class, '', '1');
     break;
 case 'question':
     //machine list
     $que = new Question();
示例#3
0
 function listSupplierScope()
 {
     $any = new Anylist();
     $any->createlist('Supplier_Scope');
     $anys = new Anylist();
     $anys->createlist('Supplier_Status');
     echo '<p><label>Supplier Scope</label><table class="tt" id="tscope"><tr><td><input type="button" id="addscoperow" value="Add One More Row"></td></tr>';
     echo '<tr><th>Scope</th><th>Date of Approval</th><th>Approval Status</th><th>Remarks</th></tr>';
     if (isset($this->scopeid[0])) {
         $i = 0;
         $j = count($this->scopeid);
         while ($i < $j) {
             echo '<tr><td><input type="hidden" id="supscopeid[' . $i . ']" name="supscopeid[' . $i . ']" value="' . $this->supscopeid[$i] . '">';
             $sel = new selectlist("Scope_ID[{$i}]", $any->anylist, 'Select Supply Scope', 'Scope_ID', 'Scope', 'class="required"', $this->scopeid[$i], '');
             echo '</td><td><input id="appdate[' . $i . ']" name="appdate[' . $i . ']" class="required" value="' . $this->appdate[$i] . '">';
             echo '<input type="hidden" id="appdatedb[' . $i . ']" name="appdatedb[' . $i . ']" value="' . $this->appdatedb[$i] . '"></td><td>';
             $sel = new selectlist("Status_ID[{$i}]", $anys->anylist, 'Select Status', 'Status_ID', 'Status', 'class="required"', $this->appstatus[$i], '');
             echo '</td><td><input id="sremarks[' . $i . ']" name="sremarks[' . $i . ']" value="' . $this->sremarks[$i] . '"></td></tr>';
             $i++;
         }
     } else {
         echo '<tr><td>';
         $sel = new selectlist("Scope_ID[0]", $any->anylist, 'Select Supply Scope', 'Scope_ID', 'Scope', 'class="required"', '', '');
         echo '</td><td><input id="appdate[0]" name="appdate[0]" class="required" >';
         echo '<input type="hidden" id="appdatedb[0]" name="appdatedb[0]" ></td><td>';
         $sel = new selectlist("Status_ID[0]", $anys->anylist, 'Select Status', 'Status_ID', 'Status', 'class="required"', '', '');
         echo '</td><td><input id="sremarks[0]" name="sremarks[0]"></td></tr>';
     }
     echo '</table>';
 }
示例#4
0
     if (isset($_GET['poid'])) {
         $po->setValue('poid', $_GET['poid']);
     }
     $po->setValue('supplierid', $_GET['sid']);
     $po->showPurchaseOrderUI();
 }
 if (isset($_GET['newtmrow'])) {
     $po->addItemRow($_GET['id']);
 }
 if (isset($_GET['getlist'])) {
     $po->setValue('supplierid', $_GET['sid']);
     $po->getSuppliedItemList();
 }
 if (isset($_GET['scope'])) {
     $any = new Anylist();
     $any->createlist('Supplier_Scope');
     $sel = new selectlist("Scope_ID", $any->anylist, 'Select Supply Scope', 'Scope_ID', 'Scope', '', '', '1');
 }
 if (isset($_GET['pregister'])) {
     if (isset($_GET['sid'])) {
         $po->setValue('supplierid', $_GET['sid']);
     }
     if (isset($_GET['scopeid'])) {
         $po->setValue('scopeid', $_GET['scopeid']);
     }
     $po->listPurchases();
 }
 if (isset($_GET['mlist'])) {
     if (isset($_GET['poid'])) {
         $po->setValue('poid', $_GET['poid']);
     }
示例#5
0
     }
     $supplier->saveRating();
 } else {
     if (isset($_GET['ui'])) {
         if (isset($_GET['cid'])) {
             $cid = $_GET['cid'];
             $supplier->setSID($cid);
         }
         $supplier->showSupplierUI();
     }
     if (isset($_GET['newscrow'])) {
         $id = $_GET['id'];
         $any = new Anylist();
         $any->createlist('Supplier_Scope');
         $anys = new Anylist();
         $anys->createlist('Supplier_Status');
         echo '<tr><td>';
         $sel = new selectlist("Scope_ID[" . $id . "]", $any->anylist, 'Select Supply Scope', 'Scope_ID', 'Scope', 'class="required"', '', '');
         echo '</td><td><input id="appdate[' . $id . ']" name="appdate[' . $id . ']" class="required" >';
         echo '<input type="hidden" id="appdatedb[' . $id . ']" name="appdatedb[' . $id . ']" ></td><td>';
         $sel = new selectlist("Status_ID[" . $id . "]", $anys->anylist, 'Select Status', 'Status_ID', 'Status', 'class="required"', '', '');
         echo '</td><td><input id="sremarks[' . $id . ']" name="sremarks[' . $id . ']"></td></tr>';
     }
     if (isset($_GET['rating'])) {
         $supplier->setSID($_GET['cid']);
         $supplier->listSupplierRating();
     }
     if (isset($_GET['sid'])) {
         $supplier->setValue('id', $_GET['sid']);
         $supplier->showScopeList();
     }