コード例 #1
0
     } else {
         $id = 'Operation_ID';
     }
     if (isset($_GET['backedup'])) {
         $ope->setValue('nobackedup', 1);
     }
     $ope->createOperationList($_GET['did']);
     $sel = new selectlist($id, $ope->getOperationList(), 'Select Operation', 'Operation_ID', 'Operation_Desc', $req, '');
     break;
 case 'supplier':
     $supp = new Supplier();
     if (isset($_GET['bid'])) {
         $supp->setBrandID($_GET['bid']);
     }
     if (isset($_GET['scopeid'])) {
         $supp->setValue('scopeidl', $_GET['scopeid']);
     }
     if (isset($_GET['onlyapproved'])) {
         $supp->setValue('onlyapproved', $_GET['onlyapproved']);
     }
     if (isset($_GET['class'])) {
         $class = 'class="required"';
     } else {
         $class = '';
     }
     $supp->createSupplierList();
     $sel = new selectlist('Supplier_ID', $supp->getSupplierList(), 'Select Supplier', 'Supplier_ID', 'Supplier_Name', $class, '');
     break;
 case 'brand':
     $brand = new Brand();
     $brand->createBrandList();
コード例 #2
0
ファイル: supplier.php プロジェクト: sknagesh/divyaeng2
     $cid = $_POST['cid'];
 } else {
     $cid = '';
 }
 if (isset($_POST['pimg'])) {
     $pimg = $_POST['pimg'];
 } else {
     $pimg = '';
 }
 if (isset($_POST['blistsupplier'])) {
     $blistsupplier = explode(',', $_POST['blistsupplier']);
 } else {
     $blistsupplier = '';
 }
 if (isset($_POST['Scope_ID'])) {
     $supplier->setValue('scopeid', $_POST['Scope_ID']);
 }
 if (isset($_POST['Status_ID'])) {
     $supplier->setValue('appstatus', $_POST['Status_ID']);
 }
 if (isset($_POST['sremarks'])) {
     $supplier->setValue('sremarks', $_POST['sremarks']);
 }
 if (isset($_POST['appdatedb'])) {
     $supplier->setValue('appdatedb', $_POST['appdatedb']);
 }
 if (isset($_POST['supscopeid'])) {
     $supplier->setValue('supscopeid', $_POST['supscopeid']);
 }
 if (isset($_POST['showinlist'])) {
     $supplier->setValue('showinlist', $_POST['showinlist']);