当前位置: 首页>>代码示例>>PHP>>正文


PHP member_prepare_head函数代码示例

本文整理汇总了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 . '&nbsp;</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%">';
开发者ID:Samara94,项目名称:dolibarr,代码行数:31,代码来源:agenda.php

示例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']);
     }
 }
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:36,代码来源:actions_adherentcard_default.class.php

示例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&eacute;rents|ES:M&oacute;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 . '&nbsp;</td>';
print '</tr>';
// Firstname
print '<tr><td width="15%">' . $langs->trans("Firstname") . '</td><td class="valeur">' . $adh->firstname . '&nbsp;</td>';
print '</tr>';
// Login
print '<tr><td>' . $langs->trans("Login") . '</td><td class="valeur">' . $adh->login . '&nbsp;</td></tr>';
开发者ID:TAASA,项目名称:Dolibarr-ERP-3.8.1,代码行数:31,代码来源:ldap.php

示例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);
开发者ID:Albertopf,项目名称:prueba,代码行数:31,代码来源:categorie.php


注:本文中的member_prepare_head函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。