adherentcard_create.tpl.php 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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. // 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. <!-- BEGIN PHP TEMPLATE ADHERENTCARD_CREATE.TPL.PHP DEFAULT -->
  26. <?php
  27. print load_fiche_titre($this->control->tpl['title']);
  28. dol_htmloutput_errors((is_numeric($object->error)?'':$object->error), $object->errors);
  29. dol_htmloutput_errors((is_numeric($GLOBALS['error'])?'':$GLOBALS['error']), $GLOBALS['errors']);
  30. dol_htmloutput_errors($this->control->tpl['error'], $this->control->tpl['errors']);
  31. echo $this->control->tpl['ajax_selectcountry']; ?>
  32. <br>
  33. <form method="post" name="formmember" action="<?php echo $_SERVER["PHP_SELF"]; ?>">
  34. <input type="hidden" name="token" value="<?php echo $_SESSION['newtoken']; ?>">
  35. <input type="hidden" name="canvas" value="<?php echo $canvas ?>">
  36. <input type="hidden" name="action" value="add">
  37. <?php if ($this->control->tpl['company_id']) { ?>
  38. <input type="hidden" name="socid" value="<?php echo $this->control->tpl['company_id']; ?>">
  39. <?php } ?>
  40. <table class="border allwidth">
  41. <tr>
  42. <td width="15%" class="fieldrequired"><?php echo $langs->trans("Lastname").' / '.$langs->trans("Label"); ?></td>
  43. <td><input name="lastname" type="text" size="30" maxlength="80" value="<?php echo $this->control->tpl['name']; ?>"></td>
  44. <td width="20%"><?php echo $langs->trans("Firstname"); ?></td>
  45. <td width="25%"><input name="firstname" type="text" size="30" maxlength="80" value="<?php echo $this->control->tpl['firstname']; ?>"></td>
  46. </tr>
  47. <tr>
  48. <td><?php echo $langs->trans("Company"); ?></td>
  49. <td colspan="3"><?php echo $this->control->tpl['company']; ?></td>
  50. </tr>
  51. <tr>
  52. <td width="15%"><?php echo $langs->trans("UserTitle"); ?></td>
  53. <td colspan="3"><?php echo $this->control->tpl['select_civility']; ?></td>
  54. </tr>
  55. <tr>
  56. <td><?php echo $langs->trans("Morphy"); ?></td>
  57. <td colspan="3"><input name="morphy" type="text" size="50" maxlength="80" value="<?php echo $this->control->tpl['select_morphy']; ?>"></td>
  58. </tr>
  59. <tr>
  60. <td><?php echo $langs->trans("Address"); ?></td>
  61. <td colspan="3"><textarea class="flat" name="address" cols="70"><?php echo $this->control->tpl['address']; ?></textarea></td>
  62. </tr>
  63. <tr>
  64. <td><?php echo $langs->trans("Zip").' / '.$langs->trans("Town"); ?></td>
  65. <td colspan="3"><?php echo $this->control->tpl['select_zip'].'&nbsp;'.$this->control->tpl['select_town']; ?></td>
  66. </tr>
  67. <tr>
  68. <td><?php echo $langs->trans("Country"); ?></td>
  69. <td colspan="3"><?php echo $this->control->tpl['select_country'].$this->control->tpl['info_admin']; ?></td>
  70. </tr>
  71. <tr>
  72. <td><?php echo $langs->trans('State'); ?></td>
  73. <td colspan="3"><?php echo $this->control->tpl['select_state']; ?></td>
  74. </tr>
  75. <tr>
  76. <td><?php echo $langs->trans("PhonePro"); ?></td>
  77. <td><input name="phone_pro" type="text" size="18" maxlength="80" value="<?php echo $this->control->tpl['phone_pro']; ?>"></td>
  78. <td><?php echo $langs->trans("PhonePerso"); ?></td>
  79. <td><input name="phone_perso" type="text" size="18" maxlength="80" value="<?php echo $this->control->tpl['phone_perso']; ?>"></td>
  80. </tr>
  81. <tr>
  82. <td><?php echo $langs->trans("PhoneMobile"); ?></td>
  83. <td><input name="phone_mobile" type="text" size="18" maxlength="80" value="<?php echo $this->control->tpl['phone_mobile']; ?>"></td>
  84. </tr>
  85. <tr>
  86. <td><?php echo $langs->trans("Email"); ?></td>
  87. <td colspan="3"><input name="email" type="text" size="50" maxlength="80" value="<?php echo $this->control->tpl['email']; ?>"></td>
  88. </tr>
  89. <tr>
  90. <td><?php echo $langs->trans("ContactVisibility"); ?></td>
  91. <td colspan="3"><?php echo $this->control->tpl['select_visibility']; ?></td>
  92. </tr>
  93. <tr>
  94. <td class="tdtop"><?php echo $langs->trans("Note"); ?></td>
  95. <td colspan="3" valign="top"><textarea name="note" cols="70" rows="<?php echo ROWS_3; ?>"><?php echo $this->control->tpl['note']; ?></textarea></td>
  96. </tr>
  97. <tr>
  98. <td class="center" colspan="4"><input type="submit" class="button" value="<?php echo $langs->trans("Add"); ?>"></td>
  99. </tr>
  100. </table><br>
  101. </form>
  102. <!-- END PHP TEMPLATE -->