Trad: Traduction de toutes les chaines "Editer" dans toutes les pages.
This commit is contained in:
parent
af3df32ea6
commit
200f8c065d
@ -552,7 +552,7 @@ print '<div class="tabsAction">';
|
||||
|
||||
if ($user->admin)
|
||||
{
|
||||
print "<a class=\"tabAction\" href=\"edit.php?rowid=$rowid\">Editer</a>";
|
||||
print "<a class=\"tabAction\" href=\"edit.php?rowid=$rowid\">".$langs->trans("Edit")."</a>";
|
||||
|
||||
if ($adh->statut < 1)
|
||||
{
|
||||
|
||||
@ -104,7 +104,7 @@ else
|
||||
|
||||
// Boutons d'action
|
||||
print '<div class="tabsAction">';
|
||||
print '<a class="tabAction" href="index.php?action=edit">Editer</a>';
|
||||
print '<a class="tabAction" href="index.php?action=edit">'.$langs->trans("Edit").'</a>';
|
||||
print '</div>';
|
||||
|
||||
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<?PHP
|
||||
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* 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
|
||||
@ -180,32 +181,19 @@ else
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
print '<br><table width="100%" border="1" cellspacing="0" cellpadding="3">';
|
||||
print '<div class="tabsAction">';
|
||||
|
||||
if ($action == 'create')
|
||||
{
|
||||
print '<td width="20%" align="center">-</td>';
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<td width="20%" align="center">[<a href="fiche.php?action=edit&id='.$id.'">Editer</a>]</td>';
|
||||
}
|
||||
|
||||
print '<td width="20%" align="center">-</td>';
|
||||
print '<td width="20%" align="center">-</td>';
|
||||
print '<td width="20%" align="center">-</td>';
|
||||
|
||||
if(sizeof($livres)==0 && $id)
|
||||
{
|
||||
print '<td width="20%" align="center">[<a href="fiche.php?action=delete&id='.$id.'">Supprimer</a>]</td>';
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<td width="20%" align="center">[Supprimer]</td>';
|
||||
}
|
||||
|
||||
print '</table><br>';
|
||||
if ($action != 'create')
|
||||
{
|
||||
print '<a class="tabAction" href="fiche.php?action=edit&id='.$id.'">'.$langs->trans("Edit").'</a>';
|
||||
}
|
||||
|
||||
if(sizeof($livres)==0 && $id)
|
||||
{
|
||||
print '<a class="tabAction" href="fiche.php?action=delete&id='.$id.'">'.$langs->trans("Delete").'</a>';
|
||||
}
|
||||
|
||||
print '</div>';
|
||||
|
||||
|
||||
$db->close();
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<?PHP
|
||||
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* 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
|
||||
@ -177,33 +178,17 @@ else
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
print '<br><table width="100%" border="1" cellspacing="0" cellpadding="3">';
|
||||
|
||||
if ($action == 'create')
|
||||
print '<div class="tabsAction">';
|
||||
if ($action != 'create')
|
||||
{
|
||||
print '<td width="20%" align="center">-</td>';
|
||||
print '<a class="tabAction" href="fiche.php?action=edit&id='.$id.'">'.$langs->trans("Edit").'</a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<td width="20%" align="center">[<a href="fiche.php?action=edit&id='.$id.'">Editer</a>]</td>';
|
||||
}
|
||||
|
||||
print '<td width="20%" align="center">-</td>';
|
||||
print '<td width="20%" align="center">-</td>';
|
||||
print '<td width="20%" align="center">-</td>';
|
||||
|
||||
if(sizeof($livres)==0 && $id)
|
||||
{
|
||||
print '<td width="20%" align="center">[<a href="fiche.php?action=delete&id='.$id.'">Supprimer</a>]</td>';
|
||||
print '<a class="tabAction" href="fiche.php?action=delete&id='.$id.'">'.$langs->trans("Delete").'</a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<td width="20%" align="center">[Supprimer]</td>';
|
||||
}
|
||||
|
||||
|
||||
print '</table><br>';
|
||||
|
||||
print '</div>';
|
||||
|
||||
|
||||
$db->close();
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<?PHP
|
||||
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* 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
|
||||
@ -426,23 +427,14 @@ else
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
print '<br><table width="100%" border="1" cellspacing="0" cellpadding="3">';
|
||||
|
||||
if ($action == 'create')
|
||||
print '<div class="tabsAction">';
|
||||
if ($action != 'create')
|
||||
{
|
||||
print '<td width="20%" align="center">-</td>';
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<td width="20%" align="center">[<a href="fiche.php?action=edit&id='.$id.'">Editer</a>]</td>';
|
||||
print '<a class="tabAction" href="fiche.php?action=edit&id='.$id.'">'.$langs->trans("Edit").'</a>';
|
||||
}
|
||||
|
||||
print '<td width="20%" align="center">-</td>';
|
||||
//print '<td width="20%" align="center">[<a href="fiche.php?action=updateosc&id='.$id.'">Update Osc</a>]</td>';
|
||||
print '<td width="20%" align="center">-</td>';
|
||||
print '<td width="20%" align="center">-</td>';
|
||||
print '<td width="20%" align="center">[<a href="fiche.php?action=delete&id='.$id.'">Supprimer</a>]</td>';
|
||||
print '</table><br>';
|
||||
print '<a class="tabAction" href="fiche.php?action=delete&id='.$id.'">'.$langs->trans("Delete").'</a>';
|
||||
print '</div>';
|
||||
|
||||
$db->close();
|
||||
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<?PHP
|
||||
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* 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
|
||||
@ -256,53 +257,27 @@ else
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
print '<br><table width="100%" border="1" cellspacing="0" cellpadding="3">';
|
||||
|
||||
if ($action == 'create')
|
||||
print '<div class="tabsAction">';
|
||||
if ($newsletter->status == 0)
|
||||
{
|
||||
print '<td width="20%" align="center">-</td>';
|
||||
}
|
||||
elseif ($newsletter->status == 0)
|
||||
{
|
||||
print '<td width="20%" align="center">[<a href="fiche.php?action=edit&id='.$id.'">Editer</a>]</td>';
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<td width="20%" align="center">-</td>';
|
||||
print '<a class="tabAction" href="fiche.php?action=edit&id='.$id.'">'.$langs->trans("Edit").'</a>';
|
||||
}
|
||||
|
||||
if ($newsletter->status == 0 && $id)
|
||||
{
|
||||
print '<td width="20%" align="center">[<a href="fiche.php?action=valid&id='.$id.'">Valider</a>]</td>';
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<td width="20%" align="center">-</td>';
|
||||
print '<a class="tabAction" href="fiche.php?action=valid&id='.$id.'">'.$langs->trans("Valid").'</a>';
|
||||
}
|
||||
|
||||
if ($newsletter->status == 1)
|
||||
{
|
||||
print '<td width="20%" align="center">[<a href="fiche.php?action=send&id='.$id.'">Envoyer</a>]</td>';
|
||||
print '<a class="tabAction" href="fiche.php?action=send&id='.$id.'">'.$langs->trans("Send").'</a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<td width="20%" align="center">-</td>';
|
||||
}
|
||||
|
||||
print '<td width="20%" align="center">-</td>';
|
||||
|
||||
if($id && $newsletter->status == 0)
|
||||
{
|
||||
print '<td width="20%" align="center">[<a href="fiche.php?action=delete&id='.$id.'">Supprimer</a>]</td>';
|
||||
print '<a class="tabAction" href="fiche.php?action=delete&id='.$id.'">'.$langs->trans("Delete").'</a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<td width="20%" align="center">-</td>';
|
||||
}
|
||||
|
||||
|
||||
print '</table><br>';
|
||||
|
||||
print '</div>';
|
||||
|
||||
|
||||
$db->close();
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<?PHP
|
||||
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* 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
|
||||
@ -127,22 +128,13 @@ else
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
print '<br><table width="100%" border="1" cellspacing="0" cellpadding="3">';
|
||||
print '<td width="20%" align="center">-</td>';
|
||||
print '<td width="20%" align="center">-</td>';
|
||||
print '<td width="20%" align="center">-</td>';
|
||||
|
||||
if ($action == 'create')
|
||||
print '<div class="tabsAction">';
|
||||
if ($action != 'create')
|
||||
{
|
||||
print '<td width="20%" align="center">-</td>';
|
||||
print '<a class="tabAction" href="fiche.php?action=edit&id='.$id.'">'.$langs->trans("Edit").'</a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<td width="20%" align="center">[<a href="fiche.php?action=edit&id='.$id.'">Editer</a>]</td>';
|
||||
}
|
||||
print '<td width="20%" align="center">-</td>';
|
||||
print '</table><br>';
|
||||
|
||||
print '</div>';
|
||||
|
||||
|
||||
$db->close();
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<?PHP
|
||||
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* 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
|
||||
@ -362,14 +363,14 @@ if ($_GET["id"])
|
||||
|
||||
if ($_GET["action"] == 'edit')
|
||||
{
|
||||
print '<a class="tabAction" href="fiche.php?id='.$act->id.'">Annuler</a>';
|
||||
print '<a class="tabAction" href="fiche.php?id='.$act->id.'">'.$langs->trans("Cancel").'</a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<a class="tabAction" href="fiche.php?action=edit&id='.$act->id.'">Editer</a>';
|
||||
print '<a class="tabAction" href="fiche.php?action=edit&id='.$act->id.'">'.$langs->trans("Edit").'</a>';
|
||||
}
|
||||
|
||||
print '<a class="tabAction" href="fiche.php?action=delete&id='.$act->id.'">Supprimer</a>';
|
||||
print '<a class="tabAction" href="fiche.php?action=delete&id='.$act->id.'">'.$langs->trans("Delete").'</a>';
|
||||
print '</div>';
|
||||
}
|
||||
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<?PHP
|
||||
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* 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
|
||||
@ -131,7 +132,7 @@ if ($_GET["propalid"])
|
||||
|
||||
if ($user->rights->propale->creer && $_GET["action"] <> 'edit')
|
||||
{
|
||||
print "<a class=\"tabAction\" href=\"note.php?propalid=$propal->id&action=edit\">Editer</a>";
|
||||
print "<a class=\"tabAction\" href=\"note.php?propalid=$propal->id&action=edit\">".$langs->trans("Edit")."</a>";
|
||||
}
|
||||
|
||||
print "</div>";
|
||||
|
||||
@ -222,7 +222,7 @@ else
|
||||
|
||||
if ($user->admin)
|
||||
{
|
||||
print '<a class="tabAction" href="fiche.php?action=edit&id='.$account->id.'">Editer</a>';
|
||||
print '<a class="tabAction" href="fiche.php?action=edit&id='.$account->id.'">'.$langs->trans("Edit").'</a>';
|
||||
}
|
||||
|
||||
print '</div>';
|
||||
|
||||
@ -1,221 +0,0 @@
|
||||
<?PHP
|
||||
/* Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* $Id$
|
||||
* $Source$
|
||||
*
|
||||
*/
|
||||
|
||||
require("./pre.inc.php");
|
||||
require("../service.class.php");
|
||||
|
||||
llxHeader();
|
||||
|
||||
$user->getrights('compta');
|
||||
|
||||
if (!$user->admin && !$user->rights->compta->charges)
|
||||
accessforbidden();
|
||||
|
||||
if ($action == 'add') {
|
||||
$service = new Service($db);
|
||||
|
||||
$service->ref = $ref;
|
||||
$service->libelle = $label;
|
||||
$service->price = $price;
|
||||
$service->description = $desc;
|
||||
|
||||
$id = $service->create($user);
|
||||
|
||||
if ($comm_now && $id) {
|
||||
$service->start_comm($id, $user);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if ($action == 'set_datedeb') {
|
||||
$service = new Service($db);
|
||||
$service->start_comm($id, $user->id, $datedeb);
|
||||
}
|
||||
if ($action == 'set_datefin') {
|
||||
$service = new Service($db);
|
||||
$service->stop_comm($id, $user->id, $datefin);
|
||||
}
|
||||
|
||||
if ($action == 'update') {
|
||||
$service = new Service($db);
|
||||
|
||||
$service->ref = $ref;
|
||||
$service->libelle = $label;
|
||||
$service->price = $price;
|
||||
$service->description = $desc;
|
||||
|
||||
$service->update($id, $user);
|
||||
}
|
||||
|
||||
|
||||
if ($action == 'create') {
|
||||
|
||||
print_titre("Nouveau service");
|
||||
print '<form action="fiche.php" method="post">';
|
||||
print '<input type="hidden" name="action" value="add">';
|
||||
print '<table border="1" cellpadding="3" cellspacing="0">';
|
||||
|
||||
print '<tr><td valign="top">Référence</td>';
|
||||
print '<td><input size="12" type="text" name="ref"></td></tr>';
|
||||
|
||||
print '<tr><td valign="top">Libelle</td>';
|
||||
print '<td><input size="30" type="text" name="label"></td></tr>';
|
||||
|
||||
print '<tr><td valign="top">Prix</td>';
|
||||
print '<td><input size="8" type="text" name="price"></td></tr>';
|
||||
|
||||
print '<tr><td valign="top">Description</td><td>';
|
||||
print "<textarea name=\"desc\" rows=\"12\" cols=\"40\">";
|
||||
print "</textarea></td></tr>";
|
||||
|
||||
print '<tr><td valign="top">Commercialisé</td>';
|
||||
print '<td><select name="comm_now">';
|
||||
print '<option value="1">oui';
|
||||
print '<option value="0">non';
|
||||
print '</td></tr>';
|
||||
|
||||
print '<tr><td align="center" colspan="2"><input type="submit"></td></tr>';
|
||||
print '</form>';
|
||||
print '</table>';
|
||||
|
||||
} else {
|
||||
|
||||
if ($id) {
|
||||
|
||||
$service = new Service($db);
|
||||
$service->fetch($id);
|
||||
|
||||
print '<div class="titre">Fiche service</div><br>';
|
||||
|
||||
print '<table width="100%" border="1" cellpadding="3" cellspacing="0">';
|
||||
|
||||
print '<tr><td valign="top">Référence</td>';
|
||||
print '<td bgcolor="#e0e0e0">'.$service->ref.'</td>';
|
||||
print '<td valign="top">Créé le</td>';
|
||||
print '<td>'.$service->tms.'</td></tr>';
|
||||
|
||||
print '<tr><td valign="top">Libelle</td>';
|
||||
print '<td bgcolor="#e0e0e0">'.$service->libelle.'</td>';
|
||||
print '<td valign="top">Début comm</td>';
|
||||
print '<td>'.$service->debut.'</td></tr>';
|
||||
|
||||
print '<tr><td valign="top">Prix</td>';
|
||||
print '<td>'.price($service->price).'</td>';
|
||||
|
||||
print '<td valign="top">Fin comm</td>';
|
||||
|
||||
if ($service->fin_epoch < time()) {
|
||||
print '<td bgcolor="#99ffff"><b>'.$service->fin.' </b></td></tr>';
|
||||
} else {
|
||||
print '<td>'.$service->fin.' </td></tr>';
|
||||
}
|
||||
|
||||
print '<tr><td valign="top">Description</td><td colspan="3">';
|
||||
print nl2br($service->description);
|
||||
print '</table>';
|
||||
|
||||
|
||||
print '<br><table width="100%" border="1" cellspacing="0" cellpadding="3">';
|
||||
|
||||
print '<td width="20%" align="center">-</td>';
|
||||
|
||||
print '<td width="20%" align="center">[<a href="fiche.php?action=edit&id='.$id.'">Editer</a>]</td>';
|
||||
|
||||
print '<td width="20%" align="center">[<a href="fiche.php?action=datedeb&id='.$id.'">Date de debut</a>]</td>';
|
||||
print '<td width="20%" align="center">[<a href="fiche.php?action=datefin&id='.$id.'">Date de fin</a>]</td>';
|
||||
print '<td width="20%" align="center">-</td>';
|
||||
|
||||
print '</table><br>';
|
||||
|
||||
|
||||
/*
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
if ($action == 'datedeb') {
|
||||
print '<p><b>Affectation de la date de début de commercialisation</b></p>';
|
||||
print '<form action="fiche.php?id='.$id.'" method="post">';
|
||||
print '<input type="hidden" name="action" value="set_datedeb">';
|
||||
print '<table width="100%" border="1" cellpadding="3" cellspacing="0">';
|
||||
print '<tr><td>Date de debut de commercialisation</td>';
|
||||
print '<td><input size="10" type="text" name="datedeb" value="'.strftime("%Y-%m-%d", time()).'"></td>';
|
||||
print '<td><input type="submit"></td></tr>';
|
||||
print '</table></form><br>';
|
||||
}
|
||||
/*
|
||||
*
|
||||
*
|
||||
*
|
||||
*/
|
||||
if ($action == 'datefin') {
|
||||
print '<p><b>Affectation de la date de fin de commercialisation</b></p>';
|
||||
print '<form action="fiche.php?id='.$id.'" method="post">';
|
||||
print '<input type="hidden" name="action" value="set_datefin">';
|
||||
print '<table width="100%" border="1" cellpadding="3" cellspacing="0">';
|
||||
print '<tr><td>Date de fin de commercialisation</td>';
|
||||
print '<td><input size="10" type="text" name="datefin" value="'.strftime("%Y-%m-%d", time()).'"></td>';
|
||||
print '<td><input type="submit"></td></tr>';
|
||||
print '</table></form><br>';
|
||||
}
|
||||
/*
|
||||
*
|
||||
* Mode edition
|
||||
*
|
||||
*/
|
||||
|
||||
if ($action == 'edit') {
|
||||
print '<hr><div class="titre">Editer la fiche service</div><br>';
|
||||
print '<form action="fiche.php?id='.$id.'" method="post">';
|
||||
print '<input type="hidden" name="action" value="update">';
|
||||
print '<table border="1" cellpadding="3" cellspacing="0">';
|
||||
|
||||
print '<tr><td valign="top">Référence</td>';
|
||||
print '<td><input size="12" type="text" name="ref" value="'.$service->ref.'"></td></tr>';
|
||||
|
||||
print '<tr><td valign="top">Libelle</td>';
|
||||
print '<td><input size="30" type="text" name="label" value="'.$service->libelle.'"></td></tr>';
|
||||
|
||||
print '<tr><td valign="top">Prix</td>';
|
||||
print '<td><input size="8" type="text" name="price" value="'.$service->price.'"></td></tr>';
|
||||
|
||||
print '<tr><td valign="top">Description</td><td>';
|
||||
print "<textarea name=\"desc\" rows=\"12\" cols=\"40\">";
|
||||
print $service->description;
|
||||
print "</textarea></td></tr>";
|
||||
|
||||
print '<tr><td align="center" colspan="2"><input type="submit"></td></tr>';
|
||||
print '</form>';
|
||||
print '</table>';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
$db->close();
|
||||
|
||||
llxFooter("<em>Dernière modification $Date$ révision $Revision$</em>");
|
||||
?>
|
||||
@ -206,8 +206,8 @@ print '<div class="tabsAction">';
|
||||
|
||||
if ($_GET["action"] != 'create')
|
||||
{
|
||||
print '<a class="tabAction" href="fiche.php?action=edit&id='.$_GET["id"].'">Editer</a>';
|
||||
print '<a class="tabAction" href="fiche.php?action=delete&id='.$_GET["id"].'">Supprimer</a>';
|
||||
print '<a class="tabAction" href="fiche.php?action=edit&id='.$_GET["id"].'">'.$langs->trans('Edit').'</a>';
|
||||
print '<a class="tabAction" href="fiche.php?action=delete&id='.$_GET["id"].'">'.$langs->trans('Delete').'</a>';
|
||||
}
|
||||
|
||||
print '</div>';
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<?PHP
|
||||
/* Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* 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
|
||||
@ -251,7 +252,7 @@ if ($rowid > 0 && $action == 'edit')
|
||||
* Case 1
|
||||
*/
|
||||
|
||||
print '<td align="center" width="25%">[<a href="edit.php?rowid='.$don->id.'">Editer</a>]</td>';
|
||||
print '<td align="center" width="25%">[<a href="edit.php?rowid='.$don->id.'">'.$langs->trans('Edit').'</a>]</td>';
|
||||
|
||||
/*
|
||||
* Case 2
|
||||
|
||||
@ -136,7 +136,7 @@ if ($_GET["facid"])
|
||||
|
||||
if ($user->rights->facture->creer && $_GET["action"] <> 'edit')
|
||||
{
|
||||
print "<a class=\"tabAction\" href=\"note.php?facid=$facture->id&action=edit\">Editer</a>";
|
||||
print "<a class=\"tabAction\" href=\"note.php?facid=$facture->id&action=edit\">".$langs->trans('Edit')."</a>";
|
||||
}
|
||||
|
||||
print "</div>";
|
||||
|
||||
@ -170,7 +170,7 @@ if ( $db->query($sql) )
|
||||
print '<td align="center"><a class="impayee" href="index.php?filtre=paye:0">Impayé</a></td>';
|
||||
print '<td align="center" nowrap>';
|
||||
if ($user->rights->compta->charges->creer) {
|
||||
print '<a href="charges.php?id='.$obj->id.'">'.img_edit().'</a>';
|
||||
print '<a href="charges.php?action=edit&id='.$obj->id.'">'.img_edit().'</a>';
|
||||
}
|
||||
if ($user->rights->compta->charges->supprimer) {
|
||||
print ' <a href="index.php?action=del&id='.$obj->id.'">'.img_delete().'</a>';
|
||||
|
||||
@ -331,14 +331,14 @@ else
|
||||
|
||||
print "</div>";
|
||||
|
||||
// Barre d'actions
|
||||
if ($user->societe_id == 0)
|
||||
{
|
||||
print '<div class="tabsAction">';
|
||||
|
||||
print '<a class="tabAction" href="fiche.php?id='.$contact->id.'&action=edit">Editer</a>';
|
||||
|
||||
print '<a class="tabAction" href="fiche.php?id='.$contact->id.'&action=deleteWARNING">Supprimer</a>';
|
||||
print '<a class="tabAction" href="fiche.php?id='.$contact->id.'&action=edit">'.$langs->trans('Edit').'</a>';
|
||||
|
||||
print '<a class="tabAction" href="fiche.php?id='.$contact->id.'&action=deleteWARNING">'.$langs->trans('Delete').'</a>';
|
||||
|
||||
if ($contact->user_id == 0 && $user->admin)
|
||||
{
|
||||
|
||||
@ -141,13 +141,14 @@ else
|
||||
|
||||
print "</div>";
|
||||
|
||||
// Barre d'actions
|
||||
if ($user->societe_id == 0)
|
||||
{
|
||||
print '<div class="tabsAction">';
|
||||
|
||||
print '<a class="tabAction" href="perso.php?id='.$_GET["id"].'&action=edit">Editer</a>';
|
||||
print '<a class="tabAction" href="perso.php?id='.$_GET["id"].'&action=edit">'.$langs->trans('Edit').'</a>';
|
||||
|
||||
print '<a class="tabAction" href="fiche.php?id='.$_GET["id"].'&action=deleteWARNING">Supprimer</a>';
|
||||
print '<a class="tabAction" href="fiche.php?id='.$_GET["id"].'&action=deleteWARNING">'.$langs->trans('Delete').'</a>';
|
||||
|
||||
print "</div>";
|
||||
}
|
||||
|
||||
@ -548,13 +548,13 @@ else
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<a class="tabAction" href="fiche.php?facid='.$fac->id.'&action=edit">Editer</a>';
|
||||
print '<a class="tabAction" href="fiche.php?facid='.$fac->id.'&action=edit">'.$langs->trans('Edit').'</a>';
|
||||
}
|
||||
}
|
||||
|
||||
if ($fac->statut == 1 && price($resteapayer) <= 0 && $fac->paye == 0 && $user->societe_id == 0)
|
||||
{
|
||||
print "<a class=\"tabAction\" href=\"fiche.php?facid=$fac->id&action=payed\">Classer 'Payée'</a>";
|
||||
print "<a class=\"tabAction\" href=\"fiche.php?facid=$fac->id&action=payed\">".$langs->trans('ClassifyPayed')."</a>";
|
||||
}
|
||||
|
||||
if ($user->societe_id == 0)
|
||||
@ -562,11 +562,11 @@ else
|
||||
if ($fac->statut == 0)
|
||||
{
|
||||
if ($_GET["action"] <> "edit")
|
||||
print "<a class=\"tabAction\" href=\"fiche.php?facid=$fac->id&action=valid\">Valider</a>";
|
||||
print "<a class=\"tabAction\" href=\"fiche.php?facid=$fac->id&action=valid\">".$langs->trans('Valid')."</a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
print "<a class=\"tabAction\" href=\"fiche.php?facid=$fac->id&action=copy&socid=$fac->socidp\">Copier</a>";
|
||||
print "<a class=\"tabAction\" href=\"fiche.php?facid=$fac->id&action=copy&socid=$fac->socidp\">".$langs->trans('Copy')."</a>";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<?PHP
|
||||
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* 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
|
||||
@ -119,22 +120,12 @@ if ($id)
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
print '<br><table width="100%" border="1" cellspacing="0" cellpadding="3">';
|
||||
|
||||
if ($action == 'create')
|
||||
print '<div class="tabsAction">';
|
||||
if ($action != 'create')
|
||||
{
|
||||
print '<td width="20%" align="center">-</td>';
|
||||
print '<a class="tabAction" href="fiche.php?action=edit&id='.$id.'">'.$langs->trans('Edit').'</a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<td width="20%" align="center">[<a href="fiche.php?action=edit&id='.$id.'">Editer</a>]</td>';
|
||||
}
|
||||
|
||||
print '<td width="20%" align="center">-</td>';
|
||||
print '<td width="20%" align="center">-</td>';
|
||||
print '<td width="20%" align="center">-</td>';
|
||||
print '<td width="20%" align="center">-</td>';
|
||||
print '</table><br>';
|
||||
print '</div>';
|
||||
|
||||
$db->close();
|
||||
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<?PHP
|
||||
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* 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
|
||||
@ -200,7 +201,7 @@ if ($action == 'create')
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<td width="20%" align="center">[<a href="fiche.php?action=edit&id='.$id.'">Editer</a>]</td>';
|
||||
print '<td width="20%" align="center">[<a href="fiche.php?action=edit&id='.$id.'">'.$langs->trans("Edit").'</a>]</td>';
|
||||
}
|
||||
print '<td width="20%" align="center">-</td>';
|
||||
print '</table><br>';
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<?PHP
|
||||
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* 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
|
||||
@ -178,7 +179,7 @@ if ($action == 'create')
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<td width="20%" align="center">[<a href="fiche.php?action=edit&id='.$id.'">Editer</a>]</td>';
|
||||
print '<td width="20%" align="center">[<a href="fiche.php?action=edit&id='.$id.'">'.$langs->trans("Edit").'</a>]</td>';
|
||||
}
|
||||
print '<td width="20%" align="center">-</td>';
|
||||
print '</table><br>';
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<?PHP
|
||||
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* 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
|
||||
@ -172,7 +173,7 @@ if ($action == 'create')
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<td width="20%" align="center">[<a href="fiche.php?action=edit&id='.$id.'">Editer</a>]</td>';
|
||||
print '<td width="20%" align="center">[<a href="fiche.php?action=edit&id='.$id.'">'.$langs->trans("Edit").'</a>]</td>';
|
||||
}
|
||||
print '<td width="20%" align="center">-</td>';
|
||||
print '</table><br>';
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<?PHP
|
||||
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* 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
|
||||
@ -140,7 +141,7 @@ if ($action == 'create')
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<td width="20%" align="center">[<a href="fichelieu.php?action=edit&id='.$id.'">Editer</a>]</td>';
|
||||
print '<td width="20%" align="center">[<a href="fichelieu.php?action=edit&id='.$id.'">'.$langs->trans("Edit").'</a>]</td>';
|
||||
}
|
||||
print '<td width="20%" align="center">-</td>';
|
||||
print '</table><br>';
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<?PHP
|
||||
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* 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
|
||||
@ -583,7 +584,7 @@ if ($_GET["action"] == '')
|
||||
{
|
||||
if ($user->rights->produit->modifier || $user->rights->produit->creer)
|
||||
{
|
||||
print '<a class="tabAction" href="fiche.php?action=edit&id='.$product->id.'">Editer</a>';
|
||||
print '<a class="tabAction" href="fiche.php?action=edit&id='.$product->id.'">'.$langs->trans("Edit").'</a>';
|
||||
}
|
||||
}
|
||||
if ($product->type == 0 && defined("MAIN_MODULE_STOCK"))
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<?PHP
|
||||
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* 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
|
||||
@ -152,7 +153,7 @@ if ($action == 'create')
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<td width="20%" align="center">[<a href="fiche.php?action=edit&id='.$id.'">Editer</a>]</td>';
|
||||
print '<td width="20%" align="center">[<a href="fiche.php?action=edit&id='.$id.'">'.$langs->trans("Edit").'</a>]</td>';
|
||||
}
|
||||
print '<td width="20%" align="center">-</td>';
|
||||
print '</table><br>';
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<?PHP
|
||||
/* Copyright (C) 2003-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* 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
|
||||
@ -182,7 +182,7 @@ if ($action == '' && ($user->rights->produit->modifier || $user->rights->produit
|
||||
|
||||
if ($action == '')
|
||||
{
|
||||
print "<a class=\"tabAction\" href=\"fiche.php?action=edit&id=$entrepot->id\">Editer</a>";
|
||||
print "<a class=\"tabAction\" href=\"fiche.php?action=edit&id=$entrepot->id\">".$langs->trans("Edit")."</a>";
|
||||
}
|
||||
|
||||
print "</div>";
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<?PHP
|
||||
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* 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
|
||||
@ -164,10 +165,10 @@ if ($_GET["action"] == 'create' && $user->rights->projet->creer)
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<a class="tabAction" href="fiche.php?id='.$projet->id.'&action=edit">Editer</a>';
|
||||
print '<a class="tabAction" href="fiche.php?id='.$projet->id.'&action=edit">'.$langs->trans("Edit").'</a>';
|
||||
}
|
||||
|
||||
print '<a class="tabAction" href="fiche.php?id='.$projet->id.'&action=delete">Supprimer</a>';
|
||||
print '<a class="tabAction" href="fiche.php?id='.$projet->id.'&action=delete">'.$langs->trans("Delete").'</a>';
|
||||
|
||||
print "</div>";
|
||||
}
|
||||
|
||||
@ -332,7 +332,7 @@ else
|
||||
*/
|
||||
print '<div class="tabsAction">';
|
||||
|
||||
print '<a class="tabAction" href="'.DOL_URL_ROOT.'/soc.php?socid='.$soc->id.'&action=edit">Editer</a>';
|
||||
print '<a class="tabAction" href="'.DOL_URL_ROOT.'/soc.php?socid='.$soc->id.'&action=edit">'.$langs->trans("Edit").'</a>';
|
||||
|
||||
print '<a class="tabAction" href="'.DOL_URL_ROOT.'/contact/fiche.php?socid='.$soc->id.'&action=create">Ajouter un contact</a>';
|
||||
|
||||
|
||||
@ -366,7 +366,7 @@ else
|
||||
|
||||
if ($user->admin)
|
||||
{
|
||||
print '<a class="tabAction" href="fiche.php?id='.$fuser->id.'&action=edit">Editer</a>';
|
||||
print '<a class="tabAction" href="fiche.php?id='.$fuser->id.'&action=edit">'.$langs->trans("Edit").'</a>';
|
||||
}
|
||||
|
||||
if ($user->id == $id or $user->admin)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user