cvsimport

This commit is contained in:
Juanjo Menent 2011-07-14 15:37:37 +00:00
commit e654e01bc1
9 changed files with 52 additions and 25 deletions

View File

@ -2,7 +2,7 @@
/* Copyright (C) 2003-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org> /* Copyright (C) 2003-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2009 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2004-2009 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005 Marc Barilley / Ocebo <marc@ocebo.com> * Copyright (C) 2005 Marc Barilley / Ocebo <marc@ocebo.com>
* Copyright (C) 2005 Regis Houssin <regis@dolibarr.fr> * Copyright (C) 2005-2011 Regis Houssin <regis@dolibarr.fr>
* *
* This program is free software; you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License as published by
@ -23,7 +23,7 @@
* \file htdocs/comm/propal/document.php * \file htdocs/comm/propal/document.php
* \ingroup propale * \ingroup propale
* \brief Page de gestion des documents attaches a une proposition commerciale * \brief Page de gestion des documents attaches a une proposition commerciale
* \version $Id: document.php,v 1.66 2011/07/06 20:56:49 eldy Exp $ * \version $Id: document.php,v 1.67 2011/07/14 05:21:53 hregis Exp $
*/ */
require("../../main.inc.php"); require("../../main.inc.php");
@ -110,7 +110,7 @@ if ($action == 'confirm_deletefile' && $confirm == 'yes')
$upload_dir = $conf->propale->dir_output . "/" . dol_sanitizeFileName($object->ref); $upload_dir = $conf->propale->dir_output . "/" . dol_sanitizeFileName($object->ref);
$file = $upload_dir . '/' . $_GET['urlfile']; // Do not use urldecode here ($_GET and $_REQUEST are already decoded by PHP). $file = $upload_dir . '/' . $_GET['urlfile']; // Do not use urldecode here ($_GET and $_REQUEST are already decoded by PHP).
dol_delete_file($file); dol_delete_file($file,0,0,0,'FILE_DELETE',$object);
$mesg = '<div class="ok">'.$langs->trans("FileWasRemoved").'</div>'; $mesg = '<div class="ok">'.$langs->trans("FileWasRemoved").'</div>';
} }
} }
@ -209,5 +209,5 @@ else
$db->close(); $db->close();
llxFooter('$Date: 2011/07/06 20:56:49 $ - $Revision: 1.66 $'); llxFooter('$Date: 2011/07/14 05:21:53 $ - $Revision: 1.67 $');
?> ?>

View File

@ -23,7 +23,7 @@
* \file htdocs/commande/document.php * \file htdocs/commande/document.php
* \ingroup order * \ingroup order
* \brief Page de gestion des documents attachees a une commande * \brief Page de gestion des documents attachees a une commande
* \version $Id: document.php,v 1.34 2011/07/06 20:56:49 eldy Exp $ * \version $Id: document.php,v 1.35 2011/07/14 05:21:53 hregis Exp $
*/ */
require("../main.inc.php"); require("../main.inc.php");
@ -113,7 +113,7 @@ if ($action == 'confirm_deletefile' && $confirm == 'yes')
$upload_dir = $conf->commande->dir_output . "/" . dol_sanitizeFileName($object->ref); $upload_dir = $conf->commande->dir_output . "/" . dol_sanitizeFileName($object->ref);
$file = $upload_dir . '/' . $_GET['urlfile']; // Do not use urldecode here ($_GET and $_REQUEST are already decoded by PHP). $file = $upload_dir . '/' . $_GET['urlfile']; // Do not use urldecode here ($_GET and $_REQUEST are already decoded by PHP).
dol_delete_file($file); dol_delete_file($file,0,0,0,'FILE_DELETE',$object);
$mesg = '<div class="ok">'.$langs->trans("FileWasRemoved").'</div>'; $mesg = '<div class="ok">'.$langs->trans("FileWasRemoved").'</div>';
} }
} }
@ -193,5 +193,5 @@ else
$db->close(); $db->close();
llxFooter('$Date: 2011/07/06 20:56:49 $ - $Revision: 1.34 $'); llxFooter('$Date: 2011/07/14 05:21:53 $ - $Revision: 1.35 $');
?> ?>

View File

