本文整理汇总了PHP中Adherent::fetch_optionals方法的典型用法代码示例。如果您正苦于以下问题:PHP Adherent::fetch_optionals方法的具体用法?PHP Adherent::fetch_optionals怎么用?PHP Adherent::fetch_optionals使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Adherent
的用法示例。
在下文中一共展示了Adherent::fetch_optionals方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Adherent
print '</div>';
}
if ($rowid && $action != 'edit')
{
/* ************************************************************************** */
/* */
/* Mode affichage */
/* */
/* ************************************************************************** */
$adh = new Adherent($db);
$res=$adh->fetch($rowid);
if ($res < 0) { dol_print_error($db,$adh->error); exit; }
$res=$adh->fetch_optionals($rowid,$extralabels);
if ($res < 0) { dol_print_error($db); exit; }
$adht = new AdherentType($db);
$res=$adht->fetch($adh->typeid);
if ($res < 0) { dol_print_error($db); exit; }
/*
* Affichage onglets
*/
$head = member_prepare_head($adh);
dol_fiche_head($head, 'general', $langs->trans("Member"), 0, 'user');
dol_htmloutput_errors($errmsg,$errmsgs);
示例2:
$morehead = '';
if (!empty($conf->global->MEMBER_PUBLIC_CSS)) {
$morehead = '<link rel="stylesheet" type="text/css" href="' . $conf->global->MEMBER_PUBLIC_CSS . '">';
} else {
$morehead = '<link rel="stylesheet" type="text/css" href="' . DOL_URL_ROOT . '/theme/eldy/style.css.php' . '">';
}
llxHeaderVierge($langs->trans("MemberCard"), $morehead);
// fetch optionals attributes and labels
$extralabels = $extrafields->fetch_name_optionals_label('adherent');
if ($id > 0) {
$res = $object->fetch($id);
if ($res < 0) {
dol_print_error($db, $object->error);
exit;
}
$res = $object->fetch_optionals($object->id, $extralabels);
print load_fiche_titre($langs->trans("MemberCard"), '', '');
if (empty($object->public)) {
print $langs->trans("ErrorThisMemberIsNotPublic");
} else {
print '<table class="public_border" cellspacing="0" width="100%" cellpadding="3">';
print '<tr><td width="15%">' . $langs->trans("Type") . '</td><td class="valeur">' . $object->type . "</td></tr>\n";
print '<tr><td>' . $langs->trans("Person") . '</td><td class="valeur">' . $object->morphy . '</td></tr>';
print '<tr><td>' . $langs->trans("Firstname") . '</td><td class="valeur" width="35%">' . $object->firstname . ' </td></tr>';
print '<tr><td>' . $langs->trans("Lastname") . '</td><td class="valeur">' . $object->lastname . ' </td></tr>';
print '<tr><td>' . $langs->trans("Company") . '</td><td class="valeur">' . $object->societe . ' </td></tr>';
print '<tr><td>' . $langs->trans("Address") . '</td><td class="valeur">' . nl2br($object->address) . ' </td></tr>';
print '<tr><td>' . $langs->trans("Zip") . ' ' . $langs->trans("Town") . '</td><td class="valeur">' . $object->zip . ' ' . $object->town . ' </td></tr>';
print '<tr><td>' . $langs->trans("Country") . '</td><td class="valeur">' . $object->country . ' </td></tr>';
print '<tr><td>' . $langs->trans("EMail") . '</td><td class="valeur">' . $object->email . ' </td></tr>';
print '<tr><td>' . $langs->trans("Birthday") . '</td><td class="valeur">' . $object->birth . ' </td></tr>';
示例3: Adherent
/*
* View
*/
llxHeaderVierge($langs->trans("MemberCard"));
// fetch optionals attributes and labels
$adho->fetch_name_optionals_label();
if ($rowid > 0)
{
$adh = new Adherent($db);
$adh->id = $rowid;
$adh->fetch($rowid);
$adh->fetch_optionals($rowid);
print_titre($langs->trans("MemberCard"));
if (empty($adh->public))
{
print $langs->trans("ErrorThisMemberIsNotPublic");
}
else
{
print '<table class="border" cellspacing="0" width="100%" cellpadding="3">';
print '<tr><td width="15%">'.$langs->trans("Type").'</td><td class="valeur">'.$adh->type."</td></tr>\n";
print '<tr><td>'.$langs->trans("Person").'</td><td class="valeur">'.$adh->morphy.'</td></tr>';