/[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.16 by stanpinte, Sun Mar 6 14:05:04 2005 UTC revision 1.17 by sparkyx, Wed May 4 22:09:59 2005 UTC
# Line 62  function AddFiche($p_cn,$p_type,$p_array Line 62  function AddFiche($p_cn,$p_type,$p_array
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    
# Line 77  function AddFiche($p_cn,$p_type,$p_array Line 82  function AddFiche($p_cn,$p_type,$p_array
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
# Line 274  function EncodeFiche($p_cn,$p_type,$p_ar Line 280  function EncodeFiche($p_cn,$p_type,$p_ar
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>';
# Line 517  function UpdateFiche($p_cn,$p_array) { Line 523  function UpdateFiche($p_cn,$p_array) {
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) {
# Line 742  function AddModele($p_cn,$p_array) { Line 750  function AddModele($p_cn,$p_array) {
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 ) {

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

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