Example #1
0
    </div>  
    <div class="col-md-2 col-sm-2 col-xs-2"></div>
</div>  



<?php 
require '../template/rodape.php';
?>

<!-- deletar usuario -->
<?php 
if (isset($_GET['deletar'])) {
    if ($_GET['deletar'] == "sim") {
        try {
            $daoModificacao->deletar($videoNovo->getId());
            echo "<script type='text/javascript'>";
            echo "alert('Video deletado com sucesso!');";
            echo "location.href='http://localhost/newbatutoriais/adm/administrar.php';";
            echo "</script>";
        } catch (Exception $erro) {
            print $erro;
            echo "<script type='text/javascript'>";
            echo "alert('Erro ao tentar deletar video!');";
            echo "location.href='http://localhost/newbatutoriais/adm/administrar.php';";
            echo "</script>";
        }
    }
}
if (isset($_GET['atualizar'])) {
    if ($_GET['atualizar'] == "sim") {