| 1 | {**************************************************************************} |
| 2 | {* *} |
| 3 | {* Copyright (C) 2003-2006 Polytechnique.org *} |
| 4 | {* http://opensource.polytechnique.org/ *} |
| 5 | {* *} |
| 6 | {* This program is free software; you can redistribute it and/or modify *} |
| 7 | {* it under the terms of the GNU General Public License as published by *} |
| 8 | {* the Free Software Foundation; either version 2 of the License, or *} |
| 9 | {* (at your option) any later version. *} |
| 10 | {* *} |
| 11 | {* This program is distributed in the hope that it will be useful, *} |
| 12 | {* but WITHOUT ANY WARRANTY; without even the implied warranty of *} |
| 13 | {* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *} |
| 14 | {* GNU General Public License for more details. *} |
| 15 | {* *} |
| 16 | {* You should have received a copy of the GNU General Public License *} |
| 17 | {* along with this program; if not, write to the Free Software *} |
| 18 | {* Foundation, Inc., *} |
| 19 | {* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *} |
| 20 | {* *} |
| 21 | {**************************************************************************} |
| 22 | |
| 23 | {if $adr.geoloc} |
| 24 | <tr> |
| 25 | <td class="cold" colspan="5"> |
| 26 | <input type="hidden" name="change{$adrid}" value="0"/> |
| 27 | <span class="erreur">La geolocalisation n'a pas donné un résultat certain, valide la nouvelle adresse ou modifie l'ancienne pour que ton adresse puisse être prise en compte.</span><br /> |
| 28 | <script type="text/javascript">setTimeout("document.location += '#adr{$adrid}'", 10);</script> |
| 29 | <textarea name="txt[{$adrid}]" cols="30" rows="4" onchange="form.change{$adrid}.value=1" |
| 30 | {if !$adr.cityid}style="background:#FAA"{/if} |
| 31 | >{$adr.txt}</textarea> |
| 32 | <textarea cols="30" rows="4" |
| 33 | style="border:inherit;background:#AFA" |
| 34 | onclick="blur()" |
| 35 | >{$adr.geoloc}</textarea><p class="right"> |
| 36 | [<a href="{$smarty.server.PHP_SELF}?old_tab={$smarty.request.old_tab}&parsevalid[{$adrid}]=1&modifier=1">Valider</a>] |
| 37 | </p> |
| 38 | {else} |
| 39 | <tr class="center"> |
| 40 | <td class="cold" colspan="2"> |
| 41 | <input type="hidden" name="change{$adrid}" /> |
| 42 | <textarea name="txt[{$adrid}]" cols="43" rows="4" onchange="form.change{$adrid}.value=1" |
| 43 | {if $adr.nouvelle != 'new' && !$adr.cityid}style="background:#FAA"{/if} |
| 44 | >{$adr.txt}</textarea> |
| 45 | {/if} |
| 46 | <input type="hidden" name="cityid[{$adrid}]" value="{$adr.cityid}" /> |
| 47 | <input type="hidden" name="adr1[{$adrid}]" value="{$adr.adr1}" /> |
| 48 | <input type="hidden" name="adr2[{$adrid}]" value="{$adr.adr2}" /> |
| 49 | <input type="hidden" name="adr3[{$adrid}]" value="{$adr.adr3}" /> |
| 50 | <input type="hidden" name="postcode[{$adrid}]" value="{$adr.postcode}"/> |
| 51 | <input type="hidden" name="city[{$adrid}]" value="{$adr.city}" /> |
| 52 | <input type="hidden" name="country[{$adrid}]" value="{$adr.country}" /> |
| 53 | <input type="hidden" name="region[{$adrid}]" value="{$adr.region}" /> |
| 54 | </td> |
| 55 | </tr> |