df
This commit is contained in:
parent
21f3aeb7d7
commit
b8c15b81f6
|
|
@ -6,137 +6,137 @@
|
|||
|
||||
<input class="sr-only" type="text" id="codeReseau" name="codeReseau" value="<?= $codeReseau ?>">
|
||||
<input class="sr-only" type="text" id="idReseau" name="idReseau" value="<?= $idReseau ?>">
|
||||
<div id="div_prestataires_reseau" class="row g-4">
|
||||
<div class="col-lg-5">
|
||||
<div class="card border-0 shadow-sm h-100">
|
||||
<div class="card-header bg-white py-3 border-bottom">
|
||||
<div class="d-flex justify-content-between align-items-center mb-3">
|
||||
<h6 class="mb-0 fw-bold text-muted text-uppercase small">
|
||||
<i class="fas fa-list-ul me-2"></i><?= _("Disponibles") ?>
|
||||
</h6>
|
||||
<span class="badge bg-light text-primary border rounded-pill" id="count_dispo">
|
||||
<?= count($prestatairesdispo) ?>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="bg-primary-ghost-light p-2 rounded mb-2 border border-primary-subtle">
|
||||
<div class="row g-1">
|
||||
<div class="col-12 mb-1">
|
||||
<input type="text" id="search_nom_dispo" class="form-control form-control-sm border-2 shadow-none" placeholder="<?= _("Nom du prestataire...") ?>" onkeyup="rechercheServeur('dispo')">
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<input type="text" id="search_ville_dispo" class="form-control form-control-sm border-2 shadow-none" placeholder="<?= _("Ville...") ?>" onkeyup="rechercheServeur('dispo')">
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<select id="search_type_dispo" class="form-select form-select-sm border-2 shadow-none" onchange="rechercheServeur('dispo')">
|
||||
<option value=""><?= _("Tous les types") ?></option>
|
||||
<?php foreach($typesDispo as $t): ?> <option value="<?= $t ?>"><?= $t ?></option> <?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button class="btn btn-primary-ghost btn-sm w-100 rounded-pill fw-bold" onclick="ajouter_tous_prestataires_reseau();">
|
||||
<?= _("Tout ajouter") ?> <i class="fas fa-angle-double-right ms-1"></i>
|
||||
</button>
|
||||
<div class="col-lg-5">
|
||||
<div class="card border-0 shadow-sm h-100">
|
||||
<div class="card-header bg-white py-3 border-bottom">
|
||||
<div class="d-flex justify-content-between align-items-center mb-3">
|
||||
<h6 class="mb-0 fw-bold text-muted text-uppercase small">
|
||||
<i class="fas fa-list-ul me-2"></i><?= _("Disponibles") ?>
|
||||
</h6>
|
||||
<span class="badge bg-light text-primary border rounded-pill" id="count_dispo">
|
||||
<?= count($prestatairesdispo) ?>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="card-body p-0">
|
||||
<div class="table-responsive" style="max-height: 500px; overflow-y: auto;">
|
||||
<table class="table table-hover align-middle mb-0" id="tab_dispo" style="font-size: 8.5pt;">
|
||||
<thead class="bg-light sticky-top">
|
||||
<tr>
|
||||
<th class="ps-3 py-2"><?= _("Nom & Détails") ?></th>
|
||||
<th class="text-center py-2" width="50px"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($prestatairesdispo as $v): $codePres = $v['codePrestataire']; ?>
|
||||
<tr>
|
||||
<td class="ps-3">
|
||||
<div class="fw-bold text-dark search-target"><?= $this->nettoyer($v['libelle']) ?></div>
|
||||
<div class="text-muted smaller">
|
||||
<span class="search-target"><?= $this->nettoyer($v['localite']) ?></span> |
|
||||
<span class="text-primary search-target"><?= $this->nettoyer($v['typeprestataire']) ?></span>
|
||||
</div>
|
||||
</td>
|
||||
<td class="text-center pe-3">
|
||||
<button class="btn btn-sm btn-primary-ghost rounded-circle action-icon" onclick="ajouter_un_prestataire_reseau('<?=$codePres?>');">
|
||||
<i class="fas fa-chevron-right"></i>
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="bg-primary-ghost-light p-2 rounded mb-2 border border-primary-subtle">
|
||||
<div class="row g-1">
|
||||
<div class="col-12 mb-1">
|
||||
<input type="text" id="search_nom_dispo" class="form-control form-control-sm border-2 shadow-none" placeholder="<?= _("Nom du prestataire...") ?>" onkeyup="rechercheServeur('dispo')">
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<input type="text" id="search_ville_dispo" class="form-control form-control-sm border-2 shadow-none" placeholder="<?= _("Ville...") ?>" onkeyup="rechercheServeur('dispo')">
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<select id="search_type_dispo" class="form-select form-select-sm border-2 shadow-none" onchange="rechercheServeur('dispo')">
|
||||
<option value=""><?= _("Tous les types") ?></option>
|
||||
<?php foreach($typesDispo as $t): ?> <option value="<?= $t ?>"><?= $t ?></option> <?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button class="btn btn-primary-ghost btn-sm w-100 rounded-pill fw-bold" onclick="ajouter_tous_prestataires_reseau();">
|
||||
<?= _("Tout ajouter") ?> <i class="fas fa-angle-double-right ms-1"></i>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="card-body p-0">
|
||||
<div class="table-responsive" style="max-height: 500px; overflow-y: auto;">
|
||||
<table class="table table-hover align-middle mb-0" id="tab_dispo" style="font-size: 8.5pt;">
|
||||
<thead class="bg-light sticky-top">
|
||||
<tr>
|
||||
<th class="ps-3 py-2"><?= _("Nom & Détails") ?></th>
|
||||
<th class="text-center py-2" width="50px"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($prestatairesdispo as $v): $codePres = $v['codePrestataire']; ?>
|
||||
<tr>
|
||||
<td class="ps-3">
|
||||
<div class="fw-bold text-dark search-target"><?= $this->nettoyer($v['libelle']) ?></div>
|
||||
<div class="text-muted smaller">
|
||||
<span class="search-target"><?= $this->nettoyer($v['localite']) ?></span> |
|
||||
<span class="text-primary search-target"><?= $this->nettoyer($v['typeprestataire']) ?></span>
|
||||
</div>
|
||||
</td>
|
||||
<td class="text-center pe-3">
|
||||
<button class="btn btn-sm btn-primary-ghost rounded-circle action-icon" onclick="ajouter_un_prestataire_reseau('<?=$codePres?>');">
|
||||
<i class="fas fa-chevron-right"></i>
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-7">
|
||||
<div class="card border-0 shadow-sm h-100 border-start border-success border-4">
|
||||
<div class="card-header bg-white py-3 border-bottom">
|
||||
<div class="d-flex justify-content-between align-items-center mb-3">
|
||||
<h6 class="mb-0 fw-bold text-success text-uppercase small">
|
||||
<i class="fas fa-check-double me-2"></i><?= _("Affectés au réseau") ?>
|
||||
</h6>
|
||||
<span class="badge bg-success-light text-success rounded-pill px-3" id="count_affect">
|
||||
<?= count($prestatairesreseau) ?>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="bg-success-ghost p-2 rounded mb-2 border border-success-subtle">
|
||||
<div class="row g-1">
|
||||
<div class="col-12 mb-1">
|
||||
<input type="text" id="search_nom_affect" class="form-control form-control-sm border-2 shadow-none" placeholder="<?= _("Rechercher dans la liste...") ?>" onkeyup="rechercheServeur('affect');">
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<input type="text" id="search_ville_affect" class="form-control form-control-sm border-2 shadow-none" placeholder="<?= _("Filtrer par ville...") ?>" onkeyup="rechercheServeur('affect');">
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<select id="search_type_affect" class="form-select form-select-sm border-2 shadow-none" onchange="rechercheServeur('affect');">
|
||||
<option value=""><?= _("Tous les types") ?></option>
|
||||
<?php foreach($typesAffect as $t): ?> <option value="<?= $t ?>"><?= $t ?></option> <?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button class="btn btn-danger-light btn-sm w-100 rounded-pill fw-bold" onclick="retirer_tous_prestataires_du_site();">
|
||||
<i class="fas fa-angle-double-left me-1"></i> <?= _("Retirer tous les prestataires") ?>
|
||||
</button>
|
||||
<div class="col-lg-7">
|
||||
<div class="card border-0 shadow-sm h-100 border-start border-success border-4">
|
||||
<div class="card-header bg-white py-3 border-bottom">
|
||||
<div class="d-flex justify-content-between align-items-center mb-3">
|
||||
<h6 class="mb-0 fw-bold text-success text-uppercase small">
|
||||
<i class="fas fa-check-double me-2"></i><?= _("Affectés au réseau") ?>
|
||||
</h6>
|
||||
<span class="badge bg-success-light text-success rounded-pill px-3" id="count_affect">
|
||||
<?= count($prestatairesreseau) ?>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="card-body p-0">
|
||||
<div class="table-responsive" style="max-height: 500px; overflow-y: auto;">
|
||||
<table class="table table-hover align-middle mb-0" id="tab_affect" style="font-size: 8.5pt;">
|
||||
<thead class="bg-success-light text-success sticky-top">
|
||||
<tr>
|
||||
<th class="ps-3 py-2" width="50px"></th>
|
||||
<th class="py-2"><?= _("Nom du Prestataire") ?></th>
|
||||
<th class="py-2 pe-3"><?= _("Ville & Type") ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($prestatairesreseau as $v): $codePres = $v['codePrestataire']; ?>
|
||||
<tr>
|
||||
<td class="ps-3 text-center">
|
||||
<button class="btn btn-sm btn-danger-light rounded-circle action-icon" onclick="retirer_un_prestataire_reseau('<?=$codePres?>');">
|
||||
<i class="fas fa-chevron-left"></i>
|
||||
</button>
|
||||
</td>
|
||||
<td class="fw-bold text-dark text-uppercase search-target"><?= $this->nettoyer($v['libelle']) ?></td>
|
||||
<td class="pe-3 search-target">
|
||||
<span class="text-muted"><i class="fas fa-map-marker-alt me-1"></i><?= $this->nettoyer($v['localite']) ?></span>
|
||||
<span class="badge bg-light text-muted fw-normal ms-2 search-target"><?= $this->nettoyer($v['typeprestataire']) ?></span>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="bg-success-ghost p-2 rounded mb-2 border border-success-subtle">
|
||||
<div class="row g-1">
|
||||
<div class="col-12 mb-1">
|
||||
<input type="text" id="search_nom_affect" class="form-control form-control-sm border-2 shadow-none" placeholder="<?= _("Rechercher dans la liste...") ?>" onkeyup="rechercheServeur('affect');">
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<input type="text" id="search_ville_affect" class="form-control form-control-sm border-2 shadow-none" placeholder="<?= _("Filtrer par ville...") ?>" onkeyup="rechercheServeur('affect');">
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<select id="search_type_affect" class="form-select form-select-sm border-2 shadow-none" onchange="rechercheServeur('affect');">
|
||||
<option value=""><?= _("Tous les types") ?></option>
|
||||
<?php foreach($typesAffect as $t): ?> <option value="<?= $t ?>"><?= $t ?></option> <?php endforeach; ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button class="btn btn-danger-light btn-sm w-100 rounded-pill fw-bold" onclick="retirer_tous_prestataires_du_site();">
|
||||
<i class="fas fa-angle-double-left me-1"></i> <?= _("Retirer tous les prestataires") ?>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="card-body p-0">
|
||||
<div class="table-responsive" style="max-height: 500px; overflow-y: auto;">
|
||||
<table class="table table-hover align-middle mb-0" id="tab_affect" style="font-size: 8.5pt;">
|
||||
<thead class="bg-success-light text-success sticky-top">
|
||||
<tr>
|
||||
<th class="ps-3 py-2" width="50px"></th>
|
||||
<th class="py-2"><?= _("Nom du Prestataire") ?></th>
|
||||
<th class="py-2 pe-3"><?= _("Ville & Type") ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($prestatairesreseau as $v): $codePres = $v['codePrestataire']; ?>
|
||||
<tr>
|
||||
<td class="ps-3 text-center">
|
||||
<button class="btn btn-sm btn-danger-light rounded-circle action-icon" onclick="retirer_un_prestataire_reseau('<?=$codePres?>');">
|
||||
<i class="fas fa-chevron-left"></i>
|
||||
</button>
|
||||
</td>
|
||||
<td class="fw-bold text-dark text-uppercase search-target"><?= $this->nettoyer($v['libelle']) ?></td>
|
||||
<td class="pe-3 search-target">
|
||||
<span class="text-muted"><i class="fas fa-map-marker-alt me-1"></i><?= $this->nettoyer($v['localite']) ?></span>
|
||||
<span class="badge bg-light text-muted fw-normal ms-2 search-target"><?= $this->nettoyer($v['typeprestataire']) ?></span>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user