<?php
namespace PHPMaker2023\Jack_Jill_school;
?>
<?php if (!$Page->isExport()) { ?>
<div>
<?php if (!$Page->isGridAdd() && !($Page->isGridEdit() && $Page->ModalGridEdit) && !$Page->isMultiEdit()) { ?>
<?= $Page->Pager->render() ?>
<?php } ?>
<div class="ew-list-other-options">
<?php $Page->OtherOptions->render("body") ?>
</div>
</div>
<?php } ?>
<?php if ($Page->ModalGridAdd && $Page->isGridAdd() || $Page->ModalGridEdit && $Page->isGridEdit() || $Page->ModalMultiEdit && $Page->isMultiEdit()) { ?>
<script>
var currentTable = <?= JsonEncode($Page->toClientVar()) ?>;
ew.deepAssign(ew.vars, { tables: { volontaire: currentTable } });
var currentPageID = ew.PAGE_ID = "list";
var currentForm;
var <?= $Page->FormName ?>;
loadjs.ready(["wrapper", "head"], function () {
    let $ = jQuery;
    let fields = currentTable.fields;

    // Form object
    let form = new ew.FormBuilder()
        .setId("<?= $Page->FormName ?>")
        .setPageId("list")
        .setFormKeyCountName("<?= $Page->FormKeyCountName ?>")
        .build();
    window[form.id] = form;
    currentForm = form;
    loadjs.done(form.id);
});
</script>
<script>
ew.PREVIEW_SELECTOR = ".ew-preview-btn";
ew.PREVIEW_MODAL_CLASS = "modal modal-fullscreen-sm-down";
ew.PREVIEW_ROW = true;
ew.PREVIEW_SINGLE_ROW = false;
ew.PREVIEW || ew.ready("head", ew.PATH_BASE + "js/preview.min.js?v=19.10.0", "preview");
</script>
<?php } ?>
<form name="<?= $Page->FormName ?>" id="<?= $Page->FormName ?>" class="ew-form ew-list-form ew-multi-column-form" action="<?= $Page->PageAction ?>" method="post" novalidate autocomplete="on">
<?php if (Config("CHECK_TOKEN")) { ?>
<input type="hidden" name="<?= $TokenNameKey ?>" value="<?= $TokenName ?>"><!-- CSRF token name -->
<input type="hidden" name="<?= $TokenValueKey ?>" value="<?= $TokenValue ?>"><!-- CSRF token value -->
<?php } ?>
<input type="hidden" name="t" value="volontaire">
<?php if ($Page->IsModal) { ?>
<input type="hidden" name="modal" value="1">
<?php } ?>
<div class="<?= $Page->getMultiColumnRowClass() ?>">
<?php if ($Page->TotalRecords > 0 || $Page->isGridEdit() || $Page->isMultiEdit()) { ?>
<?php
$Page->setupGrid();
while ($Page->RecordCount < $Page->StopRecord || $Page->RowIndex === '$rowindex$') {
    $Page->RecordCount++;
    if ($Page->RecordCount >= $Page->StartRecord) {
        $Page->setupRow();
?>
<div class="<?= $Page->getMultiColumnColClass() ?>" <?= $Page->rowAttributes() ?>>
<?php if (!$Page->isAddOrEdit()) { // Show custom card layout ?>
<div class="card h-80">
  <div class="row g-0">
    <div class="col-md-6">
<span>
<?= GetFileViewTag($Page->Photo, $Page->Photo->getViewValue(), false) ?>
</span>
    </div>
    <div class="col-md-6">
      <div class="card-body">
      <p class="card-text">
<span<?= $Page->NIP->viewAttributes() ?>>
<?= $Page->NIP->getViewValue() ?></span>
</p>
        <h5 class="card-title">
<span<?= $Page->Nom->viewAttributes() ?>>
<?= $Page->Nom->getViewValue() ?></span>
</h5>
        <p class="card-text"><small class="text-muted">
<span<?= $Page->Prenom->viewAttributes() ?>>
<?= $Page->Prenom->getViewValue() ?></span>
</small></p>
        <p class="card-text">
<span<?= $Page->DateNaissance->viewAttributes() ?>>
<?= $Page->DateNaissance->getViewValue() ?></span>
</p>
        <p class="card-text">
<span<?= $Page->Lieu->viewAttributes() ?>>
<?= $Page->Lieu->getViewValue() ?></span>
</p>
        <p class="card-text">
<span<?= $Page->Statut->viewAttributes() ?>>
<?= $Page->Statut->getViewValue() ?></span>
</p>
      </div>
    </div>
</div>
  <div class="ew-multi-column-list-option ew-<?= $Page->MultiColumnListOptionsPosition ?>"><?php $Page->ListOptions->Tag = "div";$Page->ListOptions->render("body"); ?></div>
</div>
<?php } else { // Show normal card layout ?>
<div class="<?= $Page->MultiColumnCardClass ?>">
    <?php if (StartsText("top", $Page->MultiColumnListOptionsPosition)) { ?>
    <div class="card-header">
        <div class="ew-multi-column-list-option ew-<?= $Page->MultiColumnListOptionsPosition ?>">
<?php
// Render list options (body, bottom)
$Page->ListOptions->Tag = "div";
$Page->ListOptions->render("body", $Page->MultiColumnListOptionsPosition, $Page->RowCount);
?>
        </div><!-- /.ew-multi-column-list-option -->
    </div>
    <?php } ?>
    <div class="card-body">
    <?php if ($Page->Carte_No->Visible) { // Carte_No ?>
        <?php if ($Page->RowType == ROWTYPE_VIEW) { // View record ?>
        <div class="row volontaire_Carte_No">
            <div class="col col-sm-4 volontaire_Carte_No"><?= $Page->renderFieldHeader($Page->Carte_No) ?></div>
            <div class="col col-sm-8"><div<?= $Page->Carte_No->cellAttributes() ?>>
<span<?= $Page->Carte_No->viewAttributes() ?>>
<?= $Page->Carte_No->getViewValue() ?></span>
</div></div>
        </div>
        <?php } else { // Add/edit record ?>
        <div class="row volontaire_Carte_No">
            <label class="<?= $Page->LeftColumnClass ?>"><?= $Page->Carte_No->caption() ?></label>
            <div class="<?= $Page->RightColumnClass ?>"><div<?= $Page->Carte_No->cellAttributes() ?>>
<span<?= $Page->Carte_No->viewAttributes() ?>>
<?= $Page->Carte_No->getViewValue() ?></span>
</div></div>
        </div>
        <?php } ?>
    <?php } ?>
    <?php if ($Page->NIP->Visible) { // NIP ?>
        <?php if ($Page->RowType == ROWTYPE_VIEW) { // View record ?>
        <div class="row volontaire_NIP">
            <div class="col col-sm-4 volontaire_NIP"><?= $Page->renderFieldHeader($Page->NIP) ?></div>
            <div class="col col-sm-8"><div<?= $Page->NIP->cellAttributes() ?>>
<span<?= $Page->NIP->viewAttributes() ?>>
<?= $Page->NIP->getViewValue() ?></span>
</div></div>
        </div>
        <?php } else { // Add/edit record ?>
        <div class="row volontaire_NIP">
            <label class="<?= $Page->LeftColumnClass ?>"><?= $Page->NIP->caption() ?></label>
            <div class="<?= $Page->RightColumnClass ?>"><div<?= $Page->NIP->cellAttributes() ?>>
<span<?= $Page->NIP->viewAttributes() ?>>
<?= $Page->NIP->getViewValue() ?></span>
</div></div>
        </div>
        <?php } ?>
    <?php } ?>
    <?php if ($Page->Nom->Visible) { // Nom ?>
        <?php if ($Page->RowType == ROWTYPE_VIEW) { // View record ?>
        <div class="row volontaire_Nom">
            <div class="col col-sm-4 volontaire_Nom"><?= $Page->renderFieldHeader($Page->Nom) ?></div>
            <div class="col col-sm-8"><div<?= $Page->Nom->cellAttributes() ?>>
<span<?= $Page->Nom->viewAttributes() ?>>
<?= $Page->Nom->getViewValue() ?></span>
</div></div>
        </div>
        <?php } else { // Add/edit record ?>
        <div class="row volontaire_Nom">
            <label class="<?= $Page->LeftColumnClass ?>"><?= $Page->Nom->caption() ?></label>
            <div class="<?= $Page->RightColumnClass ?>"><div<?= $Page->Nom->cellAttributes() ?>>
<span<?= $Page->Nom->viewAttributes() ?>>
<?= $Page->Nom->getViewValue() ?></span>
</div></div>
        </div>
        <?php } ?>
    <?php } ?>
    <?php if ($Page->Prenom->Visible) { // Prenom ?>
        <?php if ($Page->RowType == ROWTYPE_VIEW) { // View record ?>
        <div class="row volontaire_Prenom">
            <div class="col col-sm-4 volontaire_Prenom"><?= $Page->renderFieldHeader($Page->Prenom) ?></div>
            <div class="col col-sm-8"><div<?= $Page->Prenom->cellAttributes() ?>>
<span<?= $Page->Prenom->viewAttributes() ?>>
<?= $Page->Prenom->getViewValue() ?></span>
</div></div>
        </div>
        <?php } else { // Add/edit record ?>
        <div class="row volontaire_Prenom">
            <label class="<?= $Page->LeftColumnClass ?>"><?= $Page->Prenom->caption() ?></label>
            <div class="<?= $Page->RightColumnClass ?>"><div<?= $Page->Prenom->cellAttributes() ?>>
<span<?= $Page->Prenom->viewAttributes() ?>>
<?= $Page->Prenom->getViewValue() ?></span>
</div></div>
        </div>
        <?php } ?>
    <?php } ?>
    <?php if ($Page->DateNaissance->Visible) { // DateNaissance ?>
        <?php if ($Page->RowType == ROWTYPE_VIEW) { // View record ?>
        <div class="row volontaire_DateNaissance">
            <div class="col col-sm-4 volontaire_DateNaissance"><?= $Page->renderFieldHeader($Page->DateNaissance) ?></div>
            <div class="col col-sm-8"><div<?= $Page->DateNaissance->cellAttributes() ?>>
<span<?= $Page->DateNaissance->viewAttributes() ?>>
<?= $Page->DateNaissance->getViewValue() ?></span>
</div></div>
        </div>
        <?php } else { // Add/edit record ?>
        <div class="row volontaire_DateNaissance">
            <label class="<?= $Page->LeftColumnClass ?>"><?= $Page->DateNaissance->caption() ?></label>
            <div class="<?= $Page->RightColumnClass ?>"><div<?= $Page->DateNaissance->cellAttributes() ?>>
<span<?= $Page->DateNaissance->viewAttributes() ?>>
<?= $Page->DateNaissance->getViewValue() ?></span>
</div></div>
        </div>
        <?php } ?>
    <?php } ?>
    <?php if ($Page->Lieu->Visible) { // Lieu ?>
        <?php if ($Page->RowType == ROWTYPE_VIEW) { // View record ?>
        <div class="row volontaire_Lieu">
            <div class="col col-sm-4 volontaire_Lieu"><?= $Page->renderFieldHeader($Page->Lieu) ?></div>
            <div class="col col-sm-8"><div<?= $Page->Lieu->cellAttributes() ?>>
<span<?= $Page->Lieu->viewAttributes() ?>>
<?= $Page->Lieu->getViewValue() ?></span>
</div></div>
        </div>
        <?php } else { // Add/edit record ?>
        <div class="row volontaire_Lieu">
            <label class="<?= $Page->LeftColumnClass ?>"><?= $Page->Lieu->caption() ?></label>
            <div class="<?= $Page->RightColumnClass ?>"><div<?= $Page->Lieu->cellAttributes() ?>>
<span<?= $Page->Lieu->viewAttributes() ?>>
<?= $Page->Lieu->getViewValue() ?></span>
</div></div>
        </div>
        <?php } ?>
    <?php } ?>
    <?php if ($Page->Photo->Visible) { // Photo ?>
        <?php if ($Page->RowType == ROWTYPE_VIEW) { // View record ?>
        <div class="row volontaire_Photo">
            <div class="col col-sm-4 volontaire_Photo"><?= $Page->renderFieldHeader($Page->Photo) ?></div>
            <div class="col col-sm-8"><div<?= $Page->Photo->cellAttributes() ?>>
<span>
<?= GetFileViewTag($Page->Photo, $Page->Photo->getViewValue(), false) ?>
</span>
</div></div>
        </div>
        <?php } else { // Add/edit record ?>
        <div class="row volontaire_Photo">
            <label class="<?= $Page->LeftColumnClass ?>"><?= $Page->Photo->caption() ?></label>
            <div class="<?= $Page->RightColumnClass ?>"><div<?= $Page->Photo->cellAttributes() ?>>
<span>
<?= GetFileViewTag($Page->Photo, $Page->Photo->getViewValue(), false) ?>
</span>
</div></div>
        </div>
        <?php } ?>
    <?php } ?>
    <?php if ($Page->Unique_QR->Visible) { // Unique_QR ?>
        <?php if ($Page->RowType == ROWTYPE_VIEW) { // View record ?>
        <div class="row volontaire_Unique_QR">
            <div class="col col-sm-4 volontaire_Unique_QR"><?= $Page->renderFieldHeader($Page->Unique_QR) ?></div>
            <div class="col col-sm-8"><div<?= $Page->Unique_QR->cellAttributes() ?>>
<span><?= PhpBarcode::barcode(true)->show($Page->Unique_QR->CurrentValue, 'QRCODE', 60) ?></span>
</div></div>
        </div>
        <?php } else { // Add/edit record ?>
        <div class="row volontaire_Unique_QR">
            <label class="<?= $Page->LeftColumnClass ?>"><?= $Page->Unique_QR->caption() ?></label>
            <div class="<?= $Page->RightColumnClass ?>"><div<?= $Page->Unique_QR->cellAttributes() ?>>
<span><?= PhpBarcode::barcode(true)->show($Page->Unique_QR->CurrentValue, 'QRCODE', 60) ?></span>
</div></div>
        </div>
        <?php } ?>
    <?php } ?>
    <?php if ($Page->Delivree->Visible) { // Delivree ?>
        <?php if ($Page->RowType == ROWTYPE_VIEW) { // View record ?>
        <div class="row volontaire_Delivree">
            <div class="col col-sm-4 volontaire_Delivree" style="white-space: nowrap;"><?= $Page->renderFieldHeader($Page->Delivree) ?></div>
            <div class="col col-sm-8"><div<?= $Page->Delivree->cellAttributes() ?>>
<span<?= $Page->Delivree->viewAttributes() ?>>
<?= $Page->Delivree->getViewValue() ?></span>
</div></div>
        </div>
        <?php } else { // Add/edit record ?>
        <div class="row volontaire_Delivree">
            <label class="<?= $Page->LeftColumnClass ?>"><?= $Page->Delivree->caption() ?></label>
            <div class="<?= $Page->RightColumnClass ?>"><div<?= $Page->Delivree->cellAttributes() ?>>
<span<?= $Page->Delivree->viewAttributes() ?>>
<?= $Page->Delivree->getViewValue() ?></span>
</div></div>
        </div>
        <?php } ?>
    <?php } ?>
    <?php if ($Page->Expire->Visible) { // Expire ?>
        <?php if ($Page->RowType == ROWTYPE_VIEW) { // View record ?>
        <div class="row volontaire_Expire">
            <div class="col col-sm-4 volontaire_Expire" style="white-space: nowrap;"><?= $Page->renderFieldHeader($Page->Expire) ?></div>
            <div class="col col-sm-8"><div<?= $Page->Expire->cellAttributes() ?>>
<span<?= $Page->Expire->viewAttributes() ?>>
<?= $Page->Expire->getViewValue() ?></span>
</div></div>
        </div>
        <?php } else { // Add/edit record ?>
        <div class="row volontaire_Expire">
            <label class="<?= $Page->LeftColumnClass ?>"><?= $Page->Expire->caption() ?></label>
            <div class="<?= $Page->RightColumnClass ?>"><div<?= $Page->Expire->cellAttributes() ?>>
<span<?= $Page->Expire->viewAttributes() ?>>
<?= $Page->Expire->getViewValue() ?></span>
</div></div>
        </div>
        <?php } ?>
    <?php } ?>
    <?php if ($Page->Localite->Visible) { // Localite ?>
        <?php if ($Page->RowType == ROWTYPE_VIEW) { // View record ?>
        <div class="row volontaire_Localite">
            <div class="col col-sm-4 volontaire_Localite"><?= $Page->renderFieldHeader($Page->Localite) ?></div>
            <div class="col col-sm-8"><div<?= $Page->Localite->cellAttributes() ?>>
<span<?= $Page->Localite->viewAttributes() ?>>
<?= $Page->Localite->getViewValue() ?></span>
</div></div>
        </div>
        <?php } else { // Add/edit record ?>
        <div class="row volontaire_Localite">
            <label class="<?= $Page->LeftColumnClass ?>"><?= $Page->Localite->caption() ?></label>
            <div class="<?= $Page->RightColumnClass ?>"><div<?= $Page->Localite->cellAttributes() ?>>
<span<?= $Page->Localite->viewAttributes() ?>>
<?= $Page->Localite->getViewValue() ?></span>
</div></div>
        </div>
        <?php } ?>
    <?php } ?>
    <?php if ($Page->Statut->Visible) { // Statut ?>
        <?php if ($Page->RowType == ROWTYPE_VIEW) { // View record ?>
        <div class="row volontaire_Statut">
            <div class="col col-sm-4 volontaire_Statut"><?= $Page->renderFieldHeader($Page->Statut) ?></div>
            <div class="col col-sm-8"><div<?= $Page->Statut->cellAttributes() ?>>
<span<?= $Page->Statut->viewAttributes() ?>>
<?= $Page->Statut->getViewValue() ?></span>
</div></div>
        </div>
        <?php } else { // Add/edit record ?>
        <div class="row volontaire_Statut">
            <label class="<?= $Page->LeftColumnClass ?>"><?= $Page->Statut->caption() ?></label>
            <div class="<?= $Page->RightColumnClass ?>"><div<?= $Page->Statut->cellAttributes() ?>>
<span<?= $Page->Statut->viewAttributes() ?>>
<?= $Page->Statut->getViewValue() ?></span>
</div></div>
        </div>
        <?php } ?>
    <?php } ?>
    </div><!-- /.card-body -->
<?php if (!$Page->isExport()) { ?>
    <?php if (StartsText("bottom", $Page->MultiColumnListOptionsPosition)) { ?>
    <div class="card-footer">
        <div class="ew-multi-column-list-option ew-<?= $Page->MultiColumnListOptionsPosition ?>">
<?php
// Render list options (body, bottom)
$Page->ListOptions->Tag = "div";
$Page->ListOptions->render("body", $Page->MultiColumnListOptionsPosition, $Page->RowCount);
?>
        </div><!-- /.ew-multi-column-list-option -->
    </div><!-- /.card-footer -->
    <?php } ?>
<?php } ?>
</div><!-- /.card -->
<?php } // End normal card layout ?>
</div><!-- /.col-* -->
<?php
    }
    if (
        $Page->Recordset &&
        !$Page->Recordset->EOF &&
        $Page->RowIndex !== '$rowindex$' &&
        (!$Page->isGridAdd() || $Page->CurrentMode == "copy") &&
        (!(($Page->isCopy() || $Page->isAdd()) && $Page->RowIndex == 0))
    ) {
        $Page->Recordset->moveNext();
    }
    // Reset for template row
    if ($Page->RowIndex === '$rowindex$') {
        $Page->RowIndex = 0;
    }
    // Reset inline add/copy row
    if (($Page->isCopy() || $Page->isAdd()) && $Page->RowIndex == 0) {
        $Page->RowIndex = 1;
    }
}
?>
<?php } ?>
</div><!-- /.ew-multi-column-row -->
<?php if (!$Page->CurrentAction && !$Page->UseAjaxActions) { ?>
<input type="hidden" name="action" id="action" value="">
<?php } ?>
</form><!-- /.ew-list-form -->
<?php
// Close recordset
if ($Page->Recordset) {
    $Page->Recordset->close();
}
?>
<?php if (!$Page->isExport()) { ?>
<div>
<?php if (!$Page->isGridAdd() && !($Page->isGridEdit() && $Page->ModalGridEdit) && !$Page->isMultiEdit()) { ?>
<?= $Page->Pager->render() ?>
<?php } ?>
<div class="ew-list-other-options">
<?php $Page->OtherOptions->render("body", "bottom") ?>
</div>
</div>
<?php } ?>
