Initial commit - Application CLEO de gestion de devis

- Architecture MVC avec framework maison d6
- Modules : devis, clients, marchés, SAP
- Documentation initiale (README et TODO)
- Configuration Composer avec dépendances

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-09-11 18:26:07 +02:00
commit 046c23f2d2
2378 changed files with 163904 additions and 0 deletions

View File

@@ -0,0 +1,115 @@
<?php
$script = $Route->_script;
?>
<div class="panel panel-danger">
<div class="list-group menu-gauche">
<?php
switch (substr($script, 0, 5)) {
case "impor":
?>
<div class="panel-heading" style="background-color:#01519E; color:white;"><strong>IMPORTATIONS</strong>
</div>
<a href="comcrr.php" class="list-group-item <?php if ($script == "comcrr.php") {
echo "active";
} ?>"><i class="fa fa-file-o"></i> Les comptes-rendus du C.E. <span class='selected'></span></a>
<a href="comflashs.php" class="list-group-item <?php if ($script == "comflashs.php") {
echo "active";
} ?>"><i class="fa fa-flash"></i> Les flashs du C.E. <span class='selected'></span></a>
<a href="#" class="list-group-item <?php if ($script == "comxx.php") {
echo "active";
} ?>"><i class="fa fa-arrow-right"></i> Agenda du C.E. <span class='selected'></span></a>
<a href="#" class="list-group-item <?php if ($script == "comxx.php") {
echo "active";
} ?>"><i class="fa fa-arrow-right"></i> Albums photos <span class='selected'></span></a>
<a href="comcommissions.php" class="list-group-item <?php if ($script == "comcommissions.php") {
echo "active";
} ?>"><i class="fa fa-group"></i> Les commissions du C.E. <span class='selected'></span></a>
<a href="#" class="list-group-item <?php if ($script == "comxx.php") {
echo "active";
} ?>"><i class="fa fa-arrow-right"></i> Budget C.E. <span class='selected'></span></a>
<a href="#" class="list-group-item <?php if ($script == "comxx.php") {
echo "active";
} ?>"><i class="fa fa-arrow-right"></i> Documents à télécharger <span class='selected'></span></a>
<a href="#" class="list-group-item <?php if ($script == "comxx.php") {
echo "active";
} ?>"><i class="fa fa-arrow-right"></i> Sites Partenaires <span class='selected'></span></a>
<a href="#" class="list-group-item <?php if ($script == "comxx.php") {
echo "active";
} ?>"><i class="fa fa-arrow-right"></i> Petites annonces <span class='selected'></span></a>
<a href="#" class="list-group-item <?php if ($script == "comxx.php") {
echo "active";
} ?>"><i class="fa fa-arrow-right"></i> Infos du jour <span class='selected'></span></a>
<a href="#" class="list-group-item <?php if ($script == "comxx.php") {
echo "active";
} ?>"><i class="fa fa-arrow-right"></i> Pages vitrine <span class='selected'></span></a>
<a href="#" class="list-group-item <?php if ($script == "comxx.php") {
echo "active";
} ?>"><i class="fa fa-arrow-right"></i> Sondages <span class='selected'></span></a>
<?php
break;
case "fic":
?>
<div class="panel-heading" style="background-color:#01519E; color:white;"><strong>MON COMPTE</strong></div>
<a href="fiche.php" class="list-group-item <?php if ($script == "fiche.php") {
echo "active";
} ?>"><i class="fa fa-user"></i> Mes informations <span class='selected'></span></a>
<a href="ficdem.php" class="list-group-item <?php if ($script == "ficdem.php") {
echo "active";
} ?>"><i class="fa fa-comments-o"></i> Mes demandes <span class='selected'></span></a>
<a href="ficregl.php" class="list-group-item <?php if ($script == "ficregl.php") {
echo "active";
} ?>"><i class="fa fa-euro"></i> Mes règlements <span class='selected'></span></a>
<?php
break;
case "oeu":
?>
<div class="panel-heading" style="background-color:#01519E; color:white;"><strong><i class="fa fa-star"></i>
LES &OElig;UVRES SOCIALES</strong></div>
<a href="oeubilletterie.php" class="list-group-item <?php if ($script == "oeubilletterie.php") {
echo "active";
} ?>"><i class="fa fa-ticket"></i> La billetterie <span class='selected'></span></a>
<a href="#" class="list-group-item <?php if ($script == "oeuxx.php") {
echo "active";
} ?>"><i class="fa fa-child"></i> Evènements familiaux <span class='selected'></span></a>
<a href="#" class="list-group-item <?php if ($script == "oeuxx.php") {
echo "active";
} ?>"><i class="fa fa-tree"></i> Noël <span class='selected'></span></a>
<a href="#" class="list-group-item <?php if ($script == "oeuxx.php") {
echo "active";
} ?>"><i class="fa fa-check"></i> Chèques Vacances <span class='selected'></span></a>
<a href="#" class="list-group-item <?php if ($script == "oeuxx.php") {
echo "active";
} ?>"><i class="fa fa-trophy"></i> Médailles du travail <span class='selected'></span></a>
<a href="#" class="list-group-item <?php if ($script == "oeuxx.php") {
echo "active";
} ?>"><i class="fa fa-leaf"></i> Locations courts séjours <span class='selected'></span></a>
<a href="#" class="list-group-item <?php if ($script == "oeuxx.php") {
echo "active";
} ?>"><i class="fa fa-sun-o"></i> Locations semaines <span class='selected'></span></a>
<a href="#" class="list-group-item <?php if ($script == "oeuxx.php") {
echo "active";
} ?>"><i class="fa fa-ticket"></i> Crédits spectacles <span class='selected'></span></a>
<?php
break;
case "out":
?>
<div class="panel-heading" style="background-color:#01519E; color:white;"><strong><i
class="fa fa-gears"></i> MES OUTILS</strong></div>
<a href="#" class="list-group-item <?php if ($script == "outalbums.php") {
echo "active";
} ?>"><i class="fa fa-camera"></i> Albums photos <span class='selected'></span></a>
<a href="#" class="list-group-item <?php if ($script == "outbudget.php") {
echo "active";
} ?>"><i class="fa fa-euro"></i> Budget du C.E. <span class='selected'></span></a>
<a href="outannonces.php" class="list-group-item <?php if ($script == "outannonces.php") {
echo "active";
} ?>"><i class="fa fa-comments-o"></i> Petites annonces <span class='selected'></span></a>
<a href="#" class="list-group-item <?php if ($script == "outsondages.php") {
echo "active";
} ?>"><i class="fa fa-question"></i> Sondages <span class='selected'></span></a>
<?php
break;
}
?>
</div>
</div>

