English
Spanish
French
0
Notifications
0 Non lues
Aucune notification
Voir toutes
Aucune nouvelle notification
Raccourcis
Tableau de bord
Profil
Paramètres
Voir toutes les apps
Utilisateur
Utilisateur
Profil
Messages
25
Paramètres
Solde
$47.12
Support
Se déconnecter
Dashboard
Dashboard
Éditer test/systeme_factures.php
<!DOCTYPE html> <html lang="fr"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title><?= $title ?? 'Test Système Factures' ?></title> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet"> <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet"> <style> .test-section { margin-bottom: 2rem; padding: 1.5rem; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); } .test-links a { margin-bottom: 0.5rem; display: block; } .status-indicator { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-right: 8px; } .status-ok { background-color: #28a745; } .status-error { background-color: #dc3545; } .status-warning { background-color: #ffc107; } </style> </head> <body class="bg-light"> <div class="container py-4"> <div class="row"> <div class="col-12"> <div class="text-center mb-4"> <h1 class="display-4"> <i class="fas fa-file-invoice text-primary"></i> Système de Gestion des Factures </h1> <p class="lead text-muted">Page de test et navigation</p> <div class="alert alert-info"> <i class="fas fa-info-circle"></i> <strong>Base URL:</strong> <?= base_url() ?> </div> </div> </div> </div> <div class="row"> <!-- Tests de Connexion --> <div class="col-md-6 mb-4"> <div class="test-section bg-white"> <h3 class="text-primary"> <i class="fas fa-flask"></i> Tests de Connexion </h3> <p class="text-muted">Vérifiez que les modèles et la base de données fonctionnent</p> <div class="test-links"> <?php foreach ($links['tests'] as $name => $url): ?> <a href="<?= $url ?>" class="btn btn-outline-primary btn-sm" target="_blank"> <i class="fas fa-external-link-alt"></i> <?= $name ?> </a> <?php endforeach; ?> </div> </div> </div> <!-- Pages Principales --> <div class="col-md-6 mb-4"> <div class="test-section bg-white"> <h3 class="text-success"> <i class="fas fa-file-invoice"></i> Pages Principales </h3> <p class="text-muted">Navigation dans l'interface des factures</p> <div class="test-links"> <?php foreach ($links['factures'] as $name => $url): ?> <a href="<?= $url ?>" class="btn btn-outline-success btn-sm" target="_blank"> <i class="fas fa-external-link-alt"></i> <?= $name ?> </a> <?php endforeach; ?> </div> </div> </div> <!-- API Endpoints --> <div class="col-md-6 mb-4"> <div class="test-section bg-white"> <h3 class="text-info"> <i class="fas fa-code"></i> API Endpoints </h3> <p class="text-muted">Endpoints JSON pour intégrations</p> <div class="test-links"> <?php foreach ($links['api'] as $name => $url): ?> <a href="<?= $url ?>" class="btn btn-outline-info btn-sm" target="_blank"> <i class="fas fa-external-link-alt"></i> <?= $name ?> </a> <?php endforeach; ?> </div> </div> </div> <!-- Actions Spécifiques --> <div class="col-md-6 mb-4"> <div class="test-section bg-white"> <h3 class="text-warning"> <i class="fas fa-cogs"></i> Actions Spécifiques </h3> <p class="text-muted">Actions sur les factures existantes</p> <div class="test-links"> <?php foreach ($links['actions'] as $name => $url): ?> <a href="<?= $url ?>" class="btn btn-outline-warning btn-sm" target="_blank"> <i class="fas fa-external-link-alt"></i> <?= $name ?> </a> <?php endforeach; ?> </div> </div> </div> </div> <!-- Informations Système --> <div class="row"> <div class="col-12"> <div class="test-section bg-white"> <h3 class="text-secondary"> <i class="fas fa-server"></i> Informations Système </h3> <div class="row"> <div class="col-md-4"> <strong>CodeIgniter Version:</strong><br> <span class="badge bg-primary"><?= \CodeIgniter\CodeIgniter::CI_VERSION ?></span> </div> <div class="col-md-4"> <strong>PHP Version:</strong><br> <span class="badge bg-success"><?= phpversion() ?></span> </div> <div class="col-md-4"> <strong>Environnement:</strong><br> <span class="badge bg-info"><?= ENVIRONMENT ?></span> </div> </div> <hr> <div class="mt-3"> <strong>Modèles Disponibles:</strong> <ul class="list-unstyled mt-2"> <li><span class="status-indicator status-ok"></span> FactureModel</li> <li><span class="status-indicator status-ok"></span> FactureDetailModel</li> <li><span class="status-indicator status-ok"></span> FacturePaiementModel</li> </ul> </div> </div> </div> </div> <!-- Instructions --> <div class="row"> <div class="col-12"> <div class="alert alert-light"> <h5><i class="fas fa-lightbulb text-warning"></i> Instructions :</h5> <ol> <li>Commencez par tester la <strong>connexion à la base de données</strong></li> <li>Vérifiez que les <strong>modèles se chargent</strong> correctement</li> <li>Naviguez vers la <strong>liste des factures</strong> pour voir l'interface</li> <li>Testez les <strong>API endpoints</strong> pour voir les données JSON</li> <li>Explorez le <strong>dashboard</strong> et les <strong>statistiques</strong></li> </ol> </div> </div> </div> </div> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script> <script> // Auto-refresh status indicators document.addEventListener('DOMContentLoaded', function() { console.log('Système de factures chargé avec succès !'); // Test simple de connectivité fetch('<?= base_url() ?>test-facture/connexion') .then(response => response.json()) .then(data => { if (data.success) { document.querySelectorAll('.status-indicator').forEach(el => { el.classList.remove('status-warning'); el.classList.add('status-ok'); }); console.log('✅ Système opérationnel', data); } else { console.log('❌ Problème détecté', data); } }) .catch(error => { console.log('⚠️ Test de connectivité échoué', error); }); }); </script> </body> </html>
Annuler
Enregistrer
Switcher
Theme Styles
Theme Colors
Theme Color Mode:
Light
Dark
Menu Colors: