78 lines
2.3 KiB
PHP
78 lines
2.3 KiB
PHP
<?php
|
|
if(!isset($mode)){
|
|
$mode = isset($_REQUEST['mode']) ? $_REQUEST['mode'] : 'demo';
|
|
}
|
|
|
|
if($mode=='normal'){
|
|
?>
|
|
<script type="text/javascript">
|
|
$(document).ready(function(){
|
|
$('#pays').change(function(){
|
|
$('#method').html('<p><img src="./img/ajax/19-1.gif" /></p>');
|
|
var pays = $('#pays :selected').val();
|
|
$('#method').load('./pages/graydon/methodfield.php', {'pays':pays});
|
|
});
|
|
});
|
|
</script>
|
|
<input type="hidden" name="mode" value="normal">
|
|
<label class="StyleInfoLib">Pays :</label>
|
|
<select id="pays" name="frmRecherche[Country]">
|
|
<option value="">Sélectionner un pays</option>
|
|
<?php require_once 'graydon/pays.php';?>
|
|
</select>
|
|
|
|
<div id="method">
|
|
<?php
|
|
if(isset($method)){
|
|
require_once './pages/graydon/methodfield.php';
|
|
}
|
|
?>
|
|
</div>
|
|
|
|
<label> </label><input type="submit" value="Rechercher" />
|
|
</form>
|
|
|
|
<?php
|
|
}elseif($mode=='demo'){
|
|
?>
|
|
|
|
<input type="hidden" name="mode" value="demo">
|
|
<label>Pays :</label>
|
|
<select name="frmDemo[Country]">
|
|
<option value="Austria">Austria</option>
|
|
<option value="Belgium">Belgium</option>
|
|
<option value="Bulgaria">Bulgaria</option>
|
|
<option value="Croatia">Croatia</option>
|
|
<option value="Czech Republic">Czech Republic</option>
|
|
<option value="Denmark">Denmark</option>
|
|
<option value="Estonia">Estonia</option>
|
|
<option value="France">France</option>
|
|
<option value="Germany">Germany</option>
|
|
<option value="Greece">Greece</option>
|
|
<option value="Hungary">Hungary</option>
|
|
<option value="Irish Republic">Irish Republic</option>
|
|
<option value="Italy">Italy</option>
|
|
<option value="Japan">Japan</option>
|
|
<option value="Latvia">Latvia</option>
|
|
<option value="Lithuania">Lithuania</option>
|
|
<option value="Netherlands">Netherlands</option>
|
|
<option value="Poland">Poland</option>
|
|
<option value="Portugal">Portugal</option>
|
|
<option value="Romania">Romania</option>
|
|
<option value="Russia">Russia</option>
|
|
<option value="Saudi Arabia">Saudi Arabia</option>
|
|
<option value="Slovakia">Slovakia</option>
|
|
<option value="Slovenia">Slovenia</option>
|
|
<option value="Spain">Spain</option>
|
|
<option value="Sweden">Sweden</option>
|
|
<option value="Switzerland">Switzerland</option>
|
|
<option value="United Kingdom">United Kingdom</option>
|
|
<option value="USA">USA</option>
|
|
</select>
|
|
<label> </label><input type="submit" value="Rechercher" />
|
|
</form>
|
|
<?php
|
|
}
|
|
?>
|
|
|