Pages vues depuis 25/05/2001 : 110 649 613
Index du forum »» Le coin des codeurs »» ça marchait et maintenant ça ne marche plus
$r=mysql_list_fields ("pinpin", "manoeuvre_agent");
$n=mysql_num_fields($r) ;
opentable();
for ($i=1; $i<$n; $i++) {
$uv1=mysql_field_name($r, $i);
$uv2=mysql_field_name($r, $i);
//$uvnom = mysql_query ("select $uv2 from manoeuvre_agent where $uv1 like '$uvselect' ");
print $uvselect;
//print $uvnom;
$result = mysql_query("select name,$uv1,type from manoeuvre_agent where name='$agent1' and $uv1 not like '$annee%' and type='$uvselect' or name='$agent2' and $uv1 not like '$annee%' and type='$uvselect' or name='$agent3' and $uv1 not like '$annee%' and type='$uvselect' or name='$agent4' and $uv1 not like '$annee%' and type='$uvselect' or name='$agent5' and $uv1 not like '$annee%' and type='$uvselect' or name='$agent6' and $uv1 not like '$annee%' and type='$uvselect' order by '$name'");
//echo $uvnom;
echo "<table width=\"95%\" cellpadding=\"5\" border=\"1\" align=\"center\"";
while (list($name, $uv1) = mysql_fetch_row($result)) {
echo "<tr>\n" .
" <td width=\"20%\" align=\"center\"><a href=\"!javascript!:void(0);\" !onclick!=\"window.open('modules/statistiques/listing.php', 'width=800, height=600, status=yes, toolbar=no, scrollbars=yes')\"><font color='red'><strong>$uv2</strong></font></td>\n" .
" <td width=\"60%\" align=\"center\">$name</td>\n" .
" <td width=\"20%\" align=\"center\" border=\"0\">$uv1</td>\n" .
" </tr>\n"; }
echo "</table><br>";
--
-- Structure de la table `manoeuvre_agent`
--
CREATE TABLE IF NOT EXISTS `manoeuvre_agent` (
`name` varchar(6) collate utf8_unicode_ci NOT NULL default '',
`INC02` date default NULL,
`INC01` date default NULL,
`SAP01` date default NULL,
`DIV01` date default NULL,
`DIV02` date default NULL,
`SAP02` date default NULL,
PRIMARY KEY (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Contenu de la table `manoeuvre_agent`
--
INSERT INTO `manoeuvre_agent` (`name`, `INC02`, `INC01`, `SAP01`, `DIV01`, `DIV02`, `SAP02`) VALUES
('9553', '2008-01-22', '2009-02-12', '2008-02-12', '2009-02-12', '2009-02-12', NULL),
('1426', '2009-01-22', '2008-02-12', '2009-02-12', '2009-02-12', '2008-02-12', NULL),
('2318', '0000-00-00', '2009-02-12', '2009-02-12', '2009-02-12', '2009-02-12', NULL),
('0952', '2008-01-01', '2009-02-12', '2009-02-12', '2009-02-12', '2008-02-12', NULL);
Message édité par : reef-passion / 03-03-2009 11:14