123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149 |
- <?php
- /* Copyright (C) 2010-2012 Regis Houssin <regis.houssin@inodbox.com>
- * Copyright (C) 2012 Philippe Grand <philippe.grand@atoo-net.com>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
- */
- // Protection to avoid direct call of template
- if (empty($conf) || ! is_object($conf))
- {
- print "Error, template page can't be called as URL";
- exit;
- }
- $contact = $GLOBALS['objcanvas']->control->object;
- ?>
- <!-- BEGIN PHP TEMPLATE ADHERENTCARD_VIEW.TPL.PHP DEFAULT -->
- <?php echo $this->control->tpl['showhead']; ?>
- <?php
- dol_htmloutput_errors($this->control->tpl['error'], $this->control->tpl['errors']);
- ?>
- <?php if (! empty($this->control->tpl['action_create_user'])) echo $this->control->tpl['action_create_user']; ?>
- <?php if (! empty($this->control->tpl['action_delete'])) echo $this->control->tpl['action_delete']; ?>
- <table class="border allwidth">
- <tr>
- <td width="20%"><?php echo $langs->trans("Ref"); ?></td>
- <td colspan="3"><?php echo $this->control->tpl['showrefnav']; ?></td>
- </tr>
- <tr>
- <td width="20%"><?php echo $langs->trans("Lastname"); ?></td>
- <td width="30%"><?php echo $this->control->tpl['name']; ?></td>
- <td width="25%"><?php echo $langs->trans("Firstname"); ?></td>
- <td width="25%"><?php echo $this->control->tpl['firstname']; ?></td>
- </tr>
- <tr>
- <td><?php echo $langs->trans("Company"); ?></td>
- <td colspan="3"><?php echo $this->control->tpl['company']; ?></td>
- </tr>
- <tr>
- <td width="15%"><?php echo $langs->trans("UserTitle"); ?></td>
- <td colspan="3"><?php echo $this->control->tpl['civility']; ?></td>
- </tr>
- <tr>
- <td><?php echo $langs->trans("Morphy"); ?></td>
- <td colspan="3"><?php echo $this->control->tpl['select_morphy']; ?></td>
- </tr>
- <tr>
- <td><?php echo $langs->trans("Address"); ?></td>
- <td colspan="3"><?php echo $this->control->tpl['address']; ?></td>
- </tr>
- <tr>
- <td><?php echo $langs->trans("Zip").' / '.$langs->trans("Town"); ?></td>
- <td colspan="3"><?php echo $this->control->tpl['zip'].$this->control->tpl['town']; ?></td>
- </tr>
- <tr>
- <td><?php echo $langs->trans("Country"); ?></td>
- <td colspan="3"><?php echo $this->control->tpl['country']; ?></td>
- </tr>
- <tr>
- <td><?php echo $langs->trans('State'); ?></td>
- <td colspan="3"><?php echo $this->control->tpl['state']; ?></td>
- </tr>
- <tr>
- <td><?php echo $langs->trans("PhonePro"); ?></td>
- <td><?php echo $this->control->tpl['phone_pro']; ?></td>
- <td><?php echo $langs->trans("PhonePerso"); ?></td>
- <td><?php echo $this->control->tpl['phone_perso']; ?></td>
- </tr>
- <tr>
- <td><?php echo $langs->trans("PhoneMobile"); ?></td>
- <td><?php echo $this->control->tpl['phone_mobile']; ?></td>
- </tr>
- <tr>
- <td><?php echo $langs->trans("EMail"); ?></td>
- <td><?php echo $this->control->tpl['email']; ?></td>
- </tr>
- <tr>
- <td><?php echo $langs->trans("ContactVisibility"); ?></td>
- <td colspan="3"><?php echo $this->control->tpl['visibility']; ?></td>
- </tr>
- <tr>
- <td class="tdtop"><?php echo $langs->trans("Note"); ?></td>
- <td colspan="3"><?php echo $this->control->tpl['note']; ?></td>
- </tr>
- <tr>
- <td><?php echo $langs->trans("DolibarrLogin"); ?></td>
- <td colspan="3"><?php echo $this->control->tpl['dolibarr_user']; ?></td>
- </tr>
- </table>
- <?php echo $this->control->tpl['showend']; ?>
- <?php if (empty($user->societe_id)) { ?>
- <div class="tabsAction">
- <?php if ($user->rights->adherent->creer) { ?>
- <a class="butAction" href="<?php echo $_SERVER["PHP_SELF"].'?id='.$this->control->tpl['id'].'&action=edit&canvas='.$canvas; ?>"><?php echo $langs->trans('Modify'); ?></a>
- <?php } ?>
- <?php if (! $this->control->tpl['user_id'] && $user->rights->user->user->creer) { ?>
- <a class="butAction" href="<?php echo $_SERVER["PHP_SELF"].'?id='.$this->control->tpl['id'].'&action=create_user&canvas='.$canvas; ?>"><?php echo $langs->trans("CreateDolibarrLogin"); ?></a>
- <?php } ?>
- <?php if ($user->rights->adherent->supprimer) { ?>
- <a class="butActionDelete" href="<?php echo $_SERVER["PHP_SELF"].'?id='.$this->control->tpl['id'].'&action=delete&canvas='.$canvas; ?>"><?php echo $langs->trans('Delete'); ?></a>
- <?php } ?>
- </div><br>
- <?php }
- echo $this->control->tpl['actionstodo'];
- echo $this->control->tpl['actionsdone'];
- ?>
- <!-- END PHP TEMPLATE -->
|