[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 08/20: Improve documentation
From: |
dwm |
Subject: |
[Noalyss-commit] [noalyss] 08/20: Improve documentation |
Date: |
Sun, 10 Dec 2023 03:22:23 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 4f1d7e155a56280d098b863e5267823ac5d465e0
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sat Dec 2 18:20:27 2023 +0100
Improve documentation
---
include/lib/manage_table_sql.class.php | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/include/lib/manage_table_sql.class.php
b/include/lib/manage_table_sql.class.php
index ae181b58c..98951e7e8 100644
--- a/include/lib/manage_table_sql.class.php
+++ b/include/lib/manage_table_sql.class.php
@@ -75,6 +75,26 @@
* @endcode
*
+ * The afterSaveFct is the function called after saving, the param is the HTML
Element
+ @code PHP
+// to redirect : we take the pk_id and redirect to another location
+
+ $obj=$this->get_object_name();
+ $url=DRIVINGSCHOOL_URL;
+ $script=<<<EOF
+(function(){
+{$obj}.afterSaveFct=function(p_param) {
+ let student=p_param.attributes["ctl_pk_id"].value;
+
window.location="{$url}/do.php?do=student&student_id="+student+"&act=detail";
+ }})();
+EOF;
+
+echo create_script($script);
+ {$obj}.afterSaveFct=function(p_param) {
+ let student=p_param.attributes["ctl_pk_id"].value;
+
window.location="{$url}/do.php?do=student&student_id="+student+"&act=detail";
+ }})();
+@endcode
*/
class Manage_Table_SQL
- [Noalyss-commit] [noalyss] branch master updated (4bf2ca815 -> 98390d4d4), dwm, 2023/12/10
- [Noalyss-commit] [noalyss] 11/20: remove raise, dwm, 2023/12/10
- [Noalyss-commit] [noalyss] 05/20: Task #2309 mot de passe fort, dwm, 2023/12/10
- [Noalyss-commit] [noalyss] 13/20: FIX : when taken from git NOALYSS_VERSION is undefined, dwm, 2023/12/10
- [Noalyss-commit] [noalyss] 02/20: Improve Manage_Table : search button if modify or delete is on the left, dwm, 2023/12/10
- [Noalyss-commit] [noalyss] 18/20: DatabaseCore : clear prepare stmt, dwm, 2023/12/10
- [Noalyss-commit] [noalyss] 19/20: Test disable xdebug, dwm, 2023/12/10
- [Noalyss-commit] [noalyss] 16/20: PRINTGL Main Ledger (GL) improve performance and code prepare the SQL , better filter for accounting, dwm, 2023/12/10
- [Noalyss-commit] [noalyss] 08/20: Improve documentation,
dwm <=
- [Noalyss-commit] [noalyss] 01/20: PHP Compatibility 8.1, dwm, 2023/12/10
- [Noalyss-commit] [noalyss] 17/20: PRINTGL Main Ledger (GL), dwm, 2023/12/10
- [Noalyss-commit] [noalyss] 20/20: Fix merge issue, dwm, 2023/12/10
- [Noalyss-commit] [noalyss] 06/20: ergo, dwm, 2023/12/10
- [Noalyss-commit] [noalyss] 15/20: Improve DatabaseCore : fetch_all, dwm, 2023/12/10
- [Noalyss-commit] [noalyss] 10/20: Merge master, dwm, 2023/12/10
- [Noalyss-commit] [noalyss] 07/20: Update link to https://www.noalyss.eu instead of http, dwm, 2023/12/10
- [Noalyss-commit] [noalyss] 03/20: Documentation, dwm, 2023/12/10
- [Noalyss-commit] [noalyss] 09/20: Protect Qcode in fiche_detail, dwm, 2023/12/10
- [Noalyss-commit] [noalyss] 04/20: PHP8.2 deprecated, dwm, 2023/12/10