109 lines
4.5 KiB
PHP
Executable File
109 lines
4.5 KiB
PHP
Executable File
<?php
|
|
$nomFicAppelant = basename(__FILE__);
|
|
// -----------------------------------------------------
|
|
// Etre admin
|
|
// -----------------------------------------------------
|
|
if (isset($_SESSION['isAdmin']) && $_SESSION['isAdmin']=='O' ) {
|
|
|
|
$_SESSION['jeViensDe']="avancement";
|
|
|
|
echo '<script type="text/javascript">
|
|
function abonnement(link) {
|
|
// alert(link);
|
|
window.location=link;
|
|
}
|
|
</script>';
|
|
|
|
echo '<div id="zoneFormModales" >';
|
|
|
|
// -----------------------------------------------------
|
|
// Requete Select ALl
|
|
// -----------------------------------------------------
|
|
$resConn='';
|
|
$tabResult=array();
|
|
if ($lg=='') {$lg='FRA';}
|
|
$reqSelect="SELECT etapeNum, etapeStatut, lienEtape, description, (icone) from avancement ;";
|
|
if (isset($debug[2]) && $debug[2] == '1') { $debugMsg .= monDebug(2, ['reqSelect' => $reqSelect], 'avancement.modale.php');}
|
|
$resConn=$idPdo->query($reqSelect);
|
|
if ($resConn) {
|
|
$i=0;
|
|
while ($tabResult = $resConn->fetch(PDO::FETCH_ASSOC)) {
|
|
$tabNumEtapeAv[$i]=$tabResult['etapeNum'];
|
|
$tabStatusEtapeAv[$i]=$tabResult['etapeStatut'];
|
|
$tabLienEtapeAv[$i]=$tabResult['lienEtape'];
|
|
$tabDescEtapeAv[$i]=$tabResult['description'];
|
|
$tabIcoAv[$i]=$tabResult['icone'];
|
|
|
|
// -----------------------------------------------------
|
|
// Tableau d'avancement
|
|
// -----------------------------------------------------
|
|
echo '<div style="padding:5px; margin:5px; font-size:1rem;" class="flexToColumn txtAvance fondColorListe" >';
|
|
// etape
|
|
echo '<span style="color:blue">' .$tabIcoAv[$i]. '</span>';
|
|
echo '' .$tabNumEtapeAv[$i]. '';
|
|
$reqSelect2="select etapeLib from avancementLib WHERE etapeNum=" .$tabNumEtapeAv[$i]. " and idLg='" .$lg. "';";
|
|
if (isset($debug[2]) && $debug[2] == '1') { $debugMsg .= monDebug(2, ['reqSelect2' => $reqSelect2], '');}
|
|
$resConn2='';
|
|
$resConn2=$idPdo->query($reqSelect2);
|
|
if ($resConn2) {
|
|
echo ' <a target="_parent" href="' .$tabResult['lienEtape']. '" >';
|
|
$tabLibEtape=$resConn2->fetch(PDO::FETCH_ASSOC);
|
|
echo '<span class="goToWrap txtAvance">' .$tabLibEtape['etapeLib']. '</span>';
|
|
echo '</a>';
|
|
}
|
|
|
|
if ($tabStatusEtapeAv[$i]!=0) {
|
|
echo '<span ><input type="checkbox" checked="true" disabled></span>';
|
|
}
|
|
else {
|
|
echo '<span><input type="checkbox" disabled></span>';
|
|
}
|
|
echo '<span class="goToWrap txtAvance">' .$tabDescEtapeAv[$i]. '</span>';
|
|
echo '</div>';
|
|
$i++;
|
|
}
|
|
}
|
|
|
|
// -----------------------------------------------------
|
|
// On recharge Avancement
|
|
// -----------------------------------------------------
|
|
include ("checkAvancement.php");
|
|
|
|
// -----------------------------------------------------
|
|
// Bouton mettre en ligne
|
|
// -----------------------------------------------------
|
|
if ($avancementFini==true) {
|
|
echo '<br>';
|
|
echo '<div class="goToWrap"><i class="fad fa-tachometer-alt-fastest" style="color:navy"></i>';
|
|
echo 'Félicitations ! Votre site est maintenant publiable. ';
|
|
echo ' Si vous avez tout vérifié et êtes satisfait activez-le et mettez-le en ligne maintenant. ';
|
|
echo '</div>';
|
|
echo '<br>';
|
|
|
|
// -----------------------------------------------------
|
|
// Changement commercial le client paye que si il vend: déplacer ce code
|
|
// -----------------------------------------------------
|
|
// echo '<div style="margin:auto;text-align:center;" >';
|
|
// echo '<span class="boutonsWebmaster goToWrap" onClick="abonnement(\'' .$_SESSION['server']. '/admin/frmAdmin.php?affAdmin=17&codeRetourPaiement=-1\');" >';
|
|
// echo '<i class="fab fa-cc-stripe" style="color:navy"></i>';
|
|
// echo ' Choisir son abonnement et Mettre en ligne maintenant';
|
|
// echo '</span>';
|
|
// echo '</div>';
|
|
|
|
echo '<div>';
|
|
echo '<br><b><span style=color:red;">Une fois la mise en ligne validée : </span></b>';
|
|
echo '<ul>';
|
|
echo '<li class="goToWrap"><b>Si vous avez des clés API passez les en environnement de production.</b></li>';
|
|
echo '<li class="goToWrap"><b>Vous devez publier l\'ensemble du site pour son initialisation en production.</b></li>';
|
|
echo '<li class="goToWrap"><b>Le site public devient disponible sans authentification.</b></li>';
|
|
echo '<li class="goToWrap"><b>Si vous avez demandé un domaine celui-ci va être créé.</b></li>';
|
|
echo '</ul>';
|
|
echo '</div>';
|
|
}
|
|
echo '</div>';
|
|
}
|
|
else {
|
|
$confPath="../_conf";
|
|
include ("./adminInclude/redirectionAdmin.php");
|
|
}
|
|
?>
|