本文整理汇总了PHP中dol_print_object_info函数的典型用法代码示例。如果您正苦于以下问题:PHP dol_print_object_info函数的具体用法?PHP dol_print_object_info怎么用?PHP dol_print_object_info使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了dol_print_object_info函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: AccountLine
$line = new AccountLine($db);
$line->fetch($_GET["rowid"]);
$line->info($_GET["rowid"]);
$h=0;
$head[$h][0] = DOL_URL_ROOT.'/compta/bank/ligne.php?rowid='.$_GET["rowid"];
$head[$h][1] = $langs->trans("Card");
$h++;
$head[$h][0] = DOL_URL_ROOT.'/compta/bank/info.php?rowid='.$_GET["rowid"];
$head[$h][1] = $langs->trans("Info");
$hselected = $h;
$h++;
dol_fiche_head($head, $hselected, $langs->trans("LineRecord"),0,'account');
print '<table width="100%"><tr><td>';
dol_print_object_info($line);
print '</td></tr></table>';
print '</div>';
$db->close();
llxFooter('$Date: 2011/07/31 22:23:16 $ - $Revision: 1.10 $');
?>
示例2: restrictedArea
}
$result = restrictedArea($user, 'societe', $socid, '&societe');
// Initialize technical object to manage hooks of thirdparties. Note that conf->hooks_modules contains array array
$hookmanager->initHooks(array('infothirdparty'));
/*
* Actions
*/
$parameters = array('id' => $socid);
$reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action);
// Note that $action and $object may have been modified by some hooks
$error = $hookmanager->error;
$errors = array_merge($errors, (array) $hookmanager->errors);
/*
* View
*/
$help_url = 'EN:Module_Third_Parties|FR:Module_Tiers|ES:Empresas';
llxHeader('', $langs->trans("ThirdParty"), $help_url);
$soc = new Societe($db);
$soc->fetch($socid);
$soc->info($socid);
/*
* Affichage onglets
*/
$head = societe_prepare_head($soc);
dol_fiche_head($head, 'info', $langs->trans("ThirdParty"), 0, 'company');
print '<table width="100%"><tr><td>';
dol_print_object_info($soc);
print '</td></tr></table>';
print '</div>';
llxFooter();
$db->close();
示例3: dol_include_once
dol_include_once('/pos/class/ticket.class.php');
require_once DOL_DOCUMENT_ROOT . '/core/class/discount.class.php';
require_once DOL_DOCUMENT_ROOT . "/core/lib/functions2.lib.php";
dol_include_once('/pos/backend/lib/ticket.lib.php');
$langs->load("pos@pos");
// Security check
$ticketid = isset($_GET["ticketid"]) ? $_GET["ticketid"] : '';
if ($user->societe_id) {
$socid = $user->societe_id;
}
if (!$user->rights->pos->backend) {
accessforbidden();
}
/*
* View
*/
$helpurl = 'EN:Module_DoliPos|FR:Module_DoliPos_FR|ES:Módulo_DoliPos';
llxHeader('', '', $helpurl);
$ticket = new Ticket($db);
$ticket->fetch($_GET["id"]);
$ticket->info($_GET["id"]);
$soc = new Societe($db, $ticket->socid);
$soc->fetch($ticket->socid);
$head = ticket_prepare_head($ticket);
dol_fiche_head($head, 'info', $langs->trans("Ticket"), 0, 'ticket');
print '<table width="100%"><tr><td>';
dol_print_object_info($ticket);
print '</td></tr></table>';
print '</div>';
llxFooter();
$db->close();
示例4: accessforbidden
$langs->load("users");
if (!$user->rights->adherent->lire) {
accessforbidden();
}
$rowid = isset($_GET["rowid"]) ? $_GET["rowid"] : $_POST["rowid"];
/*
* Visualisation de la fiche
*
*/
llxHeader();
$form = new Form($db);
$subscription = new Cotisation($db);
$result = $subscription->fetch($rowid);
$h = 0;
$head = array();
$head[$h][0] = DOL_URL_ROOT . '/adherents/fiche_subscription.php?rowid=' . $subscription->id;
$head[$h][1] = $langs->trans("SubscriptionCard");
$head[$h][2] = 'general';
$h++;
$head[$h][0] = DOL_URL_ROOT . '/adherents/info_subscription.php?rowid=' . $subscription->id;
$head[$h][1] = $langs->trans("Info");
$head[$h][2] = 'info';
$h++;
dol_fiche_head($head, 'info', $langs->trans("Subscription"), '', 'payment');
$subscription->info($rowid);
print '<table width="100%"><tr><td>';
dol_print_object_info($subscription);
print '</td></tr></table>';
print '</div>';
$db->close();
llxFooter();
示例5: require_once
require_once(DOL_DOCUMENT_ROOT."/core/lib/stock.lib.php");
$langs->load("stocks");
/*
* View
*/
$help_url='EN:Module_Stocks_En|FR:Module_Stock|ES:Módulo_Stocks';
llxHeader("",$langs->trans("Stocks"),$help_url);
$entrepot = new Entrepot($db);
$entrepot->fetch($_GET["id"]);
$entrepot->info($_GET["id"]);
$head = stock_prepare_head($entrepot);
dol_fiche_head($head, 'info', $langs->trans("Warehouse"), 0, 'stock');
print '<table width="100%"><tr><td>';
dol_print_object_info($entrepot);
print '</td></tr></table>';
print '</div>';
llxFooter();
$db->close();
?>
示例6: GETPOST
$langs->load("compta");
$langs->load("bills");
$langs->load("loan");
$id = GETPOST('id', 'int');
$action = GETPOST("action");
// Security check
$socid = GETPOST('socid', 'int');
if ($user->societe_id) {
$socid = $user->societe_id;
}
$result = restrictedArea($user, 'loan', $id, '', '');
/*
* View
*/
$help_url = 'EN:Module_Loan|FR:Module_Emprunt';
llxHeader("", $langs->trans("Loan"), $help_url);
if ($id > 0) {
$loan = new Loan($db);
$loan->fetch($id);
$loan->info($id);
$head = loan_prepare_head($loan);
dol_fiche_head($head, 'info', $langs->trans("Loan"), 0, 'bill');
print '<table width="100%"><tr><td>';
dol_print_object_info($loan);
print '</td></tr></table>';
print '</div>';
} else {
// $id ?
}
llxFooter();
$db->close();
示例7: restrictedArea
$result = restrictedArea($user, 'fournisseur', $facid, 'facture_fourn', 'facture');
/*
* View
*/
llxHeader();
$fac = new FactureFournisseur($db);
$fac->fetch($_GET["facid"]);
$fac->info($_GET["facid"]);
$soc = new Societe($db, $fac->socid);
$soc->fetch($fac->socid);
$head = facturefourn_prepare_head($fac);
$titre=$langs->trans('SupplierInvoice');
dol_fiche_head($head, 'info', $langs->trans('SupplierInvoice'), 0, 'bill');
print '<table width="100%"><tr><td>';
dol_print_object_info($fac);
print '</td></tr></table>';
print '</div>';
$db->close();
llxFooter('$Date: 2011/07/31 23:57:00 $ - $Revision: 1.14 $');
?>
示例8: GETPOST
* \file htdocs/compta/paiement/info.php
* \ingroup facture
* \brief Onglet info d'un paiement
*/
require '../../main.inc.php';
require_once DOL_DOCUMENT_ROOT . '/core/lib/functions2.lib.php';
require_once DOL_DOCUMENT_ROOT . '/compta/paiement/class/paiement.class.php';
require_once DOL_DOCUMENT_ROOT . '/core/lib/payments.lib.php';
$langs->load("bills");
$langs->load("companies");
$id = GETPOST('id');
/*
* View
*/
llxHeader();
$paiement = new Paiement($db);
$paiement->fetch($id);
$paiement->info($id);
$head = payment_prepare_head($paiement);
dol_fiche_head($head, 'info', $langs->trans("PaymentCustomerInvoice"), 0, 'payment');
print '<table class="border" width="100%">';
// Ref
print '<tr><td valign="top" width="140">' . $langs->trans('Ref') . '</td><td colspan="3">' . $paiement->id . '</td></tr>';
print '</table>';
print '<br>';
print '<table width="100%"><tr><td>';
dol_print_object_info($paiement);
print '</td></tr></table>';
print '</div>';
$db->close();
llxFooter();
示例9: accessforbidden
require_once DOL_DOCUMENT_ROOT . '/commande/class/commande.class.php';
require_once DOL_DOCUMENT_ROOT . '/core/lib/order.lib.php';
if (!$user->rights->commande->lire) {
accessforbidden();
}
$langs->load("orders");
$langs->load("sendings");
// Security check
$socid = 0;
$comid = GETPOST("id", 'int');
if ($user->societe_id) {
$socid = $user->societe_id;
}
$result = restrictedArea($user, 'commande', $comid, '');
/*
* View
*/
llxHeader('', $langs->trans('Order'), 'EN:Customers_Orders|FR:Commandes_Clients|ES:Pedidos de clientes');
$commande = new Commande($db);
$commande->fetch($comid);
$commande->info($comid);
$soc = new Societe($db);
$soc->fetch($commande->socid);
$head = commande_prepare_head($commande);
dol_fiche_head($head, 'info', $langs->trans("CustomerOrder"), 0, 'order');
print '<table width="100%"><tr><td>';
dol_print_object_info($commande);
print '</td></tr></table>';
print '</div>';
$db->close();
llxFooter();
示例10: restrictedArea
$result = restrictedArea($user, 'ficheinter', $fichinterid, 'fichinter');
/*
* View
*/
llxHeader();
$fichinter = new Fichinter($db);
$fichinter->fetch($fichinterid);
$societe = new Societe($db);
$societe->fetch($fichinter->socid);
$head = fichinter_prepare_head($fichinter);
dol_fiche_head($head, 'info', $langs->trans('InterventionCard'), 0, 'intervention');
$fichinter->info($fichinter->id);
print '<table width="100%"><tr><td>';
dol_print_object_info($fichinter);
print '</td></tr></table>';
print '</div>';
$db->close();
llxFooter('$Date: 2011/07/31 23:50:54 $ - $Revision: 1.15 $');
?>
示例11: dol_include_once
// For "custom" directory
require_once DOL_DOCUMENT_ROOT . "/core/lib/functions2.lib.php";
dol_include_once('/pos/class/place.class.php');
dol_include_once('/pos/backend/lib/place.lib.php');
if (!$user->rights->pos->backend) {
accessforbidden();
}
$langs->load("pos@pos");
// Security check
$socid = 0;
$id = GETPOST('id');
if ($user->societe_id) {
$socid = $user->societe_id;
}
//$result=restrictedArea($user,'pos',$id,'');
/*
* View
*/
$helpurl = 'EN:Module_DoliPos|FR:Module_DoliPos_FR|ES:Módulo_DoliPos';
llxHeader('', '', $helpurl);
$place = new place($db);
$place->fetch($id);
$place->info($id);
$head = place_prepare_head($place);
dol_fiche_head($head, 'info', $langs->trans("place"), 0, 'placedesk');
print '<table width="100%"><tr><td>';
dol_print_object_info($place);
print '</td></tr></table>';
print '</div>';
llxFooter();
$db->close();
示例12: llxHeader
/*
* View
*/
llxHeader();
$propal = new Propal($db);
$propal->fetch($_GET["id"]);
$societe = new Societe($db);
$societe->fetch($propal->socid);
$head = propal_prepare_head($propal);
dol_fiche_head($head, 'info', $langs->trans('Proposal'), 0, 'propal');
$propal->info($propal->id);
print '<table width="100%"><tr><td>';
dol_print_object_info($propal);
print '</td></tr></table>';
print '</div>';
$db->close();
llxFooter('$Date: 2011/08/03 00:46:34 $ - $Revision: 1.34 $');
?>
示例13: 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();
示例14: accessforbidden
* \brief Page with log information for emailing
*/
require '../../main.inc.php';
require_once DOL_DOCUMENT_ROOT . '/comm/mailing/class/mailing.class.php';
require_once DOL_DOCUMENT_ROOT . '/core/lib/functions2.lib.php';
require_once DOL_DOCUMENT_ROOT . '/core/lib/emailing.lib.php';
$langs->load("mails");
// Security check
if (!$user->rights->mailing->lire || $user->societe_id > 0) {
accessforbidden();
}
/*
* View
*/
llxHeader('', $langs->trans("Mailing"), 'EN:Module_EMailing|FR:Module_Mailing|ES:Módulo_Mailing');
$form = new Form($db);
$mil = new Mailing($db);
if ($mil->fetch($_REQUEST["id"]) >= 0) {
$head = emailing_prepare_head($mil);
dol_fiche_head($head, 'info', $langs->trans("Mailing"), 0, 'email');
print '<table width="100%"><tr><td>';
$mil->user_creation = $mil->user_creat;
$mil->date_creation = $mil->date_creat;
$mil->user_validation = $mil->user_valid;
$mil->date_validation = $mil->date_valid;
dol_print_object_info($mil);
print '</td></tr></table>';
print '</div>';
}
llxFooter();
$db->close();
示例15: GETPOST
* \ingroup societe
* \brief Onglet info d'un contact
*/
require '../main.inc.php';
require_once DOL_DOCUMENT_ROOT . '/core/lib/functions2.lib.php';
require_once DOL_DOCUMENT_ROOT . '/contact/class/contact.class.php';
require_once DOL_DOCUMENT_ROOT . '/core/lib/contact.lib.php';
$langs->load("companies");
// Security check
$contactid = GETPOST("id", 'int');
if ($user->societe_id) {
$socid = $user->societe_id;
}
$result = restrictedArea($user, 'contact', $contactid, 'socpeople&societe');
$contact = new Contact($db);
/*
* View
*/
$title = !empty($conf->global->SOCIETE_ADDRESSES_MANAGEMENT) ? $langs->trans("Contacts") : $langs->trans("ContactsAddresses");
llxHeader('', $title, 'EN:Module_Third_Parties|FR:Module_Tiers|ES:Módulo_Empresas');
if ($contactid > 0) {
$result = $contact->fetch($contactid, $user);
$contact->info($contactid);
$head = contact_prepare_head($contact);
dol_fiche_head($head, 'info', $title, 0, 'contact');
// TODO Put here ref of card
dol_print_object_info($contact);
dol_fiche_end();
}
llxFooter();
$db->close();