25 lines
1.1 KiB
Smarty
25 lines
1.1 KiB
Smarty
<fieldset>
|
|
<legend>Rechercher par adresse email</legend>
|
|
<form name="sponsor" method="post"
|
|
action="./index.php?tab=AdminCustomers&id_customer={$id_customer}&viewcustomer&token={$token}">
|
|
{if $sponsor !== false}<span>Email du parrrain actuel: {$sponsor->email}</span><br/>{/if}
|
|
<input type="text" name="sponsor" value="" style="width: 800px"/>
|
|
<input type="hidden" name="id_sponsor" value="{if $sponsor}{$sponsor->id}{/if}"/>
|
|
<input type="submit" name="submitAddSponsor" value="Enregistrer"/>
|
|
</form>
|
|
</fieldset>
|
|
|
|
{literal}
|
|
<link type="text/css" rel="stylesheet" href="../css/jquery-ui-1.8.10.custom.css"/>
|
|
<script type="text/javascript" src="{/literal}{$base_dir}{literal}/js/jquery/jquery-ui.min.js"></script>
|
|
<script type="text/javascript" src="{/literal}{$base_dir}{literal}/js/jquery/jquery-ui-1.8.10.custom.min.js"></script>
|
|
<script type="text/javascript">
|
|
$('input[name=sponsor]').autocomplete({
|
|
source: '../modules/invite/ajax_sponsor.php?action=search',
|
|
minLength: 3,
|
|
select: function(e, ui) {
|
|
$('input[name=id_sponsor]').val(ui.item.id);
|
|
}
|
|
});
|
|
</script>
|
|
{/literal} |