62 |
${"p_$key"}=$element; |
${"p_$key"}=$element; |
63 |
echo_debug(__FILE__,__LINE__,"p_$key=$element;"); |
echo_debug(__FILE__,__LINE__,"p_$key=$element;"); |
64 |
} |
} |
65 |
|
// First verify that the name is not null |
66 |
|
// av_text.ATTR_DEF_NAME |
67 |
|
if ( strlen(trim($p_av_text1 )) ==0 ) |
68 |
|
return; |
69 |
|
|
70 |
// First Get the attr of the fiche |
// First Get the attr of the fiche |
71 |
$field=Get_attr_def($p_cn,$p_fd_id); |
$field=Get_attr_def($p_cn,$p_fd_id); |
72 |
|
|
82 |
// Should we Create accounts for each cards |
// Should we Create accounts for each cards |
83 |
$create=GetCreateAccount($p_cn,$p_fd_id); |
$create=GetCreateAccount($p_cn,$p_fd_id); |
84 |
|
|
85 |
|
|
86 |
// Is a account given ? |
// Is a account given ? |
87 |
for ( $i = 0; $i < $p_inc;$i++) { |
for ( $i = 0; $i < $p_inc;$i++) { |
88 |
//Except for the class base |
//Except for the class base |
280 |
} |
} |
281 |
// content of the attribute |
// content of the attribute |
282 |
printf ('<TR><TD> %s </TD><TD><INPUT TYPE="TEXT" NAME="av_text%d">%s %s</TD></TR>', |
printf ('<TR><TD> %s </TD><TD><INPUT TYPE="TEXT" NAME="av_text%d">%s %s</TD></TR>', |
283 |
$l_line['ad_text'], $i,$Hid,$but_search_poste); |
$l_line['ad_text'], $l_line['ad_id'],$Hid,$but_search_poste); |
284 |
} |
} |
285 |
echo '</TR>'; |
echo '</TR>'; |
286 |
echo '</TABLE>'; |
echo '</TABLE>'; |
523 |
// Get the name |
// Get the name |
524 |
if ( $key == "ad_id".ATTR_DEF_NAME ) { |
if ( $key == "ad_id".ATTR_DEF_NAME ) { |
525 |
$label=$element; |
$label=$element; |
526 |
|
if (strlen(trim($label)== 0 ) ) |
527 |
|
return; |
528 |
} |
} |
529 |
// Get the class base |
// Get the class base |
530 |
if ( $key=="ad_id".ATTR_DEF_ACCOUNT) { |
if ( $key=="ad_id".ATTR_DEF_ACCOUNT) { |
750 |
if ( isNumber($p_class_base) == 0 && FormatString($p_class_base) != null ) { |
if ( isNumber($p_class_base) == 0 && FormatString($p_class_base) != null ) { |
751 |
echo_error ('p_class_base is NOT a number'); |
echo_error ('p_class_base is NOT a number'); |
752 |
} |
} |
753 |
|
if ( strlen(trim($p_nom_mod)) == 0 ) |
754 |
|
return; |
755 |
|
|
756 |
// $p_FICHE_REF cannot be null !!! (== fiche_def_ref.frd_id |
// $p_FICHE_REF cannot be null !!! (== fiche_def_ref.frd_id |
757 |
if (! isset ($p_FICHE_REF) or strlen($p_FICHE_REF) == 0 ) { |
if (! isset ($p_FICHE_REF) or strlen($p_FICHE_REF) == 0 ) { |