OwlCyberSecurity - MANAGER
Edit File: form-adicionar.php
<?php include("../../includes/config.php"); include("../../modulos/game-tags/actions.php"); verificarLogado(); ?> <!doctype html> <html> <head> <meta charset="utf-8"> <title>Games - Editar</title> <?php include("../../includes/head.php"); ?> </head> <body> <div class="container"> <div class="row"> <div class="col-xs-12"> <h1 class="page-header"> <a href="./" class="pull-right btn btn-default"><i class="glyphicon glyphicon-chevron-left"></i></a> Games - Adicionar </h1> <form action="insert.php" method="post" enctype="multipart/form-data"> <div class="row"> <div class="col-xs-3"> <label for="">Tipo de jogo:</label> <select name="tipo" id="tipo"> <option value="flash">Flash</option> <option value="html5">HTML 5</option> <option value="embed">Embed</option> </select> </div> <div class="col-xs-4"> <label class="label-control">Data de Publicação</label> <br /> <input type="date" name="data_publicar_data" value="<?= date("Y-m-d") ?>" /> <input type="time" name="data_publicar_hora" value="<?= date("H:i") ?>" /> </div> </div> <br> <label>Descrição do tipo</label> <br> <input type="text" name="tipo_descricao" size="70" placeholder="Mobile ..."> <br><br> <label>Nome</label> <br> <input type="text" name="game" placeholder="Nome" required> <br> <br> <label>Título do Link - Letras minúsculas e hifen no lugar de espaço(Ex.:titulo-do-link)</label> <br> <input type="text" size="70" name="url" placeholder="Título do Link" required> <br> <br> <div class="row"> <div class="col-xs-6"> <div class="form-group"> <label>Tags (Separe as tags novas por vírgula ou precione a tecla TAB)</label> <input type="text" id="game_tags" name="tags" /> </div> </div> </div> <label>Descrição</label> <br> <textarea name="descricao" rows="10" cols="70" placeholder="Descrição"></textarea> <br> <br> <label>Exclusivo? (0 -> Não | 1 -> Exclusivo)</label> <br> <input type="number" name="exclusive" id="categoria" min="0" max="1"> <br> <br> <label>Categorias:</label> <br> 1 - Monter High <br> 2 - Ever After High <br> 3 - My Little Pony <br> 4 - Winx <br> 5 - Anime <br> 6 - Bratz <br> 7 - Barbie <br> 8 - Celebrities <br> 9 - Disney <br> 10 - Cartoon <br> <input type="number" name="categoria" id="categoria" min="1" max="10"> <br> <br> <label>Imagem</label> <input type="file" name="imagem"> <br> <br> <div id="swf_html5"> <label>Jogo(swf ou html5)</label> <input type="file" name="swf"> </div> <div id="jogoembed" style="display: none"> <label>Link do Jogo Embed </label> <input type="url" name="embedurl" style="width: 50%"> </div> <br> <br> <button type="submit" class="btn btn-default">Salvar</button> <br> </form> </div><!-- /.col-xs-12 --> </div> <!-- /.row --> </div> <!-- /.container --> <script> $('input[name=url]').slugify('input[name=game]'); function exibirTipoJogo() { var t = $('#tipo').val(); if (t == 'embed') { $('#jogoembed').show(); $('#swf_html5').hide(); } else { $('#jogoembed').hide(); $('#swf_html5').show(); } } exibirTipoJogo(); $('#tipo').change(function () { exibirTipoJogo(); }); /** * FIELD TAGS ------------------------------------------------------ */ $('#game_tags').tokenfield({ autocomplete: { source: <?php echo GameTagsListJson($db) ?>, delay: 100 }, showAutocompleteOnFocus: true }); </script> </body> </html>