2009-05-12 10:00:40 +00:00
|
|
|
|
<?php
|
|
|
|
|
/**
|
|
|
|
|
* @file
|
|
|
|
|
* Sauvegarde les modifications fa<EFBFBD>tes sur les pays graydon
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
require_once 'dbbootstrap.php';
|
2009-05-12 13:40:22 +00:00
|
|
|
|
require_once 'dbgraydon.php';
|
2009-05-12 10:00:40 +00:00
|
|
|
|
|
|
|
|
|
if(isset($_REQUEST['col'])){
|
|
|
|
|
$col = $_REQUEST['col'];
|
|
|
|
|
$q = Doctrine_Query::create()
|
|
|
|
|
->update('Country')
|
|
|
|
|
->set($col, $_REQUEST['value'])
|
|
|
|
|
->where('id = ?', $_REQUEST['id']);
|
|
|
|
|
$id = $q->execute();
|
|
|
|
|
print $_REQUEST['value'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
?>
|