standardise sur "document"
This commit is contained in:
parent
11159b0f81
commit
cd57be1e29
@ -115,15 +115,15 @@ exemples :<br>
|
|||||||
</td><td class="label" valign="top"><input type="text" size="60" value="
|
</td><td class="label" valign="top"><input type="text" size="60" value="
|
||||||
<?PHP
|
<?PHP
|
||||||
|
|
||||||
//print ereg_replace("htdocs","documents",$dolibarr_main_document_root);
|
//print ereg_replace("htdocs","document",$dolibarr_main_document_root);
|
||||||
print $dolibarr_main_document_root."/documents";
|
print $dolibarr_main_document_root."/document";
|
||||||
?>
|
?>
|
||||||
" name="main_data_dir">
|
" name="main_data_dir">
|
||||||
</td><td class="comment">
|
</td><td class="comment">
|
||||||
Sans le slash "/" à la fin<br>
|
Sans le slash "/" à la fin<br>
|
||||||
exemples :<br>
|
exemples :<br>
|
||||||
<li>/var/www/dolibarr/documents</li>
|
<li>/var/www/dolibarr/document</li>
|
||||||
<li>C:/wwwroot/dolibarr/documents</li>
|
<li>C:/wwwroot/dolibarr/document</li>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|||||||
@ -65,15 +65,15 @@ if ($_GET["id"])
|
|||||||
|
|
||||||
if ( $result )
|
if ( $result )
|
||||||
{
|
{
|
||||||
$dir = DOL_DOCUMENT_ROOT."/documents/produit/".$product->id;
|
$dir = DOL_DOCUMENT_ROOT."/document/produit/".$product->id;
|
||||||
if (! file_exists($dir))
|
if (! file_exists($dir))
|
||||||
{
|
{
|
||||||
umask(0);
|
umask(0);
|
||||||
if(is_dir(DOL_DOCUMENT_ROOT."/documents/produits"))
|
if(is_dir(DOL_DOCUMENT_ROOT."/document/produits"))
|
||||||
rmdir(DOL_DOCUMENT_ROOT."/documents/produits");
|
rmdir(DOL_DOCUMENT_ROOT."/document/produits");
|
||||||
//mkdir(DOL_DOCUMENT_ROOT."/documents");
|
//mkdir(DOL_DOCUMENT_ROOT."/document");
|
||||||
if(!file_exists(DOL_DOCUMENT_ROOT."/documents/produit"))
|
if(!file_exists(DOL_DOCUMENT_ROOT."/document/produit"))
|
||||||
mkdir(DOL_DOCUMENT_ROOT."/documents/produit");
|
mkdir(DOL_DOCUMENT_ROOT."/document/produit");
|
||||||
if (! mkdir($dir, 0755))
|
if (! mkdir($dir, 0755))
|
||||||
{
|
{
|
||||||
$mesg = $langs->trans("ErrorCanNotCreateDir",$dir);
|
$mesg = $langs->trans("ErrorCanNotCreateDir",$dir);
|
||||||
@ -155,10 +155,10 @@ if ($_GET["id"])
|
|||||||
print '<td align="center" width="50%" colspan="2">Nombre de pièces vendues</td></tr>';
|
print '<td align="center" width="50%" colspan="2">Nombre de pièces vendues</td></tr>';
|
||||||
print '<tr><td align="center" colspan="2">';
|
print '<tr><td align="center" colspan="2">';
|
||||||
|
|
||||||
print '<img src="'.DOL_URL_ROOT.'/documents/produit/'.$product->id.'/vente12mois.png" alt="Ventes sur les 12 derniers mois">';
|
print '<img src="'.DOL_URL_ROOT.'/document/produit/'.$product->id.'/vente12mois.png" alt="Ventes sur les 12 derniers mois">';
|
||||||
|
|
||||||
print '</td><td align="center" colspan="2">';
|
print '</td><td align="center" colspan="2">';
|
||||||
print '<img src="'.DOL_URL_ROOT.'/documents/produit/'.$product->id.'/vendu12mois.png" alt="Ventes sur les 12 derniers mois">';
|
print '<img src="'.DOL_URL_ROOT.'/document/produit/'.$product->id.'/vendu12mois.png" alt="Ventes sur les 12 derniers mois">';
|
||||||
|
|
||||||
print '</td></tr><tr>';
|
print '</td></tr><tr>';
|
||||||
if (file_exists($filenbvente) && filemtime($filenbvente))
|
if (file_exists($filenbvente) && filemtime($filenbvente))
|
||||||
@ -185,7 +185,7 @@ if ($_GET["id"])
|
|||||||
print '<td align="center" width="50%" colspan="2">-</td></tr>';
|
print '<td align="center" width="50%" colspan="2">-</td></tr>';
|
||||||
print '<tr><td align="center" colspan="2">';
|
print '<tr><td align="center" colspan="2">';
|
||||||
|
|
||||||
print '<img src="'.DOL_URL_ROOT.'/documents/produit/'.$product->id.'/'.$img_propal_name.'" alt="Propales sur les 12 derniers mois">';
|
print '<img src="'.DOL_URL_ROOT.'/document/produit/'.$product->id.'/'.$img_propal_name.'" alt="Propales sur les 12 derniers mois">';
|
||||||
|
|
||||||
print '</td><td align="center" colspan="2">TODO AUTRE GRAPHIQUE';
|
print '</td><td align="center" colspan="2">TODO AUTRE GRAPHIQUE';
|
||||||
|
|
||||||
|
|||||||
@ -3,8 +3,8 @@
|
|||||||
#
|
#
|
||||||
# Prepare l'installation web de Dolibarr
|
# Prepare l'installation web de Dolibarr
|
||||||
#
|
#
|
||||||
mkdir documents
|
mkdir document
|
||||||
chown www-data documents
|
chown www-data document
|
||||||
mkdir htdocs/document
|
mkdir htdocs/document
|
||||||
chown www-data htdocs/document
|
chown www-data htdocs/document
|
||||||
touch htdocs/conf/conf.php
|
touch htdocs/conf/conf.php
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user