adherentcard_edit.tpl.php 5.4 KB

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