dolibarr  7.0.0-beta
adherentcard_create.tpl.php
1 <?php
2 /* Copyright (C) 2010 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 
28 <!-- BEGIN PHP TEMPLATE ADHERENTCARD_CREATE.TPL.PHP DEFAULT -->
29 
30 <?php
31 print load_fiche_titre($this->control->tpl['title']);
32 
33 dol_htmloutput_errors((is_numeric($object->error)?'':$object->error),$object->errors);
34 
35 dol_htmloutput_errors((is_numeric($GLOBALS['error'])?'':$GLOBALS['error']),$GLOBALS['errors']);
36 
37 dol_htmloutput_errors($this->control->tpl['error'],$this->control->tpl['errors']);
38 
39 echo $this->control->tpl['ajax_selectcountry']; ?>
40 
41 <br>
42 
43 <form method="post" name="formmember" action="<?php echo $_SERVER["PHP_SELF"]; ?>">
44 <input type="hidden" name="token" value="<?php echo $_SESSION['newtoken']; ?>">
45 <input type="hidden" name="canvas" value="<?php echo $canvas ?>">
46 <input type="hidden" name="action" value="add">
47 <?php if ($this->control->tpl['company_id']) { ?>
48 <input type="hidden" name="socid" value="<?php echo $this->control->tpl['company_id']; ?>">
49 <?php } ?>
50 
51 <table class="border allwidth">
52 
53 <tr>
54  <td width="15%" class="fieldrequired"><?php echo $langs->trans("Lastname").' / '.$langs->trans("Label"); ?></td>
55  <td><input name="lastname" type="text" size="30" maxlength="80" value="<?php echo $this->control->tpl['name']; ?>"></td>
56  <td width="20%"><?php echo $langs->trans("Firstname"); ?></td>
57  <td width="25%"><input name="firstname" type="text" size="30" maxlength="80" value="<?php echo $this->control->tpl['firstname']; ?>"></td>
58 </tr>
59 
60 <tr>
61  <td><?php echo $langs->trans("Company"); ?></td>
62  <td colspan="3"><?php echo $this->control->tpl['company']; ?></td>
63 </tr>
64 
65 <tr>
66  <td width="15%"><?php echo $langs->trans("UserTitle"); ?></td>
67  <td colspan="3"><?php echo $this->control->tpl['select_civility']; ?></td>
68 </tr>
69 
70 <tr>
71  <td><?php echo $langs->trans("Morphy"); ?></td>
72  <td colspan="3"><input name="morphy" type="text" size="50" maxlength="80" value="<?php echo $this->control->tpl['select_morphy']; ?>"></td>
73 </tr>
74 
75 <tr>
76  <td><?php echo $langs->trans("Address"); ?></td>
77  <td colspan="3"><textarea class="flat" name="address" cols="70"><?php echo $this->control->tpl['address']; ?></textarea></td>
78 </tr>
79 
80 <tr>
81  <td><?php echo $langs->trans("Zip").' / '.$langs->trans("Town"); ?></td>
82  <td colspan="3"><?php echo $this->control->tpl['select_zip'].'&nbsp;'.$this->control->tpl['select_town']; ?></td>
83 </tr>
84 
85 <tr>
86  <td><?php echo $langs->trans("Country"); ?></td>
87  <td colspan="3"><?php echo $this->control->tpl['select_country'].$this->control->tpl['info_admin']; ?></td>
88 </tr>
89 
90 <tr>
91  <td><?php echo $langs->trans('State'); ?></td>
92  <td colspan="3"><?php echo $this->control->tpl['select_state']; ?></td>
93 </tr>
94 
95 <tr>
96  <td><?php echo $langs->trans("PhonePro"); ?></td>
97  <td><input name="phone_pro" type="text" size="18" maxlength="80" value="<?php echo $this->control->tpl['phone_pro']; ?>"></td>
98  <td><?php echo $langs->trans("PhonePerso"); ?></td>
99  <td><input name="phone_perso" type="text" size="18" maxlength="80" value="<?php echo $this->control->tpl['phone_perso']; ?>"></td>
100 </tr>
101 
102 <tr>
103  <td><?php echo $langs->trans("PhoneMobile"); ?></td>
104  <td><input name="phone_mobile" type="text" size="18" maxlength="80" value="<?php echo $this->control->tpl['phone_mobile']; ?>"></td>
105 </tr>
106 
107 <tr>
108  <td><?php echo $langs->trans("Email"); ?></td>
109  <td colspan="3"><input name="email" type="text" size="50" maxlength="80" value="<?php echo $this->control->tpl['email']; ?>"></td>
110 </tr>
111 
112 <tr>
113  <td><?php echo $langs->trans("ContactVisibility"); ?></td>
114  <td colspan="3"><?php echo $this->control->tpl['select_visibility']; ?></td>
115 </tr>
116 
117 <tr>
118  <td class="tdtop"><?php echo $langs->trans("Note"); ?></td>
119  <td colspan="3" valign="top"><textarea name="note" cols="70" rows="<?php echo ROWS_3; ?>"><?php echo $this->control->tpl['note']; ?></textarea></td>
120 </tr>
121 
122 <tr>
123  <td align="center" colspan="4"><input type="submit" class="button" value="<?php echo $langs->trans("Add"); ?>"></td>
124 </tr>
125 
126 </table><br>
127 
128 </form>
129 
130 <!-- END PHP TEMPLATE -->
dol_htmloutput_errors($mesgstring='', $mesgarray='', $keepembedded=0)
Print formated error messages to output (Used to show messages on html output).
load_fiche_titre($titre, $morehtmlright='', $picto='title_generic.png', $pictoisfullpath=0, $id=0, $morecssontable='', $morehtmlcenter='')
Load a title with picto.
$conf db name
Only used if Module[ID]Name translation string is not found.
Definition: repair.php:104
print
Draft customers invoices.
Definition: index.php:91
type
Definition: viewcat.php:283