[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 174/323: Improve Documentation
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 174/323: Improve Documentation |
Date: |
Wed, 14 Mar 2018 17:38:45 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit a685ec54a692c8048f3582dde49c38b1071151d6
Author: Dany De Bontridder <address@hidden>
Date: Sat Feb 10 10:12:27 2018 +0100
Improve Documentation
---
include/lib/manage_table_sql.class.php | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
diff --git a/include/lib/manage_table_sql.class.php
b/include/lib/manage_table_sql.class.php
index 9ff6e57..c5c965a 100644
--- a/include/lib/manage_table_sql.class.php
+++ b/include/lib/manage_table_sql.class.php
@@ -195,7 +195,13 @@ class Manage_Table_SQL
/**
* This function can be overrided to check the data before
- * inserting , updating or removing, above an example of an overidden check
+ * inserting , updating or removing, above an example of an overidden
check.
+ *
+ * Usually , you get the row of the table (get_table) , you check the
conditions
+ * if an condition is not met then you set the error with $this->set_error
+ *
+ * if there are error returns false otherwise true
+ *
* @see set_error get_error
* @return boolean
* @code
@@ -752,7 +758,14 @@ function check()
}
else
{
- echo td($p_row[$v]);
+ if ( $this->get_col_type($v)=="select")
+ {
+ $idx=$p_row[$v];
+ echo td($this->a_select[$v][$idx]["label"]);
+
+ }else {
+ echo td($p_row[$v]);
+ }
}
}
if ($this->icon_mod=="right")
- [Noalyss-commit] [noalyss] 155/323: Improve : last exercice in first place, (continued)
- [Noalyss-commit] [noalyss] 155/323: Improve : last exercice in first place, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 157/323: typo, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 146/323: Ergonomy : ask exercice and periode separately in preference, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 160/323: bug: error js missing quote in ajax_input, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 145/323: merge rel6919.9, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 159/323: bug: error js in Icon_Action::close, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 171/323: History based on the date of the operation which it comes from, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 162/323: esthetic : improve title2, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 158/323: bug: cannot create user, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 167/323: Suppress obsolete files, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 174/323: Improve Documentation,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 172/323: History accounting / card : first column is date, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 176/323: Manage_Table_SQL : Add tips for some col, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 164/323: Periode : change with exercice, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 166/323: PRINTBAL : add opening , correct, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 177/323: PRINTBAL : correct bug , exercice not get, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 173/323: Esthetic : put the anchor at a better place, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 154/323: FIX : PRINTJRN, ledger PDF and CSV, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 168/323: suppress useless file, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 169/323: Install : accept postgresql 10, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 165/323: PRINTBAL translate, Dany De Bontridder, 2018/03/14