noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 103/219: Réécriture de CFGPCMN pour util


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 103/219: Réécriture de CFGPCMN pour utiliser ManageTable Ajout bouton ajout dans menu
Date: Mon, 18 Dec 2017 13:22:45 -0500 (EST)

sparkyx pushed a commit to branch master
in repository noalyss.

commit dc51c2806e42e6c4b333384b295a633aa051441e
Author: Dany De Bontridder <address@hidden>
Date:   Tue Oct 24 00:27:41 2017 +0200

        Réécriture de CFGPCMN pour utiliser ManageTable
    Ajout bouton ajout dans menu
---
 include/class/acc_plan_mtable.class.php | 1 +
 include/param_pcmn.inc.php              | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/include/class/acc_plan_mtable.class.php 
b/include/class/acc_plan_mtable.class.php
index 84a15bc..8902fd3 100644
--- a/include/class/acc_plan_mtable.class.php
+++ b/include/class/acc_plan_mtable.class.php
@@ -56,6 +56,7 @@ class Acc_Plan_MTable extends Manage_Table_SQL
             ["label"=>_("Contexte"),"value"=>"CON"]
         ]);
         
$this->a_order=["pcm_val","pcm_lib","parent_accounting","pcm_type","fiche_qcode"];
+        $this->set_icon_mod("first");
     }
     /**
      * Display a row
diff --git a/include/param_pcmn.inc.php b/include/param_pcmn.inc.php
index 1c233e9..9a056e9 100644
--- a/include/param_pcmn.inc.php
+++ b/include/param_pcmn.inc.php
@@ -74,6 +74,7 @@ echo $mtable->display_table(" where pcm_val::text like 
'{$g_start}%' order by pc
 /* it will override the classic onscroll (see scripts.js)
  * @see scripts.js
 */
+
     ?>
     <div id="go_up" class="inner_box" 
style="padding:0px;left:auto;width:250px;height: 
100px;display:none;position:fixed;top:5px;right:20px">
         <?php echo HtmlInput::title_box(_('Navigation'), 'go_up', "none");?>
@@ -94,6 +95,9 @@ echo $mtable->display_table(" where pcm_val::text like 
'{$g_start}%' order by pc
             $('go_up').hide();
         }
      }
+     $('pcmn_update_add_bt3').onclick=function() {
+         <?php 
printf("%s.input(-1,'%s')",$mtable->get_object_name(),$mtable->get_object_name());?>
+     }
 </script>
 <?php
 html_page_stop();



reply via email to

[Prev in Thread] Current Thread [Next in Thread]