'; $gDossier=dossier::id(); //----------------------------------------------------- // confirm mod if ( isset( $_POST['confirm_mod'] ) ) { extract($_POST, EXTR_SKIP); $update=new Acc_Parm_Code($cn,$p_code); $update->p_comment=$p_comment; $update->p_value=$p_value; $update->save(); } $object=new Acc_Parm_Code($cn); $all=$object->load_all(); echo '
'; echo ''; for ($i=0;$i'; echo $all[$i]->display(); echo ''; echo ""; } echo "
'; $w=new IHidden(); $w->name='id'; $w->value=$i; echo $w->input(); echo HtmlInput::submit('mod','modifie'); echo '
'; echo '
"; echo "
"; //----------------------------------------------------- // modifie if ( isset ($_POST['mod'] )) { echo '
'; echo '
'; echo "Voulez-vous vraiment modifier ?"; echo '
'; echo ""; $id=$_POST['id']; echo $all[$id]->form(); echo "
"; $h=new IHidden(); $h->name='p_action'; $h->value='divers'; ; echo $h->input(); echo HtmlInput::hidden('sa','poste'); echo HtmlInput::submit('confirm_mod','Confirme'); echo HtmlInput::submit('no','Cancel'); echo "
"; echo '
'; echo "
"; } echo '';