Look and feel v18
This commit is contained in:
parent
a03358fa46
commit
ee2a9d4891
@ -973,7 +973,7 @@ class Form
|
|||||||
if (is_numeric($showempty)) {
|
if (is_numeric($showempty)) {
|
||||||
$out .= '<option value=""> </option>' . "\n";
|
$out .= '<option value=""> </option>' . "\n";
|
||||||
} else {
|
} else {
|
||||||
$out .= '<option value="">' . $langs->trans($showempty) . '</option>' . "\n";
|
$out .= '<option value="-1">' . $langs->trans($showempty) . '</option>' . "\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -65,7 +65,7 @@ class FormProjets
|
|||||||
* @param string $htmlname Name of HTML field
|
* @param string $htmlname Name of HTML field
|
||||||
* @param int $maxlength Maximum length of label
|
* @param int $maxlength Maximum length of label
|
||||||
* @param int $option_only Return only html options lines without the select tag
|
* @param int $option_only Return only html options lines without the select tag
|
||||||
* @param int $show_empty Add an empty line
|
* @param int|string $show_empty Add an empty line
|
||||||
* @param int $discard_closed Discard closed projects (0=Keep, 1=hide completely, 2=Disable). Use a negative value to not show the "discarded" tooltip.
|
* @param int $discard_closed Discard closed projects (0=Keep, 1=hide completely, 2=Disable). Use a negative value to not show the "discarded" tooltip.
|
||||||
* @param int $forcefocus Force focus on field (works with javascript only)
|
* @param int $forcefocus Force focus on field (works with javascript only)
|
||||||
* @param int $disabled Disabled
|
* @param int $disabled Disabled
|
||||||
@ -134,7 +134,7 @@ class FormProjets
|
|||||||
* @param string $htmlname Nom de la zone html
|
* @param string $htmlname Nom de la zone html
|
||||||
* @param int $maxlength Maximum length of label
|
* @param int $maxlength Maximum length of label
|
||||||
* @param int $option_only Return only html options lines without the select tag
|
* @param int $option_only Return only html options lines without the select tag
|
||||||
* @param int $show_empty Add an empty line
|
* @param int|string $show_empty Add an empty line
|
||||||
* @param int $discard_closed Discard closed projects (0=Keep,1=hide completely,2=Disable)
|
* @param int $discard_closed Discard closed projects (0=Keep,1=hide completely,2=Disable)
|
||||||
* @param int $forcefocus Force focus on field (works with javascript only)
|
* @param int $forcefocus Force focus on field (works with javascript only)
|
||||||
* @param int $disabled Disabled
|
* @param int $disabled Disabled
|
||||||
@ -206,7 +206,11 @@ class FormProjets
|
|||||||
$out .= '<select class="flat' . ($morecss ? ' ' . $morecss : '') . '"' . ($disabled ? ' disabled="disabled"' : '') . ' id="' . $htmlid . '" name="' . $htmlname . '">';
|
$out .= '<select class="flat' . ($morecss ? ' ' . $morecss : '') . '"' . ($disabled ? ' disabled="disabled"' : '') . ' id="' . $htmlid . '" name="' . $htmlname . '">';
|
||||||
}
|
}
|
||||||
if (!empty($show_empty)) {
|
if (!empty($show_empty)) {
|
||||||
|
if (is_numeric($show_empty)) {
|
||||||
$out .= '<option value="0"> </option>';
|
$out .= '<option value="0"> </option>';
|
||||||
|
} else {
|
||||||
|
$out .= '<option value="-1">'.$show_empty.'</option>';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$num = $this->db->num_rows($resql);
|
$num = $this->db->num_rows($resql);
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
|||||||
@ -310,7 +310,8 @@ class mailing_contacts1 extends MailingTargets
|
|||||||
if (getDolGlobalInt('MAIN_MULTILANGS')) {
|
if (getDolGlobalInt('MAIN_MULTILANGS')) {
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formadmin.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formadmin.class.php';
|
||||||
$formadmin = new FormAdmin($this->db);
|
$formadmin = new FormAdmin($this->db);
|
||||||
$s .= '<span class="opacitymedium">'.$langs->trans("DefaultLang").':</span> ';
|
$s .= img_picto($langs->trans("DefaultLang"), 'language', 'class="pictofixedwidth"');
|
||||||
|
//$s .= '<span class="opacitymedium">'.$langs->trans("DefaultLang").':</span> ';
|
||||||
$s .= $formadmin->select_language($langs->getDefaultLang(1), 'filter_lang', 0, null, 1, 0, 0, '', 0, 0, 0, null, 1);
|
$s .= $formadmin->select_language($langs->getDefaultLang(1), 'filter_lang', 0, null, 1, 0, 0, '', 0, 0, 0, null, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -84,7 +84,9 @@ class mailing_eventorganization extends MailingTargets
|
|||||||
$sql .= " AND e.fk_project = p.rowid";
|
$sql .= " AND e.fk_project = p.rowid";
|
||||||
$sql .= " AND p.entity IN (".getEntity('project').")";
|
$sql .= " AND p.entity IN (".getEntity('project').")";
|
||||||
$sql .= " AND e.email NOT IN (SELECT email FROM ".MAIN_DB_PREFIX."mailing_cibles WHERE fk_mailing=".((int) $mailing_id).")";
|
$sql .= " AND e.email NOT IN (SELECT email FROM ".MAIN_DB_PREFIX."mailing_cibles WHERE fk_mailing=".((int) $mailing_id).")";
|
||||||
|
if (GETPOST('filter_eventorganization', 'int') > 0) {
|
||||||
$sql .= " AND e.fk_project = ".((int) GETPOST('filter_eventorganization', 'int'));
|
$sql .= " AND e.fk_project = ".((int) GETPOST('filter_eventorganization', 'int'));
|
||||||
|
}
|
||||||
if (empty($this->evenunsubscribe)) {
|
if (empty($this->evenunsubscribe)) {
|
||||||
$sql .= " AND NOT EXISTS (SELECT rowid FROM ".MAIN_DB_PREFIX."mailing_unsubscribe as mu WHERE mu.email = e.email and mu.entity = ".((int) $conf->entity).")";
|
$sql .= " AND NOT EXISTS (SELECT rowid FROM ".MAIN_DB_PREFIX."mailing_unsubscribe as mu WHERE mu.email = e.email and mu.entity = ".((int) $conf->entity).")";
|
||||||
}
|
}
|
||||||
@ -192,7 +194,7 @@ class mailing_eventorganization extends MailingTargets
|
|||||||
|
|
||||||
include_once DOL_DOCUMENT_ROOT.'/core/class/html.formprojet.class.php';
|
include_once DOL_DOCUMENT_ROOT.'/core/class/html.formprojet.class.php';
|
||||||
$formproject = new FormProjets($this->db);
|
$formproject = new FormProjets($this->db);
|
||||||
$s = $formproject->select_projects(-1, 0, "filter_eventorganization", 0, 0, 1, 1, 0, 0, 0, '', 1, 0, '', '', 'usage_organize_event=1');
|
$s = $formproject->select_projects(-1, 0, "filter_eventorganization", 0, 0, $langs->trans("OrganizedEvent"), 1, 0, 0, 0, '', 1, 0, '', '', 'usage_organize_event=1');
|
||||||
|
|
||||||
return $s;
|
return $s;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -368,7 +368,8 @@ class mailing_thirdparties extends MailingTargets
|
|||||||
// Choose language
|
// Choose language
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formadmin.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formadmin.class.php';
|
||||||
$formadmin = new FormAdmin($this->db);
|
$formadmin = new FormAdmin($this->db);
|
||||||
$s .= '<span class="opacitymedium">'.$langs->trans("DefaultLang").':</span> ';
|
$s .= img_picto($langs->trans("DefaultLang"), 'language', 'class="pictofixedwidth"');
|
||||||
|
//$s .= '<span class="opacitymedium">'.$langs->trans("DefaultLang").':</span> ';
|
||||||
$s .= $formadmin->select_language($langs->getDefaultLang(1), 'filter_lang_thirdparties', 0, null, 1, 0, 0, '', 0, 0, 0, null, 1);
|
$s .= $formadmin->select_language($langs->getDefaultLang(1), 'filter_lang_thirdparties', 0, null, 1, 0, 0, '', 0, 0, 0, null, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -53,6 +53,7 @@ EVENTORGANIZATION_FILTERATTENDEES_TYPE = In the form to create/add an attendee,
|
|||||||
#
|
#
|
||||||
# Object
|
# Object
|
||||||
#
|
#
|
||||||
|
OrganizedEvent=Organized event
|
||||||
EventOrganizationConfOrBooth= Conference Or Booth
|
EventOrganizationConfOrBooth= Conference Or Booth
|
||||||
EventOrganizationConfOrBoothes=Conferences or Boothes
|
EventOrganizationConfOrBoothes=Conferences or Boothes
|
||||||
ManageOrganizeEvent = Manage the organization of an event
|
ManageOrganizeEvent = Manage the organization of an event
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user