Trad: Traduction entre menu
This commit is contained in:
parent
95220058bc
commit
49dd42e995
@ -162,7 +162,28 @@ if ( $soc->fetch($soc->id) )
|
||||
|
||||
print '<table class="border"width="100%">';
|
||||
print '<tr><td width="20%">'.$langs->trans("Name").'</td><td colspan="3">'.$soc->nom.'</td></tr>';
|
||||
print '<tr><td width="30%">'.$langs->trans("NbOfActiveNotifications").'</td><td colspan="3">0 (TODO Nombre non mis a jour)</td></tr>';
|
||||
print '<tr><td width="30%">'.$langs->trans("NbOfActiveNotifications").'</td>';
|
||||
print '<td colspan="3">';
|
||||
$sql = "SELECT COUNT(n.rowid) as nb";
|
||||
$sql.= " FROM ".MAIN_DB_PREFIX."notify_def as n";
|
||||
$sql.= " WHERE fk_soc = ".$soc->id;
|
||||
$resql=$db->query($sql);
|
||||
if ($resql)
|
||||
{
|
||||
$num = $db->num_rows($resql);
|
||||
$i = 0;
|
||||
while ($i < $num)
|
||||
{
|
||||
$obj = $db->fetch_object($resql);
|
||||
$nb=$obj->nb;
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
else {
|
||||
dolibarr_print_error($db);
|
||||
}
|
||||
print $nb;
|
||||
print '</td></tr>';
|
||||
print '</table>';
|
||||
|
||||
print '</div>';
|
||||
@ -210,7 +231,7 @@ if ( $soc->fetch($soc->id) )
|
||||
print '<td>';
|
||||
$html->select_array("actionid",$actions);
|
||||
print '</td>';
|
||||
print '<td align="center"><input type="submit" value="'.$langs->trans("Add").'"></td>';
|
||||
print '<td align="center"><input type="submit" class="button" value="'.$langs->trans("Add").'"></td>';
|
||||
print '</tr>';
|
||||
print '</form>';
|
||||
|
||||
|
||||
@ -25,32 +25,27 @@ require ("../../main.inc.php");
|
||||
|
||||
function llxHeader($head = "")
|
||||
{
|
||||
global $user, $conf;
|
||||
|
||||
/*
|
||||
*
|
||||
*
|
||||
*/
|
||||
global $langs, $user, $conf;
|
||||
|
||||
top_menu($head);
|
||||
|
||||
$menu = new Menu();
|
||||
|
||||
if ($conf->societe->enabled && $conf->commercial->enabled)
|
||||
if ($conf->societe->enabled)
|
||||
{
|
||||
$menu->add(DOL_URL_ROOT."/societe.php", "Sociétés","company");
|
||||
$menu->add(DOL_URL_ROOT."/societe.php", $langs->trans("Companies"),"company");
|
||||
|
||||
$menu->add_submenu(DOL_URL_ROOT."/soc.php?&action=create", "Nouvelle société");
|
||||
if ($conf->rights->societe->creer)
|
||||
{
|
||||
$menu->add_submenu(DOL_URL_ROOT."/soc.php?&action=create", $langs->trans("NewCompany"));
|
||||
}
|
||||
|
||||
$menu->add_submenu(DOL_URL_ROOT."/contact.php", $langs->trans("Contacts"));
|
||||
|
||||
$menu->add_submenu(DOL_URL_ROOT."/contact.php", "Contacts");
|
||||
|
||||
$menu->add("index.php", "Notifications");
|
||||
$menu->add_submenu("notify/index.php", $langs->trans("Notifications"));
|
||||
}
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
|
||||
left_menu($menu->liste);
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@ -25,32 +25,27 @@ require ("../main.inc.php");
|
||||
|
||||
function llxHeader($head = "")
|
||||
{
|
||||
global $user, $conf;
|
||||
global $langs, $user, $conf;
|
||||
|
||||
/*
|
||||
*
|
||||
*
|
||||
*/
|
||||
top_menu($head);
|
||||
|
||||
$menu = new Menu();
|
||||
|
||||
if ($conf->societe->enabled && $conf->commercial->enabled)
|
||||
if ($conf->societe->enabled)
|
||||
{
|
||||
$menu->add(DOL_URL_ROOT."/societe.php", "Sociétés","company");
|
||||
$menu->add(DOL_URL_ROOT."/societe.php", $langs->trans("Companies"),"company");
|
||||
|
||||
$menu->add_submenu(DOL_URL_ROOT."/soc.php?&action=create", "Nouvelle société");
|
||||
if ($conf->rights->societe->creer)
|
||||
{
|
||||
$menu->add_submenu(DOL_URL_ROOT."/soc.php?&action=create", $langs->trans("NewCompany"));
|
||||
}
|
||||
|
||||
$menu->add_submenu(DOL_URL_ROOT."/contact.php", $langs->trans("Contacts"));
|
||||
|
||||
$menu->add_submenu(DOL_URL_ROOT."/contact.php", "Contacts");
|
||||
|
||||
$menu->add_submenu("notify/index.php", "Notifications");
|
||||
$menu->add_submenu("notify/index.php", $langs->trans("Notifications"));
|
||||
}
|
||||
|
||||
/*
|
||||
*
|
||||
*/
|
||||
|
||||
left_menu($menu->liste);
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user