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


PHP Adherent::load_board方法代码示例

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


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

示例1: Account

if (!empty($conf->banque->enabled) && $user->rights->banque->lire && !$user->societe_id) {
    include_once DOL_DOCUMENT_ROOT . '/compta/bank/class/account.class.php';
    $board = new Account($db);
    $dashboardlines[] = $board->load_board($user);
}
// Number of cheque to send
if (!empty($conf->banque->enabled) && $user->rights->banque->lire && !$user->societe_id) {
    include_once DOL_DOCUMENT_ROOT . '/compta/paiement/cheque/class/remisecheque.class.php';
    $board = new RemiseCheque($db);
    $dashboardlines[] = $board->load_board($user);
}
// Number of foundation members
if (!empty($conf->adherent->enabled) && $user->rights->adherent->lire && !$user->societe_id) {
    include_once DOL_DOCUMENT_ROOT . '/adherents/class/adherent.class.php';
    $board = new Adherent($db);
    $dashboardlines[] = $board->load_board($user);
}
// Number of expense reports to pay
if (!empty($conf->expensereport->enabled) && $user->rights->expensereport->lire) {
    include_once DOL_DOCUMENT_ROOT . '/expensereport/class/expensereport.class.php';
    $board = new ExpenseReport($db);
    $dashboardlines[] = $board->load_board($user);
}
// Calculate total nb of late
$totallate = 0;
$var = true;
//Remove any invalid response
//load_board can return an integer if failed or WorkboardResponse if OK
$valid_dashboardlines = array();
foreach ($dashboardlines as $tmp) {
    if ($tmp instanceof WorkboardResponse) {
开发者ID:TAASA,项目名称:Dolibarr-ERP-3.8.1,代码行数:31,代码来源:index.php

示例2: RemiseCheque

    include_once DOL_DOCUMENT_ROOT . '/compta/paiement/cheque/class/remisecheque.class.php';
    $board = new RemiseCheque($db);
    $board->load_board($user);
    $board->warning_delay = $conf->bank->cheque->warning_delay / 60 / 60 / 24;
    $board->label = $langs->trans("BankChecksToReceipt");
    $board->url = DOL_URL_ROOT . '/compta/paiement/cheque/index.php?leftmenu=checks&mainmenu=accountancy';
    $board->img = img_object($langs->trans("BankChecksToReceipt"), "payment");
    $rowspan++;
    $dashboardlines[] = $board;
}
// Number of foundation members
if (!empty($conf->adherent->enabled) && $user->rights->adherent->lire && !$user->societe_id) {
    $langs->load("members");
    include_once DOL_DOCUMENT_ROOT . '/adherents/class/adherent.class.php';
    $board = new Adherent($db);
    $board->load_board($user);
    $board->warning_delay = $conf->adherent->cotisation->warning_delay / 60 / 60 / 24;
    $board->label = $langs->trans("MembersWithSubscriptionToReceive");
    $board->url = DOL_URL_ROOT . '/adherents/list.php?mainmenu=members&statut=1';
    $board->img = img_object($langs->trans("Members"), "user");
    $rowspan++;
    $dashboardlines[] = $board;
}
// Calculate total nb of late
$totallate = 0;
foreach ($dashboardlines as $key => $board) {
    if ($board->nbtodolate > 0) {
        $totallate += $board->nbtodolate;
    }
}
// Show dashboard
开发者ID:ADDAdev,项目名称:Dolibarr,代码行数:31,代码来源:index.php


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