本文整理汇总了PHP中member_prepare_head函数的典型用法代码示例。如果您正苦于以下问题:PHP member_prepare_head函数的具体用法?PHP member_prepare_head怎么用?PHP member_prepare_head使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了member_prepare_head函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Contact
* View
*/
$contactstatic = new Contact($db);
$form = new Form($db);
/*
* Fiche categorie de client et/ou fournisseur
*/
if ($object->id > 0) {
require_once DOL_DOCUMENT_ROOT . '/core/lib/company.lib.php';
require_once DOL_DOCUMENT_ROOT . '/societe/class/societe.class.php';
$langs->load("companies");
llxHeader("", $langs->trans("Agenda"), '');
if (!empty($conf->notification->enabled)) {
$langs->load("mails");
}
$head = member_prepare_head($object);
dol_fiche_head($head, 'agenda', $langs->trans("Member"), 0, 'user');
$linkback = '<a href="' . DOL_URL_ROOT . '/adherents/list.php">' . $langs->trans("BackToList") . '</a>';
dol_banner_tab($object, 'rowid', $linkback);
print '<div class="fichecenter">';
print '<div class="underbanner clearboth"></div>';
print '<table class="border centpercent">';
// Login
if (empty($conf->global->ADHERENT_LOGIN_NOT_REQUIRED)) {
print '<tr><td class="titlefield">' . $langs->trans("Login") . ' / ' . $langs->trans("Id") . '</td><td class="valeur">' . $object->login . ' </td></tr>';
}
// Type
print '<tr><td class="titlefield">' . $langs->trans("Type") . '</td><td class="valeur">' . $adht->getNomUrl(1) . "</td></tr>\n";
// Morphy
print '<tr><td>' . $langs->trans("Nature") . '</td><td class="valeur" >' . $object->getmorphylib() . '</td>';
/*print '<td rowspan="'.$rowspan.'" align="center" valign="middle" width="25%">';
示例2: assign_values
/**
* Assign custom values for canvas
*
* @param string $action Type of action
* @param int $id Id
* @return void
*/
function assign_values(&$action, $id)
{
global $conf, $db, $langs, $user;
global $form;
$ret = $this->getObject($id);
parent::assign_values($action, $id);
$this->tpl['title'] = $this->getTitle($action);
$this->tpl['error'] = $this->error;
$this->tpl['errors'] = $this->errors;
if ($action == 'view') {
// Card header
$head = member_prepare_head($this->object);
$title = $this->getTitle($action);
$this->tpl['showhead'] = dol_get_fiche_head($head, 'card', $title, 0, 'adherent');
$this->tpl['showend'] = dol_get_fiche_end();
$objsoc = new Societe($db);
$objsoc->fetch($this->object->socid);
$this->tpl['actionstodo'] = show_actions_todo($conf, $langs, $db, $objsoc, $this->object, 1);
$this->tpl['actionsdone'] = show_actions_done($conf, $langs, $db, $objsoc, $this->object, 1);
} else {
// Confirm delete contact
if ($action == 'delete' && $user->rights->adherent->supprimer) {
$this->tpl['action_delete'] = $form->formconfirm($_SERVER["PHP_SELF"] . "?id=" . $this->object->id, $langs->trans("DeleteAdherent"), $langs->trans("ConfirmDeleteAdherent"), "confirm_delete", '', 0, 1);
}
}
if ($action == 'list') {
$this->LoadListDatas($GLOBALS['limit'], $GLOBALS['offset'], $GLOBALS['sortfield'], $GLOBALS['sortorder']);
}
}
示例3: setEventMessage
// We can say that old dn = dn as we force synchro
$result = $ldap->update($dn, $info, $user, $olddn);
if ($result >= 0) {
setEventMessage($langs->trans("MemberSynchronized"));
$db->commit();
} else {
setEventMessage($ldap->error, 'errors');
$db->rollback();
}
}
/*
* View
*/
llxHeader('', $langs->trans("Member"), 'EN:Module_Foundations|FR:Module_Adhérents|ES:Módulo_Miembros');
$form = new Form($db);
$head = member_prepare_head($adh);
dol_fiche_head($head, 'ldap', $langs->trans("Member"), 0, 'user');
print '<table class="border" width="100%">';
// Ref
print '<tr><td width="20%">' . $langs->trans("Ref") . '</td>';
print '<td class="valeur">';
print $form->showrefnav($adh, 'id');
print '</td></tr>';
// Lastname
print '<tr><td>' . $langs->trans("Lastname") . '</td><td class="valeur">' . $adh->lastname . ' </td>';
print '</tr>';
// Firstname
print '<tr><td width="15%">' . $langs->trans("Firstname") . '</td><td class="valeur">' . $adh->firstname . ' </td>';
print '</tr>';
// Login
print '<tr><td>' . $langs->trans("Login") . '</td><td class="valeur">' . $adh->login . ' </td></tr>';
示例4: Adherent
}
if ($type == Categorie::TYPE_MEMBER) {
$langs->load("members");
/*
* Category card for member
*/
require_once DOL_DOCUMENT_ROOT . '/core/lib/member.lib.php';
require_once DOL_DOCUMENT_ROOT . '/adherents/class/adherent.class.php';
require_once DOL_DOCUMENT_ROOT . '/adherents/class/adherent_type.class.php';
// Produit
$member = new Adherent($db);
$result = $member->fetch($id, $ref);
$membert = new AdherentType($db);
$membert->fetch($member->typeid);
llxHeader("", "", $langs->trans("Member"));
$head = member_prepare_head($member);
$titre = $langs->trans("Member");
$picto = 'user';
dol_fiche_head($head, 'category', $titre, 0, $picto);
$rowspan = 5;
if (empty($conf->global->ADHERENT_LOGIN_NOT_REQUIRED)) {
$rowspan += 1;
}
if (!empty($conf->societe->enabled)) {
$rowspan++;
}
print '<table class="border" width="100%">';
// Ref
print '<tr><td width="20%">' . $langs->trans("Ref") . '</td>';
print '<td class="valeur">';
print $form->showrefnav($member, 'id', '', '1', 'rowid', 'ref', '', '&type=' . $type);