svn+ssh://danydb@svn/svn/phpcompta/branches/rel420 ........ r2174 | danydb | 2008-09-16 21:34:23 +0200 (Tue, 16 Sep 2008) | 3 lines Removed merge tracking for "svnmerge" for svn+ssh://danydb@svn/svn/phpcompta/branches/rel410-exp ........ r2178 | danydb | 2008-09-16 21:43:31 +0200 (Tue, 16 Sep 2008) | 1 line Update version ........ r2191 | danydb | 2008-09-22 20:31:03 +0200 (Mon, 22 Sep 2008) | 1 line Add correct version ........ r2196 | danydb | 2008-10-03 21:46:50 +0200 (Fri, 03 Oct 2008) | 1 line update index version ........ r2234 | danydb | 2008-11-19 20:54:30 +0100 (Wed, 19 Nov 2008) | 1 line Add the payer, not yet finished ........ r2235 | danydb | 2008-11-21 22:34:32 +0100 (Fri, 21 Nov 2008) | 1 line Add the form for setting the medium of payment ........ r2236 | danydb | 2008-11-22 23:15:30 +0100 (Sat, 22 Nov 2008) | 1 line Improve add : payment (second operation) + generation of a note of fee ........ r2237 | danydb | 2008-11-23 01:20:40 +0100 (Sun, 23 Nov 2008) | 1 line Improve Payment method ........ r2238 | danydb | 2008-11-23 01:45:52 +0100 (Sun, 23 Nov 2008) | 1 line Get only the valid payment method ........ r2239 | danydb | 2008-11-24 23:03:34 +0100 (Mon, 24 Nov 2008) | 1 line cosmetic remove debug info ........ r2240 | danydb | 2008-11-24 23:04:07 +0100 (Mon, 24 Nov 2008) | 1 line Filter the search to the good frd_id ........ r2241 | danydb | 2008-11-26 18:11:30 +0100 (Wed, 26 Nov 2008) | 2 lines BUG if no class base is given the flag create account is false ........ r2242 | danydb | 2008-11-26 18:45:56 +0100 (Wed, 26 Nov 2008) | 1 line Create note of fee + database patch ........
78 lines
No EOL
2.6 KiB
PHP
78 lines
No EOL
2.6 KiB
PHP
<?php
|
|
/*
|
|
* This file is part of PhpCompta.
|
|
*
|
|
* PhpCompta is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* PhpCompta is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with PhpCompta; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
*/
|
|
/* $Revision$ */
|
|
// Copyright Author Dany De Bontridder ddebontridder@yahoo.fr
|
|
require_once("class_fiche_def.php");
|
|
/*! \file
|
|
* \brief Let customise the fiche_def_ref for the user
|
|
*/
|
|
echo '<div class="content">';
|
|
// record change
|
|
if ( isset ($_POST['confirm_mod'])) {
|
|
extract ($_POST);
|
|
$update=new fiche_def_ref($cn);
|
|
$update->frd_id=FormatString($frd_id);
|
|
$update->frd_text=FormatString($frd_text);
|
|
$update->frd_class_base=FormatString($frd_class_base);
|
|
$update->Save();
|
|
}
|
|
// Load All Fiche_def
|
|
$fiche_def=new fiche_def_ref($cn);
|
|
$all=$fiche_def->LoadAll();
|
|
// Display Them
|
|
echo '<table align="left">';
|
|
for ($i=0;$i<sizeof($all);$i++)
|
|
{
|
|
echo '<TR>';
|
|
echo $all[$i]->Display();
|
|
echo "<TD>";
|
|
echo '<form method="post">';
|
|
$w=new widget('hidden');
|
|
echo $w->IOValue('idx',$i);
|
|
echo widget::submit('mod','modifie');
|
|
echo $w->IOValue('fiche','p_action');
|
|
echo "</form>";
|
|
echo "</TD>";
|
|
echo '</TR>';
|
|
}
|
|
echo "</table>";
|
|
// modify input
|
|
if ( isset ($_POST['mod']) )
|
|
{
|
|
extract ($_POST);
|
|
echo '<div style="float:left;padding:2%">';
|
|
echo "Voulez-vous modifier ?<br><font color=\"red\"> Attention, ne changer pas la signification de ";
|
|
echo " ce poste, <i>par exemple ne pas changer Client par fournisseur</i>, <br>sinon le programme fonctionnera mal, utiliser uniquement des chiffres pour la classe de base ou rien</font>";
|
|
$idx=$_POST['idx'];
|
|
$mod=new fiche_def_ref($cn);
|
|
$mod->frd_id=$all[$idx]->frd_id;
|
|
$mod->frd_text=$all[$idx]->frd_text;
|
|
$mod->frd_class_base=$all[$idx]->frd_class_base;
|
|
echo '<form method="post">';
|
|
echo '<ul style="list-style-type:none"';
|
|
echo $mod->Input();
|
|
echo "</ul>";
|
|
$w=new widget("hidden");
|
|
echo $w->IOValue('p_action','fiche');
|
|
echo widget::submit('confirm_mod' ,'Confirme');
|
|
echo widget::submit('no','Cancel');
|
|
echo '</form>';
|
|
echo '</div>';
|
|
}
|
|
echo '</div>'; |