dolibarr 21.0.0-alpha
adherentcard_create.tpl.php
1<?php
2/* Copyright (C) 2010 Regis Houssin <regis.houssin@inodbox.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 <https://www.gnu.org/licenses/>.
17 */
18
19// Protection to avoid direct call of template
20if (empty($conf) || !is_object($conf)) {
21 print "Error, template page can't be called as URL";
22 exit(1);
23}
24
25?>
26
27<!-- BEGIN PHP TEMPLATE ADHERENTCARD_CREATE.TPL.PHP DEFAULT -->
28
29<?php
30print load_fiche_titre($this->control->tpl['title']);
31
32dol_htmloutput_errors((is_numeric($object->error) ? '' : $object->error), $object->errors);
33
34dol_htmloutput_errors($this->control->tpl['error'], $this->control->tpl['errors']);
35
36echo $this->control->tpl['ajax_selectcountry']; ?>
37
38<br>
39
40<form method="post" name="formmember" action="<?php echo $_SERVER["PHP_SELF"]; ?>">
41<input type="hidden" name="token" value="<?php echo newToken(); ?>">
42<input type="hidden" name="canvas" value="<?php echo $canvas ?>">
43<input type="hidden" name="action" value="add">
44<?php if ($this->control->tpl['company_id']) { ?>
45<input type="hidden" name="socid" value="<?php echo $this->control->tpl['company_id']; ?>">
46<?php } ?>
47
48<table class="border allwidth">
49
50<tr>
51 <td width="15%" class="fieldrequired"><?php echo $langs->trans("Lastname").' / '.$langs->trans("Label"); ?></td>
52 <td><input name="lastname" type="text" size="30" maxlength="80" value="<?php echo $this->control->tpl['name']; ?>"></td>
53 <td width="20%"><?php echo $langs->trans("Firstname"); ?></td>
54 <td width="25%"><input name="firstname" type="text" size="30" maxlength="80" value="<?php echo $this->control->tpl['firstname']; ?>"></td>
55</tr>
56
57<tr>
58 <td><?php echo $langs->trans("Company"); ?></td>
59 <td colspan="3"><?php echo $this->control->tpl['company']; ?></td>
60</tr>
61
62<tr>
63 <td width="15%"><?php echo $langs->trans("UserTitle"); ?></td>
64 <td colspan="3"><?php echo $this->control->tpl['select_civility']; ?></td>
65</tr>
66
67<tr>
68 <td><?php echo $langs->trans("Morphy"); ?></td>
69 <td colspan="3"><input name="morphy" type="text" class="minwidth200" value="<?php echo $this->control->tpl['select_morphy']; ?>"></td>
70</tr>
71
72<tr>
73 <td><?php echo $langs->trans("Address"); ?></td>
74 <td colspan="3"><textarea class="flat" name="address" cols="70"><?php echo $this->control->tpl['address']; ?></textarea></td>
75</tr>
76
77<tr>
78 <td><?php echo $langs->trans("Zip").' / '.$langs->trans("Town"); ?></td>
79 <td colspan="3"><?php echo $this->control->tpl['select_zip'].'&nbsp;'.$this->control->tpl['select_town']; ?></td>
80</tr>
81
82<tr>
83 <td><?php echo $langs->trans("Country"); ?></td>
84 <td colspan="3"><?php echo $this->control->tpl['select_country'].$this->control->tpl['info_admin']; ?></td>
85</tr>
86
87<tr>
88 <td><?php echo $langs->trans('State'); ?></td>
89 <td colspan="3"><?php echo $this->control->tpl['select_state']; ?></td>
90</tr>
91
92<tr>
93 <td><?php echo $langs->trans("PhonePro"); ?></td>
94 <td><input name="phone_pro" type="text" size="18" maxlength="80" value="<?php echo $this->control->tpl['phone_pro']; ?>"></td>
95 <td><?php echo $langs->trans("PhonePerso"); ?></td>
96 <td><input name="phone_perso" type="text" size="18" maxlength="80" value="<?php echo $this->control->tpl['phone_perso']; ?>"></td>
97</tr>
98
99<tr>
100 <td><?php echo $langs->trans("PhoneMobile"); ?></td>
101 <td><input name="phone_mobile" type="text" size="18" maxlength="80" value="<?php echo $this->control->tpl['phone_mobile']; ?>"></td>
102</tr>
103
104<tr>
105 <td><?php echo $langs->trans("Email"); ?></td>
106 <td colspan="3"><input name="email" type="text" class="minwidth200" maxlength="80" value="<?php echo $this->control->tpl['email']; ?>"></td>
107</tr>
108
109<tr>
110 <td><?php echo $langs->trans("ContactVisibility"); ?></td>
111 <td colspan="3"><?php echo $this->control->tpl['select_visibility']; ?></td>
112</tr>
113
114<tr>
115 <td class="tdtop"><?php echo $langs->trans("Note"); ?></td>
116 <td colspan="3" class="tdtop"><textarea name="note" cols="70" rows="<?php echo ROWS_3; ?>"><?php echo $this->control->tpl['note']; ?></textarea></td>
117</tr>
118
119<tr>
120 <td class="center" colspan="4"><input type="submit" class="button" value="<?php echo $langs->trans("Add"); ?>"></td>
121</tr>
122
123</table><br>
124
125</form>
126
127<!-- END PHP TEMPLATE -->
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
Definition card.php:58
load_fiche_titre($title, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
dol_htmloutput_errors($mesgstring='', $mesgarray=array(), $keepembedded=0)
Print formatted error messages to output (Used to show messages on html output).
treeview li table
No Email.
if(preg_match('/crypted:/i', $dolibarr_main_db_pass)||!empty($dolibarr_main_db_encrypted_pass)) $conf db type
Definition repair.php:139
$conf db name
Only used if Module[ID]Name translation string is not found.
Definition repair.php:142