Modifications pour préparer le drag and drop des boites par ajax
This commit is contained in:
parent
a3657bc09a
commit
296f0fbadb
@ -208,7 +208,19 @@ if (isset($_GET["action"]) && $_GET["action"] == 'edit')
|
|||||||
print '<table class="noborder" width="100%">';
|
print '<table class="noborder" width="100%">';
|
||||||
print '<tr class="liste_titre"><td>'.$langs->trans("Parameter").'</td><td>'.$langs->trans("Value").'</td></tr>';
|
print '<tr class="liste_titre"><td>'.$langs->trans("Parameter").'</td><td>'.$langs->trans("Value").'</td></tr>';
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
print '<tr '.$bc[$var].'><td width="35%">'.$langs->trans("MessageOfDay").'</td><td><textarea cols="60" rows="3" name="main_motd" size="20">' . stripslashes($conf->global->MAIN_MOTD) . '</textarea></td></tr>';
|
print '<tr '.$bc[$var].'><td width="35%">'.$langs->trans("MessageOfDay").'</td><td>';
|
||||||
|
if ($conf->fckeditor->enabled)
|
||||||
|
{
|
||||||
|
// Editeur wysiwyg
|
||||||
|
require_once(DOL_DOCUMENT_ROOT."/lib/doleditor.class.php");
|
||||||
|
$doleditor=new DolEditor('main_motd',$conf->global->MAIN_MOTD,158,'dolibarr_notes','In',true);
|
||||||
|
$doleditor->Create();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print '<textarea name="main_motd" cols="90" rows="'.ROWS_5.'">'.$conf->global->MAIN_MOTD.'</textarea>';
|
||||||
|
}
|
||||||
|
print '</td></tr>';
|
||||||
print '</table>';
|
print '</table>';
|
||||||
|
|
||||||
print '<br><center>';
|
print '<br><center>';
|
||||||
@ -315,11 +327,14 @@ else
|
|||||||
print '</table>';
|
print '</table>';
|
||||||
print '<br>';
|
print '<br>';
|
||||||
|
|
||||||
|
// Message of the day
|
||||||
$var=true;
|
$var=true;
|
||||||
print '<table class="noborder" width="100%">';
|
print '<table class="noborder" width="100%">';
|
||||||
print '<tr class="liste_titre"><td>'.$langs->trans("Parameter").'</td><td>'.$langs->trans("Value").'</td></tr>';
|
print '<tr class="liste_titre"><td>'.$langs->trans("Parameter").'</td><td>'.$langs->trans("Value").'</td></tr>';
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
print '<tr '.$bc[$var].'><td width="35%">'.$langs->trans("MessageOfDay").'</td><td>' . stripslashes(nl2br($conf->global->MAIN_MOTD)) . '</td></tr>';
|
print '<tr '.$bc[$var].'><td width="35%">'.$langs->trans("MessageOfDay").'</td><td>';
|
||||||
|
print nl2br($conf->global->MAIN_MOTD);
|
||||||
|
print '</td></tr>';
|
||||||
print '</table>';
|
print '</table>';
|
||||||
|
|
||||||
print '<div class="tabsAction">';
|
print '<div class="tabsAction">';
|
||||||
|
|||||||
@ -65,8 +65,10 @@ class ModeleBoxes
|
|||||||
$nbcol=sizeof($contents[0])+1;
|
$nbcol=sizeof($contents[0])+1;
|
||||||
$nblines=sizeof($contents);
|
$nblines=sizeof($contents);
|
||||||
|
|
||||||
print "\n<!-- Box start -->\n";
|
print "\n\n<!-- Box start -->\n";
|
||||||
print '<table width="100%" class="noborder">';
|
print '<table width="100%" class="noborder"';
|
||||||
|
if (isset($this->boxid)) print ' id="boxobject_'.$this->boxid.'"';
|
||||||
|
print '>';
|
||||||
|
|
||||||
// Affiche titre de la boite
|
// Affiche titre de la boite
|
||||||
print '<tr class="box_titre"><td';
|
print '<tr class="box_titre"><td';
|
||||||
@ -157,7 +159,7 @@ class ModeleBoxes
|
|||||||
|
|
||||||
print "</table>";
|
print "</table>";
|
||||||
|
|
||||||
print "\n<!-- Box end -->\n";
|
print "\n<!-- Box end -->\n\n";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -608,7 +608,6 @@ list-style-type:none;
|
|||||||
margin:0px;
|
margin:0px;
|
||||||
padding:0px;
|
padding:0px;
|
||||||
spacing:0px;
|
spacing:0px;
|
||||||
cursor:move;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.notopnoleft {
|
.notopnoleft {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user