Re-ordered tab indexes in form

This commit is contained in:
Stan Pinte 2006-01-21 20:47:56 +00:00
parent 5cfe0017fe
commit 67b6733c49

View file

@ -73,6 +73,7 @@ function FormVenInput($p_cn,$p_jrn,$p_periode,$p_array=null,$pview_only=true,$p_
$Date=new widget("text");
$Date->SetReadOnly($pview_only);
$Date->table=1;
$Date->tabindex=1;
$r.="<tr>";
$r.=$Date->IOValue("e_date",$op_date,"Date");
$r.="</tr>";
@ -81,6 +82,7 @@ function FormVenInput($p_cn,$p_jrn,$p_periode,$p_array=null,$pview_only=true,$p_
$Echeance=new widget("text");
$Echeance->SetReadOnly($pview_only);
$Echeance->table=1;
$Echeance->tabindex=2;
$r.="<tr>";
$r.=$Echeance->IOValue("e_ech",$e_ech,"Echeance");
$r.="</tr>";
@ -90,6 +92,7 @@ function FormVenInput($p_cn,$p_jrn,$p_periode,$p_array=null,$pview_only=true,$p_
$Commentaire->table=1;
$Commentaire->SetReadOnly($pview_only);
$Commentaire->size=80;
$Commentaire->tabindex=3;
$r.="<tr>";
$r.=$Commentaire->IOValue("e_comm",$e_comm,"Description");
$r.="</tr>";
@ -121,6 +124,7 @@ function FormVenInput($p_cn,$p_jrn,$p_periode,$p_array=null,$pview_only=true,$p_
$W1=new widget("js_search");
$W1->label="Client";
$W1->name="e_client";
$W1->tabindex=3;
$W1->value=$e_client;
$W1->extra=$fiche; // list of card
$W1->extra2=$p_jrn;
@ -225,8 +229,8 @@ function FormVenInput($p_cn,$p_jrn,$p_periode,$p_array=null,$pview_only=true,$p_
$r.="<hr>";
if ($pview_only == false ) {
$r.='<INPUT TYPE="SUBMIT" NAME="add_item" VALUE="Ajout article">';
$r.='<INPUT TYPE="SUBMIT" NAME="view_invoice" VALUE="Enregistrer">';
$r.='<INPUT TYPE="SUBMIT" NAME="add_item" VALUE="Ajout article" TABINDEX="32767">';
$r.='<INPUT TYPE="SUBMIT" NAME="view_invoice" VALUE="Enregistrer" TABINDEX="32767">';
$r.="</DIV>";
$r.="</FORM>";
$r.=JS_CALC_LINE;