Esempio n. 1
0
	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);
Esempio n. 2
0
$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 . '&nbsp;</td></tr>';
        print '<tr><td>' . $langs->trans("Lastname") . '</td><td class="valeur">' . $object->lastname . '&nbsp;</td></tr>';
        print '<tr><td>' . $langs->trans("Company") . '</td><td class="valeur">' . $object->societe . '&nbsp;</td></tr>';
        print '<tr><td>' . $langs->trans("Address") . '</td><td class="valeur">' . nl2br($object->address) . '&nbsp;</td></tr>';
        print '<tr><td>' . $langs->trans("Zip") . ' ' . $langs->trans("Town") . '</td><td class="valeur">' . $object->zip . ' ' . $object->town . '&nbsp;</td></tr>';
        print '<tr><td>' . $langs->trans("Country") . '</td><td class="valeur">' . $object->country . '&nbsp;</td></tr>';
        print '<tr><td>' . $langs->trans("EMail") . '</td><td class="valeur">' . $object->email . '&nbsp;</td></tr>';
        print '<tr><td>' . $langs->trans("Birthday") . '</td><td class="valeur">' . $object->birth . '&nbsp;</td></tr>';
Esempio n. 3
0

/*
 * 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>';