当前位置: 首页>>代码示例>>PHP>>正文


PHP Accounts::showChildAccountTree方法代码示例

本文整理汇总了PHP中Accounts::showChildAccountTree方法的典型用法代码示例。如果您正苦于以下问题:PHP Accounts::showChildAccountTree方法的具体用法?PHP Accounts::showChildAccountTree怎么用?PHP Accounts::showChildAccountTree使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Accounts的用法示例。


在下文中一共展示了Accounts::showChildAccountTree方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Accounts

include "system.php";
include 'class/Accounts.php';
$o = new Accounts();
$action = $_REQUEST['action'];
$o->updated = date("Y-m-d H:i:s", time());
$o->updatedby = $xoopsUser->getVar("uid");
switch ($action) {
    case "ajaxfetch":
        if ($o->fetchAccounts($_REQUEST['accounts_id'])) {
            $o->returnAccountsXML();
        } else {
            echo "<xml><errortext>Cannot retrieve accounts_id:" . $_REQUEST['accounts_id'] . "</errortext></xml>";
        }
        break;
    case "ajaxgetaccounttree":
        echo $o->showChildAccountTree(0, 0);
        break;
    case "ajaxdelete":
        $o->accounts_id = $_POST['accounts_id'];
        if (!$o->deleteAccounts($o->accounts_id)) {
            echo "Warning! Cannot delete this account due to unknown reason.";
        } else {
            echo "Delete record successfully.";
        }
        break;
    case "ajaxsave":
        $o->accounts_id = $_POST['accounts_id'];
        $o->accounts_name = $_POST['accounts_name'];
        $o->defaultlevel = $_POST['defaultlevel'];
        $o->parentaccounts_id = $_POST['parentaccounts_id'];
        $o->parentaccounts_idname = $_POST['parentaccounts_idname'];
开发者ID:gauravsaxena21,项目名称:simantz,代码行数:31,代码来源:accounts.php


注:本文中的Accounts::showChildAccountTree方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。