<commit_before><?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
?>
<form action="http://sandrabranco.com/admin/pages/index/<?php echo $link; ?>" enctype="multipart/form-data" method="post" accept-charset="utf-8">
    <div class="form-group">
        <label class="control-label col-sm-4"for="title">Nome do menu:</label>
        <div class="col-sm-6"><input type="text" class="form-control" id="title" name="page[title]" value="<?php echo $title; ?>"></div> 
        <input type="hidden" name="page[link]" value="<?php echo $link; ?>" />
        <input type="hidden" name="page[index]" value="<?php echo $index; ?>" />
    </div>
    <div class="form-group">
        <label class="control-label col-sm-4"for="audio">Escolha uma música de fundo:</label>
        <div class="col-sm-2">
            <select class="form-control" id="audio" name="page[audio]">
                <?php 
                    $audios = scandir('../assets/audio');
                    foreach($audios as $item) {
                       if (in_array($item, array('.', '..'))) continue;
                       if ($item === $audio) echo "<option value=\"$item\" selected>$item</option>";
                       else echo "<option value=\"$item\">$item</option>";
                    }
                ?>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-sm-4"for="background">Cor do background:</label>
        <div class="col-sm-8"><input type="color" class="form-control" id="background" name="page[background]" value="<?php echo $background; ?>"></div>

    </div>
    <div class="form-group">
        <label class="control-label col-sm-4"for="type">Tipo de galeria:</label>
        <div class="col-sm-2">
            <select class="form-control" id="type" name="page[type]">
                <option value="slide">slideshow horizontal</option>
                <option value="vertical">slideshow vertical</option>
            </select>
        </div>

    </div>
    <div class="form-group">
        <label class="control-label col-sm-12"for="type">Fotografias:</label>
        <div class="col-sm-12 gallery">
            <div class="col-md-2 item add">
                <label class="fa fa-plus" for="file-select">
                    <input type="file" id="file-select" name="photos[]" multiple style="display:none;"/>
                </label>
            </div>
            <div ondrop="Gallery.clear()"  ondragover="Gallery.allowdrop(event)" class="col-md-2 item fa fa-trash">
                <div>arraste para aqui se deseja apagar a foto</div>
            </div>
            <?php 
                echo $gallery;
            ?>
            
        </div>
    </div>
     <div class="form-group"> 
        <div class="col-sm-offset-4 col-sm-8">
          <input type="submit" class="btn btn-info" value="Submeter">
          <a href="/admin" class="btn btn-danger">Voltar Atrás</a>
        </div>
      </div>
</form>


<commit_msg>Update item.php<commit_after><?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
?>
<form action="http://sandrabranco.com/admin/pages/index/<?php echo $link; ?>" enctype="multipart/form-data" method="post" accept-charset="utf-8">
    <div class="form-group">
        <label class="control-label col-sm-4"for="title">Nome do menu:</label>
        <div class="col-sm-6"><input type="text" class="form-control" id="title" name="page[title]" value="<?php echo $title; ?>"></div> 
        <input type="hidden" name="page[link]" value="<?php echo $link; ?>" />
        <input type="hidden" name="page[index]" value="<?php echo $index; ?>" />
    </div>
    <div class="form-group">
        <label class="control-label col-sm-4"for="audio">Escolha uma música de fundo:</label>
        <div class="col-sm-2">
            <select class="form-control" id="audio" name="page[audio]">
                <?php 
                    $audios = scandir('../assets/audio');
                    foreach($audios as $item) {
                       if (in_array($item, array('.', '..'))) continue;
                       if ($item === $audio) echo "<option value=\"$item\" selected>$item</option>";
                       else echo "<option value=\"$item\">$item</option>";
                    }
                ?>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-sm-4"for="background">Cor do background:</label>
        <div class="col-sm-8"><input type="color" class="form-control" id="background" name="page[background]" value="<?php echo $background; ?>"></div>
    </div>
    <div class="form-group">
        <label class="control-label col-sm-4"for="background">Cor da letra:</label>
        <div class="col-sm-8"><input type="color" class="form-control" id="background" name="page[fontcolor]" value="<?php echo $fontcolor; ?>"></div>
    </div>
    <div class="form-group">
        <label class="control-label col-sm-4"for="type">Tipo de galeria:</label>
        <div class="col-sm-2">
            <select class="form-control" id="type" name="page[type]">
                <option value="slide">slideshow horizontal</option>
                <option value="vertical">slideshow vertical</option>
            </select>
        </div>

    </div>
    <div class="form-group">
        <label class="control-label col-sm-12"for="type">Fotografias:</label>
        <div class="col-sm-12 gallery">
            <div class="col-md-2 item add">
                <label class="fa fa-plus" for="file-select">
                    <input type="file" id="file-select" name="photos[]" multiple style="display:none;"/>
                </label>
            </div>
            <div ondrop="Gallery.clear()"  ondragover="Gallery.allowdrop(event)" class="col-md-2 item fa fa-trash">
                <div>arraste para aqui se deseja apagar a foto</div>
            </div>
            <?php 
                echo $gallery;
            ?>
            
        </div>
    </div>
     <div class="form-group"> 
        <div class="col-sm-offset-4 col-sm-8">
          <input type="submit" class="btn btn-info" value="Submeter">
          <a href="/admin" class="btn btn-danger">Voltar Atrás</a>
        </div>
      </div>
</form>



{'fraction_non_alphanumeric': 0.18278084714548803, 'fraction_numerical': 0.0055248618784530384, 'mean_word_length': 2.2748743718592963, 'pattern_counts': {'":': 0, '<': 155, '<?xml version=': 0, '>': 155, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7139345', 'n_tokens_mistral': 2003, 'n_tokens_neox': 1940, 'n_words': 431}