<div class="content form_create"> <article> <header> <h1>Atualizar Clipe:</h1> </header> <?php $data = filter_input_array(INPUT_POST, FILTER_DEFAULT); $audioclipid = filter_input(INPUT_GET, 'id', FILTER_VALIDATE_INT); if (!empty($data['SendPostForm'])) { unset($data['SendPostForm']); //require('_models/AdminCategory.class.php'); $update = new Audioclip(); $update->ExeUpdate($audioclipid, $data); WSError($update->getError()[0], $update->getError()[1]); } else { $read = new Read(); $read->ExeRead("audioclip", "WHERE id = :id", "id={$audioclipid}"); if (!$read->getResult()) { header('Location: panel.php?exe=audioclip/index'); } else { $data = $read->getResult()[0]; } } //$checkCreate = filter_input(INPUT_GET, 'create', FILTER_VALIDATE_BOOLEAN); //if($checkCreate && empty($cadastra)): // $tipo = ( empty($data['category_parent']) ? 'seção' : 'categoria'); // WSErro("A {$tipo} <b>{$data['category_title']}</b> foi cadastrada com sucesso no sistema! Continue atualizando a mesma!", WS_ACCEPT);
article { width: 640px; margin-right: auto; margin-left: auto; } main{ background-color: lightslategrey; } </style> </head> <body> <?php require_once '_app/config.inc.php'; $playlist = new Audioclip(); $id = $playlist->GetList(); //var_dump($id); $i = 0; // print_r($id); $width = '640px'; $height = '360px'; ?> <!-- Container --> <header class="navigation" role="banner"> <div class="navigation-wrapper"> <a href="javascript:void(0)" class="logo"> <img src="assets/images/ytradio.png" alt="AvengerBR Radio"> </a> </nav>
<h2><?php echo $getexe; ?> </h2> <?php $data = filter_input_array(INPUT_POST, FILTER_DEFAULT); if (!empty($data['SendPostForm'])) { unset($data['SendPostForm']); $create = new Audioclip(); $create->ExeCreate($data); if ($create->getResult()) { $phpServer = filter_input(INPUT_SERVER, 'PHP_SELF'); header('Location: ' . basename($phpServer) . '?exe=audioclip/create&id=' . $create->getResult()); } else { WSError($create->getError()[0], $create->getError()[1]); } } $bands = new Read(); $bands->ExeRead('band'); ?> <script src="<?php echo HOME; ?> js/functions.js"></script> <script src="//code.jquery.com/jquery-1.11.3.min.js"></script> <form name="PostForm" action="" method="post" enctype="multipart/form-data"> <label>URL:</label> <input type="text" name="url" value="<?php