コード例 #1
0
ファイル: bpartner.php プロジェクト: gauravsaxena21/simantz
         $o->creditoraccountsctrl = $simbizctrl->getSelectAccounts($o->creditoraccounts_id, 'Y', "onchange=''", "creditoraccounts_id", "");
     } else {
         $o->debtoraccountsctrl = "<input type='text' name='debtoraccounts_id' value='{$o->debtoraccounts_id}'>";
         $o->creditoraccountsctrl = "<input type='text' name='creditoraccounts_id' value='{$o->creditoraccounts_id}'>";
     }
     if ($issales) {
         $o->salespricelistctrl = '<select name="salespricelist_id" id="salespricelist_id">' . $simerpctrl->getSelectPriceList($o->salespricelist_id, 'Y', " AND issotrx=1 ") . '</select >';
     } else {
         $o->salespricelistctrl = "Sales Module doesn't exist  <input type='hidden' name='salespricelist_id' value='0'>";
     }
     if ($ispurchase) {
         $o->purchasepricelistctrl = '<select name="purchasepricelist_id" id="purchasepricelist_id">' . $simerpctrl->getSelectPriceList($o->purchasepricelist_id, 'Y', " AND issotrx=0 ") . '</select >';
     } else {
         $o->purchasepricelistctrl = "Purchase Module doesn't exist  <input type='hidden' name='purchasepricelist_id' value='0'>";
     }
     if ($o->saveBPartner()) {
         if ($isaddnew == "1") {
             redirect_header("bpartner.php", $pausetime, "Your data is saved, redirect to add employee.");
         } else {
             $getid = $o->getLatestBPartnerID();
             redirect_header("bpartner.php?action=edit&bpartner_id={$getid}", $pausetime, "Your data is saved, redirect to employee details.");
         }
     } else {
         echo "<div align='center'><font style='color:red;font-weight:bold'>Failed to saved data. Please try again.</font></div>";
         $o->getInputForm("new");
     }
     require XOOPS_ROOT_PATH . '/footer.php';
     break;
     /* start iframe bpartner nitobi */
     //
 /* start iframe bpartner nitobi */