mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Debug v17
This commit is contained in:
parent
02475369e6
commit
d37c5ed6b1
|
|
@ -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') {
|
||||
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]);
|
||||
|
||||
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
|
||||
print '<form action="'.$_SERVER['PHP_SELF'].'?id='.$id.'" method="POST">';
|
||||
print '<input type="hidden" name="token" value="'.newToken().'">';
|
||||
|
|
@ -761,16 +771,6 @@ if ($action == 'create') {
|
|||
print '</th>';
|
||||
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';
|
||||
$parameters = array(
|
||||
'fieldlist' => $fieldlist,
|
||||
|
|
@ -828,7 +828,6 @@ if ($action == 'create') {
|
|||
if (empty($conf->global->FCKEDITOR_ENABLE_MAIL)) {
|
||||
$okforextended = false;
|
||||
}
|
||||
|
||||
$doleditor = new DolEditor($tmpfieldlist, (!empty($obj->$tmpfieldlist) ? $obj->$tmpfieldlist : ''), '', 180, 'dolibarr_mailings', 'In', false, $acceptlocallinktomedia, $okforextended, ROWS_4, '90%');
|
||||
print $doleditor->Create(1);
|
||||
}
|
||||
|
|
@ -848,7 +847,7 @@ if ($action == 'create') {
|
|||
print '</div>';
|
||||
print '</form>';
|
||||
print '<br><br>';
|
||||
} // END IF not edit
|
||||
}
|
||||
|
||||
// List of available record in database
|
||||
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 .= '</td>';
|
||||
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)) {
|
||||
$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";
|
||||
|
||||
|
|
@ -5446,11 +5446,11 @@ function print_barre_liste($titre, $page, $file, $options = '', $sortfield = '',
|
|||
|
||||
// Center
|
||||
if ($morehtmlcenter) {
|
||||
print '<td class="nobordernopadding center valignmiddle">'.$morehtmlcenter.'</td>';
|
||||
print '<td class="nobordernopadding center valignmiddle col-center">'.$morehtmlcenter.'</td>';
|
||||
}
|
||||
|
||||
// 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).'">';
|
||||
if ($sortfield) {
|
||||
$options .= "&sortfield=".urlencode($sortfield);
|
||||
|
|
|
|||
|
|
@ -4879,7 +4879,7 @@ div.titre {
|
|||
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;
|
||||
}
|
||||
table.table-fiche-title {
|
||||
|
|
|
|||
|
|
@ -342,8 +342,8 @@ a.btnTitle.btnTitleSelected {
|
|||
position: relative;
|
||||
margin: 0 0 0 10px;
|
||||
text-align: center;
|
||||
color: #ffffff;
|
||||
background-color: rgb(<?php print $colortextlink; ?>);
|
||||
color: #000;
|
||||
background-color: #eee;
|
||||
font-size: 12px;
|
||||
text-decoration: none;
|
||||
box-shadow: none;
|
||||
|
|
@ -373,7 +373,10 @@ div.pagination .btnTitle:hover .btnTitle-label{
|
|||
}
|
||||
|
||||
.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 {
|
||||
display: none;
|
||||
}
|
||||
.paginationafterarrows a.btnTitlePlus {
|
||||
border: 1px solid var(--btncolorborder);
|
||||
}
|
||||
.paginationafterarrows a.btnTitlePlus:hover span:before {
|
||||
/* text-shadow: 0px 0px 5px #ccc; */
|
||||
/* filter: invert(0.3); */
|
||||
|
|
@ -4906,7 +4903,7 @@ div.titre {
|
|||
table.centpercent.notopnoleftnoright.table-fiche-title {
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user