dolibarr  7.0.0-beta
adherentcard_view.tpl.php
1 <?php
2 /* Copyright (C) 2010-2012 Regis Houssin <regis.houssin@capnetworks.com>
3  * Copyright (C) 2012 Philippe Grand <philippe.grand@atoo-net.com>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 // Protection to avoid direct call of template
20 if (empty($conf) || ! is_object($conf))
21 {
22  print "Error, template page can't be called as URL";
23  exit;
24 }
25 
26 
27 $contact = $GLOBALS['objcanvas']->control->object;
28 
29 ?>
30 
31 <!-- BEGIN PHP TEMPLATE ADHERENTCARD_VIEW.TPL.PHP DEFAULT -->
32 <?php echo $this->control->tpl['showhead']; ?>
33 
34 <?php
35 dol_htmloutput_errors($this->control->tpl['error'],$this->control->tpl['errors']);
36 ?>
37 
38 <?php if (! empty($this->control->tpl['action_create_user'])) echo $this->control->tpl['action_create_user']; ?>
39 <?php if (! empty($this->control->tpl['action_delete'])) echo $this->control->tpl['action_delete']; ?>
40 
41 <table class="border allwidth">
42 
43 <tr>
44  <td width="20%"><?php echo $langs->trans("Ref"); ?></td>
45  <td colspan="3"><?php echo $this->control->tpl['showrefnav']; ?></td>
46 </tr>
47 
48 <tr>
49  <td width="20%"><?php echo $langs->trans("Lastname"); ?></td>
50  <td width="30%"><?php echo $this->control->tpl['name']; ?></td>
51  <td width="25%"><?php echo $langs->trans("Firstname"); ?></td>
52  <td width="25%"><?php echo $this->control->tpl['firstname']; ?></td>
53 </tr>
54 
55 <tr>
56  <td><?php echo $langs->trans("Company"); ?></td>
57  <td colspan="3"><?php echo $this->control->tpl['company']; ?></td>
58 </tr>
59 
60 <tr>
61  <td width="15%"><?php echo $langs->trans("UserTitle"); ?></td>
62  <td colspan="3"><?php echo $this->control->tpl['civility']; ?></td>
63 </tr>
64 
65 <tr>
66  <td><?php echo $langs->trans("Morphy"); ?></td>
67  <td colspan="3"><?php echo $this->control->tpl['select_morphy']; ?></td>
68 </tr>
69 
70 <tr>
71  <td><?php echo $langs->trans("Address"); ?></td>
72  <td colspan="3"><?php echo $this->control->tpl['address']; ?></td>
73 </tr>
74 
75 <tr>
76  <td><?php echo $langs->trans("Zip").' / '.$langs->trans("Town"); ?></td>
77  <td colspan="3"><?php echo $this->control->tpl['zip'].$this->control->tpl['town']; ?></td>
78 </tr>
79 
80 <tr>
81  <td><?php echo $langs->trans("Country"); ?></td>
82  <td colspan="3"><?php echo $this->control->tpl['country']; ?></td>
83 </tr>
84 
85 <tr>
86  <td><?php echo $langs->trans('State'); ?></td>
87  <td colspan="3"><?php echo $this->control->tpl['state']; ?></td>
88 </tr>
89 
90 <tr>
91  <td><?php echo $langs->trans("PhonePro"); ?></td>
92  <td><?php echo $this->control->tpl['phone_pro']; ?></td>
93  <td><?php echo $langs->trans("PhonePerso"); ?></td>
94  <td><?php echo $this->control->tpl['phone_perso']; ?></td>
95 </tr>
96 
97 <tr>
98  <td><?php echo $langs->trans("PhoneMobile"); ?></td>
99  <td><?php echo $this->control->tpl['phone_mobile']; ?></td>
100 </tr>
101 
102 <tr>
103  <td><?php echo $langs->trans("EMail"); ?></td>
104  <td><?php echo $this->control->tpl['email']; ?></td>
105 </tr>
106 
107 <tr>
108  <td><?php echo $langs->trans("ContactVisibility"); ?></td>
109  <td colspan="3"><?php echo $this->control->tpl['visibility']; ?></td>
110 </tr>
111 
112 <tr>
113  <td class="tdtop"><?php echo $langs->trans("Note"); ?></td>
114  <td colspan="3"><?php echo $this->control->tpl['note']; ?></td>
115 </tr>
116 
117 <tr>
118  <td><?php echo $langs->trans("DolibarrLogin"); ?></td>
119  <td colspan="3"><?php echo $this->control->tpl['dolibarr_user']; ?></td>
120 </tr>
121 
122 </table>
123 
124 <?php echo $this->control->tpl['showend']; ?>
125 
126 <?php if (empty($user->societe_id)) { ?>
127 <div class="tabsAction">
128 
129 <?php if ($user->rights->adherent->creer) { ?>
130 <a class="butAction" href="<?php echo $_SERVER["PHP_SELF"].'?id='.$this->control->tpl['id'].'&amp;action=edit&amp;canvas='.$canvas; ?>"><?php echo $langs->trans('Modify'); ?></a>
131 <?php } ?>
132 
133 <?php if (! $this->control->tpl['user_id'] && $user->rights->user->user->creer) { ?>
134 <a class="butAction" href="<?php echo $_SERVER["PHP_SELF"].'?id='.$this->control->tpl['id'].'&amp;action=create_user&amp;canvas='.$canvas; ?>"><?php echo $langs->trans("CreateDolibarrLogin"); ?></a>
135 <?php } ?>
136 
137 <?php if ($user->rights->adherent->supprimer) { ?>
138 <a class="butActionDelete" href="<?php echo $_SERVER["PHP_SELF"].'?id='.$this->control->tpl['id'].'&amp;action=delete&amp;canvas='.$canvas; ?>"><?php echo $langs->trans('Delete'); ?></a>
139 <?php } ?>
140 
141 </div><br>
142 <?php }
143 
144 echo $this->control->tpl['actionstodo'];
145 
146 echo $this->control->tpl['actionsdone'];
147 ?>
148 
149 <!-- END PHP TEMPLATE -->
dol_htmloutput_errors($mesgstring='', $mesgarray='', $keepembedded=0)
Print formated error messages to output (Used to show messages on html output).
print
Draft customers invoices.
Definition: index.php:91