mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 17:48:25 +01:00
Look and feel v21
This commit is contained in:
@@ -273,7 +273,7 @@ print '
|
|||||||
jQuery(\'.clipboardCPShowOnHover\').hover(
|
jQuery(\'.clipboardCPShowOnHover\').hover(
|
||||||
function() {
|
function() {
|
||||||
console.log("We hover a value with a copy paste feature");
|
console.log("We hover a value with a copy paste feature");
|
||||||
$(this).children(".clipboardCPButton, .clipboardCPText").show();
|
$(this).children(".clipboardCPButton, .clipboardCPText").css("display", "inline-block"); /* better than .show() because the show set the display to "inline" */
|
||||||
},
|
},
|
||||||
function() {
|
function() {
|
||||||
console.log("We hover out the value with a copy paste feature");
|
console.log("We hover out the value with a copy paste feature");
|
||||||
@@ -306,7 +306,7 @@ print '
|
|||||||
succeed = document.execCommand(\'copy\');
|
succeed = document.execCommand(\'copy\');
|
||||||
|
|
||||||
console.log("We set the style display back to inline-block");
|
console.log("We set the style display back to inline-block");
|
||||||
jqobj.css("display", "inline-block");
|
jqobj.css("display", "inline-block"); /* better than .show() because the show set the display to "inline" */
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
succeed = false;
|
succeed = false;
|
||||||
}
|
}
|
||||||
@@ -315,16 +315,18 @@ print '
|
|||||||
window.getSelection().removeAllRanges();
|
window.getSelection().removeAllRanges();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Show message */
|
/* Show result - message */
|
||||||
/* TODO Show message into a top left corner or center of screen */
|
var lastparent = $(this).parent(); /* .parent is clipboardCP */
|
||||||
var lastchild = this.parentNode.lastChild; /* .parentNode is clipboardCP and last child is clipboardCPText */
|
var lastchild = this.parentNode.lastChild; /* .parentNode is clipboardCP and last child is clipboardCPText */
|
||||||
var tmp = lastchild.innerHTML
|
var tmp = lastchild.innerHTML
|
||||||
if (succeed) {
|
if (succeed) {
|
||||||
lastchild.innerHTML = \'<div class="clipboardCPTextDivInside opacitymedium">'.dol_escape_js($langs->trans('CopiedToClipboard')).'</div>\';
|
$(this).parent().children(".clipboardCPButton").hide();
|
||||||
|
$(this).parent().children(".clipboardCPTick").css("display", "inline-block"); /* better than .show() because the show set the display to "inline" */
|
||||||
|
//lastchild.innerHTML = \'<div class="clipboardCPTextDivInside opacitymedium">'.dol_escape_js($langs->trans('CopiedToClipboard')).'</div>\';
|
||||||
} else {
|
} else {
|
||||||
lastchild.innerHTML = \'<div class="clipboardCPTextDivInside opacitymedium">'.dol_escape_js($langs->trans('Error')).'</div>\';
|
lastchild.innerHTML = \'<div class="clipboardCPTextDivInside opacitymedium">'.dol_escape_js($langs->trans('Error')).'</div>\';
|
||||||
}
|
}
|
||||||
setTimeout(() => { lastchild.innerHTML = tmp; }, 1000);
|
setTimeout(() => { lastchild.innerHTML = tmp; lastparent.children(".clipboardCPTick").hide(); }, 2000);
|
||||||
});
|
});
|
||||||
});'."\n";
|
});'."\n";
|
||||||
|
|
||||||
|
|||||||
@@ -6365,13 +6365,13 @@ function load_fiche_titre($title, $morehtmlright = '', $picto = 'generic', $pict
|
|||||||
|
|
||||||
$return .= "\n";
|
$return .= "\n";
|
||||||
$return .= '<table '.($id ? 'id="'.$id.'" ' : '').'class="centpercent notopnoleftnoright table-fiche-title'.($morecssontable ? ' '.$morecssontable : '').'">'; // margin bottom must be same than into print_barre_list
|
$return .= '<table '.($id ? 'id="'.$id.'" ' : '').'class="centpercent notopnoleftnoright table-fiche-title'.($morecssontable ? ' '.$morecssontable : '').'">'; // margin bottom must be same than into print_barre_list
|
||||||
$return .= '<tr class="titre">';
|
$return .= '<tr class="toptitle">';
|
||||||
if ($picto) {
|
if ($picto) {
|
||||||
$return .= '<td class="nobordernopadding widthpictotitle valignmiddle col-picto">'.img_picto('', $picto, 'class="valignmiddle widthpictotitle pictotitle"', $pictoisfullpath).'</td>';
|
$return .= '<td class="nobordernopadding widthpictotitle valignmiddle col-picto">'.img_picto('', $picto, 'class="valignmiddle widthpictotitle pictotitle"', $pictoisfullpath).'</td>';
|
||||||
}
|
}
|
||||||
$return .= '<td class="nobordernopadding valignmiddle col-title">';
|
$return .= '<td class="nobordernopadding valignmiddle col-title">';
|
||||||
$return .= '<div class="titre inline-block">';
|
$return .= '<div class="titre inline-block">';
|
||||||
$return .= $title; // $title is already HTML sanitized content
|
$return .= '<span class="inline-block valignmiddle">'.$title.'</span>'; // $title is already HTML sanitized content
|
||||||
$return .= '</div>';
|
$return .= '</div>';
|
||||||
$return .= '</td>';
|
$return .= '</td>';
|
||||||
if (dol_strlen($morehtmlcenter)) {
|
if (dol_strlen($morehtmlcenter)) {
|
||||||
@@ -6439,7 +6439,8 @@ function print_barre_liste($title, $page, $file, $options = '', $sortfield = '',
|
|||||||
|
|
||||||
print "\n";
|
print "\n";
|
||||||
print "<!-- Begin print_barre_liste -->\n";
|
print "<!-- Begin print_barre_liste -->\n";
|
||||||
print '<table class="centpercent notopnoleftnoright table-fiche-title'.($morecss ? ' '.$morecss : '').'"><tr>'; // margin bottom must be same than into load_fiche_tire
|
print '<table class="centpercent notopnoleftnoright table-fiche-title'.($morecss ? ' '.$morecss : '').'">';
|
||||||
|
print '<tr class="toptitle">'; // margin bottom must be same than into load_fiche_tire
|
||||||
|
|
||||||
// Left
|
// Left
|
||||||
|
|
||||||
@@ -13547,21 +13548,24 @@ function readfileLowMemory($fullpath_original_file_osencoded, $method = -1)
|
|||||||
*/
|
*/
|
||||||
function showValueWithClipboardCPButton($valuetocopy, $showonlyonhover = 1, $texttoshow = '')
|
function showValueWithClipboardCPButton($valuetocopy, $showonlyonhover = 1, $texttoshow = '')
|
||||||
{
|
{
|
||||||
/*
|
global $langs;
|
||||||
global $conf;
|
|
||||||
|
|
||||||
if (!empty($conf->dol_no_mouse_hover)) {
|
|
||||||
$showonlyonhover = 0;
|
|
||||||
}*/
|
|
||||||
|
|
||||||
$tag = 'span'; // Using div (like any style of type 'block') does not work when using the js copy code.
|
$tag = 'span'; // Using div (like any style of type 'block') does not work when using the js copy code.
|
||||||
|
|
||||||
|
$result = '<span class="clipboardCP'.($showonlyonhover ? ' clipboardCPShowOnHover' : '').'">';
|
||||||
if ($texttoshow === 'none') {
|
if ($texttoshow === 'none') {
|
||||||
$result = '<span class="clipboardCP'.($showonlyonhover ? ' clipboardCPShowOnHover' : '').'"><'.$tag.' class="clipboardCPValue hidewithsize">'.dol_escape_htmltag($valuetocopy, 1, 1).'</'.$tag.'><span class="clipboardCPValueToPrint"></span><span class="clipboardCPButton far fa-clipboard opacitymedium paddingleft paddingright"></span><span class="clipboardCPText"></span></span>';
|
$result .= '<'.$tag.' class="clipboardCPValue hidewithsize">'.dol_escape_htmltag($valuetocopy, 1, 1).'</'.$tag.'>';
|
||||||
|
$result .= '<span class="clipboardCPValueToPrint"></span>';
|
||||||
} elseif ($texttoshow) {
|
} elseif ($texttoshow) {
|
||||||
$result = '<span class="clipboardCP'.($showonlyonhover ? ' clipboardCPShowOnHover' : '').'"><'.$tag.' class="clipboardCPValue hidewithsize">'.dol_escape_htmltag($valuetocopy, 1, 1).'</'.$tag.'><span class="clipboardCPValueToPrint">'.dol_escape_htmltag($texttoshow, 1, 1).'</span><span class="clipboardCPButton far fa-clipboard opacitymedium paddingleft paddingright"></span><span class="clipboardCPText"></span></span>';
|
$result .= '<'.$tag.' class="clipboardCPValue hidewithsize">'.dol_escape_htmltag($valuetocopy, 1, 1).'</'.$tag.'>';
|
||||||
|
$result .= '<span class="clipboardCPValueToPrint">'.dol_escape_htmltag($texttoshow, 1, 1).'</span>';
|
||||||
} else {
|
} else {
|
||||||
$result = '<span class="clipboardCP'.($showonlyonhover ? ' clipboardCPShowOnHover' : '').'"><'.$tag.' class="clipboardCPValue">'.dol_escape_htmltag($valuetocopy, 1, 1).'</'.$tag.'><span class="clipboardCPButton far fa-clipboard opacitymedium paddingleft paddingright"></span><span class="clipboardCPText"></span></span>';
|
$result .= '<'.$tag.' class="clipboardCPValue">'.dol_escape_htmltag($valuetocopy, 1, 1).'</'.$tag.'>';
|
||||||
}
|
}
|
||||||
|
$result .= '<span class="clipboardCPButton far fa-clipboard opacitymedium paddingleft pictomodule" title="'.dolPrintHTML($langs->trans("ClickToCopyToClipboard")).'"></span>';
|
||||||
|
$result .= img_picto('', 'tick', 'class="clipboardCPTick hidden paddingleft pictomodule"');
|
||||||
|
$result .= '<span class="clipboardCPText"></span>';
|
||||||
|
$result .= '</span>';
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -883,6 +883,7 @@ toward=toward
|
|||||||
Access=Access
|
Access=Access
|
||||||
SelectAction=Select action
|
SelectAction=Select action
|
||||||
SelectTargetUser=Select target user/employee
|
SelectTargetUser=Select target user/employee
|
||||||
|
ClickToCopyToClipboard=Click to copy to clipboard
|
||||||
HelpCopyToClipboard=Use Ctrl+C to copy to clipboard
|
HelpCopyToClipboard=Use Ctrl+C to copy to clipboard
|
||||||
SaveUploadedFileWithMask=Save file on server with name "<strong>%s</strong>" (otherwise "%s")
|
SaveUploadedFileWithMask=Save file on server with name "<strong>%s</strong>" (otherwise "%s")
|
||||||
OriginFileName=Original filename
|
OriginFileName=Original filename
|
||||||
|
|||||||
@@ -207,7 +207,6 @@ $thirdpartygraph .= '</div>';
|
|||||||
$thirdpartycateggraph = '';
|
$thirdpartycateggraph = '';
|
||||||
if (isModEnabled('category') && getDolGlobalString('CATEGORY_GRAPHSTATS_ON_THIRDPARTIES')) {
|
if (isModEnabled('category') && getDolGlobalString('CATEGORY_GRAPHSTATS_ON_THIRDPARTIES')) {
|
||||||
require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
|
||||||
$elementtype = 'societe';
|
|
||||||
|
|
||||||
$thirdpartycateggraph = '<div class="div-table-responsive-no-min">';
|
$thirdpartycateggraph = '<div class="div-table-responsive-no-min">';
|
||||||
$thirdpartycateggraph .= '<table class="noborder nohover centpercent">';
|
$thirdpartycateggraph .= '<table class="noborder nohover centpercent">';
|
||||||
@@ -218,7 +217,7 @@ if (isModEnabled('category') && getDolGlobalString('CATEGORY_GRAPHSTATS_ON_THIRD
|
|||||||
$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."categorie as c ON cs.fk_categorie = c.rowid";
|
$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."categorie as c ON cs.fk_categorie = c.rowid";
|
||||||
$sql .= " WHERE c.type = 2";
|
$sql .= " WHERE c.type = 2";
|
||||||
if (!is_numeric(getDolGlobalString('CATEGORY_GRAPHSTATS_ON_THIRDPARTIES'))) {
|
if (!is_numeric(getDolGlobalString('CATEGORY_GRAPHSTATS_ON_THIRDPARTIES'))) {
|
||||||
$sql .= " AND c.label like '".$db->escape($conf->global->CATEGORY_GRAPHSTATS_ON_THIRDPARTIES)."'";
|
$sql .= " AND c.label like '".$db->escape(getDolGlobalString('CATEGORY_GRAPHSTATS_ON_THIRDPARTIES'))."'";
|
||||||
}
|
}
|
||||||
$sql .= " AND c.entity IN (".getEntity('category').")";
|
$sql .= " AND c.entity IN (".getEntity('category').")";
|
||||||
$sql .= " GROUP BY c.label";
|
$sql .= " GROUP BY c.label";
|
||||||
@@ -258,7 +257,7 @@ if (isModEnabled('category') && getDolGlobalString('CATEGORY_GRAPHSTATS_ON_THIRD
|
|||||||
while ($i < $num) {
|
while ($i < $num) {
|
||||||
$obj = $db->fetch_object($result);
|
$obj = $db->fetch_object($result);
|
||||||
|
|
||||||
$thirdpartycateggraph .= '<tr class="oddeven"><td>'.$obj->label.'</td><td>'.$obj->nb.'</td></tr>';
|
$thirdpartycateggraph .= '<tr class="oddeven"><td>'.dolPrintHTML($obj->label).'</td><td>'.$obj->nb.'</td></tr>';
|
||||||
$total += $obj->nb;
|
$total += $obj->nb;
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
@@ -278,6 +277,7 @@ if (isModEnabled('category') && getDolGlobalString('CATEGORY_GRAPHSTATS_ON_THIRD
|
|||||||
/*
|
/*
|
||||||
* Latest modified third parties
|
* Latest modified third parties
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$sql = "SELECT s.rowid, s.nom as name, s.email, s.client, s.fournisseur";
|
$sql = "SELECT s.rowid, s.nom as name, s.email, s.client, s.fournisseur";
|
||||||
$sql .= ", s.code_client";
|
$sql .= ", s.code_client";
|
||||||
$sql .= ", s.code_fournisseur";
|
$sql .= ", s.code_fournisseur";
|
||||||
|
|||||||
@@ -70,6 +70,7 @@ $pagenext = $page + 1;
|
|||||||
|
|
||||||
$now = dol_now();
|
$now = dol_now();
|
||||||
|
|
||||||
|
// Security check
|
||||||
$object = new Societe($db);
|
$object = new Societe($db);
|
||||||
|
|
||||||
$permissiontoadd = $user->hasRight('societe', 'lire');
|
$permissiontoadd = $user->hasRight('societe', 'lire');
|
||||||
@@ -79,6 +80,10 @@ $permissiontoadd = $user->hasRight('societe', 'lire');
|
|||||||
* Actions
|
* Actions
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
if (GETPOST('cancel', 'alpha')) {
|
||||||
|
$action = 'list';
|
||||||
|
}
|
||||||
|
|
||||||
$parameters = array('id' => $socid);
|
$parameters = array('id' => $socid);
|
||||||
$reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks
|
$reshook = $hookmanager->executeHooks('doActions', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks
|
||||||
if ($reshook < 0) {
|
if ($reshook < 0) {
|
||||||
@@ -88,10 +93,6 @@ if ($reshook < 0) {
|
|||||||
if (empty($reshook)) {
|
if (empty($reshook)) {
|
||||||
$error = 0;
|
$error = 0;
|
||||||
|
|
||||||
if (GETPOST('cancel', 'alpha')) {
|
|
||||||
$action = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
// Add a notification
|
// Add a notification
|
||||||
if ($action == 'add' && $permissiontoadd) {
|
if ($action == 'add' && $permissiontoadd) {
|
||||||
if (empty($contactid)) {
|
if (empty($contactid)) {
|
||||||
@@ -101,6 +102,7 @@ if (empty($reshook)) {
|
|||||||
if ($actionid <= 0) {
|
if ($actionid <= 0) {
|
||||||
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("Action")), null, 'errors');
|
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("Action")), null, 'errors');
|
||||||
$error++;
|
$error++;
|
||||||
|
$action = 'create';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$error) {
|
if (!$error) {
|
||||||
@@ -110,7 +112,7 @@ if (empty($reshook)) {
|
|||||||
$sql .= " WHERE fk_soc=".((int) $socid)." AND fk_contact=".((int) $contactid)." AND fk_action = ".((int) $actionid);
|
$sql .= " WHERE fk_soc=".((int) $socid)." AND fk_contact=".((int) $contactid)." AND fk_action = ".((int) $actionid);
|
||||||
if ($db->query($sql)) {
|
if ($db->query($sql)) {
|
||||||
$sql = "INSERT INTO ".MAIN_DB_PREFIX."notify_def (datec,fk_soc, fk_contact, fk_action)";
|
$sql = "INSERT INTO ".MAIN_DB_PREFIX."notify_def (datec,fk_soc, fk_contact, fk_action)";
|
||||||
$sql .= " VALUES ('".$db->idate($now)."',".((int) $socid).",".((int) $contactid).",".((int) $actionid).")";
|
$sql .= " VALUES ('".$db->idate($now)."', ".((int) $socid).",".((int) $contactid).",".((int) $actionid).")";
|
||||||
|
|
||||||
if (!$db->query($sql)) {
|
if (!$db->query($sql)) {
|
||||||
$error++;
|
$error++;
|
||||||
@@ -124,6 +126,7 @@ if (empty($reshook)) {
|
|||||||
$db->commit();
|
$db->commit();
|
||||||
} else {
|
} else {
|
||||||
$db->rollback();
|
$db->rollback();
|
||||||
|
$action = 'create';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -200,8 +203,9 @@ if ($result > 0) {
|
|||||||
if ($tmpcheck != 0 && $tmpcheck != -5) {
|
if ($tmpcheck != 0 && $tmpcheck != -5) {
|
||||||
print ' <span class="error">('.$langs->trans("WrongSupplierCode").')</span>';
|
print ' <span class="error">('.$langs->trans("WrongSupplierCode").')</span>';
|
||||||
}
|
}
|
||||||
print '</td></tr>';
|
print '</td>';
|
||||||
}
|
}
|
||||||
|
print '</tr>'."\n";
|
||||||
|
|
||||||
/*print '<tr><td class="titlefield">'.$langs->trans("NbOfActiveNotifications").'</td>'; // Notification for this thirdparty
|
/*print '<tr><td class="titlefield">'.$langs->trans("NbOfActiveNotifications").'</td>'; // Notification for this thirdparty
|
||||||
print '<td colspan="3">';
|
print '<td colspan="3">';
|
||||||
@@ -234,6 +238,16 @@ if ($result > 0) {
|
|||||||
|
|
||||||
print '<br><br>'."\n";
|
print '<br><br>'."\n";
|
||||||
|
|
||||||
|
|
||||||
|
// Add notification form
|
||||||
|
|
||||||
|
print '<form action="'.$_SERVER["PHP_SELF"].'?id='.urlencode((string) ($id)).'" method="POST">';
|
||||||
|
print '<input type="hidden" name="token" value="'.newToken().'">';
|
||||||
|
print '<input type="hidden" name="page_y" value="">';
|
||||||
|
if ($action == 'create') {
|
||||||
|
print '<input type="hidden" name="action" id="action" value="add">';
|
||||||
|
}
|
||||||
|
|
||||||
$nbtotalofrecords = '';
|
$nbtotalofrecords = '';
|
||||||
|
|
||||||
// List of notifications enabled for contacts of the thirdparty
|
// List of notifications enabled for contacts of the thirdparty
|
||||||
@@ -255,15 +269,18 @@ if ($result > 0) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$param = '';
|
$param = '';
|
||||||
|
|
||||||
$newcardbutton = '';
|
$newcardbutton = '';
|
||||||
$newcardbutton .= dolGetButtonTitle($langs->trans('New'), '', 'fa fa-plus-circle', $_SERVER["PHP_SELF"].'?socid='.$object->id.'&action=create&backtopage='.urlencode($_SERVER['PHP_SELF']), '', $user->hasRight("societe", "creer"));
|
$newcardbutton .= dolGetButtonTitle($langs->trans('New'), '', 'fa fa-plus-circle', $_SERVER["PHP_SELF"].'?socid='.$object->id.'&action=create&backtopage='.urlencode($_SERVER['PHP_SELF']), '', $user->hasRight("societe", "creer"));
|
||||||
|
|
||||||
$titlelist = $langs->trans("ListOfActiveNotifications");
|
$titlelist = $form->textwithpicto($langs->trans("ListOfActiveNotifications"), $langs->trans("ListOfActiveNotificationsHelp", $langs->transnoentitiesnoconv("Target"), $langs->transnoentitiesnoconv("Event")));
|
||||||
|
|
||||||
// Add notification form
|
|
||||||
//print load_fiche_titre($titlelist.' <span class="opacitymedium colorblack paddingleft">('.$num.')</span>', '', '');
|
|
||||||
$num = $nbtotalofrecords;
|
$num = $nbtotalofrecords;
|
||||||
print_barre_liste($titlelist, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, '', $num, (empty($nbtotalofrecords) ? -1 : $nbtotalofrecords), 'email', 0, $newcardbutton, '', $limit, 0, 0, 1);
|
|
||||||
|
$limitforsubscription = 0; // We show all subscription of user. Pagination will be reserved for the section of notifications sent.
|
||||||
|
// List of active notifications
|
||||||
|
// @phan-suppress-next-line PhanPluginSuspiciousParamPosition, PhanPluginSuspiciousParamOrder
|
||||||
|
print_barre_liste($titlelist, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, '', $num, (empty($nbtotalofrecords) ? -1 : $nbtotalofrecords), 'email', 0, $newcardbutton, '', $limitforsubscription, 0, 0, 1);
|
||||||
|
|
||||||
print '<form action="'.$_SERVER["PHP_SELF"].'?socid='.$socid.'" method="post">';
|
print '<form action="'.$_SERVER["PHP_SELF"].'?socid='.$socid.'" method="post">';
|
||||||
print '<input type="hidden" name="token" value="'.newToken().'">';
|
print '<input type="hidden" name="token" value="'.newToken().'">';
|
||||||
@@ -273,10 +290,10 @@ if ($result > 0) {
|
|||||||
|
|
||||||
// Line with titles
|
// Line with titles
|
||||||
print '<div class="div-table-responsive-no-min">';
|
print '<div class="div-table-responsive-no-min">';
|
||||||
print '<table class="centpercent noborder">';
|
print '<table class="noborder centpercent">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print_liste_field_titre("Target", $_SERVER["PHP_SELF"], "c.lastname,c.firstname", '', $param, 'width="45%"', $sortfield, $sortorder);
|
print_liste_field_titre("Target", $_SERVER["PHP_SELF"], "c.lastname,c.firstname", '', $param, 'width="45%"', $sortfield, $sortorder);
|
||||||
print_liste_field_titre("Action", $_SERVER["PHP_SELF"], "", '', $param, 'width="35%"', $sortfield, $sortorder);
|
print_liste_field_titre("Event", $_SERVER["PHP_SELF"], "", '', $param, 'width="35%"', $sortfield, $sortorder);
|
||||||
print_liste_field_titre("Type", $_SERVER["PHP_SELF"], "n.type", '', $param, 'width="10%"', $sortfield, $sortorder);
|
print_liste_field_titre("Type", $_SERVER["PHP_SELF"], "n.type", '', $param, 'width="10%"', $sortfield, $sortorder);
|
||||||
print_liste_field_titre('');
|
print_liste_field_titre('');
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
@@ -307,7 +324,7 @@ if ($result > 0) {
|
|||||||
print img_picto('', 'contact', '', 0, 0, 0, '', 'paddingright');
|
print img_picto('', 'contact', '', 0, 0, 0, '', 'paddingright');
|
||||||
print $form->selectarray("contactid", $newlistofemails, '', 1, 0, 0, '', 0, 0, 0, '', 'minwidth100imp maxwidthonsmartphone');
|
print $form->selectarray("contactid", $newlistofemails, '', 1, 0, 0, '', 0, 0, 0, '', 'minwidth100imp maxwidthonsmartphone');
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td class="nowraponall">';
|
print '<td class="tdoverflowmax200">';
|
||||||
print img_picto('', 'object_action', '', 0, 0, 0, '', 'paddingright');
|
print img_picto('', 'object_action', '', 0, 0, 0, '', 'paddingright');
|
||||||
print $form->selectarray("actionid", $actions, '', 1, 0, 0, '', 0, 0, 0, '', 'minwidth100imp maxwidthonsmartphone');
|
print $form->selectarray("actionid", $actions, '', 1, 0, 0, '', 0, 0, 0, '', 'minwidth100imp maxwidthonsmartphone');
|
||||||
print '</td>';
|
print '</td>';
|
||||||
@@ -317,6 +334,7 @@ if ($result > 0) {
|
|||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td class="right nowraponall">';
|
print '<td class="right nowraponall">';
|
||||||
print '<input type="submit" class="button button-add small" value="'.$langs->trans("Add").'">';
|
print '<input type="submit" class="button button-add small" value="'.$langs->trans("Add").'">';
|
||||||
|
print ' ';
|
||||||
print '<input type="submit" class="button button-cancel small" name="cancel" value="'.$langs->trans("Cancel").'">';
|
print '<input type="submit" class="button button-cancel small" name="cancel" value="'.$langs->trans("Cancel").'">';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
@@ -345,14 +363,14 @@ if ($result > 0) {
|
|||||||
print ' <'.$obj->email.'>';
|
print ' <'.$obj->email.'>';
|
||||||
} else {
|
} else {
|
||||||
$langs->load("errors");
|
$langs->load("errors");
|
||||||
print ' '.img_warning().' <span class="warning">'.$langs->trans("ErrorBadEMail", $obj->email).'</span>';
|
print ' '.img_warning().' <span class="warning">'.$langs->trans("ErrorBadEMail", $obj->email).'</span>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
$label = ($langs->trans("Notify_".$obj->code) != "Notify_".$obj->code ? $langs->trans("Notify_".$obj->code) : $obj->label);
|
$label = ($langs->trans("Notify_".$obj->code) != "Notify_".$obj->code ? $langs->trans("Notify_".$obj->code) : $obj->label);
|
||||||
print '<td class="tdoverflowmax200" title="'.dol_escape_htmltag($label).'">';
|
print '<td class="tdoverflowmax200" title="'.dol_escape_htmltag($label).'">';
|
||||||
print img_picto('', 'object_action', '', 0, 0, 0, '', 'paddingright').$label;
|
print img_picto('', 'object_action', '', 0, 0, 0, '', 'pictofixedwidth').$label;
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td>';
|
print '<td>';
|
||||||
if ($obj->type == 'email') {
|
if ($obj->type == 'email') {
|
||||||
@@ -431,15 +449,17 @@ if ($result > 0) {
|
|||||||
print '<input type="hidden" name="page" value="'.$page.'">';
|
print '<input type="hidden" name="page" value="'.$page.'">';
|
||||||
print '<input type="hidden" name="socid" value="'.$object->id.'">';
|
print '<input type="hidden" name="socid" value="'.$object->id.'">';
|
||||||
|
|
||||||
|
$titlelist = $form->textwithpicto($langs->trans("ListOfNotificationsDone"), $langs->trans("ListOfNotificationsDoneHelp"));
|
||||||
|
|
||||||
// List of active notifications @phan-suppress-next-line PhanPluginSuspiciousParamOrder
|
// List of active notifications @phan-suppress-next-line PhanPluginSuspiciousParamOrder
|
||||||
print_barre_liste($langs->trans("ListOfNotificationsDone"), $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, '', $num, empty($nbtotalofrecords) ? -1 : $nbtotalofrecords, 'email', 0, '', '', $limit);
|
print_barre_liste($titlelist, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, '', $num, empty($nbtotalofrecords) ? -1 : $nbtotalofrecords, 'email', 0, '', '', $limit, '');
|
||||||
|
|
||||||
// Line with titles
|
// Line with titles
|
||||||
print '<div class="div-table-responsive-no-min">';
|
print '<div class="div-table-responsive-no-min">';
|
||||||
print '<table class="centpercent noborder">';
|
print '<table class="centpercent noborder">';
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
print_liste_field_titre("Target", $_SERVER["PHP_SELF"], "c.lastname,c.firstname", '', $param, '', $sortfield, $sortorder);
|
print_liste_field_titre("Target", $_SERVER["PHP_SELF"], "c.lastname,c.firstname", '', $param, '', $sortfield, $sortorder);
|
||||||
print_liste_field_titre("Action", $_SERVER["PHP_SELF"], "", '', $param, '', $sortfield, $sortorder);
|
print_liste_field_titre("Event", $_SERVER["PHP_SELF"], "", '', $param, '', $sortfield, $sortorder);
|
||||||
print_liste_field_titre("Type", $_SERVER["PHP_SELF"], "n.type", '', $param, '', $sortfield, $sortorder);
|
print_liste_field_titre("Type", $_SERVER["PHP_SELF"], "n.type", '', $param, '', $sortfield, $sortorder);
|
||||||
//print_liste_field_titre("Object",$_SERVER["PHP_SELF"],"",'',$param,'"',$sortfield,$sortorder);
|
//print_liste_field_titre("Object",$_SERVER["PHP_SELF"],"",'',$param,'"',$sortfield,$sortorder);
|
||||||
print_liste_field_titre("Date", $_SERVER["PHP_SELF"], "n.daten", '', $param, '', $sortfield, $sortorder, 'right ');
|
print_liste_field_titre("Date", $_SERVER["PHP_SELF"], "n.daten", '', $param, '', $sortfield, $sortorder, 'right ');
|
||||||
|
|||||||
@@ -230,7 +230,7 @@ TITLE BUTTON
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
position: relative;
|
position: relative;
|
||||||
/* margin: 0 0 0 8px; */
|
/* margin: 0 0 0 8px; */
|
||||||
min-width: 72px;
|
min-width: 60px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: var(--btncolortext);
|
color: var(--btncolortext);
|
||||||
border: none;
|
border: none;
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ button.dropdown-item.global-search-item {
|
|||||||
min-width: 160px;
|
min-width: 160px;
|
||||||
margin: 2px 0 0;
|
margin: 2px 0 0;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
text-align: left;
|
text-align: <?php echo $left; ?>;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
-webkit-background-clip: padding-box;
|
-webkit-background-clip: padding-box;
|
||||||
|
|||||||
@@ -3912,7 +3912,7 @@ a.tabunactive {
|
|||||||
}
|
}
|
||||||
a.tab:link, a.tab:visited, a.tab:hover, a.tab#active {
|
a.tab:link, a.tab:visited, a.tab:hover, a.tab#active {
|
||||||
font-family: <?php print $fontlist ?>;
|
font-family: <?php print $fontlist ?>;
|
||||||
padding: 12px 14px 13px;
|
padding: 12px 14px 10px;
|
||||||
margin: 0em 0.2em;
|
margin: 0em 0.2em;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
@@ -5342,11 +5342,14 @@ div.divphotoref > div > .photowithmargin, div.divphotoref > img.photowithmargin,
|
|||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
table.table-fiche-title tr.toptitle {
|
||||||
|
height: 60px;
|
||||||
|
}
|
||||||
div.titre {
|
div.titre {
|
||||||
font-size: 1.1em;
|
font-size: 1.1em;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
padding-top: 5px;
|
/* padding-top: 5px;
|
||||||
padding-bottom: 5px;
|
padding-bottom: 5px; */
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
}
|
}
|
||||||
div.titre.small {
|
div.titre.small {
|
||||||
@@ -5369,9 +5372,11 @@ div.titre {
|
|||||||
color: var(--colortexttitlenotab2);
|
color: var(--colortexttitlenotab2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
table.table-fiche-title .col-title div.titre, .col-center .btnTitle-icon, .col-right .btnTitle-icon {
|
table.table-fiche-title .col-title div.titre, .col-center .btnTitle-icon, .col-right .btnTitle-icon {
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
table.table-fiche-title .col-title div.titre > span:not(.print-barre-liste) {
|
table.table-fiche-title .col-title div.titre > span:not(.print-barre-liste) {
|
||||||
line-height: normal;
|
line-height: normal;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -317,7 +317,6 @@ table.table-fiche-title tr.titre td.col-right a.btnTitle {
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
position: relative;
|
position: relative;
|
||||||
margin: 0 0 0 10px;
|
margin: 0 0 0 10px;
|
||||||
min-width: 80px;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: var(--btncolortext);
|
color: var(--btncolortext);
|
||||||
border: none;
|
border: none;
|
||||||
@@ -325,6 +324,10 @@ table.table-fiche-title tr.titre td.col-right a.btnTitle {
|
|||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
/* background-color: #fbfbfb; */
|
/* background-color: #fbfbfb; */
|
||||||
}
|
}
|
||||||
|
/* *:not(.paginationafterarrows) > .btnTitle, *:not(.paginationafterarrows) > a.btnTitle { */
|
||||||
|
.btnTitle, a.btnTitle {
|
||||||
|
min-width: 60px;
|
||||||
|
}
|
||||||
|
|
||||||
a.btnTitle.btnTitleSelected {
|
a.btnTitle.btnTitleSelected {
|
||||||
border: 1px solid #ccc;
|
border: 1px solid #ccc;
|
||||||
|
|||||||
@@ -2449,7 +2449,7 @@ td.showDragHandle {
|
|||||||
padding-bottom: 20px;
|
padding-bottom: 20px;
|
||||||
<?php if (GETPOST('optioncss', 'aZ09') != 'print') { ?>
|
<?php if (GETPOST('optioncss', 'aZ09') != 'print') { ?>
|
||||||
padding-<?php print $left; ?>: <?php echo $leftmenuwidth + 9; ?>px;
|
padding-<?php print $left; ?>: <?php echo $leftmenuwidth + 9; ?>px;
|
||||||
padding-top: 28px;
|
padding-top: 12px;
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
}
|
}
|
||||||
.bodyforlist #id-right {
|
.bodyforlist #id-right {
|
||||||
@@ -2783,7 +2783,6 @@ td.nobordernopadding.widthpictotitle.col-picto {
|
|||||||
}
|
}
|
||||||
.pictotitle {
|
.pictotitle {
|
||||||
margin-<?php echo $right; ?>: 8px;
|
margin-<?php echo $right; ?>: 8px;
|
||||||
margin-bottom: 4px;
|
|
||||||
}
|
}
|
||||||
.pictoobjectwidth {
|
.pictoobjectwidth {
|
||||||
width: 14px;
|
width: 14px;
|
||||||
@@ -3929,7 +3928,7 @@ div.tabs {
|
|||||||
height:100%;
|
height:100%;
|
||||||
}
|
}
|
||||||
div.tabsElem {
|
div.tabsElem {
|
||||||
margin-top: 6px;
|
margin-top: 12px;
|
||||||
} /* To avoid overlap of tabs when not browser */
|
} /* To avoid overlap of tabs when not browser */
|
||||||
div.tabsElem a {
|
div.tabsElem a {
|
||||||
font-weight: normal !important;
|
font-weight: normal !important;
|
||||||
@@ -3975,59 +3974,7 @@ div.tabBar table.tableforservicepart2:last-child {
|
|||||||
.tableforservicepart1 .tdhrthin {
|
.tableforservicepart1 .tdhrthin {
|
||||||
height: unset;
|
height: unset;
|
||||||
}
|
}
|
||||||
/* Payment Screen : Pointer cursor in the autofill image */
|
|
||||||
.AutoFillAmount {
|
|
||||||
cursor:pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ============================================================================== */
|
|
||||||
/* Buttons for actions */
|
|
||||||
/* ============================================================================== */
|
|
||||||
|
|
||||||
div.divButAction {
|
|
||||||
margin-bottom: 1.4em;
|
|
||||||
}
|
|
||||||
div.tabsAction {
|
|
||||||
margin: 20px 0em 20px 0em;
|
|
||||||
padding: 0em 0em;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
div.tabsActionNoBottom {
|
|
||||||
margin-bottom: 0px;
|
|
||||||
}
|
|
||||||
div.tabsAction > a {
|
|
||||||
margin-bottom: 16px !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.popuptabset {
|
|
||||||
padding: 6px;
|
|
||||||
background: #fff;
|
|
||||||
border: 1px solid #888;
|
|
||||||
}
|
|
||||||
div.popuptab {
|
|
||||||
padding-top: 5px;
|
|
||||||
padding-bottom: 5px;
|
|
||||||
padding-left: 5px;
|
|
||||||
padding-right: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
a.tabTitle {
|
|
||||||
color:rgba(0,0,0,.5);
|
|
||||||
margin-<?php print $right; ?>: 10px;
|
|
||||||
text-shadow:1px 1px 1px #ffffff;
|
|
||||||
font-family: <?php print $fontlist ?>;
|
|
||||||
font-weight: normal;
|
|
||||||
padding: 4px 6px 2px 6px;
|
|
||||||
margin: 0px 6px;
|
|
||||||
text-decoration: none;
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
.tabTitleText {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
.imgTabTitle {
|
|
||||||
max-height: 14px;
|
|
||||||
}
|
|
||||||
div.tabs div.tabsElem:first-of-type a.tab {
|
div.tabs div.tabsElem:first-of-type a.tab {
|
||||||
margin-left: 0px !important;
|
margin-left: 0px !important;
|
||||||
}
|
}
|
||||||
@@ -4037,7 +3984,7 @@ a.tabunactive {
|
|||||||
}
|
}
|
||||||
a.tab:link, a.tab:visited, a.tab:hover, a.tab#active {
|
a.tab:link, a.tab:visited, a.tab:hover, a.tab#active {
|
||||||
font-family: <?php print $fontlist ?>;
|
font-family: <?php print $fontlist ?>;
|
||||||
padding: 12px 13px 12px;
|
padding: 10px 13px 10px;
|
||||||
margin: 0em 0.2em;
|
margin: 0em 0.2em;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
@@ -4094,6 +4041,63 @@ span.tabspan {
|
|||||||
border-top: 1px solid #D8D8D8;
|
border-top: 1px solid #D8D8D8;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Payment Screen : Pointer cursor in the autofill image */
|
||||||
|
.AutoFillAmount {
|
||||||
|
cursor:pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* ============================================================================== */
|
||||||
|
/* Buttons for actions */
|
||||||
|
/* ============================================================================== */
|
||||||
|
|
||||||
|
div.divButAction {
|
||||||
|
margin-bottom: 1.4em;
|
||||||
|
}
|
||||||
|
div.tabsAction {
|
||||||
|
margin: 20px 0em 20px 0em;
|
||||||
|
padding: 0em 0em;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
div.tabsActionNoBottom {
|
||||||
|
margin-bottom: 0px;
|
||||||
|
}
|
||||||
|
div.tabsAction > a {
|
||||||
|
margin-bottom: 16px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.popuptabset {
|
||||||
|
padding: 6px;
|
||||||
|
background: #fff;
|
||||||
|
border: 1px solid #888;
|
||||||
|
}
|
||||||
|
div.popuptab {
|
||||||
|
padding-top: 5px;
|
||||||
|
padding-bottom: 5px;
|
||||||
|
padding-left: 5px;
|
||||||
|
padding-right: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
a.tabTitle {
|
||||||
|
color:rgba(0,0,0,.5);
|
||||||
|
margin-<?php print $right; ?>: 10px;
|
||||||
|
text-shadow:1px 1px 1px #ffffff;
|
||||||
|
font-family: <?php print $fontlist ?>;
|
||||||
|
font-weight: normal;
|
||||||
|
padding: 4px 6px 2px 6px;
|
||||||
|
margin: 0px 6px;
|
||||||
|
text-decoration: none;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
.tabTitleText {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.imgTabTitle {
|
||||||
|
max-height: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* ============================================================================== */
|
/* ============================================================================== */
|
||||||
/* Buttons for actions */
|
/* Buttons for actions */
|
||||||
/* ============================================================================== */
|
/* ============================================================================== */
|
||||||
@@ -5344,11 +5348,14 @@ div.divphotoref > div > .photowithmargin, div.divphotoref > img.photowithmargin,
|
|||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
table.table-fiche-title tr.toptitle {
|
||||||
|
height: 60px;
|
||||||
|
}
|
||||||
div.titre {
|
div.titre {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
padding-top: 5px;
|
/*padding-top: 5px;
|
||||||
padding-bottom: 5px;
|
padding-bottom: 5px;*/
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
/* text-shadow: 1px 1px 2px #FFFFFF; */
|
/* text-shadow: 1px 1px 2px #FFFFFF; */
|
||||||
}
|
}
|
||||||
@@ -5372,10 +5379,11 @@ table.notopnoleftnoright.table-fiche-title {
|
|||||||
margin-bottom: 8px;
|
margin-bottom: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
table.table-fiche-title .col-title div.titre, .col-center .btnTitle-icon, .col-right .btnTitle-icon {
|
table.table-fiche-title .col-title div.titre, .col-center .btnTitle-icon, .col-right .btnTitle-icon {
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
table.table-fiche-title .col-title div.titre span {
|
table.table-fiche-title .col-title div.titre span {
|
||||||
line-height: normal;
|
line-height: normal;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -90,10 +90,10 @@ if (GETPOST('cancel', 'alpha')) {
|
|||||||
$action = 'list';
|
$action = 'list';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$error = 0;
|
||||||
|
|
||||||
// Add a notification
|
// Add a notification
|
||||||
if ($action == 'add' && $permissiontoadd) {
|
if ($action == 'add' && $permissiontoadd) {
|
||||||
$error = 0;
|
|
||||||
|
|
||||||
if ($actionid <= 0) {
|
if ($actionid <= 0) {
|
||||||
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("Action")), null, 'errors');
|
setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("Action")), null, 'errors');
|
||||||
$error++;
|
$error++;
|
||||||
@@ -149,6 +149,7 @@ if (getDolGlobalString('MAIN_HTML_TITLE') && preg_match('/thirdpartynameonly/',
|
|||||||
$title = $object->name.' - '.$langs->trans("Notification");
|
$title = $object->name.' - '.$langs->trans("Notification");
|
||||||
}
|
}
|
||||||
$help_url = 'EN:Module_Third_Parties|FR:Module_Tiers|ES:Empresas';
|
$help_url = 'EN:Module_Third_Parties|FR:Module_Tiers|ES:Empresas';
|
||||||
|
|
||||||
llxHeader('', $title, $help_url, '', 0, 0, '', '', '', 'mod-user page-notify_card');
|
llxHeader('', $title, $help_url, '', 0, 0, '', '', '', 'mod-user page-notify_card');
|
||||||
|
|
||||||
|
|
||||||
@@ -205,7 +206,7 @@ if ($result > 0) {
|
|||||||
print "\n";
|
print "\n";
|
||||||
|
|
||||||
// Help
|
// Help
|
||||||
print '<span class="opacitymedium">';
|
print '<span class="opacitymedium hideonsmartphone">';
|
||||||
print '<br>'.$langs->trans("NotificationsDesc");
|
print '<br>'.$langs->trans("NotificationsDesc");
|
||||||
print '<br>'.$langs->trans("NotificationsDescUser").' - '.$langs->trans("YouAreHere");
|
print '<br>'.$langs->trans("NotificationsDescUser").' - '.$langs->trans("YouAreHere");
|
||||||
if (isModEnabled('societe')) {
|
if (isModEnabled('societe')) {
|
||||||
@@ -267,7 +268,7 @@ if ($result > 0) {
|
|||||||
print_liste_field_titre("Event", $_SERVER["PHP_SELF"], "", '', $param, '', $sortfield, $sortorder);
|
print_liste_field_titre("Event", $_SERVER["PHP_SELF"], "", '', $param, '', $sortfield, $sortorder);
|
||||||
print_liste_field_titre("Type", $_SERVER["PHP_SELF"], "n.type", '', $param, '', $sortfield, $sortorder);
|
print_liste_field_titre("Type", $_SERVER["PHP_SELF"], "n.type", '', $param, '', $sortfield, $sortorder);
|
||||||
print_liste_field_titre('', '', '');
|
print_liste_field_titre('', '', '');
|
||||||
print '</tr>';
|
print "</tr>\n";
|
||||||
|
|
||||||
|
|
||||||
if ($action == 'create') {
|
if ($action == 'create') {
|
||||||
@@ -300,13 +301,13 @@ if ($result > 0) {
|
|||||||
print $form->selectarray("typeid", $type);
|
print $form->selectarray("typeid", $type);
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td class="nowraponall">';
|
print '<td class="nowraponall">';
|
||||||
print '<input type="submit" class="button button-add" value="'.$langs->trans("Add").'">';
|
print '<input type="submit" class="button button-add small" value="'.$langs->trans("Add").'">';
|
||||||
print ' ';
|
print ' ';
|
||||||
print '<input type="submit" class="button" name="cancel" value="'.$langs->trans("Cancel").'">';
|
print '<input type="submit" class="button button-cancel small" name="cancel" value="'.$langs->trans("Cancel").'">';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
} else {
|
} else {
|
||||||
print '<tr class="oddeven"><td colspan="4">';
|
print '<tr class="oddeven"><td colspan="4" class="opacitymedium">';
|
||||||
print $langs->trans("YouMustAssignUserMailFirst");
|
print $langs->trans("YouMustAssignUserMailFirst");
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
}
|
}
|
||||||
@@ -334,7 +335,7 @@ if ($result > 0) {
|
|||||||
print ' <'.$obj->email.'>';
|
print ' <'.$obj->email.'>';
|
||||||
} else {
|
} else {
|
||||||
$langs->load("errors");
|
$langs->load("errors");
|
||||||
print ' '.img_warning().' '.$langs->trans("ErrorBadEMail", $obj->email);
|
print ' '.img_warning().' <span class="warning">'.$langs->trans("ErrorBadEMail", $obj->email).'</span>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|||||||
Reference in New Issue
Block a user