@ -23,7 +23,7 @@
* \file htdocs/compta/facture/document.php * \file htdocs/compta/facture/document.php
* \ingroup facture * \ingroup facture
* \brief Page for attached files on invoices * \brief Page for attached files on invoices
* \version $Id: document.php,v 1.44 2011/07/06 20:56:49 eldy Exp $ * \version $Id: document.php,v 1.45 2011/07/14 05:21:53 hregis Exp $
*/ */
require("../../main.inc.php"); require("../../main.inc.php");
@ -115,7 +115,7 @@ if ($action == 'confirm_deletefile' && $confirm == 'yes')
$upload_dir = $conf->facture->dir_output . "/" . dol_sanitizeFileName($object->ref); $upload_dir = $conf->facture->dir_output . "/" . dol_sanitizeFileName($object->ref);
$file = $upload_dir . '/' . $_GET['urlfile']; // Do not use urldecode here ($_GET and $_REQUEST are already decoded by PHP). $file = $upload_dir . '/' . $_GET['urlfile']; // Do not use urldecode here ($_GET and $_REQUEST are already decoded by PHP).
dol_delete_file($file); dol_delete_file($file,0,0,0,'FILE_DELETE',$object);
$mesg = '<div class="ok">'.$langs->trans("FileWasRemoved").'</div>'; $mesg = '<div class="ok">'.$langs->trans("FileWasRemoved").'</div>';
} }
} }
@ -213,5 +213,5 @@ else
$db->close(); $db->close();
llxFooter('$Date: 2011/07/06 20:56:49 $ - $Revision: 1.44 $'); llxFooter('$Date: 2011/07/14 05:21:53 $ - $Revision: 1.45 $');
?> ?>

View File

@ -75,9 +75,12 @@ NewCotisation=Nova afiliació
PaymentSubscription=Pagament de quotes PaymentSubscription=Pagament de quotes
EditMember=Edició membre EditMember=Edició membre
SubscriptionEndDate=Data fi afiliació SubscriptionEndDate=Data fi afiliació
NewAttribute=Nou atribut
AttributeCode=Codi de l'atribut
OptionalFieldsSetup=Configuració dels camps opcionals
MembersTypeSetup=Configuració dels tipus de membres MembersTypeSetup=Configuració dels tipus de membres
NewSubscription=Nova afiliació NewSubscription=Nova afiliació
NewSubscriptionDesc=Utilitzi aquest formulari per registrar-se com un nou membre de l'associació. Per a una renovació, si ja és membre, poseu-vos en contacte amb l'associació. NewSubscriptionDesc=Utilitzi aquest formulari per registrar-se com un nou membre de l'associació. Per a una renovació, si ja és membre, poseu-vos en contacte amb l'associació mitjançant l'e-mail %s.
Subscription=Afiliació Subscription=Afiliació
Subscriptions=Afiliacions Subscriptions=Afiliacions
SubscriptionLate=En retard SubscriptionLate=En retard
@ -193,3 +196,4 @@ Associations=Asssociacions
Collectivités=Col.lectivitats Collectivités=Col.lectivitats
Particuliers=Particulars Particuliers=Particulars
Entreprises=Empreses Entreprises=Empreses
DOLIBARRFOUNDATION_PAYMENT_FORM=Per realitzar el pagament de la seva cotització per transferència bancària, visiteu la pàgina <a target="_blank" href="http://wiki.dolibarr.org/index.php/Subscribirse#Para_una_adhesi.C3.B3n_por_transferencia">http://wiki.dolibarr.org/index.php/Subscribirse</a>.<br>Per pagar amb targeta de crèdit o PayPal, feu clic al botó a la part inferior d'aquesta pàgina.<br><br>

View File

