noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 06/08: Task #1050 - Amélioration PCMN Improv


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 06/08: Task #1050 - Amélioration PCMN Improve appearance + security
Date: Tue, 18 Nov 2014 18:37:34 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit f508675fd1f912a98601eb6307dcac9c597909a4
Author: Dany De Bontridder <address@hidden>
Date:   Tue Nov 18 19:35:24 2014 +0100

    Task #1050 - Amélioration PCMN
    Improve appearance + security
---
 include/ajax_account_update.php |    3 +++
 include/param_pcmn.inc.php      |   27 +++++++--------------------
 2 files changed, 10 insertions(+), 20 deletions(-)

diff --git a/include/ajax_account_update.php b/include/ajax_account_update.php
index d5b500c..e0d0ba4 100644
--- a/include/ajax_account_update.php
+++ b/include/ajax_account_update.php
@@ -38,6 +38,9 @@ if (!defined('ALLOWED'))    die('Appel direct ne sont pas 
permis');
   'p_typeu' => string '0' (length=1)
  * @endcode
  */
+if ($g_user->check_module('CFGPCMN') == 0)
+                       exit();
+
 $var=array('action', 'p_oldu', 'p_valu', 'p_libu', 'p_parentu', 'acc_delete', 
'p_typeu');
 for ($i=0; $i<count($var); $i++)
 {
diff --git a/include/param_pcmn.inc.php b/include/param_pcmn.inc.php
index 5645439..453fc9f 100644
--- a/include/param_pcmn.inc.php
+++ b/include/param_pcmn.inc.php
@@ -79,11 +79,11 @@ echo '<div class="u_subtmenu">';
 echo '</div>';
 
 
-echo '<div class="lmenu">';
-menu_acc_plan($_SESSION['g_start']);
+echo '<div class="content">';
+menu_acc_plan($g_start);
 echo '</div>';
 if ($g_start == -1) return;
-echo '<DIV CLASS="redcontent">';
+echo '<DIV CLASS="myfieldset" style="width:auto">';
 
 $Ret=$cn->exec_sql("select 
pcm_val,pcm_lib,pcm_val_parent,pcm_type,array_to_string(array_agg(j_qcode) , 
',') as acode
        from tmp_pcmn left join vw_poste_qcode on (j_poste=pcm_val) where 
substr(pcm_val::text,1,1)='".$g_start."'".
@@ -91,7 +91,7 @@ $Ret=$cn->exec_sql("select 
pcm_val,pcm_lib,pcm_val_parent,pcm_type,array_to_stri
 $MaxRow=Database::num_row($Ret);
 
 ?>
-<span style="display:block">
+<span style="display:inline;margin: 15px 15px 15px 15px">
 <input type="button" class="smallbutton" 
onclick="PcmnUpdate('','','','',0,0,'new')" value="<?php echo _('Ajout poste 
comptable'); ?>">
 </span>
 <?php echo _('Filtre')." ".HtmlInput::filter_table("account_tbl_id", 
"0,1,2,3,4", 1);?>
@@ -110,15 +110,7 @@ $limite=MAX_QCODE;
                              <TH> Type </TH>
                              <TH> Fiche</TH>
                              </TR>
-<?php
-//$line=new Acc_Account($cn);
-//echo $line->form(false);
-?>
-<!--                                                    <td></td>
-<TD>
-<INPUT TYPE="SUBMIT" class="button" Value="Ajout" Name="Ajout">
-                                       </TD>
-                                       </TR>-->
+
                                        <?php
                                        $str_dossier=dossier::get();
 for ($i=0; $i <$MaxRow; $i++)
@@ -159,10 +151,10 @@ for ($i=0; $i <$MaxRow; $i++)
        if ( strlen($A['acode']) >0 ) {
                if (strpos($A['acode'], ",") >0 ) {
                        $det_qcode=  explode(",", $A['acode']);
-                       echo '<ul 
style="paddding:0;margin:0px;padding-left:0px;list-style-type:none;padding-start-value:0px">';
+                       echo '<ul 
style="display:inline;paddding:0;margin:0px;padding-left:0px;list-style-type:none;padding-start-value:0px">';
                        
$max=(count($det_qcode)>MAX_QCODE)?MAX_QCODE:count($det_qcode);
                        for ($e=0;$e<$max;$e++) {
-                               echo '<li 
style="padding-start-value:0">'.HtmlInput::card_detail($det_qcode[$e]).'</li>';
+                               echo '<li 
style="padding-start-value:0;display:inline">'.HtmlInput::card_detail($det_qcode[$e],'','
 style="display:inline"').'</li>';
                        }
                        echo '</ol>';
                        if ($max < count($det_qcode)) {
@@ -174,11 +166,6 @@ for ($i=0; $i <$MaxRow; $i++)
        }
        echo '</td>';
 
-    //echo $td;
-    //printf ('<A class="input_text" 
href="?ac='.$_REQUEST['ac'].'&l=%s&action=del&%s">Efface</A>',$A['pcm_val'],$str_dossier);
-    //echo "</TD>";
-
-
     echo "</TR>";
 }
 echo "</TABLE>";



reply via email to

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