contactcard_create.tpl.php 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <?php
  2. /* Copyright (C) 2010 Regis Houssin <regis.houssin@inodbox.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 <https://www.gnu.org/licenses/>.
  16. */
  17. // Protection to avoid direct call of template
  18. if (empty($conf) || !is_object($conf)) {
  19. print "Error, template page can't be called as URL";
  20. exit;
  21. }
  22. ?>
  23. <!-- BEGIN PHP TEMPLATE CONTACTCARD_CREATE.TPL.PHP DEFAULT -->
  24. <?php
  25. print load_fiche_titre($this->control->tpl['title']);
  26. dol_htmloutput_errors((is_numeric($object->error) ? '' : $object->error), $object->errors);
  27. dol_htmloutput_errors($this->control->tpl['error'], $this->control->tpl['errors']);
  28. echo $this->control->tpl['ajax_selectcountry']; ?>
  29. <br>
  30. <form method="post" name="formsoc" action="<?php echo $_SERVER["PHP_SELF"]; ?>">
  31. <input type="hidden" name="token" value="<?php echo newToken(); ?>">
  32. <input type="hidden" name="canvas" value="<?php echo $canvas ?>">
  33. <input type="hidden" name="action" value="add">
  34. <?php if ($this->control->tpl['company_id']) { ?>
  35. <input type="hidden" name="socid" value="<?php echo $this->control->tpl['company_id']; ?>">
  36. <?php } ?>
  37. <table class="border allwidth">
  38. <tr>
  39. <td width="15%" class="fieldrequired"><?php echo $langs->trans("Lastname").' / '.$langs->trans("Label"); ?></td>
  40. <td><input name="lastname" type="text" size="30" maxlength="80" value="<?php echo $this->control->tpl['name']; ?>"></td>
  41. <td width="20%"><?php echo $langs->trans("Firstname"); ?></td>
  42. <td width="25%"><input name="firstname" type="text" size="30" maxlength="80" value="<?php echo $this->control->tpl['firstname']; ?>"></td>
  43. </tr>
  44. <tr>
  45. <td><?php echo $langs->trans("ThirdParty"); ?></td>
  46. <td colspan="3"><?php echo $this->control->tpl['company']; ?></td>
  47. </tr>
  48. <tr>
  49. <td width="15%"><?php echo $langs->trans("UserTitle"); ?></td>
  50. <td colspan="3"><?php echo $this->control->tpl['select_civility']; ?></td>
  51. </tr>
  52. <tr>
  53. <td><?php echo $langs->trans("PostOrFunction"); ?></td>
  54. <td colspan="3"><input name="poste" type="text" class="minwidth200" maxlength="80" value="<?php echo $this->control->tpl['poste']; ?>"></td>
  55. </tr>
  56. <tr>
  57. <td><?php echo $langs->trans("Address"); ?></td>
  58. <td colspan="3"><textarea class="flat" name="address" cols="70"><?php echo $this->control->tpl['address']; ?></textarea></td>
  59. </tr>
  60. <tr>
  61. <td><?php echo $langs->trans("Zip").' / '.$langs->trans("Town"); ?></td>
  62. <td colspan="3"><?php echo $this->control->tpl['select_zip'].'&nbsp;'.$this->control->tpl['select_town']; ?></td>
  63. </tr>
  64. <tr>
  65. <td><?php echo $langs->trans("Country"); ?></td>
  66. <td colspan="3"><?php echo $this->control->tpl['select_country'].$this->control->tpl['info_admin']; ?></td>
  67. </tr>
  68. <tr>
  69. <td><?php echo $langs->trans('State'); ?></td>
  70. <td colspan="3"><?php echo $this->control->tpl['select_state']; ?></td>
  71. </tr>
  72. <tr>
  73. <td><?php echo $langs->trans("PhonePro"); ?></td>
  74. <td><input name="phone_pro" type="text" size="18" maxlength="80" value="<?php echo $this->control->tpl['phone_pro']; ?>"></td>
  75. <td><?php echo $langs->trans("PhonePerso"); ?></td>
  76. <td><input name="phone_perso" type="text" size="18" maxlength="80" value="<?php echo $this->control->tpl['phone_perso']; ?>"></td>
  77. </tr>
  78. <tr>
  79. <td><?php echo $langs->trans("PhoneMobile"); ?></td>
  80. <td><input name="phone_mobile" type="text" size="18" maxlength="80" value="<?php echo $this->control->tpl['phone_mobile']; ?>"></td>
  81. <td><?php echo $langs->trans("Fax"); ?></td>
  82. <td><input name="fax" type="text" size="18" maxlength="80" value="<?php echo $this->control->tpl['fax']; ?>"></td>
  83. </tr>
  84. <tr>
  85. <td><?php echo $langs->trans("Email"); ?></td>
  86. <td colspan="3"><input name="email" type="text" class="minwidth200" maxlength="80" value="<?php echo $this->control->tpl['email']; ?>"></td>
  87. </tr>
  88. <tr>
  89. <td><?php echo $langs->trans("ContactVisibility"); ?></td>
  90. <td colspan="3"><?php echo $this->control->tpl['select_visibility']; ?></td>
  91. </tr>
  92. <tr>
  93. <td class="tdtop"><?php echo $langs->trans("Note"); ?></td>
  94. <td colspan="3" valign="top"><textarea name="note" cols="70" rows="<?php echo ROWS_3; ?>"><?php echo $this->control->tpl['note']; ?></textarea></td>
  95. </tr>
  96. <tr>
  97. <td class="center" colspan="4"><input type="submit" class="button" value="<?php echo $langs->trans("Add"); ?>"></td>
  98. </tr>
  99. </table><br>
  100. </form>
  101. <!-- END PHP TEMPLATE -->