From 30f5a25ad17ee7e780a43efdb90737dc9ff7572b Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Mon, 9 Feb 2004 16:17:43 +0000 Subject: [PATCH] commit au mauvais endroit (grrrrrr mv sur un CVS/ ...) --- htdocs/trezo/gere_operations.php | 99 ++++++++++++++++++++++++++++++++++++++++ htdocs/trezo/index.php | 48 +++++++++++++++++++ 2 files changed, 147 insertions(+) create mode 100644 htdocs/trezo/gere_operations.php create mode 100644 htdocs/trezo/index.php diff --git a/htdocs/trezo/gere_operations.php b/htdocs/trezo/gere_operations.php new file mode 100644 index 0000000..5c09152 --- /dev/null +++ b/htdocs/trezo/gere_operations.php @@ -0,0 +1,99 @@ +assign('operation_id', $operation_id); +$page->assign('annee_sel', $annee_sel); +$page->assign('mois_sel', $mois_sel); +$page->assign('operation_date', $operation_date); +$page->assign('operation_label', $operation_label); +$page->assign('operation_debit', $operation_debit); +$page->assign('operation_credit', $operation_credit); +$page->assign('mon_sel', $mon_sel); + +$page->assign('from_solde', solde_until($from_date)); +$page->assign('to_solde', solde_until($to_date)); +$page->assign_by_ref('month_arr', $mois_fr); + +$sql = "SELECT id,date,label,credit,debit + FROM trezo.operations + WHERE date >= '$from_date' AND date <= '$to_date' + ORDER BY date"; +$page->mysql_assign($sql, 'ops'); + +$page->display(); +?> diff --git a/htdocs/trezo/index.php b/htdocs/trezo/index.php new file mode 100644 index 0000000..7b98a3a --- /dev/null +++ b/htdocs/trezo/index.php @@ -0,0 +1,48 @@ +assign('from_solde', solde_until($from_date)); +$page->assign('to_solde', solde_until($to_date)); +$page->assign('mon_sel', $mon_sel); +$page->assign_by_ref('month_arr', $trim_fr); + +$sql = "SELECT date,label,credit,debit FROM trezo.operations + WHERE date >= '$from_date' and date <= '$to_date' + ORDER BY date"; +$page->mysql_assign($sql,'ops'); + +$page->display(); +?> -- 2.1.4