本文整理汇总了PHP中Organization::showOrganizationTable方法的典型用法代码示例。如果您正苦于以下问题:PHP Organization::showOrganizationTable方法的具体用法?PHP Organization::showOrganizationTable怎么用?PHP Organization::showOrganizationTable使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Organization
的用法示例。
在下文中一共展示了Organization::showOrganizationTable方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
if ($o->insertOrganization()) {
$latest_id = $o->getLatestOrganizationID();
redirect_header("organization.php?action=edit&organization_id={$latest_id}", $pausetime, "Your data is saved.");
} else {
$o->groupctrl = $ctrl->getAllSystemGroup(0);
$token = $s->createToken($tokenlife, "CREATE_ORG");
if ($o->country_id == "") {
$o->country_id = 0;
}
if ($o->currency_id == "") {
$o->currency_id = 0;
}
$o->countryctrl = $ctrl->getSelectCountry($o->country_id, 'N');
$o->currencyctrl = $ctrl->getSelectCurrency($o->currency_id, 'N');
$o->getInputForm("new", -1, $token);
$o->showOrganizationTable("where organization_id>0", "order by defaultlevel,organization_name");
}
} else {
// if the token is not valid or the token is expired, it back to previous form with previous inputed data
$o->groupctrl = $ctrl->getAllSystemGroup(0);
$token = $s->createToken($tokenlife, "CREATE_ORG");
if ($o->country_id == "") {
$o->country_id = 0;
}
if ($o->currency_id == "") {
$o->currency_id = 0;
}
$o->countryctrl = $ctrl->getSelectCountry($o->country_id, 'N');
$o->currencyctrl = $ctrl->getSelectCurrency($o->currency_id, 'N');
$o->getInputForm("new", -1, $token);
$o->showOrganizationTable("where organization_id>0", "order by defaultlevel,organization_name");