dolibarr-cvs
[Top][All Lists]
Advanced

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

[Dolibarr-cvs] dolibarr/htdocs html.form.class.php lib/lib_hea...


From: Regis Houssin
Subject: [Dolibarr-cvs] dolibarr/htdocs html.form.class.php lib/lib_hea...
Date: Mon, 05 Jun 2006 18:26:46 +0000

CVSROOT:        /cvsroot/dolibarr
Module name:    dolibarr
Changes by:     Regis Houssin <hregis>  06/06/05 18:26:46

Modified files:
        htdocs         : html.form.class.php 
        htdocs/lib     : lib_head.js 
        htdocs/theme/eldy: eldy.css.php 

Log message:
        début ajout gestion des particuliers

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/dolibarr/htdocs/html.form.class.php?cvsroot=dolibarr&r1=1.247&r2=1.248
http://cvs.savannah.gnu.org/viewcvs/dolibarr/htdocs/lib/lib_head.js?cvsroot=dolibarr&r1=1.6&r2=1.7
http://cvs.savannah.gnu.org/viewcvs/dolibarr/htdocs/theme/eldy/eldy.css.php?cvsroot=dolibarr&r1=1.28&r2=1.29

Patches:
Index: html.form.class.php
===================================================================
RCS file: /cvsroot/dolibarr/dolibarr/htdocs/html.form.class.php,v
retrieving revision 1.247
retrieving revision 1.248
diff -u -b -r1.247 -r1.248
--- html.form.class.php 3 Jun 2006 22:01:38 -0000       1.247
+++ html.form.class.php 5 Jun 2006 18:26:46 -0000       1.248
@@ -21,14 +21,14 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  *
- * $Id: html.form.class.php,v 1.247 2006/06/03 22:01:38 eldy Exp $
+ * $Id: html.form.class.php,v 1.248 2006/06/05 18:26:46 hregis Exp $
  * $Source: /cvsroot/dolibarr/dolibarr/htdocs/html.form.class.php,v $
  */
 
 /**
         \file       htdocs/html.form.class.php
         \brief      Fichier de la classe des fonctions prédéfinie de 
composants html
-        \version    $Revision: 1.247 $
+        \version    $Revision: 1.248 $
 */
 
 
@@ -1272,6 +1272,7 @@
         $result=$this->db->query($sql);
         if ($result)
         {
+            print '<div id="particulier2" class="visible">';
             print '<select class="flat" name="forme_juridique_code">';
             if ($pays_code) print '<option value="0">&nbsp;</option>';
             $num = $this->db->num_rows($result);
@@ -1310,6 +1311,7 @@
                 }
             }
             print '</select>';
+            print '</div>';
         }
         else
         {
@@ -2165,9 +2167,16 @@
         \param key_in_label    1 pour afficher la key dans la valeur "[key] 
value"
         \param value_as_key    1 pour utiliser la valeur comme clé
     */
-    function select_array($htmlname, $array, $id='', $show_empty=0, 
$key_in_label=0, $value_as_key=0)
+    function select_array($htmlname, $array, $id='', $show_empty=0, 
$key_in_label=0, $value_as_key=0, $use_java=0, $fonction='')
+    {
+        if ($use_java == 1 && $fonction != '')
+        {
+               print '<select class="flat" name="'.$htmlname.'" 
'.$fonction.'>';
+        }
+        else
     {
         print '<select class="flat" name="'.$htmlname.'">';
+        }
     
         if ($show_empty)
         {

Index: lib/lib_head.js
===================================================================
RCS file: /cvsroot/dolibarr/dolibarr/htdocs/lib/lib_head.js,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- lib/lib_head.js     25 Mar 2006 15:02:35 -0000      1.6
+++ lib/lib_head.js     5 Jun 2006 18:26:46 -0000       1.7
@@ -4,7 +4,7 @@
 //
 // \file       htdocs/lib/lib_head.js
 // \brief      Fichier qui inclue les fonctions javascript d'en-tete (inclue 
si option use_javascript active)
-// \version    $Revision: 1.6 $
+// \version    $Revision: 1.7 $
 
 
 
@@ -265,6 +265,51 @@
 }
 
 
+// Afficher/cacher les champs d'un formulaire
+function formDisplayHideId(baliseId,numField) 
+  {
+  //if (document.getElementById && document.getElementById(baliseId) != null) 
+    //{
+       //var balise = document.getElementById(baliseId);
+
+       var numDiv = 1
+       
+      if (document.formsoc.typent_id.value == 8)
+         {
+
+               while ( document.getElementById( baliseId + numDiv) ) {
+               
+               var balise = document.getElementById( baliseId + numDiv);
+               
+               if (balise && balise.className == "hidden") 
+              balise.className = "visible";
+              
+          if (balise && balise.className == "visible") 
+              balise.className = "hidden";
+              numDiv++
+
+            }
+         }
+      else
+         {
+
+               while ( document.getElementById( baliseId + numDiv) ) {
+           
+           var balise = document.getElementById( baliseId + numDiv);
+
+                 if (balise && balise.className == "visible") 
+              balise.className = "hidden";
+              
+          if (balise && balise.className == "hidden") 
+              balise.className = "visible";
+              numDiv++
+
+            }
+         }
+     //}
+  }
+
+
 
 /***********************************************
 * Cool DHTML tooltip script- © Dynamic Drive DHTML code library 
(www.dynamicdrive.com)

Index: theme/eldy/eldy.css.php
===================================================================
RCS file: /cvsroot/dolibarr/dolibarr/htdocs/theme/eldy/eldy.css.php,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -b -r1.28 -r1.29
--- theme/eldy/eldy.css.php     25 May 2006 16:02:35 -0000      1.28
+++ theme/eldy/eldy.css.php     5 Jun 2006 18:26:46 -0000       1.29
@@ -15,7 +15,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  *
- * $Id: eldy.css.php,v 1.28 2006/05/25 16:02:35 eldy Exp $
+ * $Id: eldy.css.php,v 1.29 2006/06/05 18:26:46 hregis Exp $
  * $Source: /cvsroot/dolibarr/dolibarr/htdocs/theme/eldy/eldy.css.php,v $
  */
 
@@ -950,3 +950,23 @@
        background: white;
        color: black;
 }
+
+/* 
============================================================================== 
*/
+/*  Afficher/cacher                                                            
   */
+/* 
============================================================================== 
*/
+
+div.visible {
+    display: block;
+}
+
+div.hidden {
+    display: none;
+}
+
+tr.visible {
+    display: block;
+}
+
+td.hidden {
+    display: none;
+}
\ No newline at end of file




reply via email to

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