*
* $Id$
* $Source$
*
* This program 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.
*
* This program 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 this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
require("./pre.inc.php3");
require("../../lib/functions.inc.php3");
require("./project.class.php3");
require("../propal.class.php3");
llxHeader("","../");
print "
";
print "| Projets | ";
print "
";
$bc[0]="bgcolor=\"#90c090\"";
$bc[1]="bgcolor=\"#b0e0b0\"";
$db = new Db();
if ($sortfield == "") {
$sortfield="lower(p.label)";
}
if ($sortorder == "") {
$sortorder="ASC";
}
$yn["t"] = "oui";
$yn["f"] = "non";
if ($page == -1) { $page = 0 ; }
$limit = 26;
$offset = $limit * $page ;
$pageprev = $page - 1;
$pagenext = $page + 1;
if ($action == 'create') {
?>
fetch($db, $id);
print '';
print '| Société | |
';
print '| Ref | '.$projet->ref.' |
';
print '| Titre | '.$projet->title.' |
';
print '
';
$propales = $projet->get_propal_list($db);
if (sizeof($propales)>0 && is_array($propales)) {
print 'Listes des propales associées au projet';
print '
';
print "";
print "| Réf | ";
print 'Date | ';
print 'Prix | ';
print 'Statut | ';
print '
';
for ($i = 0; $ifetch($db, $propales[$i]);
$var=!$var;
print "";
print "| id\">$propale->ref | \n";
print ''.strftime("%d %B %Y",$propale->datep).' | ';
print ''.price($propale->price).' | ';
print 'statut | ';
print '
';
$total = $total + $propale->price;
}
print '| '.$i.' propales | ';
print 'Soit : '.francs($total).' FF HT | ';
print 'Total : '.price($total).' | ';
print 'Euros HT |
';
print "
";
} else {
print "pas de propales";
}
}
llxFooter("Dernière modification $Date$ révision $Revision$");
?>