FIX stickler
This commit is contained in:
parent
69db790cf5
commit
3dd7c81f54
@ -5251,10 +5251,12 @@ class Form
|
|||||||
* @param integer $set_time Pre-selected date (must be a local PHP server timestamp), -1 to keep date not preselected, '' to use current date with 00:00 hour (Parameter 'empty' must be 0 or 2).
|
* @param integer $set_time Pre-selected date (must be a local PHP server timestamp), -1 to keep date not preselected, '' to use current date with 00:00 hour (Parameter 'empty' must be 0 or 2).
|
||||||
* @param integer $set_time_end Pre-selected date (must be a local PHP server timestamp), -1 to keep date not preselected, '' to use current date with 00:00 hour (Parameter 'empty' must be 0 or 2).
|
* @param integer $set_time_end Pre-selected date (must be a local PHP server timestamp), -1 to keep date not preselected, '' to use current date with 00:00 hour (Parameter 'empty' must be 0 or 2).
|
||||||
* @param string $prefix Prefix for fields name
|
* @param string $prefix Prefix for fields name
|
||||||
|
* @param string $empty 0=Fields required, 1=Empty inputs are allowed, 2=Empty inputs are allowed for hours only
|
||||||
* @return string Html for selectDate
|
* @return string Html for selectDate
|
||||||
* @see form_date(), select_month(), select_year(), select_dayofweek()
|
* @see form_date(), select_month(), select_year(), select_dayofweek()
|
||||||
*/
|
*/
|
||||||
public function selectDateToDate($set_time = '', $set_time_end = '', $prefix = 're', $empty = 0) {
|
public function selectDateToDate($set_time = '', $set_time_end = '', $prefix = 're', $empty = 0)
|
||||||
|
{
|
||||||
$ret = $this->selectDate($set_time, $prefix.'_start', 0, 0, $empty);
|
$ret = $this->selectDate($set_time, $prefix.'_start', 0, 0, $empty);
|
||||||
$ret .= '<br/>';
|
$ret .= '<br/>';
|
||||||
$ret .= $this->selectDate($set_time_end, $prefix.'_end', 0, 0, $empty);
|
$ret .= $this->selectDate($set_time_end, $prefix.'_end', 0, 0, $empty);
|
||||||
|
|||||||
@ -1843,7 +1843,18 @@ function show_subsidiaries($conf, $langs, $db, $object)
|
|||||||
|
|
||||||
return $i;
|
return $i;
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* Add Event Type SQL
|
||||||
|
*
|
||||||
|
* @param string $sql $sql modified
|
||||||
|
* @param string $actioncode Action code
|
||||||
|
* @param string $donetodo donetodo
|
||||||
|
* @param string $now now
|
||||||
|
* @param string $filters array
|
||||||
|
* @param string $donetodo donetodo
|
||||||
|
* @param string $sqlANDOR "AND", "OR" or ""
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
function addEventTypeSQL(&$sql, $actioncode, $donetodo, $now, $filters, $sqlANDOR = "AND") {
|
function addEventTypeSQL(&$sql, $actioncode, $donetodo, $now, $filters, $sqlANDOR = "AND") {
|
||||||
global $conf, $db;
|
global $conf, $db;
|
||||||
// Condition on actioncode
|
// Condition on actioncode
|
||||||
@ -1870,6 +1881,14 @@ function addEventTypeSQL(&$sql, $actioncode, $donetodo, $now, $filters, $sqlANDO
|
|||||||
if (is_array($filters) && $filters['search_agenda_label']) $sql .= natural_search('a.label', $filters['search_agenda_label']);
|
if (is_array($filters) && $filters['search_agenda_label']) $sql .= natural_search('a.label', $filters['search_agenda_label']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add Mailing Event Type SQL
|
||||||
|
*
|
||||||
|
* @param string $actioncode Action code
|
||||||
|
* @param string $objcon objcon
|
||||||
|
* @param Object $filterobj
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
function addMailingEventTypeSQL($actioncode, $objcon, $filterobj) {
|
function addMailingEventTypeSQL($actioncode, $objcon, $filterobj) {
|
||||||
global $conf, $langs, $db;
|
global $conf, $langs, $db;
|
||||||
// Add also event from emailings. TODO This should be replaced by an automatic event ? May be it's too much for very large emailing.
|
// Add also event from emailings. TODO This should be replaced by an automatic event ? May be it's too much for very large emailing.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user