/[phpcompta]/phpcompta/include/fiche_inc.php
ViewVC logotype

Diff of /phpcompta/include/fiche_inc.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.20 by sparkyx, Mon Jul 4 20:14:28 2005 UTC revision 1.21 by sparkyx, Mon Jul 25 10:08:42 2005 UTC
# Line 519  function ViewFicheDetail($p_cn,$p_id) { Line 519  function ViewFicheDetail($p_cn,$p_id) {
519   */   */
520    
521  function UpdateFiche($p_cn,$p_array) {  function UpdateFiche($p_cn,$p_array) {
522    echo_debug ("UpdateFiche");    echo_debug (__FILE__,__LINE__,"UpdateFiche");
523    $tva_error=false;    $tva_error=false;
524    foreach ( $p_array as $key=> $element) {    foreach ( $p_array as $key=> $element) {
525      echo_debug(__FILE__,__LINE__,"$key => $element");      echo_debug(__FILE__,__LINE__,"UF  $key => $element");
526      ${"$key"}=$element;      ${"$key"}=$element;
527      // Get the name      // Get the name
528      if ( $key == "ad_id".ATTR_DEF_NAME ) {      if ( $key == "ad_id".ATTR_DEF_NAME ) {
529        $label=$element;        $label=$element;
530        if (strlen(trim($label)== 0 ) )        if (strlen(trim($label))== 0  )
531          return;          return;
532      }      }
533      // Get the class base      // Get the class base

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26