Example #1
0
			</table>
<?php 
            break;
        case 'save':
            //TODO$p=$dao->findById($_REQUEST['id']);
            $category = $_REQUEST['category'];
            $season = $_REQUEST['season'];
            $title = $_REQUEST['title'];
            $description = $_REQUEST['description'];
            $unePhoto = new Photo();
            $unePhoto->setId($_REQUEST['id']);
            $unePhoto->setCategory($category);
            $unePhoto->setSeason($season);
            $unePhoto->setTitle($title);
            $unePhoto->setDescription($description);
            $dao->update($unePhoto);
            break;
        case 'hide':
            $dao->hide($_REQUEST['id']);
            break;
        case 'show':
            $dao->show($_REQUEST['id']);
            break;
        case 'del':
            $dao->delete($_REQUEST['id']);
            //TODO$p=$dao->findById($_REQUEST['id']);
    }
}
if ($afficheListe) {
    $liste = $dao->findAll(0, 0, 0);
    ?>