Dbut ajout du module FCKeditor en statut "development"
This commit is contained in:
parent
a5154c5a3c
commit
337d209090
@ -1159,7 +1159,18 @@ if ($_GET['propalid'] > 0)
|
||||
print ' - '.nl2br($objp->product);
|
||||
print '<br>';
|
||||
}
|
||||
print '<textarea name="desc" cols="50" class="flat" rows="'.ROWS_2.'">'.$objp->description.'</textarea></td>';
|
||||
if ($conf->fckeditor->enabled)
|
||||
{
|
||||
require_once(DOL_DOCUMENT_ROOT."/includes/fckeditor/fckeditor.php");
|
||||
$oFCKeditor = new FCKeditor('desc');
|
||||
$oFCKeditor->Value = $objp->description;
|
||||
$oFCKeditor->Create() ;
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<textarea name="desc" cols="50" class="flat" rows="'.ROWS_2.'">'.$objp->description.'</textarea>';
|
||||
}
|
||||
print '</td>';
|
||||
print '<td align="right">';
|
||||
if($societe->tva_assuj == "0")
|
||||
print '<input type="hidden" name="tva_tx" value="0">0';
|
||||
|
||||
@ -2203,7 +2203,7 @@ else
|
||||
}
|
||||
|
||||
// On vérifie si la facture est supprimable. Si oui, on propose bouton supprimer
|
||||
if ($fac->is_erasable() && $user->rights->facture->supprimer && $_GET['action'] != 'delete')
|
||||
if ($fac->statut == 0 && $fac->is_erasable() && $user->rights->facture->supprimer && $_GET['action'] != 'delete')
|
||||
{
|
||||
print '<a class="butActionDelete" href="'.$_SERVER["PHP_SELF"].'?facid='.$fac->id.'&action=delete">'.$langs->trans('Delete').'</a>';
|
||||
}
|
||||
|
||||
@ -270,6 +270,8 @@ class Conf
|
||||
$this->export->dir_ouput=DOL_DATA_ROOT."/export";
|
||||
// Module ldap
|
||||
$this->ldap->enabled=defined("MAIN_MODULE_LDAP")?MAIN_MODULE_LDAP:0;
|
||||
// Module FCKeditor
|
||||
$this->fckeditor->enabled=defined("MAIN_MODULE_FCKEDITOR")?MAIN_MODULE_FCKEDITOR:0;
|
||||
|
||||
|
||||
/*
|
||||
|
||||
@ -146,6 +146,7 @@ $langs->setPhpLang($conf->global->MAIN_LANG_DEFAULT);
|
||||
* Pour MagpieRss: MAGPIERSS_PATH
|
||||
* Pour JPGraph: JPGRAPH_PATH
|
||||
* Pour NuSOAP: NUSOAP_PATH
|
||||
* Pour TCPDF: TCPDF_PATH
|
||||
*/
|
||||
// Les path racines
|
||||
if (! defined('FPDF_PATH')) { define('FPDF_PATH', DOL_DOCUMENT_ROOT .'/includes/fpdf/fpdf/'); }
|
||||
@ -155,8 +156,11 @@ if (! defined('PHPLOT_PATH')) { define('PHPLOT_PATH', DOL_DOCUMEN
|
||||
if (! defined('MAGPIERSS_PATH')) { define('MAGPIERSS_PATH', DOL_DOCUMENT_ROOT .'/includes/magpierss/'); }
|
||||
if (! defined('JPGRAPH_PATH')) { define('JPGRAPH_PATH', DOL_DOCUMENT_ROOT .'/includes/jpgraph/'); }
|
||||
if (! defined('NUSOAP_PATH')) { define('NUSOAP_PATH', DOL_DOCUMENT_ROOT .'/includes/nusoap/lib/'); }
|
||||
if (! defined('TCPDF_PATH')) { define('TCPDF_PATH', DOL_DOCUMENT_ROOT .'/includes/fpdf/tcpdf/'); }
|
||||
// Les autres path
|
||||
if (! defined('FPDF_FONTPATH')) { define('FPDF_FONTPATH', FPDF_PATH . 'font/'); }
|
||||
if (! defined('FPDF_FONTPATH') && ! $conf->fckeditor->enabled){
|
||||
define('FPDF_FONTPATH', FPDF_PATH . 'font/');
|
||||
}else{ define('FPDF_FONTPATH', TCPDF_PATH . 'fonts/');}
|
||||
if (! defined('MAGPIE_DIR')) { define('MAGPIE_DIR', MAGPIERSS_PATH); }
|
||||
if (! defined('MAGPIE_CACHE_DIR')) { define('MAGPIE_CACHE_DIR', DOL_DATA_ROOT .'/rsscache'); }
|
||||
|
||||
|
||||
@ -450,7 +450,18 @@ if ($_GET["action"] == 'create' && $user->rights->produit->creer)
|
||||
|
||||
// Description
|
||||
print '<tr><td valign="top">'.$langs->trans("Description").'</td><td>';
|
||||
print '<textarea name="desc" rows="4" cols="50">';
|
||||
|
||||
if ($conf->fckeditor->enabled)
|
||||
{
|
||||
require_once(DOL_DOCUMENT_ROOT."/includes/fckeditor/fckeditor.php");
|
||||
$oFCKeditor = new FCKeditor('desc');
|
||||
$oFCKeditor->Create() ;
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<textarea name="desc" rows="4" cols="50">';
|
||||
}
|
||||
|
||||
print "</textarea></td></tr>";
|
||||
|
||||
if ($_GET["type"] == 1)
|
||||
@ -753,9 +764,22 @@ if ($_GET["id"] || $_GET["ref"])
|
||||
|
||||
// Description
|
||||
print '<tr><td valign="top">'.$langs->trans("Description").'</td><td colspan="2">';
|
||||
print '<textarea name="desc" rows="4" cols="50">';
|
||||
print $product->description;
|
||||
print "</textarea></td></tr>";
|
||||
print "\n";
|
||||
if ($conf->fckeditor->enabled)
|
||||
{
|
||||
require_once(DOL_DOCUMENT_ROOT."/includes/fckeditor/fckeditor.php");
|
||||
$oFCKeditor = new FCKeditor('desc');
|
||||
$oFCKeditor->Value = $product->description;
|
||||
$oFCKeditor->Create() ;
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<textarea name="desc" rows="4" cols="50">';
|
||||
print $product->description;
|
||||
print "</textarea>";
|
||||
print "</td></tr>";
|
||||
}
|
||||
print "\n";
|
||||
|
||||
if ($product->type == 1)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user