début ajout gestion des particuliers
This commit is contained in:
parent
3da4e656a6
commit
3a26aee445
@ -1272,6 +1272,7 @@ class Form
|
|||||||
$result=$this->db->query($sql);
|
$result=$this->db->query($sql);
|
||||||
if ($result)
|
if ($result)
|
||||||
{
|
{
|
||||||
|
print '<div id="particulier2" class="visible">';
|
||||||
print '<select class="flat" name="forme_juridique_code">';
|
print '<select class="flat" name="forme_juridique_code">';
|
||||||
if ($pays_code) print '<option value="0"> </option>';
|
if ($pays_code) print '<option value="0"> </option>';
|
||||||
$num = $this->db->num_rows($result);
|
$num = $this->db->num_rows($result);
|
||||||
@ -1310,6 +1311,7 @@ class Form
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
print '</select>';
|
print '</select>';
|
||||||
|
print '</div>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -2165,9 +2167,16 @@ class Form
|
|||||||
\param key_in_label 1 pour afficher la key dans la valeur "[key] value"
|
\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é
|
\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='')
|
||||||
{
|
{
|
||||||
print '<select class="flat" name="'.$htmlname.'">';
|
if ($use_java == 1 && $fonction != '')
|
||||||
|
{
|
||||||
|
print '<select class="flat" name="'.$htmlname.'" '.$fonction.'>';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print '<select class="flat" name="'.$htmlname.'">';
|
||||||
|
}
|
||||||
|
|
||||||
if ($show_empty)
|
if ($show_empty)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -265,6 +265,51 @@ function displaySelectBoxes() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// 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)
|
* Cool DHTML tooltip script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
|
||||||
|
|||||||
@ -950,3 +950,23 @@ cursor: pointer;
|
|||||||
background: white;
|
background: white;
|
||||||
color: black;
|
color: black;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ============================================================================== */
|
||||||
|
/* Afficher/cacher */
|
||||||
|
/* ============================================================================== */
|
||||||
|
|
||||||
|
div.visible {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.hidden {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
tr.visible {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
td.hidden {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user