Modification du look
This commit is contained in:
parent
2de5508a4e
commit
acf8570fd5
@ -78,7 +78,7 @@ print '<tr><td valign="top" width="30%">';
|
|||||||
|
|
||||||
if ($conf->propal->enabled) {
|
if ($conf->propal->enabled) {
|
||||||
print '<form method="post" action="propal.php">';
|
print '<form method="post" action="propal.php">';
|
||||||
print '<table border="0" cellspacing="0" cellpadding="3" width="100%">';
|
print '<table class="noborder" cellspacing="0" cellpadding="3" width="100%">';
|
||||||
print '<tr class="liste_titre"><td colspan="2">Rechercher une proposition</td></tr>';
|
print '<tr class="liste_titre"><td colspan="2">Rechercher une proposition</td></tr>';
|
||||||
print "<tr $bc[1]><td>";
|
print "<tr $bc[1]><td>";
|
||||||
print 'Num. : <input type="text" name="sf_ref"><input type="submit" value="Rechercher" class="flat"></td></tr>';
|
print 'Num. : <input type="text" name="sf_ref"><input type="submit" value="Rechercher" class="flat"></td></tr>';
|
||||||
@ -94,7 +94,7 @@ if ($conf->propal->enabled) {
|
|||||||
$i = 0;
|
$i = 0;
|
||||||
if ($num > 0 )
|
if ($num > 0 )
|
||||||
{
|
{
|
||||||
print '<table border="0" cellspacing="0" cellpadding="3" width="100%">';
|
print '<table class="noborder" cellspacing="0" cellpadding="3" width="100%">';
|
||||||
print "<TR class=\"liste_titre\">";
|
print "<TR class=\"liste_titre\">";
|
||||||
print "<td colspan=\"2\">Propositions commerciales brouillons</td></tr>";
|
print "<td colspan=\"2\">Propositions commerciales brouillons</td></tr>";
|
||||||
|
|
||||||
@ -126,17 +126,17 @@ if ( $db->query($sql) )
|
|||||||
if ($num)
|
if ($num)
|
||||||
{
|
{
|
||||||
$i = 0;
|
$i = 0;
|
||||||
print '<table border="0" cellspacing="0" cellpadding="3" width="100%">';
|
print '<table class="noborder" cellspacing="0" cellpadding="3" width="100%">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print '<td colspan="2">'.translate("Commandes à valider").'</td></tr>';
|
print '<td colspan="2">'.translate("Commandes à valider").'</td></tr>';
|
||||||
|
$var = True;
|
||||||
while ($i < $num)
|
while ($i < $num)
|
||||||
{
|
{
|
||||||
$var=!$var;
|
|
||||||
$obj = $db->fetch_object($i);
|
$obj = $db->fetch_object($i);
|
||||||
print "<tr $bc[$var]><td width=\"20%\"><a href=\"../commande/fiche.php?id=$obj->rowid\">$obj->ref</a></td>";
|
print "<tr $bc[$var]><td width=\"20%\"><a href=\"../commande/fiche.php?id=$obj->rowid\">$obj->ref</a></td>";
|
||||||
print '<td><a href="fiche.php?socid='.$obj->idp.'">'.$obj->nom.'</a></td></tr>';
|
print '<td><a href="fiche.php?socid='.$obj->idp.'">'.$obj->nom.'</a></td></tr>';
|
||||||
$i++;
|
$i++;
|
||||||
|
$var=!$var;
|
||||||
}
|
}
|
||||||
print "</table><br>";
|
print "</table><br>";
|
||||||
}
|
}
|
||||||
@ -157,7 +157,7 @@ if ( $db->query($sql) )
|
|||||||
$num = $db->num_rows();
|
$num = $db->num_rows();
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
|
||||||
print "<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">";
|
print '<table class="noborder" cellspacing="0" cellpadding="3" width="100%">';
|
||||||
print "<TR class=\"liste_titre\">";
|
print "<TR class=\"liste_titre\">";
|
||||||
print "<TD colspan=\"2\">Bookmark</td>";
|
print "<TD colspan=\"2\">Bookmark</td>";
|
||||||
print "</TR>\n";
|
print "</TR>\n";
|
||||||
@ -192,7 +192,7 @@ if ( $db->query($sql) )
|
|||||||
$num = $db->num_rows();
|
$num = $db->num_rows();
|
||||||
if ($num > 0)
|
if ($num > 0)
|
||||||
{
|
{
|
||||||
print '<TABLE border="0" cellspacing="0" cellpadding="3" width="100%">';
|
print '<table class="noborder" cellspacing="0" cellpadding="3" width="100%">';
|
||||||
print '<TR class="liste_titre">';
|
print '<TR class="liste_titre">';
|
||||||
print '<td colspan="4">Actions à faire</td>';
|
print '<td colspan="4">Actions à faire</td>';
|
||||||
print "</TR>\n";
|
print "</TR>\n";
|
||||||
@ -233,18 +233,18 @@ if ( $db->query($sql) )
|
|||||||
$i = 0;
|
$i = 0;
|
||||||
if ($num > 0 )
|
if ($num > 0 )
|
||||||
{
|
{
|
||||||
print '<table border="0" cellspacing="0" cellpadding="4" width="100%">';
|
print '<table class="noborder" cellspacing="0" cellpadding="4" width="100%">';
|
||||||
print '<tr class="liste_titre"><td colspan="4">Propositions commerciales ouvertes</td></tr>';
|
print '<tr class="liste_titre"><td colspan="4">Propositions commerciales ouvertes</td></tr>';
|
||||||
|
$var=True;
|
||||||
while ($i < $num)
|
while ($i < $num)
|
||||||
{
|
{
|
||||||
$obj = $db->fetch_object( $i);
|
$obj = $db->fetch_object( $i);
|
||||||
$var=!$var;
|
|
||||||
print "<tr $bc[$var]><td width=\"12%\"><a href=\"propal.php?propalid=".$obj->rowid."\">".$obj->ref."</a></td>";
|
print "<tr $bc[$var]><td width=\"12%\"><a href=\"propal.php?propalid=".$obj->rowid."\">".$obj->ref."</a></td>";
|
||||||
print "<td width=\"30%\"><a href=\"fiche.php?socid=$obj->idp\">$obj->nom</a></td>\n";
|
print "<td width=\"30%\"><a href=\"fiche.php?socid=$obj->idp\">$obj->nom</a></td>\n";
|
||||||
print "<td align=\"right\">";
|
print "<td align=\"right\">";
|
||||||
print strftime("%d %B %Y",$obj->dp)."</td>\n";
|
print strftime("%d %B %Y",$obj->dp)."</td>\n";
|
||||||
print "<td align=\"right\">".price($obj->price)."</td></tr>\n";
|
print "<td align=\"right\">".price($obj->price)."</td></tr>\n";
|
||||||
|
$var=!$var;
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
print "</table><br>";
|
print "</table><br>";
|
||||||
@ -276,39 +276,40 @@ if ($conf->propal->enabled) {
|
|||||||
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
|
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
|
||||||
print '<tr class="liste_titre"><td colspan="6">Dernières propositions commerciales</td></tr>';
|
print '<tr class="liste_titre"><td colspan="6">Dernières propositions commerciales</td></tr>';
|
||||||
$var=True;
|
$var=True;
|
||||||
|
|
||||||
while ($i < $num)
|
while ($i < $num)
|
||||||
{
|
{
|
||||||
$objp = $db->fetch_object( $i);
|
$objp = $db->fetch_object( $i);
|
||||||
|
print "<tr $bc[$var]>";
|
||||||
|
print '<td width="12%">';
|
||||||
|
print '<a href="propal.php?propalid='.$objp->propalid.'">'.img_file().'</a>';
|
||||||
|
print ' <a href="propal.php?propalid='.$objp->propalid.'">'.$objp->ref.'</a></td>';
|
||||||
|
print "<td width=\"30%\"><a href=\"fiche.php?socid=$objp->idp\">$objp->nom</a></TD>\n";
|
||||||
|
|
||||||
$var=!$var;
|
$now = time();
|
||||||
print "<tr $bc[$var]>";
|
$lim = 3600 * 24 * 15 ;
|
||||||
print '<td width="12%"><a href="propal.php?propalid='.$objp->propalid.'">'.$objp->ref.'</a></td>';
|
|
||||||
print "<td width=\"30%\"><a href=\"fiche.php?socid=$objp->idp\">$objp->nom</a></TD>\n";
|
|
||||||
|
|
||||||
$now = time();
|
if ( ($now - $objp->dp) > $lim && $objp->statutid == 1 )
|
||||||
$lim = 3600 * 24 * 15 ;
|
{
|
||||||
|
print "<td><b> > 15 jours</b></td>";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print "<td> </td>";
|
||||||
|
}
|
||||||
|
|
||||||
if ( ($now - $objp->dp) > $lim && $objp->statutid == 1 )
|
print "<td align=\"right\">";
|
||||||
{
|
print strftime("%d %B %Y",$objp->dp)."</td>\n";
|
||||||
print "<td><b> > 15 jours</b></td>";
|
print "<td align=\"right\">".price($objp->price)."</TD>\n";
|
||||||
}
|
print "<td align=\"center\">$objp->statut</TD>\n";
|
||||||
else
|
print "</tr>\n";
|
||||||
{
|
$i++;
|
||||||
print "<td> </td>";
|
$var=!$var;
|
||||||
}
|
|
||||||
|
|
||||||
print "<td align=\"right\">";
|
}
|
||||||
print strftime("%d %B %Y",$objp->dp)."</td>\n";
|
|
||||||
print "<td align=\"right\">".price($objp->price)."</TD>\n";
|
|
||||||
print "<td align=\"center\">$objp->statut</TD>\n";
|
|
||||||
print "</tr>\n";
|
|
||||||
$i++;
|
|
||||||
}
|
|
||||||
|
|
||||||
print "</table>";
|
print "</table>";
|
||||||
$db->free();
|
$db->free();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user