89 lines
2.5 KiB
PHP
89 lines
2.5 KiB
PHP
<?php
|
|
if(!isset($mode)){
|
|
$mode = isset($_REQUEST['mode']) ? $_REQUEST['mode'] : 'demo';
|
|
}
|
|
|
|
if($mode=='normal'){
|
|
$pays = $_REQUEST['pays'];
|
|
$firephp->log($pays,'PAYS');
|
|
|
|
require_once 'dbbootstrap.php';
|
|
require_once 'dbgraydon.php';
|
|
?>
|
|
<div class="fieldgrp">
|
|
<label class="StyleInfoLib">Pays : </label>
|
|
<div class="field">
|
|
<select id="pays" name="frmRecherche[Country]" size="10">
|
|
<?php
|
|
//lecture des pays dans la bdd
|
|
$q = Doctrine_Query::Create()
|
|
->from('Country')
|
|
->where('status = "actif"')
|
|
->orderBy('lib ASC');
|
|
|
|
$tabPays = $q->execute();
|
|
|
|
foreach($tabPays as $kPays ){
|
|
$selected = '';
|
|
if( isset($pays) && $pays==$kPays ){ $selected = ' selected'; }
|
|
print '<option value="'.$kPays['graydon_country'].'"'.$selected.'>'.$kPays['lib'].'</option>';
|
|
}
|
|
?>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div id="method">
|
|
<?php
|
|
if(isset($method)){
|
|
require_once './pages/graydon/methodfield.php';
|
|
}
|
|
?>
|
|
</div>
|
|
<div class="submit"><p class="submit-button"><input type="submit" value="Rechercher"/></p></div>
|
|
|
|
<?php
|
|
}elseif($mode=='demo'){
|
|
?>
|
|
|
|
<div class="fieldgrp">
|
|
<label>Pays : </label>
|
|
<div class="field">
|
|
<select name="frmDemo[Country]" size="10">
|
|
<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>
|
|
</div>
|
|
</div>
|
|
<div class="submit"><p class="submit-button"><input type="submit" class="submit" value="Rechercher" /></p></div>
|
|
<?php
|
|
}
|
|
?>
|
|
|