Modif langs
This commit is contained in:
parent
fccced1582
commit
0ed419596f
@ -34,7 +34,6 @@ require_once(DOL_DOCUMENT_ROOT."/facture.class.php");
|
|||||||
require_once(DOL_DOCUMENT_ROOT."/lib/invoice.lib.php");
|
require_once(DOL_DOCUMENT_ROOT."/lib/invoice.lib.php");
|
||||||
|
|
||||||
$langs->load('propal');
|
$langs->load('propal');
|
||||||
$langs->load("bills");
|
|
||||||
$langs->load('compta');
|
$langs->load('compta');
|
||||||
$langs->load('other');
|
$langs->load('other');
|
||||||
|
|
||||||
@ -54,25 +53,25 @@ $action=empty($_GET['action']) ? (empty($_POST['action']) ? '' : $_POST['action'
|
|||||||
// Envoi fichier
|
// Envoi fichier
|
||||||
if ($_POST["sendit"] && $conf->upload)
|
if ($_POST["sendit"] && $conf->upload)
|
||||||
{
|
{
|
||||||
$facture = new Facture($db);
|
$facture = new Facture($db);
|
||||||
|
|
||||||
if ($facture->fetch($facid))
|
if ($facture->fetch($facid))
|
||||||
{
|
{
|
||||||
$upload_dir = $conf->facture->dir_output . "/" . $facture->ref;
|
$upload_dir = $conf->facture->dir_output . "/" . $facture->ref;
|
||||||
if (! is_dir($upload_dir)) create_exdir($upload_dir);
|
if (! is_dir($upload_dir)) create_exdir($upload_dir);
|
||||||
|
|
||||||
if (is_dir($upload_dir))
|
if (is_dir($upload_dir))
|
||||||
{
|
{
|
||||||
if (doliMoveFileUpload($_FILES['userfile']['tmp_name'], $upload_dir . "/" . $_FILES['userfile']['name']))
|
if (doliMoveFileUpload($_FILES['userfile']['tmp_name'], $upload_dir . "/" . $_FILES['userfile']['name']))
|
||||||
{
|
{
|
||||||
$mesg = '<div class="ok">'.$langs->trans("FileTransferComplete").'</div>';
|
$mesg = '<div class="ok">'.$langs->trans("FileTransferComplete").'</div>';
|
||||||
//print_r($_FILES);
|
//print_r($_FILES);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Echec transfert (fichier dépassant la limite ?)
|
// Echec transfert (fichier dépassant la limite ?)
|
||||||
$mesg = '<div class="error">'.$langs->trans("ErrorFileNotUploaded").'</div>';
|
$mesg = '<div class="error">'.$langs->trans("ErrorFileNotUploaded").'</div>';
|
||||||
// print_r($_FILES);
|
// print_r($_FILES);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -82,7 +81,7 @@ if ($_POST["sendit"] && $conf->upload)
|
|||||||
if ($action=='delete')
|
if ($action=='delete')
|
||||||
{
|
{
|
||||||
$facture = new Facture($db);
|
$facture = new Facture($db);
|
||||||
|
|
||||||
if ($facture->fetch($facid))
|
if ($facture->fetch($facid))
|
||||||
{
|
{
|
||||||
$upload_dir = $conf->facture->dir_output . "/" . $facture->ref;
|
$upload_dir = $conf->facture->dir_output . "/" . $facture->ref;
|
||||||
@ -157,9 +156,8 @@ if ($facid > 0)
|
|||||||
|
|
||||||
print '<tr><td>'.$langs->trans("NbOfAttachedFiles").'</td><td colspan="3">'.sizeof($filearray).'</td></tr>';
|
print '<tr><td>'.$langs->trans("NbOfAttachedFiles").'</td><td colspan="3">'.sizeof($filearray).'</td></tr>';
|
||||||
print '<tr><td>'.$langs->trans("TotalSizeOfAttachedFiles").'</td><td colspan="3">'.$totalsize.' '.$langs->trans("bytes").'</td></tr>';
|
print '<tr><td>'.$langs->trans("TotalSizeOfAttachedFiles").'</td><td colspan="3">'.$totalsize.' '.$langs->trans("bytes").'</td></tr>';
|
||||||
print '</table>';
|
print "</table>\n";
|
||||||
|
print "</div>\n";
|
||||||
print '</div>';
|
|
||||||
|
|
||||||
if ($mesg) { print $mesg."<br>"; }
|
if ($mesg) { print $mesg."<br>"; }
|
||||||
|
|
||||||
@ -175,8 +173,7 @@ if ($facid > 0)
|
|||||||
print '<td>'.$langs->trans("Document").'</td>';
|
print '<td>'.$langs->trans("Document").'</td>';
|
||||||
print '<td align="right">'.$langs->trans("Size").'</td>';
|
print '<td align="right">'.$langs->trans("Size").'</td>';
|
||||||
print '<td align="center">'.$langs->trans("Date").'</td>';
|
print '<td align="center">'.$langs->trans("Date").'</td>';
|
||||||
print '<td> </td>';
|
print "<td> </td></tr>\n";
|
||||||
print '</tr>';
|
|
||||||
|
|
||||||
if (is_dir($upload_dir))
|
if (is_dir($upload_dir))
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user