';
-
- //print '';
-
if ($canedit)
{
print '';
// Type
- //print ' ';
- //print '| ';
print '';
print ''.$langs->trans("Type").'';
- //print ' | ';
$multiselect = 0;
if (!empty($conf->global->MAIN_ENABLE_MULTISELECT_TYPE)) // We use an option here because it adds bugs when used on agenda page "peruser" and "list"
{
$multiselect = (!empty($conf->global->AGENDA_USE_EVENT_TYPE));
}
print $formactions->select_type_actions($actioncode, "search_actioncode", $excludetype, (empty($conf->global->AGENDA_USE_EVENT_TYPE) ? 1 : -1), 0, $multiselect, 0, 'maxwidth500');
- //print ' | ';
print '';
// Assigned to
print '';
- //print ' ';
- //print '| ';
print img_picto('', 'user', 'class="fawidth30 inline-block"');
print ''.$langs->trans("ActionsToDoBy").'';
- //print ' | ';
print $form->select_dolusers($filtert, 'search_filtert', 1, '', !$canedit, '', '', 0, 0, 0, '', 0, '', 'maxwidth500');
print '';
print ' ';
- //if (empty($conf->dol_optimize_smallscreen)) print ' '.$langs->trans("ToUserOfGroup").' ';
- //else print ' ';
print img_picto('', 'object_group', 'class="fawidth30 inline-block"');
print ''.$langs->trans("ToUserOfGroup").'';
print $form->select_dolgroups($usergroupid, 'usergroup', 1, '', !$canedit, '', '', '0', false, 'maxwidth500');
- //print ' | ';
print ' ';
if ($conf->resource->enabled)
@@ -116,13 +102,9 @@ function print_actions_filter($form, $canedit, $status, $year, $month, $day, $sh
// Resource
print '';
- //print ' ';
- //print '| ';
print img_picto('', 'object_resource', 'class="fawidth30 inline-block"');
print ''.$langs->trans("Resource").'';
- //print ' | ';
print $formresource->select_resource_list($resourceid, "search_resourceid", '', 1, 0, 0, null, '', 2, 0, 'maxwidth500');
- //print ' | ';
print '';
}
}
@@ -130,13 +112,9 @@ function print_actions_filter($form, $canedit, $status, $year, $month, $day, $sh
if (!empty($conf->societe->enabled) && $user->rights->societe->lire)
{
print '';
- //print ' ';
- //print '| ';
print img_picto('', 'company', 'class="fawidth30 inline-block"');
print ''.$langs->trans("ThirdParty").'';
- //print ' | ';
print $form->select_company($socid, 'search_socid', '', ' ', 0, 0, null, 0, 'minwidth100 maxwidth500');
- //print ' | ';
print '';
}
@@ -146,13 +124,9 @@ function print_actions_filter($form, $canedit, $status, $year, $month, $day, $sh
$formproject = new FormProjets($db);
print '';
- //print ' ';
- //print '| ';
print img_picto('', 'project', 'class="fawidth30 inline-block"');
print ''.$langs->trans("Project").'';
- //print ' | ';
print $formproject->select_projects($socid ? $socid : -1, $pid, 'search_projectid', 0, 0, 1, 0, 0, 0, 0, '', 1, 0, 'maxwidth500');
- //print ' | ';
print '';
}
@@ -160,13 +134,9 @@ function print_actions_filter($form, $canedit, $status, $year, $month, $day, $sh
{
// Status
print '';
- //print ' ';
- //print '| ';
print img_picto('', 'setup', 'class="fawidth30 inline-block"');
print ''.$langs->trans("Status").'';
- //print ' | ';
$formactions->form_select_status_action('formaction', $status, 1, 'search_status', 1, 2, 'minwidth100');
- //print ' | ';
print '';
}
@@ -174,12 +144,8 @@ function print_actions_filter($form, $canedit, $status, $year, $month, $day, $sh
{
print '';
// Filter on hours
- //print ' ';
- //print '| ';
print img_picto('', 'clock', 'class="fawidth30 inline-block"');
print ''.$langs->trans("VisibleTimeRange").'';
- //print ' | ';
- //print "";
print "\n".'';
- //print ' | ';
print ' ';
// Filter on days
print '';
- //print ' ';
- //print '| ';
print img_picto('', 'clock', 'class="fawidth30 inline-block"');
print ''.$langs->trans("VisibleDaysRange").'';
- //print ' | ';
- //print "";
print "\n".'';
- //print ' | ';
print ' ';
}
// Hooks
$parameters = array('canedit'=>$canedit, 'pid'=>$pid, 'socid'=>$socid);
+ $object = null;
$reshook = $hookmanager->executeHooks('searchAgendaFrom', $parameters, $object, $action); // Note that $action and $object may have been
- //print ' ';
-
- //if ($conf->browser->layout == 'phone') print '';
- //else print ' | ';
-
- /*
- if ($conf->browser->layout == 'phone') print '';
- else print '
';
-
- print '';
-
- if ($conf->browser->layout == 'phone') print '';
- else print ' | ';
- */
- //if ($conf->browser->layout != 'phone') print '