forked from Wavyzz/dolibarr
Debug v17
This commit is contained in:
@@ -675,17 +675,27 @@ if (!empty($user->admin) && (empty($_SESSION['leftmenu']) || $_SESSION['leftmenu
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Confirmation de la suppression de la ligne
|
// Confirm deletion of record
|
||||||
if ($action == 'delete') {
|
if ($action == 'delete') {
|
||||||
print $form->formconfirm($_SERVER["PHP_SELF"].'?'.($page ? 'page='.$page.'&' : '').'sortfield='.$sortfield.'&sortorder='.$sortorder.'&rowid='.$rowid.'&code='.$code.'&id='.$id, $langs->trans('DeleteLine'), $langs->trans('ConfirmDeleteLine'), 'confirm_delete', '', 0, 1);
|
print $form->formconfirm($_SERVER["PHP_SELF"].'?'.($page ? 'page='.$page.'&' : '').'sortfield='.$sortfield.'&sortorder='.$sortorder.'&rowid='.((int) $rowid).'&code='.urlencode($code).'&id='.((int) $id), $langs->trans('DeleteLine'), $langs->trans('ConfirmDeleteLine'), 'confirm_delete', '', 0, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$fieldlist = explode(',', $tabfield[$id]);
|
$fieldlist = explode(',', $tabfield[$id]);
|
||||||
|
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
|
// If data was already input, we define them in obj to populate input fields.
|
||||||
|
$obj = new stdClass();
|
||||||
|
$obj->label = GETPOST('label');
|
||||||
|
$obj->lang = GETPOST('lang');
|
||||||
|
$obj->type_template = GETPOST('type_template');
|
||||||
|
$obj->fk_user = GETPOST('fk_user', 'int');
|
||||||
|
$obj->private = GETPOST('private', 'int');
|
||||||
|
$obj->position = GETPOST('position');
|
||||||
|
$obj->topic = GETPOST('topic');
|
||||||
|
$obj->joinfiles = GETPOST('joinfiles');
|
||||||
|
$obj->content = GETPOST('content', 'restricthtml');
|
||||||
|
|
||||||
// Form to add a new line
|
// Form to add a new line
|
||||||
print '<form action="'.$_SERVER['PHP_SELF'].'?id='.$id.'" method="POST">';
|
print '<form action="'.$_SERVER['PHP_SELF'].'?id='.$id.'" method="POST">';
|
||||||
print '<input type="hidden" name="token" value="'.newToken().'">';
|
print '<input type="hidden" name="token" value="'.newToken().'">';
|
||||||
@@ -761,16 +771,6 @@ if ($action == 'create') {
|
|||||||
print '</th>';
|
print '</th>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
$obj = new stdClass();
|
|
||||||
// If data was already input, we define them in obj to populate input fields.
|
|
||||||
if (GETPOST('actionadd')) {
|
|
||||||
foreach ($fieldlist as $key => $val) {
|
|
||||||
if (GETPOST($val) != '') {
|
|
||||||
$obj->$val = GETPOST($val);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$tmpaction = 'create';
|
$tmpaction = 'create';
|
||||||
$parameters = array(
|
$parameters = array(
|
||||||
'fieldlist' => $fieldlist,
|
'fieldlist' => $fieldlist,
|
||||||
@@ -828,7 +828,6 @@ if ($action == 'create') {
|
|||||||
if (empty($conf->global->FCKEDITOR_ENABLE_MAIL)) {
|
if (empty($conf->global->FCKEDITOR_ENABLE_MAIL)) {
|
||||||
$okforextended = false;
|
$okforextended = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$doleditor = new DolEditor($tmpfieldlist, (!empty($obj->$tmpfieldlist) ? $obj->$tmpfieldlist : ''), '', 180, 'dolibarr_mailings', 'In', false, $acceptlocallinktomedia, $okforextended, ROWS_4, '90%');
|
$doleditor = new DolEditor($tmpfieldlist, (!empty($obj->$tmpfieldlist) ? $obj->$tmpfieldlist : ''), '', 180, 'dolibarr_mailings', 'In', false, $acceptlocallinktomedia, $okforextended, ROWS_4, '90%');
|
||||||
print $doleditor->Create(1);
|
print $doleditor->Create(1);
|
||||||
}
|
}
|
||||||
@@ -848,7 +847,7 @@ if ($action == 'create') {
|
|||||||
print '</div>';
|
print '</div>';
|
||||||
print '</form>';
|
print '</form>';
|
||||||
print '<br><br>';
|
print '<br><br>';
|
||||||
} // END IF not edit
|
}
|
||||||
|
|
||||||
// List of available record in database
|
// List of available record in database
|
||||||
dol_syslog("htdocs/admin/dict", LOG_DEBUG);
|
dol_syslog("htdocs/admin/dict", LOG_DEBUG);
|
||||||
|
|||||||
@@ -5371,10 +5371,10 @@ function load_fiche_titre($titre, $morehtmlright = '', $picto = 'generic', $pict
|
|||||||
$return .= '<div class="titre inline-block">'.$titre.'</div>';
|
$return .= '<div class="titre inline-block">'.$titre.'</div>';
|
||||||
$return .= '</td>';
|
$return .= '</td>';
|
||||||
if (dol_strlen($morehtmlcenter)) {
|
if (dol_strlen($morehtmlcenter)) {
|
||||||
$return .= '<td class="nobordernopadding center valignmiddle">'.$morehtmlcenter.'</td>';
|
$return .= '<td class="nobordernopadding center valignmiddle col-center">'.$morehtmlcenter.'</td>';
|
||||||
}
|
}
|
||||||
if (dol_strlen($morehtmlright)) {
|
if (dol_strlen($morehtmlright)) {
|
||||||
$return .= '<td class="nobordernopadding titre_right wordbreakimp right valignmiddle">'.$morehtmlright.'</td>';
|
$return .= '<td class="nobordernopadding titre_right wordbreakimp right valignmiddle col-right">'.$morehtmlright.'</td>';
|
||||||
}
|
}
|
||||||
$return .= '</tr></table>'."\n";
|
$return .= '</tr></table>'."\n";
|
||||||
|
|
||||||
@@ -5446,11 +5446,11 @@ function print_barre_liste($titre, $page, $file, $options = '', $sortfield = '',
|
|||||||
|
|
||||||
// Center
|
// Center
|
||||||
if ($morehtmlcenter) {
|
if ($morehtmlcenter) {
|
||||||
print '<td class="nobordernopadding center valignmiddle">'.$morehtmlcenter.'</td>';
|
print '<td class="nobordernopadding center valignmiddle col-center">'.$morehtmlcenter.'</td>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Right
|
// Right
|
||||||
print '<td class="nobordernopadding valignmiddle right">';
|
print '<td class="nobordernopadding valignmiddle right col-right">';
|
||||||
print '<input type="hidden" name="pageplusoneold" value="'.((int) $page + 1).'">';
|
print '<input type="hidden" name="pageplusoneold" value="'.((int) $page + 1).'">';
|
||||||
if ($sortfield) {
|
if ($sortfield) {
|
||||||
$options .= "&sortfield=".urlencode($sortfield);
|
$options .= "&sortfield=".urlencode($sortfield);
|
||||||
|
|||||||
@@ -4879,7 +4879,7 @@ div.titre {
|
|||||||
color: var(--colortexttitlenotab2);
|
color: var(--colortexttitlenotab2);
|
||||||
}
|
}
|
||||||
|
|
||||||
table.table-fiche-title .col-title div.titre{
|
table.table-fiche-title .col-title div.titre, .col-right .btnTitle-icon {
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
}
|
}
|
||||||
table.table-fiche-title {
|
table.table-fiche-title {
|
||||||
|
|||||||
@@ -342,8 +342,8 @@ a.btnTitle.btnTitleSelected {
|
|||||||
position: relative;
|
position: relative;
|
||||||
margin: 0 0 0 10px;
|
margin: 0 0 0 10px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: #ffffff;
|
color: #000;
|
||||||
background-color: rgb(<?php print $colortextlink; ?>);
|
background-color: #eee;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
@@ -373,7 +373,10 @@ div.pagination .btnTitle:hover .btnTitle-label{
|
|||||||
}
|
}
|
||||||
|
|
||||||
.paginationafterarrows a.btnTitlePlus, .titre_right a.btnTitlePlus {
|
.paginationafterarrows a.btnTitlePlus, .titre_right a.btnTitlePlus {
|
||||||
border: 1px solid var(--colorbackbody);
|
border: 1px solid var(--btncolorborder);
|
||||||
|
}
|
||||||
|
.paginationafterarrows a.btnTitlePlus:hover, .titre_right a.btnTitlePlus:hover {
|
||||||
|
border-color: #ddd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -4168,9 +4168,6 @@ table.hidepaginationprevious .paginationprevious {
|
|||||||
table.hidepaginationnext .paginationnext {
|
table.hidepaginationnext .paginationnext {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.paginationafterarrows a.btnTitlePlus {
|
|
||||||
border: 1px solid var(--btncolorborder);
|
|
||||||
}
|
|
||||||
.paginationafterarrows a.btnTitlePlus:hover span:before {
|
.paginationafterarrows a.btnTitlePlus:hover span:before {
|
||||||
/* text-shadow: 0px 0px 5px #ccc; */
|
/* text-shadow: 0px 0px 5px #ccc; */
|
||||||
/* filter: invert(0.3); */
|
/* filter: invert(0.3); */
|
||||||
@@ -4906,7 +4903,7 @@ div.titre {
|
|||||||
table.centpercent.notopnoleftnoright.table-fiche-title {
|
table.centpercent.notopnoleftnoright.table-fiche-title {
|
||||||
margin-bottom: 10px !important;
|
margin-bottom: 10px !important;
|
||||||
}
|
}
|
||||||
table.table-fiche-title .col-title div.titre{
|
table.table-fiche-title .col-title div.titre, .col-right .btnTitle-icon {
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user