dolibarr  7.0.0-beta
contactcard_create.tpl.php
1 <?php
2 /* Copyright (C) 2010 Regis Houssin <regis.houssin@capnetworks.com>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 // Protection to avoid direct call of template
19 if (empty($conf) || ! is_object($conf))
20 {
21  print "Error, template page can't be called as URL";
22  exit;
23 }
24 
25 ?>
26 
27 <!-- BEGIN PHP TEMPLATE CONTACTCARD_CREATE.TPL.PHP DEFAULT -->
28 
29 <?php
30 print load_fiche_titre($this->control->tpl['title']);
31 
32 dol_htmloutput_errors((is_numeric($object->error)?'':$object->error),$object->errors);
33 
34 dol_htmloutput_errors((is_numeric($GLOBALS['error'])?'':$GLOBALS['error']),$GLOBALS['errors']);
35 
36 dol_htmloutput_errors($this->control->tpl['error'],$this->control->tpl['errors']);
37 
38 echo $this->control->tpl['ajax_selectcountry']; ?>
39 
40 <br>
41 
42 <form method="post" name="formsoc" action="<?php echo $_SERVER["PHP_SELF"]; ?>">
43 <input type="hidden" name="token" value="<?php echo $_SESSION['newtoken']; ?>">
44 <input type="hidden" name="canvas" value="<?php echo $canvas ?>">
45 <input type="hidden" name="action" value="add">
46 <?php if ($this->control->tpl['company_id']) { ?>
47 <input type="hidden" name="socid" value="<?php echo $this->control->tpl['company_id']; ?>">
48 <?php } ?>
49 
50 <table class="border allwidth">
51 
52 <tr>
53  <td width="15%" class="fieldrequired"><?php echo $langs->trans("Lastname").' / '.$langs->trans("Label"); ?></td>
54  <td><input name="lastname" type="text" size="30" maxlength="80" value="<?php echo $this->control->tpl['name']; ?>"></td>
55  <td width="20%"><?php echo $langs->trans("Firstname"); ?></td>
56  <td width="25%"><input name="firstname" type="text" size="30" maxlength="80" value="<?php echo $this->control->tpl['firstname']; ?>"></td>
57 </tr>
58 
59 <tr>
60  <td><?php echo $langs->trans("ThirdParty"); ?></td>
61  <td colspan="3"><?php echo $this->control->tpl['company']; ?></td>
62 </tr>
63 
64 <tr>
65  <td width="15%"><?php echo $langs->trans("UserTitle"); ?></td>
66  <td colspan="3"><?php echo $this->control->tpl['select_civility']; ?></td>
67 </tr>
68 
69 <tr>
70  <td><?php echo $langs->trans("PostOrFunction"); ?></td>
71  <td colspan="3"><input name="poste" type="text" size="50" maxlength="80" value="<?php echo $this->control->tpl['poste']; ?>"></td>
72 </tr>
73 
74 <tr>
75  <td><?php echo $langs->trans("Address"); ?></td>
76  <td colspan="3"><textarea class="flat" name="address" cols="70"><?php echo $this->control->tpl['address']; ?></textarea></td>
77 </tr>
78 
79 <tr>
80  <td><?php echo $langs->trans("Zip").' / '.$langs->trans("Town"); ?></td>
81  <td colspan="3"><?php echo $this->control->tpl['select_zip'].'&nbsp;'.$this->control->tpl['select_town']; ?></td>
82 </tr>
83 
84 <tr>
85  <td><?php echo $langs->trans("Country"); ?></td>
86  <td colspan="3"><?php echo $this->control->tpl['select_country'].$this->control->tpl['info_admin']; ?></td>
87 </tr>
88 
89 <tr>
90  <td><?php echo $langs->trans('State'); ?></td>
91  <td colspan="3"><?php echo $this->control->tpl['select_state']; ?></td>
92 </tr>
93 
94 <tr>
95  <td><?php echo $langs->trans("PhonePro"); ?></td>
96  <td><input name="phone_pro" type="text" size="18" maxlength="80" value="<?php echo $this->control->tpl['phone_pro']; ?>"></td>
97  <td><?php echo $langs->trans("PhonePerso"); ?></td>
98  <td><input name="phone_perso" type="text" size="18" maxlength="80" value="<?php echo $this->control->tpl['phone_perso']; ?>"></td>
99 </tr>
100 
101 <tr>
102  <td><?php echo $langs->trans("PhoneMobile"); ?></td>
103  <td><input name="phone_mobile" type="text" size="18" maxlength="80" value="<?php echo $this->control->tpl['phone_mobile']; ?>"></td>
104  <td><?php echo $langs->trans("Fax"); ?></td>
105  <td><input name="fax" type="text" size="18" maxlength="80" value="<?php echo $this->control->tpl['fax']; ?>"></td>
106 </tr>
107 
108 <tr>
109  <td><?php echo $langs->trans("Email"); ?></td>
110  <td colspan="3"><input name="email" type="text" size="50" maxlength="80" value="<?php echo $this->control->tpl['email']; ?>"></td>
111 </tr>
112 
113 <tr>
114  <td><?php echo $langs->trans("IM"); ?></td>
115  <td colspan="3"><input name="jabberid" type="text" size="50" maxlength="80" value="<?php echo $this->control->tpl['jabberid']; ?>"></td>
116 </tr>
117 
118 <tr>
119  <td><?php echo $langs->trans("ContactVisibility"); ?></td>
120  <td colspan="3"><?php echo $this->control->tpl['select_visibility']; ?></td>
121 </tr>
122 
123 <tr>
124  <td class="tdtop"><?php echo $langs->trans("Note"); ?></td>
125  <td colspan="3" valign="top"><textarea name="note" cols="70" rows="<?php echo ROWS_3; ?>"><?php echo $this->control->tpl['note']; ?></textarea></td>
126 </tr>
127 
128 <tr>
129  <td align="center" colspan="4"><input type="submit" class="button" value="<?php echo $langs->trans("Add"); ?>"></td>
130 </tr>
131 
132 </table><br>
133 
134 </form>
135 
136 <!-- 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