Ejemplo n.º 1
0
function changerStatu($old)
{
    $xml = simplexml_load_file("../Ressources/Taches.xml") or die("Error: Cannot create object");
    foreach ($xml->children() as $tache) {
        if ($tache->attributes() == $old) {
            $tmp[0] = $tache->attributes();
            $tmp[1] = $tache->date;
            $tmp[2] = $tache->contenu;
            $tmp[3] = $tache->categorie;
            $tmp[4] = $tache->tag;
            $tmp[5] = $tache->cible;
        }
    }
    deleteTache($old);
    addTachebyid($old, $tmp[1], $tmp[2], $tmp[3], $tmp[4], $tmp[5]);
}
Ejemplo n.º 2
0
function changerStat($old, $type)
{
    $xml = simplexml_load_file("../Ressources/Taches.xml") or die("Error: Cannot create object");
    foreach ($xml->children() as $tache) {
        if ($tache->attributes() == $old) {
            $tmp[0] = $tache->attributes();
            $tmp[1] = $tache->date;
            $tmp[2] = $tache->contenu;
            $tmp[3] = $tache->categorie;
            $tmp[4] = $tache->tag;
            $tmp[5] = $tache->cible;
        }
    }
    deleteTache($old);
    //echo '<script type="text/javascript">'
    //		, 'alert("la tache 2 --> ");'
    //				, '</script>';
    $val = "2";
    addTachebyid($old, $tmp[1], $tmp[2], $tmp[3], $tmp[4], $tmp[5], $val);
}