Go to the source code of this file.
Functions | |
new_fiche ($p_cn, $p_type) | |
Variables | |
$rep = DbConnect() | |
$User = new cl_user($rep) | |
return | |
$Res = ExecSql($cn,$sql) | |
$Max = pg_NumRows($Res) | |
$n = pg_NumRows($Res) | |
$e [$i] = $f['fd_id'] | |
$list ['fiche'] = join(',',$e) |
Definition in file fiche_new.php.
|
Definition at line 60 of file fiche_new.php. References $l_line, $Max, $r, $Res, $sql, echo_debug(), ExecSql(), name, and value. 00060 { 00061 $ch_col="</TD><TD>"; 00062 $ch_li='</TR><TR>'; 00063 $r='<FORM action="fiche_new.php" method="post">'; 00064 $r.='<INPUT TYPE="HIDDEN" name="fiche" value="'.$p_type.'">'; 00065 $l_sessid=(isset ($_POST["PHPSESSID"]))?$_POST["PHPSESSID"]:$_GET["PHPSESSID"]; 00066 00067 $r.=JS_SHOW_TVA; 00068 $r.=JS_SEARCH_POSTE; 00069 $r.="<TABLE>"; 00070 echo '<H2 class="info">New </H2>'; 00071 $p_f_id=""; 00072 echo_debug('fiche_new.php',__LINE__,"Array is null"); 00073 // Find all the attribute of the existing cards 00074 // --> Get_attr_def 00075 $sql="select frd_id,ad_id,ad_text from fiche_def join jnt_fic_attr using (fd_id) 00076 join attr_def using (ad_id) where fd_id=".$p_type." order by ad_id"; 00077 00078 $Res=ExecSql($p_cn,$sql); 00079 $Max=pg_NumRows($Res); 00080 // Put the card modele id (fiche_def.fd_id) 00081 $r.='<INPUT TYPE="HIDDEN" name="fd_id" value="'.$p_type.'">'; 00082 for ($i=0;$i < $Max;$i++) { 00083 $l_line=pg_fetch_array($Res,$i); 00084 00085 // The number of the attribute 00086 $Hid=sprintf('<INPUT TYPE="HIDDEN" name="ad_id%d" value="%s">', 00087 $i,$l_line['ad_id']); 00088 00089 $but_search_poste=""; 00090 // Javascript for searching the account 00091 if ( $l_line ['ad_id'] == ATTR_DEF_ACCOUNT ) { 00092 $but_search_poste='<INPUT TYPE="BUTTON" VALUE="Cherche" OnClick="SearchPoste(\''.$l_sessid.'\',\'av_text'.$i.'\')">'; 00093 } 00094 // Javascript for showing the tva 00095 if ( $l_line ['ad_id'] == ATTR_DEF_TVA ) { 00096 $but_search_poste='<INPUT TYPE="BUTTON" VALUE="Montre" OnClick="ShowTva(\''.$l_sessid.'\',\'av_text'.$i.'\')">'; 00097 } 00098 // content of the attribute 00099 $r.= sprintf('<TR><TD> %s </TD><TD><INPUT TYPE="TEXT" NAME="av_text%d">%s %s</TD></TR>', 00100 $l_line['ad_text'], $i,$Hid,$but_search_poste); 00101 } 00102 $r.="</TABLE>"; 00103 $r.='<INPUT TYPE="SUBMIT" name="add_fiche" value="Mis à jour">'; 00104 $r.= '<INPUT TYPE="HIDDEN" name="inc" value="'.$Max.'">'; 00105 $r.='</FORM>'; 00106 return $r; 00107 }
|
|
Definition at line 134 of file fiche_new.php. |
|
Definition at line 136 of file fiche_new.php. Referenced by FormAchInput(), FormVenInput(), GetFicheJrn(), IsFicheOfJrn(), and Cpdf::selectFont(). |
|
Definition at line 126 of file fiche_new.php. |
|
Definition at line 131 of file fiche_new.php. Referenced by AddForm(), Cezpdf::ezPrvtTableDrawLines(), and GetConcerned(). |
|
Definition at line 29 of file fiche_new.php. |
|
Definition at line 124 of file fiche_new.php. |
|
Definition at line 31 of file fiche_new.php. |
|
Definition at line 116 of file fiche_new.php. |