本文整理匯總了PHP中Contrat::info方法的典型用法代碼示例。如果您正苦於以下問題:PHP Contrat::info方法的具體用法?PHP Contrat::info怎麽用?PHP Contrat::info使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Contrat
的用法示例。
在下文中一共展示了Contrat::info方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: GETPOST
/**
* \file htdocs/contrat/info.php
* \ingroup contrat
* \brief Page des informations d'un contrat
*/
require "../main.inc.php";
require_once DOL_DOCUMENT_ROOT . '/core/lib/functions2.lib.php';
require_once DOL_DOCUMENT_ROOT . '/core/lib/contract.lib.php';
require_once DOL_DOCUMENT_ROOT . '/contrat/class/contrat.class.php';
$langs->load("contracts");
// Security check
$contratid = GETPOST("id", 'int');
if ($user->societe_id) {
$socid = $user->societe_id;
}
$result = restrictedArea($user, 'contrat', $contratid, '');
/*
* View
*/
llxHeader();
$contrat = new Contrat($db);
$contrat->fetch($contratid);
$contrat->info($contratid);
$head = contract_prepare_head($contrat);
dol_fiche_head($head, 'info', $langs->trans("Contract"), 0, 'contract');
print '<table width="100%"><tr><td>';
dol_print_object_info($contrat);
print '</td></tr></table>';
print '</div>';
$db->close();
llxFooter();
示例2: isset
/**
* \file htdocs/contrat/info.php
* \ingroup contrat
* \brief Page des informations d'un contrat
*/
require "../main.inc.php";
require_once DOL_DOCUMENT_ROOT . '/core/lib/functions2.lib.php';
require_once DOL_DOCUMENT_ROOT . '/core/lib/contract.lib.php';
require_once DOL_DOCUMENT_ROOT . '/contrat/class/contrat.class.php';
$langs->load("contracts");
// Security check
$contratid = isset($_GET["id"]) ? $_GET["id"] : '';
if ($user->societe_id) {
$socid = $user->societe_id;
}
$result = restrictedArea($user, 'contrat', $contratid, '');
/*
* View
*/
llxHeader();
$contrat = new Contrat($db);
$contrat->fetch($_GET["id"]);
$contrat->info($_GET["id"]);
$head = contract_prepare_head($contrat);
dol_fiche_head($head, 'info', $langs->trans("Contract"), 0, 'contract');
print '<table width="100%"><tr><td>';
dol_print_object_info($contrat);
print '</td></tr></table>';
print '</div>';
$db->close();
llxFooter();