コード例 #1
0
ファイル: bpartner.php プロジェクト: gauravsaxena21/simantz
         } 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'>";
         }
         //  $o->includeGeneralFile();
         $o->getBpartnerForm($o->bpartner_id);
     } else {
         echo "Error! Cannot fetch data! Please contact administrator to know more info.";
     }
     require XOOPS_ROOT_PATH . '/footer.php';
     die;
     break;
     //frontpage of add new bpartner
 //frontpage of add new bpartner
 case "create":
     include_once "menu.php";
     $o->bpartnergroup_id = $_POST['bpartnergroup_id'];
     $o->bpartner_no = $_POST['bpartner_no'];
     $o->bpartner_name = $_POST['bpartner_name'];
     $o->isactive = $_POST['isactive'];
     $o->seqno = $_POST['seqno'];