@ -75,9 +75,12 @@ NewCotisation=Nueva afiliación
PaymentSubscription=Pago de cuotas PaymentSubscription=Pago de cuotas
EditMember=Edición miembro EditMember=Edición miembro
SubscriptionEndDate=Fecha fin afiliación SubscriptionEndDate=Fecha fin afiliación
NewAttribute=Nuevo atributo
AttributeCode=Código del atributo
OptionalFieldsSetup=Configuración de los campos opcionales
MembersTypeSetup=Configuración de los tipos de miembros MembersTypeSetup=Configuración de los tipos de miembros
NewSubscription=Nueva afiliación NewSubscription=Nueva afiliación
NewSubscriptionDesc=Utilice este formulario para registrarse como un nuevo miembro de la asociación. Para una renovación, si ya es miembro, póngase en contacto con la asociación. NewSubscriptionDesc=Utilice este formulario para registrarse como un nuevo miembro de la asociación. Para una renovación, si ya es miembro, póngase en contacto con la asociación a través del e-mail %s.
Subscription=Afiliación Subscription=Afiliación
Subscriptions=Afiliaciones Subscriptions=Afiliaciones
SubscriptionLate=En retraso SubscriptionLate=En retraso
@ -193,3 +196,4 @@ Associations=Asociaciones
Collectivités=Colectividades Collectivités=Colectividades
Particuliers=Particulares Particuliers=Particulares
Entreprises=Empresas Entreprises=Empresas
DOLIBARRFOUNDATION_PAYMENT_FORM=Para realizar el pago de su cotización por transferencia bancaria, visite la página <a target="_blank" href="http://wiki.dolibarr.org/index.php/Subscribirse#Para_una_adhesi.C3.B3n_por_transferencia">http://wiki.dolibarr.org/index.php/Subscribirse</a>.<br>Para pagar con tarjeta de crédito o PayPal, haga clic en el botón en la parte inferior de esta página.<br><br>

View File

@ -20,7 +20,7 @@
/** /**
* \file htdocs/lib/files.lib.php * \file htdocs/lib/files.lib.php
* \brief Library for file managing functions * \brief Library for file managing functions
* \version $Id: files.lib.php,v 1.69 2011/07/13 21:33:38 eldy Exp $ * \version $Id: files.lib.php,v 1.70 2011/07/14 05:21:53 hregis Exp $
*/ */
/** /**
@ -590,7 +590,7 @@ function dol_move_uploaded_file($src_file, $dest_file, $allowoverwrite, $disable
* @param disableglob Disable usage of glob like * * @param disableglob Disable usage of glob like *
* @param nophperrors Disable all PHP output errors * @param nophperrors Disable all PHP output errors
* @param notrigger Disable all triggers * @param notrigger Disable all triggers
* @param triggercode Code of trigger * @param triggercode Code of trigger TODO ???? why ?
* @param object Object for trigger * @param object Object for trigger
* @return boolean True if file is deleted, False if error * @return boolean True if file is deleted, False if error
*/ */

View File

@ -1,6 +1,7 @@
<?php <?php
/* Copyright (C) 2006-2011 Laurent Destailleur <eldy@users.sourceforge.net> /* Copyright (C) 2006-2011 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2010 Regis Houssin <regis@dolibarr.fr> * Copyright (C) 2010 Regis Houssin <regis@dolibarr.fr>
* Copyright (C) 2011 Juanjo Menent <jmenent@2byte.es>
* *
* This program is free software; you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License as published by
@ -22,7 +23,7 @@
* \file htdocs/lib/project.lib.php * \file htdocs/lib/project.lib.php
* \brief Functions used by project module * \brief Functions used by project module
* \ingroup project * \ingroup project
* \version $Id: project.lib.php,v 1.68 2011/07/04 09:01:38 eldy Exp $ * \version $Id: project.lib.php,v 1.69 2011/07/14 15:37:37 simnandez Exp $
*/ */
require_once(DOL_DOCUMENT_ROOT."/projet/class/project.class.php"); require_once(DOL_DOCUMENT_ROOT."/projet/class/project.class.php");
@ -98,7 +99,7 @@ function project_prepare_head($object)
* \file htdocs/lib/project.lib.php * \file htdocs/lib/project.lib.php
* \brief Ensemble de fonctions de base pour le module projet * \brief Ensemble de fonctions de base pour le module projet
* \ingroup societe * \ingroup societe
* \version $Id: project.lib.php,v 1.68 2011/07/04 09:01:38 eldy Exp $ * \version $Id: project.lib.php,v 1.69 2011/07/14 15:37:37 simnandez Exp $
*/ */
function task_prepare_head($object) function task_prepare_head($object)
{ {
@ -375,6 +376,9 @@ function PLines(&$inc, $parent, &$lines, &$level, $var, $showproject, &$taskrole
$projectsArrayId=explode(',',$projectsListId); $projectsArrayId=explode(',',$projectsListId);
$numlines=sizeof($lines); $numlines=sizeof($lines);
$total=0;
for ($i = 0 ; $i < $numlines ; $i++) for ($i = 0 ; $i < $numlines ; $i++)
{ {
if ($parent == 0) $level = 0; if ($parent == 0) $level = 0;
@ -485,6 +489,7 @@ function PLines(&$inc, $parent, &$lines, &$level, $var, $showproject, &$taskrole
$level++; $level++;
if ($lines[$i]->id) PLines($inc, $lines[$i]->id, $lines, $level, $var, $showproject, $taskrole, $projectsListId); if ($lines[$i]->id) PLines($inc, $lines[$i]->id, $lines, $level, $var, $showproject, $taskrole, $projectsListId);
$level--; $level--;
$total += $lines[$i]->duration;
} }
} }
else else
@ -493,6 +498,14 @@ function PLines(&$inc, $parent, &$lines, &$level, $var, $showproject, &$taskrole
} }
} }
if ($total>0)
{
print '<tr class="liste_total"><td class="liste_total">'.$langs->trans("Total").'</td>';
print '<td></td>';
print '<td></td>';
print '<td align="right" nowrap="nowrap" class="liste_total">'.ConvertSecondToTime($total).'</td></tr>';
}
return $inc; return $inc;
} }

