コード例 #1
0
ファイル: bpartner.php プロジェクト: gauravsaxena21/simantz
         $o->orgctrl = $ctrl->selectionOrg($o->createdby, $o->organization_id, 'N', "", 'Y');
         $o->bpartnergroupctrl = $ctrl->getSelectBPartnerGroup($o->bpartnergroup_id, 'Y', "onchange='getDefaultAccount(this.value)'");
         $o->industryctrl = $ctrl->getSelectIndustry($o->industry_id, 'N');
         $o->currencyctrl = $ctrl->getSelectCurrency($o->currency_id, 'N');
         $o->termsctrl = $ctrl->getSelectTerms($o->terms_id, 'Y');
         $o->taxctrl = $ctrl->getSelectTax($o->tax_id, 'Y');
         if ($accountmoduleexist == true) {
             $o->debtoraccountsctrl = $ctrl->getSelectAccounts($o->debtoraccounts_id, 'Y', "onchange=''", "debtoraccounts_id", "");
             $o->creditoraccountsctrl = $ctrl->getSelectAccounts($o->creditoraccounts_id, 'Y', "onchange=''", "creditoraccounts_id", "");
         } else {
             $o->debtoraccountsctrl = "Accounting Module doesn't exist <input type='hidden' name='debtoraccounts_id' value=0>";
             $o->creditoraccountsctrl = "Accounting Module doesn't exist <input type='hidden' name='creditoraccounts_id' value=0>";
         }
         //		$o->accountsctrl=$ctrl->getSelectAccounts($o->accounts_id,'Y',"onchange=''","accounts_id","");
         $o->getInputForm("new", -1, $token);
         $o->showBPartnerTable("WHERE bpartner_id>0 and organization_id={$defaultorganization_id}", "ORDER BY defaultlevel,bp.bpartner_no,bpartner_name");
     }
 } else {
     // if the token is not valid or the token is expired, it back to previous form with previous inputed data
     $token = $s->createToken($tokenlife, "CREATE_BPARTNER");
     $log->saveLog(0, $tablebpartner, $o->updatesql, "I", "F");
     $o->orgctrl = $ctrl->selectionOrg($o->createdby, $o->organization_id, 'N', "", 'Y');
     $o->bpartnergroupctrl = $ctrl->getSelectBPartnerGroup($o->bpartnergroup_id, 'Y', "onchange='getDefaultAccount(this.value)'");
     $o->currencyctrl = $ctrl->getSelectCurrency($o->currency_id, 'N');
     $o->industryctrl = $ctrl->getSelectIndustry($o->industry_id, 'N');
     $o->termsctrl = $ctrl->getSelectTerms($o->terms_id, 'Y');
     $o->taxctrl = $ctrl->getSelectTax($o->tax_id, 'Y');
     if ($accountmoduleexist == true) {
         $o->debtoraccountsctrl = $ctrl->getSelectAccounts($o->debtoraccounts_id, 'Y', "onchange=''", "debtoraccounts_id", "");
         $o->creditoraccountsctrl = $ctrl->getSelectAccounts($o->creditoraccounts_id, 'Y', "onchange=''", "creditoraccounts_id", "");
     } else {
コード例 #2
0
ファイル: bpartnerN.php プロジェクト: gauravsaxena21/simantz
<br/><br/>
<div id="cellvalue">Business Partner: </div>
<table cellpadding="0" cellspacing="0">
<tr>
<td id="tab1" class="switchtab"><a class="tabSelect" href="#Tab0" rel="0" onclick=changetabstyle(1,{$tabcount}) >Business Partner List</a></td>
<td id="tab2" class="switchtab"><a class="tabSelect" href="#Tab1" rel="1" onclick="changetabstyle(2,{$tabcount});loadbasicinfo()">Edit Company Info</a></td>
<td id="tab4" class="switchtab"><a class="tabSelect" href="#Tab3" rel="2" onclick=changetabstyle(3,{$tabcount})>Follow Up</a></td>
<td id="tab7"></td>

</tr>
<tr><td colspan="6" class="tabregion" height="3px"></td></tr>
</table>

\t<div class="SlideTab" id="Tab0" width="100%">
\t\t<h3>Business Partner List</h3>
EOF;
        $o->showBPartnerTable();
        echo <<<EOF
\t</div>
\t<div class="SlideTab" id="Tab1">Edit Basic Info</div>
\t<div class="SlideTab" id="Tab2">
\t\t<h3>View Info</h3>

\t</div>



EOF;
        require XOOPS_ROOT_PATH . '/footer.php';
        break;
}