Fix: W3C
This commit is contained in:
parent
4652b87c8a
commit
b023117fc6
@ -404,7 +404,6 @@ if ($conf->societe->enabled && $user->rights->societe->lire)
|
|||||||
$var=!$var;
|
$var=!$var;
|
||||||
|
|
||||||
}
|
}
|
||||||
print "</table><br>";
|
|
||||||
|
|
||||||
$db->free($resql);
|
$db->free($resql);
|
||||||
}
|
}
|
||||||
@ -412,6 +411,7 @@ if ($conf->societe->enabled && $user->rights->societe->lire)
|
|||||||
{
|
{
|
||||||
print '<tr '.$bc[$var].'><td colspan="3">'.$langs->trans("None").'</td></tr>';
|
print '<tr '.$bc[$var].'><td colspan="3">'.$langs->trans("None").'</td></tr>';
|
||||||
}
|
}
|
||||||
|
print "</table><br>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -134,8 +134,8 @@ function show_array_actions_to_do($max=5)
|
|||||||
$sql = "SELECT a.id, a.label, a.datep as dp, a.fk_user_author, a.percent,";
|
$sql = "SELECT a.id, a.label, a.datep as dp, a.fk_user_author, a.percent,";
|
||||||
$sql.= " c.code, c.libelle,";
|
$sql.= " c.code, c.libelle,";
|
||||||
$sql.= " s.nom as sname, s.rowid, s.client";
|
$sql.= " s.nom as sname, s.rowid, s.client";
|
||||||
$sql.= " FROM (".MAIN_DB_PREFIX."actioncomm as a";
|
$sql.= " FROM (".MAIN_DB_PREFIX."c_actioncomm as c,";
|
||||||
$sql.= ", ".MAIN_DB_PREFIX."c_actioncomm as c";
|
$sql.= " ".MAIN_DB_PREFIX."actioncomm as a";
|
||||||
if (!$user->rights->societe->client->voir && !$socid) $sql.= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
|
if (!$user->rights->societe->client->voir && !$socid) $sql.= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
|
||||||
$sql.= ")";
|
$sql.= ")";
|
||||||
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."societe as s ON a.fk_soc = s.rowid AND s.entity IN (0, ".$conf->entity.")";
|
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."societe as s ON a.fk_soc = s.rowid AND s.entity IN (0, ".$conf->entity.")";
|
||||||
@ -150,12 +150,12 @@ function show_array_actions_to_do($max=5)
|
|||||||
if ($resql)
|
if ($resql)
|
||||||
{
|
{
|
||||||
$num = $db->num_rows($resql);
|
$num = $db->num_rows($resql);
|
||||||
if ($num > 0)
|
|
||||||
{
|
|
||||||
print '<table class="noborder" width="100%">';
|
print '<table class="noborder" width="100%">';
|
||||||
print '<tr class="liste_titre"><td colspan="2">'.$langs->trans("LastActionsToDo",$max).'</td>';
|
print '<tr class="liste_titre"><td colspan="2">'.$langs->trans("LastActionsToDo",$max).'</td>';
|
||||||
print '<td colspan="2" align="right"><a href="'.DOL_URL_ROOT.'/comm/action/listactions.php?status=todo">'.$langs->trans("FullList").'</a>';
|
print '<td colspan="2" align="right"><a href="'.DOL_URL_ROOT.'/comm/action/listactions.php?status=todo">'.$langs->trans("FullList").'</a>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
$var = true;
|
$var = true;
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
|
||||||
@ -207,7 +207,7 @@ function show_array_actions_to_do($max=5)
|
|||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
print "</table><br>";
|
print "</table><br>";
|
||||||
}
|
|
||||||
$db->free($resql);
|
$db->free($resql);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -230,8 +230,8 @@ function show_array_last_actions_done($max=5)
|
|||||||
$sql = "SELECT a.id, a.percent, a.datep as da, a.datep2 as da2, a.fk_user_author, a.label,";
|
$sql = "SELECT a.id, a.percent, a.datep as da, a.datep2 as da2, a.fk_user_author, a.label,";
|
||||||
$sql.= " c.code, c.libelle,";
|
$sql.= " c.code, c.libelle,";
|
||||||
$sql.= " s.rowid, s.nom as sname, s.client";
|
$sql.= " s.rowid, s.nom as sname, s.client";
|
||||||
$sql.= " FROM (".MAIN_DB_PREFIX."actioncomm as a";
|
$sql.= " FROM (".MAIN_DB_PREFIX."c_actioncomm as c,";
|
||||||
$sql.= ", ".MAIN_DB_PREFIX."c_actioncomm as c";
|
$sql.= " ".MAIN_DB_PREFIX."actioncomm as a";
|
||||||
if (!$user->rights->societe->client->voir && !$socid) $sql.= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
|
if (!$user->rights->societe->client->voir && !$socid) $sql.= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
|
||||||
$sql.=")";
|
$sql.=")";
|
||||||
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."societe as s ON a.fk_soc = s.rowid AND s.entity IN (0, ".$conf->entity.")";
|
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."societe as s ON a.fk_soc = s.rowid AND s.entity IN (0, ".$conf->entity.")";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user