noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 15/16: Merge issue : inappropriate rollback


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 15/16: Merge issue : inappropriate rollback
Date: Sun, 3 Feb 2019 14:38:42 -0500 (EST)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 09227d2cc9d61ba4810bd0496c3e76af1494308e
Author: Dany De Bontridder <address@hidden>
Date:   Sun Feb 3 16:15:06 2019 +0100

    Merge issue : inappropriate rollback
---
 html/style-classic7.css       |  2 +-
 include/class/fiche.class.php | 18 ++++++++++--------
 2 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/html/style-classic7.css b/html/style-classic7.css
index bfd17be..858fb2e 100644
--- a/html/style-classic7.css
+++ b/html/style-classic7.css
@@ -1410,7 +1410,7 @@ div#preference_div {
 div#box_search_card {
     position:absolute;
     right:15.625%;
-    top:115px;
+    top:145px;
 }
 @media only screen and (max-width:994px)
 {
diff --git a/include/class/fiche.class.php b/include/class/fiche.class.php
index 21fead6..96b8bce 100644
--- a/include/class/fiche.class.php
+++ b/include/class/fiche.class.php
@@ -57,6 +57,7 @@ class Fiche
         $this->cn=$p_cn;
         $this->id=$p_id;
         $this->quick_code='';
+        $this->attribut=array();
     }
     /**
      address@hidden used with a usort function, to sort an array of Fiche on 
the name
@@ -499,7 +500,7 @@ class Fiche
                             $w->set_attribute('ipopup', 'ipop_account');
                             $w->set_attribute('account', "av_text" . 
$attr->ad_id);
                             $w->table = 1;
-                            $bulle = HtmlInput::infobulle(14);
+                            $bulle = Icon_Action::infobulle(14);
                             break;
                     case 'select':
                             $w = new ISelect("av_text" . $attr->ad_id);
@@ -528,7 +529,7 @@ class Fiche
             $w->name = "av_text" . $attr->ad_id;
             if ($attr->ad_id == 21 || 
$attr->ad_id==22||$attr->ad_id==20||$attr->ad_id==31)
             {
-                    $bulle=HtmlInput::infobulle(21);
+                    $bulle=Icon_Action::infobulle(21);
             }
             if ($attr->ad_id == ATTR_DEF_NAME || $attr->ad_id== 
ATTR_DEF_QUICKCODE) 
                 $class=" input_text highlight info";
@@ -597,7 +598,7 @@ class Fiche
                     $sql="select account_auto($this->fiche_def)";
                     $ret_sql=$this->cn->exec_sql($sql);
                     $a=Database::fetch_array($ret_sql, 0);
-                    $bulle=HtmlInput::infobulle(10);
+                    $bulle=Icon_Action::infobulle(10);
 
                     if ($a['account_auto']=='t')
                         $bulle.=HtmlInput::warnbulle(11);
@@ -639,7 +640,7 @@ class Fiche
                             $w->dbl_click_history();
                             $w->width=$r->ad_size;
                             $w->table=0;
-                            $bulle=HtmlInput::infobulle(14);
+                            $bulle=Icon_Action::infobulle(14);
                             $w->value=$r->av_text;
                             break;
                         case 'card':
@@ -711,7 +712,7 @@ class Fiche
 
             if ($r->ad_id==21||$r->ad_id==22||$r->ad_id==20||$r->ad_id==31)
             {
-                $bulle=HtmlInput::infobulle(21);
+                $bulle=Icon_Action::infobulle(21);
             }
             if ($r->ad_id == ATTR_DEF_NAME || $r->ad_id== 
ATTR_DEF_QUICKCODE||$r->ad_id==ATTR_DEF_ACCOUNT) 
                 $class=" input_text highlight info";
@@ -804,7 +805,7 @@ class Fiche
                 // account
                 if ($id==ATTR_DEF_ACCOUNT)
                 {
-                    $v=mb_substr(sql_string($value), 0, 40);
+                    $v=mb_strtoupper(mb_substr(sql_string($value), 0, 40));
                     try
                     {
                         // Check that the accounting can be used directly
@@ -953,7 +954,8 @@ class Fiche
                 // account
                 if ($id==ATTR_DEF_ACCOUNT)
                 {
-                    $v=sql_string($value);
+                    $v=mb_strtoupper(sql_string($value));                    
+                    
                     if (trim($v)!='')
                     {
                         if (strpos($v, ',')!=0)
@@ -1705,7 +1707,7 @@ class Fiche
         
         $r.='<table  id="tiers_tb" class="sortable"  
style="width:90%;margin-left:5%">
             <TR >
-            <TH>'._('Quick Code').HtmlInput::infobulle(17).'</TH>'.
+            <TH>'._('Quick Code').Icon_Action::infobulle(17).'</TH>'.
             '<th>'._('Poste comptable').'</th>'.
             '<th  class="sorttable_sorted">'._('Nom').'<span 
id="sorttable_sortfwdind"><img src="image/up.gif"></span>'.'</th>
             <th>'._('Adresse').'</th>



reply via email to

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