From e0e6043f5197c284f9953a75d56d8101f672b72d Mon Sep 17 00:00:00 2001 From: Regis Houssin <regis@dolibarr.fr> Date: Sun, 8 Jan 2012 08:50:05 +0100 Subject: [PATCH] Fix: uniform code --- htdocs/cashdesk/tpl/facturation1.tpl.php | 38 ++++++++++--------- htdocs/cashdesk/tpl/liste_articles.tpl.php | 43 +++++++++++----------- htdocs/cashdesk/tpl/validation1.tpl.php | 36 ++++++++++-------- htdocs/cashdesk/tpl/validation2.tpl.php | 32 +++++++++------- 4 files changed, 80 insertions(+), 69 deletions(-) diff --git a/htdocs/cashdesk/tpl/facturation1.tpl.php b/htdocs/cashdesk/tpl/facturation1.tpl.php index 3a9ba77db04..6963695c78e 100644 --- a/htdocs/cashdesk/tpl/facturation1.tpl.php +++ b/htdocs/cashdesk/tpl/facturation1.tpl.php @@ -1,27 +1,29 @@ <?php +/* Copyright (C) 2007-2008 Jeremie Ollivier <jeremie.o@laposte.net> + * Copyright (C) 2011 Laurent Destailleur <eldy@users.sourceforge.net> + * Copyright (C) 2011 Juanjo Menent <jmenent@2byte.es> + * + * 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 2 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 <http://www.gnu.org/licenses/>. + * + */ + $langs->load("main"); $langs->load("bills"); $langs->load("cashdesk"); -?> -<!-- -Copyright (C) 2007-2008 Jeremie Ollivier <jeremie.o@laposte.net> -Copyright (C) 2011 Laurent Destailleur <eldy@users.sourceforge.net> -Copyright (C) 2011 Juanjo Menent <jmenent@2byte.es> - -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 2 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 <http://www.gnu.org/licenses/>. +?> ---> <script type="text/javascript" src="javascript/facturation1.js"></script> <script type="text/javascript" src="javascript/dhtml.js"></script> diff --git a/htdocs/cashdesk/tpl/liste_articles.tpl.php b/htdocs/cashdesk/tpl/liste_articles.tpl.php index c9fbce6644b..79e7359cc10 100644 --- a/htdocs/cashdesk/tpl/liste_articles.tpl.php +++ b/htdocs/cashdesk/tpl/liste_articles.tpl.php @@ -1,30 +1,31 @@ <?php +/* Copyright (C) 2007-2008 Jeremie Ollivier <jeremie.o@laposte.net> + * Copyright (C) 2011 Juanjo Menent <jmenent@2byte.es> + * + * 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 2 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 <http://www.gnu.org/licenses/>. + * + */ + +require_once(DOL_DOCUMENT_ROOT.'/societe/class/societe.class.php'); +require_once(DOL_DOCUMENT_ROOT.'/product/class/product.class.php'); + $langs->load("main"); $langs->load("bills"); $langs->load("cashdesk"); -?> -<?php -/** add Ditto */ -require_once(DOL_DOCUMENT_ROOT.'/societe/class/societe.class.php'); -require_once(DOL_DOCUMENT_ROOT.'/product/class/product.class.php'); -/** end add Ditto */ + ?> -<!--Copyright (C) 2007-2008 Jeremie Ollivier <jeremie.o@laposte.net> - Copyright (C) 2011 Juanjo Menent <jmenent@2byte.es> -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 2 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 <http://www.gnu.org/licenses/>. ---> <div class="liste_articles_haut"> <div class="liste_articles_bas"> diff --git a/htdocs/cashdesk/tpl/validation1.tpl.php b/htdocs/cashdesk/tpl/validation1.tpl.php index 6ed13b6c0c8..040f0f8fd4b 100644 --- a/htdocs/cashdesk/tpl/validation1.tpl.php +++ b/htdocs/cashdesk/tpl/validation1.tpl.php @@ -1,22 +1,26 @@ <?php +/* Copyright (C) 2007-2008 Jeremie Ollivier <jeremie.o@laposte.net> + * Copyright (C) 2011 Juanjo Menent <jmenent@2byte.es> + * + * 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 2 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 <http://www.gnu.org/licenses/>. + * + */ + $langs->load("main"); + ?> -<!--Copyright (C) 2007-2008 Jeremie Ollivier <jeremie.o@laposte.net> - Copyright (C) 2011 Juanjo Menent <jmenent@2byte.es> - -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 2 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 <http://www.gnu.org/licenses/>. ---> + <fieldset class="cadre_facturation"><legend class="titre1"><?php echo $langs->trans("Summary"); ?></legend> <table class="table_resume"> diff --git a/htdocs/cashdesk/tpl/validation2.tpl.php b/htdocs/cashdesk/tpl/validation2.tpl.php index f186a070fb0..bddaadc9f2f 100644 --- a/htdocs/cashdesk/tpl/validation2.tpl.php +++ b/htdocs/cashdesk/tpl/validation2.tpl.php @@ -1,21 +1,25 @@ <?php -$langs->load("main"); -?> -<!--Copyright (C) 2007-2008 Jeremie Ollivier <jeremie.o@laposte.net> +/* Copyright (C) 2007-2008 Jeremie Ollivier <jeremie.o@laposte.net> + * + * 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 2 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 <http://www.gnu.org/licenses/>. + * + */ -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 2 of the License, or -(at your option) any later version. +$langs->load("main"); -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 <http://www.gnu.org/licenses/>. ---> <h3 class="titre1"><?php echo $langs->trans("SellFinished"); ?></h3> <div class="cadre_facturation"> -- GitLab