From 3a0fc21c5df3f5bb1119770f9b082635abce5af9 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Thu, 5 Dec 2013 08:51:32 +0000 Subject: [PATCH] --- .../application/views/helpers/Essais.php | 26 +++++++++++++++++++ .../views/scripts/templates/listing.phtml | 1 + 2 files changed, 27 insertions(+) create mode 100644 framework/application/views/helpers/Essais.php diff --git a/framework/application/views/helpers/Essais.php b/framework/application/views/helpers/Essais.php new file mode 100644 index 0000000..6a50fa5 --- /dev/null +++ b/framework/application/views/helpers/Essais.php @@ -0,0 +1,26 @@ +'; + foreach ($listes as $liste) { + $res.=$this->_liste($liste); + } + $res.=''; + return $res; + } + + protected function _liste($liste) { + $res = '
'; + $res.='

' . $liste->titre . '

'; + $res.=$this->_table($liste->essais); + $res.='
'; + return $res; + } + + protected function _table($essais) { + + } + +} diff --git a/framework/application/views/scripts/templates/listing.phtml b/framework/application/views/scripts/templates/listing.phtml index 33716e7..bc3df1f 100644 --- a/framework/application/views/scripts/templates/listing.phtml +++ b/framework/application/views/scripts/templates/listing.phtml @@ -2,6 +2,7 @@
markupDotclear($this->text); + echo $this->essais($this->listes) ?>
rightbar() ?> -- 2.39.5