';
- print '';
+ //print '';
if ($canedit)
{
+ print '';
// Type
- print ' ';
- print '| ';
- print $langs->trans("Type");
- print ' | ';
+ //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 '';
print $formactions->select_type_actions($actioncode, "search_actioncode", $excludetype, (empty($conf->global->AGENDA_USE_EVENT_TYPE) ? 1 : -1), 0, $multiselect, 0, 'maxwidth500');
- print ' | ';
+ //print '';
+ print '';
// Assigned to
- print '';
- print '| ';
- print $langs->trans("ActionsToDoBy").' ';
- print ' | ';
+ 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');
- if (empty($conf->dol_optimize_smallscreen)) print ' '.$langs->trans("or").' '.$langs->trans("ToUserOfGroup").' ';
- else print ' ';
+ 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 ' | ';
+ print '';
if ($conf->resource->enabled)
{
@@ -108,25 +115,29 @@ function print_actions_filter($form, $canedit, $status, $year, $month, $day, $sh
$formresource = new FormResource($db);
// Resource
- print '';
- print '| ';
- print $langs->trans("Resource");
- print ' | ';
- print img_picto('', 'object_resource', 'class="fawidth30 inline-block"');
+ 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 '';
+ print '';
}
}
if (!empty($conf->societe->enabled) && $user->rights->societe->lire)
{
- print '';
- print '| ';
- print $langs->trans("ThirdParty").' ';
- print ' | ';
+ 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 '';
+ print '';
}
if (!empty($conf->projet->enabled) && $user->rights->projet->lire)
@@ -134,34 +145,41 @@ function print_actions_filter($form, $canedit, $status, $year, $month, $day, $sh
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formprojet.class.php';
$formproject = new FormProjets($db);
- print '';
- print '| ';
- print $langs->trans("Project").' ';
- print ' | ';
+ 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 '';
+ print '';
}
if ($canedit && !preg_match('/list/', $_SERVER["PHP_SELF"]))
{
// Status
- print '';
- print '| ';
- print $langs->trans("Status");
- print ' | ';
+ 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 '';
+ print '';
}
if ($canedit && $action == 'show_peruser')
{
+ print '';
// Filter on hours
- print ' ';
- print '| '.$langs->trans("VisibleTimeRange").' | ';
- print "";
+ //print ' | ';
+ //print '| ';
print img_picto('', 'clock', 'class="fawidth30 inline-block"');
+ print ''.$langs->trans("VisibleTimeRange").'';
+ //print ' | ';
+ //print "";
print "\n".'';
- print ' | ';
+ //print '';
+ print ' ';
// Filter on days
- print '';
- print '| '.$langs->trans("VisibleDaysRange").' | ';
- print "";
+ print '';
+ //print ' ';
+ //print '| ';
print img_picto('', 'clock', 'class="fawidth30 inline-block"');
+ print ''.$langs->trans("VisibleDaysRange").'';
+ //print ' | ';
+ //print "";
print "\n".'';
- print ' | ';
+ //print ' | ';
+ print '';
}
// Hooks
$parameters = array('canedit'=>$canedit, 'pid'=>$pid, 'socid'=>$socid);
$reshook = $hookmanager->executeHooks('searchAgendaFrom', $parameters, $object, $action); // Note that $action and $object may have been
- print ' ';
+ //print ' ';
- if ($conf->browser->layout == 'phone') print '';
- else print ' | ';
+ //if ($conf->browser->layout == 'phone') print '';
+ //else print '';
/*
if ($conf->browser->layout == 'phone') print '';
@@ -208,9 +231,9 @@ function print_actions_filter($form, $canedit, $status, $year, $month, $day, $sh
if ($conf->browser->layout == 'phone') print '
';
else print '';
*/
- if ($conf->browser->layout != 'phone') print '