View File

@@ -0,0 +1,12 @@
<footer>
<div class="left ml-1">&copy; <?= $Conf->_brandname; ?> <?= date("Y"); ?></div>
<div class="center">Version
<?php
echo $Conf->_appversion . ' - IP : ' . $Conf->_clientIp;
$delay = round(microtime(true) - $tpsdebut, 3);
echo ' - Page générée en ' . $delay . ' secondes';
logstats($delay);
?>
</div>
<div class="right"><a href="https://d6soft.fr" title="Conception du site" target="_blank">D6SOFT</a></div>
</footer>

View File

@@ -0,0 +1,65 @@
<?php
global $Route;
global $Conf;
global $Session;
$menu = "";
switch ($Route->_script) {
case "users":
case "interface":
$menu = "gestion";
break;
}
?>
<nav class="navbar" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/accueil"><img src="/pub/res/img/logo/cleo_150.png" alt="logo <?= $Conf->_brandname; ?>"/></a>
<p class="navbar-text"><?php echo $Session->_user["prenom"] . " " . $Session->_user["libelle"]; ?></p>
<?php if ($Route->_script == "devis") {
?>
<a href="#" title="SideBar" class="navbar-text" id="btnSideBarDevis">
<svg>
<use xlink:href="pub/res/svg/icons.svg#layout-sidebar-inset" width="18" height="18" style="fill: yellow;"/>
</svg>
</a>
<?php
}
?>
</div>
<div class="collapse navbar-collapse" id="navbar-collapse-1">
<ul class="nav navbar-nav navbar-right" role="navigation">
<?php
echo '<li ' . ($Route->_script == "accueil" ? 'class="active">' : '>') . '<a href="/accueil" title="Accueil"><svg><use xlink:href="pub/res/svg/icons.svg#house" style="fill: white;"/></svg></a></li>';
if ($Session->_user["fk_role"] == 90) {
echo '<li ' . ($Route->_script == "clients" ? 'class="active">' : '>') . '<a href="/clients" title="Clients"><svg><use xlink:href="pub/res/svg/icons.svg#address-book" style="fill: white;"/></svg> CLIENTS</a></li>';
echo '<li ' . ($Route->_script == "marches" ? 'class="active">' : '>') . '<a href="/marches" title="Marchés"><svg><use xlink:href="pub/res/svg/icons.svg#cubes" style="fill: white;"/></svg> MARCHES</a></li>';
}
if ($Session->_user["fk_role"] == 90 || $Session->_user["fk_role"] == 20) {
echo '<li ' . ($Route->_script == "sap" ? 'class="active">' : '>') . '<a href="/sap" title="SAP"><svg><use xlink:href="pub/res/svg/icons.svg#gears" style="fill: white;"/></svg> GESTION SAP</a></li>';
}
echo '<li ' . ($Route->_script == "devis" ? 'class="active">' : '>') . '<a href="/devis" title="Devis"><svg><use xlink:href="pub/res/svg/icons.svg#file-invoice" style="fill: white;" /></svg> DEVIS</a></li>';
if ($Session->_user["fk_role"] == 90) {
echo '<li class="dropdown ' . ($menu == "gestion" ? 'active">' : '">') . '<a href="#" class="dropdown-toggle" data-toggle="dropdown" title="Gestion"><svg><use xlink:href="pub/res/svg/icons.svg#gauge" style="fill: white;" /></svg> GESTION <span class="caret"></span></a>';
echo '<ul class="dropdown-menu" role="menu">';
echo '<li><a href="/users" title="Gestion des utilisateurs"><i class="fa fa-users"></i> Utilisateurs</a></li>';
echo '<li class="divider"></li>';
echo '<li><a href="/interface" title="Gestion de l\'interface"><i class="fa fa-file"></i> Interface</a></li>';
echo '</ul>';
echo '</li>';
}
echo '<li class="divider"></li>';
echo '<li style="background: transparent;"><a href="/login" title="Se déconnecter"><i class="fa fa-power-off"></i></a></li>';
?>
</ul>
</div>
</nav>
<div class="clearfix"></div>