72 lines
1.9 KiB
PHP
72 lines
1.9 KiB
PHP
<?php
|
|
/**
|
|
* @file
|
|
* Liste des prix
|
|
*
|
|
*/
|
|
setDbConn('graydon');
|
|
$q = Doctrine_Query::create($conn)
|
|
->from('Price p')
|
|
->leftJoin('p.Country c');
|
|
$results = $q->fetchArray();
|
|
?>
|
|
<script>
|
|
$(document).ready(function() {
|
|
$('.immediate').editable('./modules/graydon/pricesave.php', {
|
|
event : "dblclick",
|
|
indicator : 'Sauvegarde...',
|
|
tooltip : 'Double-Clique pour éditer...',
|
|
submitdata : {col: "immediate"}
|
|
});
|
|
|
|
$('.normal').editable('./modules/graydon/pricesave.php', {
|
|
event : "dblclick",
|
|
indicator : 'Sauvegarde...',
|
|
tooltip : 'Double-Clique pour éditer...',
|
|
submitdata : {col: "normal"}
|
|
});
|
|
|
|
$('.superflash').editable('./modules/graydon/pricesave.php', {
|
|
event : "dblclick",
|
|
indicator : 'Sauvegarde...',
|
|
tooltip : 'Double-Clique pour éditer...',
|
|
submitdata : {col: "superflash"}
|
|
});
|
|
});
|
|
</script>
|
|
<style type="text/css">
|
|
table td {border-bottom:#ccc 1px solid; margin:0; padding:0;}
|
|
</style>
|
|
|
|
<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']['graydon_country'];?></td>
|
|
<td align="center"><div id="<?php print $prix['id'];?>" class="immediate"><?php print $prix['immediate'];?></div></td>
|
|
<td align="center"><div id="<?php print $prix['id'];?>" class="normal"><?php print $prix['normal'];?></div></td>
|
|
<td align="center"><div id="<?php print $prix['id'];?>" class="superflash"><?php print $prix['superflash'];?></div></td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
?>
|
|
<tr>
|
|
<td>Multiplier les prix par</td>
|
|
<form action="./modules/graydon/pricesave.php" method="post">
|
|
<td>x <input type="text" name="immediate" value="" size="2"/></td>
|
|
<td>x <input type="text" name="normal" value="" size="2"/></td>
|
|
<td>x <input type="text" name="superflash" value="" size="2"/></td>
|
|
</form>
|
|
</tr>
|
|
</table>
|
|
<?php
|
|
|
|
|
|
?>
|