View File

@ -2,6 +2,7 @@
/* Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org> /* Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2006-2010 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2006-2010 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2010 Regis Houssin <regis@dolibarr.fr> * Copyright (C) 2010 Regis Houssin <regis@dolibarr.fr>
* Copyright (C) 2011 Juanjo Menent <jmenent@2byte.es>
* *
* This program is free software; you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License as published by
@ -22,7 +23,7 @@
* \file htdocs/projet/tasks/time.php * \file htdocs/projet/tasks/time.php
* \ingroup projet * \ingroup projet
* \brief Page to add new time spent on a task * \brief Page to add new time spent on a task
* \version $Id$ * \version $Id: time.php,v 1.32 2011/07/14 15:37:37 simnandez Exp $
*/ */
require("../../main.inc.php"); require("../../main.inc.php");
@ -308,6 +309,7 @@ if ($_GET["id"] > 0)
print '<td>&nbsp;</td>'; print '<td>&nbsp;</td>';
print "</tr>\n"; print "</tr>\n";
$total = 0;
foreach ($tasks as $task_time) foreach ($tasks as $task_time)
{ {
$var=!$var; $var=!$var;
@ -389,7 +391,11 @@ if ($_GET["id"] > 0)
print '</td>'; print '</td>';
print "</tr>\n"; print "</tr>\n";
$total += $task_time->task_duration;
} }
print '<tr class="liste_total"><td colspan="3" class="liste_total">'.$langs->trans("Total").'</td>';
print '<td align="right" nowrap="nowrap" class="liste_total">'.ConvertSecondToTime($total).'</td><td>&nbsp;</td>';
print '</tr>';
print "</table>"; print "</table>";
print "</form>"; print "</form>";
@ -398,5 +404,5 @@ if ($_GET["id"] > 0)
$db->close(); $db->close();
llxFooter('$Date$ - $Revision$'); llxFooter('$Date: 2011/07/14 15:37:37 $ - $Revision: 1.32 $');
?> ?>

View File

@ -23,7 +23,7 @@
* \file htdocs/societe/document.php * \file htdocs/societe/document.php
* \brief Tab for documents linked to third party * \brief Tab for documents linked to third party
* \ingroup societe * \ingroup societe
* \version $Id: document.php,v 1.37 2011/07/06 20:56:49 eldy Exp $ * \version $Id: document.php,v 1.38 2011/07/14 05:21:52 hregis Exp $
*/ */
require("../main.inc.php"); require("../main.inc.php");
@ -118,7 +118,7 @@ if ($action == 'confirm_deletefile' && $confirm == 'yes')
if ($object->fetch($socid)) if ($object->fetch($socid))
{ {
$file = $upload_dir . "/" . $_GET['urlfile']; // Do not use urldecode here ($_GET and $_REQUEST are already decoded by PHP). $file = $upload_dir . "/" . $_GET['urlfile']; // Do not use urldecode here ($_GET and $_REQUEST are already decoded by PHP).
dol_delete_file($file); dol_delete_file($file,0,0,0,'FILE_DELETE',$object);
$mesg = '<div class="ok">'.$langs->trans("FileWasRemoved").'</div>'; $mesg = '<div class="ok">'.$langs->trans("FileWasRemoved").'</div>';
} }
} }
@ -241,6 +241,6 @@ else
$db->close(); $db->close();
llxFooter('$Date: 2011/07/06 20:56:49 $ - $Revision: 1.37 $'); llxFooter('$Date: 2011/07/14 05:21:52 $ - $Revision: 1.38 $');
?> ?>