[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 25/46: Task #0001704: Faciliter l'ajout de pl
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 25/46: Task #0001704: Faciliter l'ajout de plusieurs lignes Fichier oublié html_input_noalyss.class.php |
Date: |
Mon, 4 May 2020 13:38:49 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 84131820af2fd270a754341c8f893eb623c0930a
Author: Dany De Bontridder <address@hidden>
AuthorDate: Mon Mar 2 20:39:15 2020 +0100
Task #0001704: Faciliter l'ajout de plusieurs lignes
Fichier oublié html_input_noalyss.class.php
---
include/class/html_input_noalyss.class.php | 61 ++++++++++++++++++++++++++++++
1 file changed, 61 insertions(+)
diff --git a/include/class/html_input_noalyss.class.php
b/include/class/html_input_noalyss.class.php
new file mode 100644
index 0000000..9fc1e26
--- /dev/null
+++ b/include/class/html_input_noalyss.class.php
@@ -0,0 +1,61 @@
+<?php
+
+
+
+/*
+ * This file is part of NOALYSS.
+ *
+ * NOALYSS 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.
+ *
+ * NOALYSS 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 NOALYSS; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * 1/03/20
+*/
+/**
+ * @file
+ * @brief
+ *
+ */
+// Copyright Author Dany De Bontridder address@hidden
+require_once NOALYSS_INCLUDE."/lib/html_input.class.php";
+
+/**
+ * @class
+ * @brief
+ *
+ */
+class Html_Input_Noalyss extends HtmlInput
+{
+ /**
+ * Build a HTML string for adding multiple rows
+ * @param string $p_ledger ledger type /Fin , Other = sale / purchase , M
miscelleaneous
+ */
+ static function ledger_add_item($p_ledger)
+ {
+ //Fin , Other = sale / purchase , M miscelleaneous
+ if ( ! in_array($p_ledger ,["F","O","M"]) ) {
+ throw new Exception(_("LAD46 Erreur type"));
+ }
+ $id=uniqid();
+ $num=new INum($id,0);
+ $num->value=1;
+ $num->size=2;
+ $s_js=sprintf(' onClick="ledger_add_multiple(\'%s\')"',$id);
+
+ $r=HtmlInput::hidden($id."_ledger",$p_ledger);
+ $r.=$num->input();
+ $r.=HtmlInput::button('add_item',_('ligne à ajouter'),
+ $s_js);
+
+ return $r;
+ }
+}
\ No newline at end of file
- [Noalyss-commit] [noalyss] 09/46: search : add placeholder, (continued)
- [Noalyss-commit] [noalyss] 09/46: search : add placeholder, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 10/46: Bug : customer.inc.php with http_input::request Correct : Contact.inc.php remove direct use of $_GET, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 11/46: New : Icon_Action::icon_onoff : display on or off, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 08/46: Bug : filter_list does not filter simple list, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 13/46: Noalyss_CSV : add setter and getter, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 16/46: remove blank line, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 18/46: Task #1694: Opération FIN: opération liée - code fiche mais pas nom, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 19/46: Task #0001704: Faciliter l'ajout de plusieurs lignes, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 23/46: Output_Html_Tab : cosmetic, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 24/46: Create test folder for phpunit, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 25/46: Task #0001704: Faciliter l'ajout de plusieurs lignes Fichier oublié html_input_noalyss.class.php,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 15/46: replace $_GET by httpInput, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 30/46: Task #0001793: Installation mot de passe Password cannot be empty, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 14/46: Task #0001699: Affichage PDF balance - totaux niveaux, etc'., Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 20/46: Cosmetic : Opération prédéfinie, modèle, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 17/46: Task #1756: Avertissement qcode, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 21/46: if you want to modify the accounting , it must not be used before., Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 26/46: Task #0001793: Installation mot de passe, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 32/46: Task #0001793: Installation mot de passe Empêche @mobile , doc, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 34/46: Bug #0001245: Type actif - passif pour nouvelle fiche à partir de fiche Erreur dans PARM_POSTE pour la compta française, Dany De Bontridder, 2020/05/04
- [Noalyss-commit] [noalyss] 35/46: Bug #0001245: Type actif - passif pour nouvelle fiche à partir de fiche Erreur dans PARM_POSTE pour la compta française, Dany De Bontridder, 2020/05/04