From 7ee0b1061bb1bf46a1b97cf4477c8d0d3def15e0 Mon Sep 17 00:00:00 2001 From: BENKE Charlene Date: Sun, 17 Sep 2017 20:43:42 +0200 Subject: [PATCH] Link feature on donation --- htdocs/don/tpl/linkedobjectblock.tpl.php | 74 ++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 htdocs/don/tpl/linkedobjectblock.tpl.php diff --git a/htdocs/don/tpl/linkedobjectblock.tpl.php b/htdocs/don/tpl/linkedobjectblock.tpl.php new file mode 100644 index 00000000000..fdf6ae71c2f --- /dev/null +++ b/htdocs/don/tpl/linkedobjectblock.tpl.php @@ -0,0 +1,74 @@ + + * Copyright (C) 2013 Juanjo Menent + * Copyright (C) 2014 Marcos GarcĂ­a + * Copyright (C) 2017 Charlene Benke + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ +?> + + + +load("donations"); + +$total=0; $ilink=0; +$var=true; +foreach($linkedObjectBlock as $key => $objectlink) +{ + $ilink++; + + $trclass=($var?'pair':'impair'); + if ($ilink == count($linkedObjectBlock) && empty($noMoreLinkedObjectBlockAfter) && count($linkedObjectBlock) <= 1) $trclass.=' liste_sub_total'; +?> + + trans("Donation"); ?> + getNomUrl(1); ?> + ref_client; ?> + date, 'day'); ?> + total_ht; + echo price($objectlink->total_ht); + } ?> + + getLibStatut(3); ?> + + 1) +{ + ?> + + trans("Total"); ?> + + + + + + + + + +