[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 17/219: Add test for Manage_Table_SQL
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 17/219: Add test for Manage_Table_SQL |
Date: |
Mon, 18 Dec 2017 13:22:28 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 0fd81ba1cc1c77918aab14121bc2387c4a5fdee8
Author: Dany De Bontridder <address@hidden>
Date: Sat Jul 22 20:13:49 2017 +0200
Add test for Manage_Table_SQL
---
scenario/ajax_manage_table_sql.php | 61 ++++++++++++++++++++++++++++++++++++++
1 file changed, 61 insertions(+)
diff --git a/scenario/ajax_manage_table_sql.php
b/scenario/ajax_manage_table_sql.php
new file mode 100644
index 0000000..8ae6e27
--- /dev/null
+++ b/scenario/ajax_manage_table_sql.php
@@ -0,0 +1,61 @@
+<?php
+
+/*
+ * This file is part of NOALYSS.
+ *
+ * PhpCompta 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.
+ *
+ * PhpCompta 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 PhpCompta; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+// Copyright (2016) Author Dany De Bontridder <address@hidden>
+
+if (!defined('ALLOWED'))
+ die('Appel direct ne sont pas permis');
+if ( ! defined ("AJAX_TEST ")) {
+ echo "Can not be called directly but via AJAX";
+ return;
+}
+/**
+ * @file
+ * @brief Test the ajax call from test_manage_table_sql.php
+ */
+$http=new HttpInput();
+try {
+$table=$http->get('table');
+$action=$http->get('action');
+$p_id=$http->get('p_id', "numeric");
+$ctl_id=$http->get('ctl');
+} catch(Exception $e) {
+
+ echo $e->getMessage();
+}
+require_once NOALYSS_INCLUDE."/lib/manage_table_sql.class.php";
+require_once NOALYSS_INCLUDE."/database/acc_plan_sql.class.php";
+
+$obj=new Acc_Plan_SQL($cn, $p_id);
+$manage_table=new Manage_Table_SQL($obj);
+$manage_table->add_json_param("TestAjaxFile",
+ NOALYSS_HOME."/../scenario/ajax_manage_table_sql.php");
+
+if ($action=="input")
+{
+ $manage_table->set_object_name($ctl_id);
+ $manage_table->set_col_label('pcm_val', "Poste");
+ $manage_table->set_col_label('parent_accounting', "Dépend");
+ $manage_table->set_col_label('pcm_lib', "Libellé");
+ $manage_table->set_col_label('pcm_type',
+ "Type de menu".HtmlInput::infobulle(33));
+ header('Content-type: text/xml; charset=UTF-8');
+ echo $manage_table->ajax_input()->saveXML();
+ return;
+}
\ No newline at end of file
- [Noalyss-commit] [noalyss] 57/219: New : inplace_edit permit the developer to create easily a "inplace" edit field, (continued)
- [Noalyss-commit] [noalyss] 57/219: New : inplace_edit permit the developer to create easily a "inplace" edit field, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 93/219: Change background title inner_box, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 118/219: Task #0001297: Perfectionnement menu COMPTA/ADV/OPEN Improve operation message, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 74/219: Security : SQL use directly $_SESSION, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 103/219: Réécriture de CFGPCMN pour utiliser ManageTable Ajout bouton ajout dans menu, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 120/219: Task #0001328: Problème affichage totaux achat, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 119/219: Task #0001297: Perfectionnement menu COMPTA/ADV/OPEN Improve operation message, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 80/219: Bug : export_document the parameters id, ag_id and value are optionnal, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 45/219: Improve SQL class generation, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 101/219: Réécriture de CFGPCMN pour utiliser ManageTable, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 17/219: Add test for Manage_Table_SQL,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 127/219: Task #0001484: CA : opération diverses , possibilité d'ajouter une fiche Add card to misc operation ANC, - implemented also in Printing : balance , History , General Ledger..., Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 144/219: ANC : Bouton "recherche" sont des loupes, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 25/219: Ajout des ASBL, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 53/219: typo, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 28/219: Task #0001447: Solde des opérations rapprochées Take in account the VAT autopurged, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 15/219: Infobulle : info : esthetic, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 38/219: task #0001411: Faire des boutons du menu des... boutons, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 95/219: Recording operation : when adding a row , the css class was not copied, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 02/219: Improve redirect, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 87/219: Esthetic : no span surrounding the value, must be done in the caller, Dany De Bontridder, 2017/12/18