當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Contrat::load_board方法代碼示例

本文整理匯總了PHP中Contrat::load_board方法的典型用法代碼示例。如果您正苦於以下問題:PHP Contrat::load_board方法的具體用法?PHP Contrat::load_board怎麽用?PHP Contrat::load_board使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Contrat的用法示例。


在下文中一共展示了Contrat::load_board方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: CommandeFournisseur

    $board = new CommandeFournisseur($db);
    $dashboardlines[] = $board->load_board($user);
}
// Number of commercial proposals opened (expired)
if (!empty($conf->propal->enabled) && $user->rights->propale->lire) {
    include_once DOL_DOCUMENT_ROOT . '/comm/propal/class/propal.class.php';
    $board = new Propal($db);
    $dashboardlines[] = $board->load_board($user, "opened");
    // Number of commercial proposals CLOSED signed (billed)
    $dashboardlines[] = $board->load_board($user, "signed");
}
// Number of services enabled (delayed)
if (!empty($conf->contrat->enabled) && $user->rights->contrat->lire) {
    include_once DOL_DOCUMENT_ROOT . '/contrat/class/contrat.class.php';
    $board = new Contrat($db);
    $dashboardlines[] = $board->load_board($user, "inactives");
    // Number of active services (expired)
    $dashboardlines[] = $board->load_board($user, "expired");
}
// Number of invoices customers (has paid)
if (!empty($conf->facture->enabled) && $user->rights->facture->lire) {
    include_once DOL_DOCUMENT_ROOT . '/compta/facture/class/facture.class.php';
    $board = new Facture($db);
    $dashboardlines[] = $board->load_board($user);
}
// Number of supplier invoices (has paid)
if (!empty($conf->fournisseur->enabled) && !empty($conf->facture->enabled) && $user->rights->facture->lire) {
    include_once DOL_DOCUMENT_ROOT . '/fourn/class/fournisseur.facture.class.php';
    $board = new FactureFournisseur($db);
    $dashboardlines[] = $board->load_board($user);
}
開發者ID:TAASA,項目名稱:Dolibarr-ERP-3.8.1,代碼行數:31,代碼來源:index.php

示例2: Contrat

    include_once DOL_DOCUMENT_ROOT . '/contrat/class/contrat.class.php';
    $board = new Contrat($db);
    $board->load_board($user, "inactives");
    $board->warning_delay = $conf->contrat->services->inactifs->warning_delay / 60 / 60 / 24;
    $board->label = $langs->trans("BoardNotActivatedServices");
    $board->url = DOL_URL_ROOT . '/contrat/services.php?mainmenu=commercial&leftmenu=contracts&mode=0';
    $board->img = img_object($langs->trans("Contract"), "contract");
    $rowspan++;
    $dashboardlines[] = $board;
}
// Number of active services (expired)
if (!empty($conf->contrat->enabled) && $user->rights->contrat->lire) {
    $langs->load("contracts");
    include_once DOL_DOCUMENT_ROOT . '/contrat/class/contrat.class.php';
    $board = new Contrat($db);
    $board->load_board($user, "expired");
    $board->warning_delay = $conf->contrat->services->expires->warning_delay / 60 / 60 / 24;
    $board->label = $langs->trans("BoardRunningServices");
    $board->url = DOL_URL_ROOT . '/contrat/services.php?mainmenu=commercial&leftmenu=contracts&mode=4&filter=expired';
    $board->img = img_object($langs->trans("Contract"), "contract");
    $rowspan++;
    $dashboardlines[] = $board;
}
// Number of invoices customers (has paid)
if (!empty($conf->facture->enabled) && $user->rights->facture->lire) {
    $langs->load("bills");
    include_once DOL_DOCUMENT_ROOT . '/compta/facture/class/facture.class.php';
    $board = new Facture($db);
    $board->load_board($user);
    $board->warning_delay = $conf->facture->client->warning_delay / 60 / 60 / 24;
    $board->label = $langs->trans("CustomerBillsUnpaid");
開發者ID:ADDAdev,項目名稱:Dolibarr,代碼行數:31,代碼來源:index.php


注:本文中的Contrat::load_board方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。