本文整理汇总了PHP中Propal::load_board方法的典型用法代码示例。如果您正苦于以下问题:PHP Propal::load_board方法的具体用法?PHP Propal::load_board怎么用?PHP Propal::load_board使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Propal
的用法示例。
在下文中一共展示了Propal::load_board方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Propal
include_once DOL_DOCUMENT_ROOT . '/comm/propal/class/propal.class.php';
$board = new Propal($db);
$board->load_board($user, "opened");
$board->warning_delay = $conf->propal->cloture->warning_delay / 60 / 60 / 24;
$board->label = $langs->trans("PropalsToClose");
$board->url = DOL_URL_ROOT . '/comm/propal/list.php?viewstatut=1';
$board->img = img_object($langs->trans("Propals"), "propal");
$rowspan++;
$dashboardlines[] = $board;
}
// Number of commercial proposals CLOSED signed (billed)
if (!empty($conf->propal->enabled) && $user->rights->propale->lire) {
$langs->load("propal");
include_once DOL_DOCUMENT_ROOT . '/comm/propal/class/propal.class.php';
$board = new Propal($db);
$board->load_board($user, "signed");
$board->warning_delay = $conf->propal->facturation->warning_delay / 60 / 60 / 24;
$board->label = $langs->trans("PropalsToBill");
$board->url = DOL_URL_ROOT . '/comm/propal/list.php?viewstatut=2';
$board->img = img_object($langs->trans("Propals"), "propal");
$rowspan++;
$dashboardlines[] = $board;
}
// Number of services enabled (delayed)
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, "inactives");
$board->warning_delay = $conf->contrat->services->inactifs->warning_delay / 60 / 60 / 24;
$board->label = $langs->trans("BoardNotActivatedServices");
示例2: Commande
if (!empty($conf->commande->enabled) && $user->rights->commande->lire) {
include_once DOL_DOCUMENT_ROOT . '/commande/class/commande.class.php';
$board = new Commande($db);
$dashboardlines[] = $board->load_board($user);
}
// Number of suppliers orders a deal
if (!empty($conf->fournisseur->enabled) && $user->rights->fournisseur->commande->lire) {
include_once DOL_DOCUMENT_ROOT . '/fourn/class/fournisseur.commande.class.php';
$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);
示例3: Adherent
$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/liste.php?mainmenu=members&statut=1';
$board->img = img_object($langs->trans("Members"), "user");
$rowspan++;
$dashboardlines[] = $board;
}
//KURT número de orçamentos/visitas para o dia seguinte
$langs->load("propal");
include_once DOL_DOCUMENT_ROOT . "/comm/propal/class/propal.class.php";
$board = new Propal($db);
$board->load_board($user, "next");
$board->label = $langs->trans("VisitasDia");
$board->url = DOL_URL_ROOT . '/comm/propal.php?next=1&mainmenu=commercial&leftmenu=propals';
//para mudar o menu para o da agenda usar: &idmenu=5207&mainmenu=agenda&leftmenu=
$board->img = img_object($langs->trans("Contract"), "contract");
$rowspan++;
$dashboardlines[] = $board;
// Calculate total nb of late
$totallate = 0;
foreach ($dashboardlines as $key => $board) {
if ($board->nbtodolate > 0) {
$totallate += $board->nbtodolate;
}
}
// Show dashboard
$var = true;