36 lines
515 B
PHP
36 lines
515 B
PHP
|
<?php
|
||
|
/**
|
||
|
* @file
|
||
|
* Liste des prix
|
||
|
*
|
||
|
*/
|
||
|
$q = Doctrine_Query::create($conn)
|
||
|
->from('Price p')
|
||
|
->leftJoin('p.Country c');
|
||
|
$results = $q->fetchArray();
|
||
|
?>
|
||
|
<table>
|
||
|
<tr>
|
||
|
<th>Pays</th>
|
||
|
<th>Immediate</th>
|
||
|
<th>Normal</th>
|
||
|
<th>Superflash</th>
|
||
|
</tr>
|
||
|
<?php
|
||
|
foreach($results as $prix){
|
||
|
?>
|
||
|
<tr>
|
||
|
<td><?php print $prix['Country']['country'];?></td>
|
||
|
|
||
|
<td><?php print $prix['immediate'];?></td>
|
||
|
<td><?php print $prix['normal'];?></td>
|
||
|
<td><?php print $prix['superflash'];?></td>
|
||
|
</tr>
|
||
|
<?php
|
||
|
}
|
||
|
?>
|
||
|
</table>
|
||
|
<?php
|
||
|
|
||
|
|
||
|
?>
|