[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 14/29: Improve Code : permet d'avoir plusieur
From: |
dwm |
Subject: |
[Noalyss-commit] [noalyss] 14/29: Improve Code : permet d'avoir plusieurs couleurs sur une ligne |
Date: |
Sat, 6 Jan 2024 05:59:14 -0500 (EST) |
sparkyx pushed a commit to branch devel
in repository noalyss.
commit 65a6d1b14a27ca729e4bc3ce3997ace7a7241a1a
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sun Dec 17 12:08:20 2023 +0100
Improve Code : permet d'avoir plusieurs couleurs sur une ligne
---
include/lib/pdf_core.class.php | 27 ++++++++++++++++++++++++++-
1 file changed, 26 insertions(+), 1 deletion(-)
diff --git a/include/lib/pdf_core.class.php b/include/lib/pdf_core.class.php
index 3b4563889..9111751ea 100644
--- a/include/lib/pdf_core.class.php
+++ b/include/lib/pdf_core.class.php
@@ -184,7 +184,32 @@ class PDF_Core extends TFPDF
}
return false;
}
- private function print_row()
+
+ /**
+ * @brief print the current array of cell and reset it , if different
colors are set on the same row
+ * you have to print it before changing
+ *@code
+ * // fill red , text white
+ * $this->SetFillColor(255,0,0);
+ * $this->SetTextColor(255,255,255);
+ * $this->write_cell(15,5,"PRICE",0,0,'R',fill:true);
+ *
+ * // print the cell without a linefeed
+ * $this->print_row();
+ *
+ * // text in black on green
+ *
+ * $this->SetTextColor(0,0,0);
+ * $this->SetFillColor(0,255,0);
+ *
+ * $this->write_cell(15,5,nbm($other['price']),0,0,'R');
+ *@endcode
+ * @see TFPDF::SetTextColor()
+ * @see TFPDF::SetFillColor()
+ * @see TFPDF::SetFontSize()
+ * @return void
+ */
+ protected function print_row()
{
static $e=0;
$e++;
- [Noalyss-commit] [noalyss] 06/29: PHP 8.2 compatibility, (continued)
- [Noalyss-commit] [noalyss] 06/29: PHP 8.2 compatibility, dwm, 2024/01/06
- [Noalyss-commit] [noalyss] 01/29: Code : change filename, dwm, 2024/01/06
- [Noalyss-commit] [noalyss] 02/29: PHP Compatibility, dwm, 2024/01/06
- [Noalyss-commit] [noalyss] 05/29: Bug cosmetic : when update in a window, dwm, 2024/01/06
- [Noalyss-commit] [noalyss] 07/29: Improve Debug, dwm, 2024/01/06
- [Noalyss-commit] [noalyss] 08/29: typo, dwm, 2024/01/06
- [Noalyss-commit] [noalyss] 09/29: Fix Bug Balance Accountancy, dwm, 2024/01/06
- [Noalyss-commit] [noalyss] 10/29: cosmetic : color info password, dwm, 2024/01/06
- [Noalyss-commit] [noalyss] 11/29: PHP8.1 Compatibility, dwm, 2024/01/06
- [Noalyss-commit] [noalyss] 13/29: Code improve : Acc_Balance utilise PDF_CORE::is_fill, dwm, 2024/01/06
- [Noalyss-commit] [noalyss] 14/29: Improve Code : permet d'avoir plusieurs couleurs sur une ligne,
dwm <=
- [Noalyss-commit] [noalyss] 17/29: Improve : PRINTJRN search in detail VAT mode, dwm, 2024/01/06
- [Noalyss-commit] [noalyss] 18/29: PHP8.1 Compatibility, dwm, 2024/01/06
- [Noalyss-commit] [noalyss] 21/29: PhpUnit : test, dwm, 2024/01/06
- [Noalyss-commit] [noalyss] 20/29: Bug fix : sent emails not counted properly, dwm, 2024/01/06
- [Noalyss-commit] [noalyss] 23/29: Task #1749: Cases «Débit» dans les OD's fait remarquer si débit ou crédit, dwm, 2024/01/06
- [Noalyss-commit] [noalyss] 04/29: cosmetic info password, dwm, 2024/01/06
- [Noalyss-commit] [noalyss] 12/29: Fix bug : $g_parameter non initialisé pour plugin, dwm, 2024/01/06
- [Noalyss-commit] [noalyss] 22/29: Task #0002318: Envoi email : forcer le domaine de l'expéditeur Adapter le fichier config, dwm, 2024/01/06
- [Noalyss-commit] [noalyss] 24/29: Task #1749: Cases «Débit» dans les OD's fait remarquer si débit ou crédit, dwm, 2024/01/06
- [Noalyss-commit] [noalyss] 15/29: TFPDF mise à jour 1.33, dwm, 2024/01/06