<?php
require_once '../../../config.php';
if (strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') { ?>
<form method="POST">
    <div class="form-group">
        <label>Nama Gambar</label>
        <input class="form-control" name="nama" placeholder="Diamond">
    </div>
    <div class="form-group">
        <label>Gambar</label>
        <div class="custom-file">
            <input type="file" accept=".jpg, .jpeg, .png" class="custom-file-input" id="customFile" name="gambar">
            <label class="custom-file-label" for="customFile">Choose file</label>
        </div>
   </div>
    <hr>
    <div class="form-group">
        <div class="row float-right">
            <div class=">
                <button type="submit" name="addGambar" class="btn btn-block text-white bg-primary fw-bold">ADD</button>
            </div>
        </div>
    </div>
</form>
<?php } ?>