Initial commit: CLEO ERP avec améliorations debug
- Configuration du debug conditionnel pour dev/recette - Fonction debug() globale avec niveaux - Logging des requêtes SQL - Handlers d'exceptions et d'erreurs globaux 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
11
models/mmarches.php
Normal file
11
models/mmarches.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
$sch = "";
|
||||
if ($_POST) {
|
||||
if (isset($_POST["chproduits"])) {
|
||||
$search = trim($_POST["chproduits"]);
|
||||
$sch = 'libelle LIKE "%' . $search . '%" OR libelle_court LIKE "%' . $search . '%"';
|
||||
}
|
||||
}
|
||||
|
||||
$sql = 'SELECT m.rowid, m.libelle, m.date_debut, m.date_fin, m.date_validite_prix, m.date_import, m.chk_remise_sur_tg, m.chk_marche_hybride, m.active FROM marches m ORDER BY m.libelle;';
|
||||
$aModel["lesmarches"] = getinfos($sql, "gen");
|
||||
Reference in New Issue
Block a user