21 lines
1.0 KiB
HTML
Executable File
21 lines
1.0 KiB
HTML
Executable File
<p>Регион</p>
|
|
<select name="region" class="input-text" id='region'>
|
|
{section name=customer loop=$region}
|
|
{if $region[customer].id}
|
|
<option value="{$region[customer].id}" {if ($region[customer].region==$_COOKIE['region'])} selected{/if} >{$region[customer].region}</option>
|
|
{/if}
|
|
{/section}
|
|
</select>
|
|
|
|
<p>Город</p>
|
|
<select name="city" class="input-text" id='city'>
|
|
{section name=customer loop=$city}
|
|
{if $city[customer].id}
|
|
<option value="{$city[customer].id}" {if ($city[customer].city==$_COOKIE['gorod'])} selected{/if} data-chained="{$city[customer].region_id}" class="{$city[customer].region_id}">{$city[customer].city}</option>
|
|
{/if}
|
|
{/section}
|
|
</select><br><br>
|
|
<input type="submit" name="ok" class="btn btn-secondary" value="Изменить город" id="btn_change_city">
|
|
<script src="/api/jquery/jquery-3.3.1.min.js"></script>
|
|
<script src="/api/jquery/plugins/jquery_chained-2.x/jquery.chained.min.js"></script>
|
|
<script src="/api/templates/job-rf.ru/js/changecity.js?ver=3"></script> |