adherentcard_edit.tpl.php 5.3 KB

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