MOON
Server: Apache
System: Linux server1.studioinfinity.com.br 2.6.32-954.3.5.lve1.4.90.el6.x86_64 #1 SMP Tue Feb 21 12:26:30 UTC 2023 x86_64
User: artinside (517)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/artinside/fhs.artinside.com.br/themes/admin/widgets/brands/brand.php
<?php $this->layout("_admin"); ?>
<section class="wrapper">
    <!-- page start-->

    <?php if (!$brand): ?>
        <div class="row">
            <div class="col-12 text-center my-4 text-sm-center">
                <h3> Novo Parceiro</h3>
                <p>Crie um Novo Parceiro </p>
            </div>

            <div class="col-lg-9">
                <section class="card">
                    <header class="card-header infinity-bg white-text">
                        Cadastrar Categoria
                    </header>
                    <div class="card-body">
                        <form class="form-horizontal tasi-form" method="post" action="<?= url("/admin/brands/brand"); ?>">
                            <input type="hidden" name="action" value="create"/>
                            <div class="form-group row" hidden>
                                <label class="col-sm-2 col-sm-2 control-label">Capa</label>
                                <div class="col-sm-10">
                                    <input type="file" name="cover" placeholder="Uma imagem de capa" class="form-control" id="j_img_preview"/>
                                    <!-- <span class="help-block">A block of help text that breaks onto a new line and may extend beyond one line.</span>-->
                                </div>
                            </div>

                            <div class="form-group row">
                                <label class="col-sm-2 col-sm-2 control-label">Título</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" name="title">
                                    <!-- <span class="help-block">A block of help text that breaks onto a new line and may extend beyond one line.</span>-->
                                </div>
                            </div>



                            <button class="btn btn-primary" type="submit">Enviar</button>
                            <a class="btn btn-danger" href="<?= url("/admin/brands/home"); ?>">Cancelar</a>

                        </form>
                    </div>
                </section>
            </div>
            <div class="col-lg-3">
                <section class="card">
                    <header class="card-header infinity-bg white-text text-center">
                        Imagem de capa
                    </header>
                    <img class="radius img-open" style="width: 100%;" src="<?= url("/storage/sistema/no-img.jpg") ?>" id="image-preview"/>

                </section>
            </div>
        </div>
    <?php else: ?>
        <div class="row">
            <div class="col-12 text-center my-4 text-sm-center">
                <h3> <?= $brand->title; ?> </h3>
                <p>Edição de categoria </p>
            </div>
            <div class="col-lg-9">
                <section class="card">
                    <header class="card-header infinity-bg white-text text-center">
                        Edição de Categorias
                    </header>
                    <div class="card-body">
                        <form class="form-horizontal tasi-form" method="post" action="<?= url("/admin/brands/brand/{$brand->id}"); ?>">
                            <input type="hidden" name="action" value="update"/>
                            <div class="form-group row" hidden>
                                <label class="col-sm-2 col-sm-2 control-label">Capa</label>
                                <div class="col-sm-10">
                                    <input type="file" name="cover" placeholder="Uma imagem de capa" class="form-control" id="j_img_preview"/>
                                    <!-- <span class="help-block">A block of help text that breaks onto a new line and may extend beyond one line.</span>-->
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-sm-2 control-label">Título</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" name="title" value="<?= $brand->title; ?>">
                                    <!-- <span class="help-block">A block of help text that breaks onto a new line and may extend beyond one line.</span>-->
                                </div>
                            </div>

                            <button class="btn btn-primary" type="submit">Atualizar</button>
                            <a class="btn btn-danger" href="<?= url("/admin/brands/home"); ?>">Cancelar</a>

                        </form>
                    </div>
                </section>
            </div>
            <div class="col-lg-3">
                <section class="card">
                    <header class="card-header infinity-bg white-text text-center">
                        Imagem de capa
                    </header>
                    <img class="radius img-open" style="width: 100%;" src="<?= image($brand->cover, 400); ?>" id="image-preview"/>

                </section>
            </div>

        </div>

    <?php endif; ?>
    <!-- page end-->
</section>