missing update
This commit is contained in:
parent
22f708b95a
commit
289886cd29
@ -104,8 +104,13 @@ if (empty($reshook))
|
|||||||
$toselect = '';
|
$toselect = '';
|
||||||
$search_array_options = array();
|
$search_array_options = array();
|
||||||
}
|
}
|
||||||
if (GETPOST('button_removefilter_x', 'alpha') || GETPOST('button_removefilter.x', 'alpha') || GETPOST('button_removefilter', 'alpha')
|
|
||||||
|| GETPOST('button_search_x', 'alpha') || GETPOST('button_search.x', 'alpha') || GETPOST('button_search', 'alpha'))
|
if (GETPOST('button_removefilter_x', 'alpha')
|
||||||
|
|| GETPOST('button_removefilter.x', 'alpha')
|
||||||
|
|| GETPOST('button_removefilter', 'alpha')
|
||||||
|
|| GETPOST('button_search_x', 'alpha')
|
||||||
|
|| GETPOST('button_search.x', 'alpha')
|
||||||
|
|| GETPOST('button_search', 'alpha'))
|
||||||
{
|
{
|
||||||
$massaction = ''; // Protection to avoid mass action if we force a new search during a mass action confirmation
|
$massaction = ''; // Protection to avoid mass action if we force a new search during a mass action confirmation
|
||||||
}
|
}
|
||||||
@ -144,10 +149,11 @@ $alltypeleaves = $object->getTypes(1, -1); // To have labels
|
|||||||
|
|
||||||
llxHeader('', $langs->trans('CPTitreMenu').' ('.$langs->trans("Year").' '.$year.')');
|
llxHeader('', $langs->trans('CPTitreMenu').' ('.$langs->trans("Year").' '.$year.')');
|
||||||
|
|
||||||
|
$sqlwhere = " AND date_action BETWEEN ".
|
||||||
|
$sqlwhere.= "'".$db->idate(dol_get_first_day($year, 1, 1))."'";
|
||||||
|
$sqlwhere.= " AND ";
|
||||||
|
$sqlwhere.= "'".$db->idate(dol_get_last_day($year, 12, 1))."'";
|
||||||
|
|
||||||
|
|
||||||
$sqlwhere = '';
|
|
||||||
$sqlwhere.= " AND date_action BETWEEN '".$db->idate(dol_get_first_day($year, 1, 1))."' AND '".$db->idate(dol_get_last_day($year, 12, 1))."'";
|
|
||||||
if ($search_id != '') $sqlwhere.= natural_search('rowid', $search_id, 1);
|
if ($search_id != '') $sqlwhere.= natural_search('rowid', $search_id, 1);
|
||||||
if ($search_prev_solde != '') $sqlwhere.= natural_search('prev_solde', $search_prev_solde, 1);
|
if ($search_prev_solde != '') $sqlwhere.= natural_search('prev_solde', $search_prev_solde, 1);
|
||||||
if ($search_new_solde != '') $sqlwhere.= natural_search('new_solde', $search_new_solde, 1);
|
if ($search_new_solde != '') $sqlwhere.= natural_search('new_solde', $search_new_solde, 1);
|
||||||
@ -172,10 +178,32 @@ print '<input type="hidden" name="sortorder" value="'.$sortorder.'">';
|
|||||||
print '<input type="hidden" name="page" value="'.$page.'">';
|
print '<input type="hidden" name="page" value="'.$page.'">';
|
||||||
print '<input type="hidden" name="contextpage" value="'.$contextpage.'">';
|
print '<input type="hidden" name="contextpage" value="'.$contextpage.'">';
|
||||||
|
|
||||||
$pagination = '<div class="pagination"><ul><li class="pagination"><a href="'.$_SERVER["PHP_SELF"].'?year='.($year - 1).$param.'"><i class="fa fa-chevron-left" title="Previous"></i></a><li class="pagination"><span class="active">'.$langs->trans("Year").' '.$year.'</span></li><li class="pagination"><a href="'.$_SERVER["PHP_SELF"].'?year='.($year + 1).$param.'"><i class="fa fa-chevron-right" title="Next"></i></a></li></lu></div>';
|
$pagination = '<div class="pagination">';
|
||||||
|
$pagination.= '<ul>';
|
||||||
|
$pagination.= '<li class="pagination">';
|
||||||
|
|
||||||
|
$pagination.= '<a href="'.$_SERVER["PHP_SELF"].'?year='.($year - 1).$param.'">';
|
||||||
|
$pagination.= '<i class="fa fa-chevron-left" title="Previous"></i>';
|
||||||
|
$pagination.= '</a>';
|
||||||
|
|
||||||
|
$pagination.= '<li class="pagination">';
|
||||||
|
$pagination.= '<span class="active">'.$langs->trans("Year").' '.$year.'</span>';
|
||||||
|
$pagination.= '</li>';
|
||||||
|
|
||||||
|
$pagination.= '<li class="pagination">';
|
||||||
|
$pagination.= '<a href="'.$_SERVER["PHP_SELF"].'?year='.($year + 1).$param.'">';
|
||||||
|
$pagination.= '<i class="fa fa-chevron-right" title="Next"></i>';
|
||||||
|
$pagination.= '</a>';
|
||||||
|
$pagination.= '</li>';
|
||||||
|
|
||||||
|
$pagination.= '</li>';
|
||||||
|
$pagination.= '</ul>';
|
||||||
|
$pagination.= '</div>';
|
||||||
|
|
||||||
print load_fiche_titre($langs->trans('LogCP'), $pagination, 'title_hrm.png');
|
print load_fiche_titre($langs->trans('LogCP'), $pagination, 'title_hrm.png');
|
||||||
|
|
||||||
print '<div class="info">'.$langs->trans('LastUpdateCP').': '."\n";
|
print '<div class="info">'.$langs->trans('LastUpdateCP').': '."\n";
|
||||||
|
|
||||||
$lastUpdate = $object->getConfCP('lastUpdate');
|
$lastUpdate = $object->getConfCP('lastUpdate');
|
||||||
if ($lastUpdate)
|
if ($lastUpdate)
|
||||||
{
|
{
|
||||||
@ -183,7 +211,11 @@ if ($lastUpdate)
|
|||||||
$yearLastUpdate = $lastUpdate[0].$lastUpdate[1].$lastUpdate[2].$lastUpdate[3];
|
$yearLastUpdate = $lastUpdate[0].$lastUpdate[1].$lastUpdate[2].$lastUpdate[3];
|
||||||
print '<strong>'.dol_print_date($db->jdate($object->getConfCP('lastUpdate')), 'dayhour', 'tzuser').'</strong>';
|
print '<strong>'.dol_print_date($db->jdate($object->getConfCP('lastUpdate')), 'dayhour', 'tzuser').'</strong>';
|
||||||
print '<br>'.$langs->trans("MonthOfLastMonthlyUpdate").': <strong>'.$yearLastUpdate.'-'.$monthLastUpdate.'</strong>'."\n";
|
print '<br>'.$langs->trans("MonthOfLastMonthlyUpdate").': <strong>'.$yearLastUpdate.'-'.$monthLastUpdate.'</strong>'."\n";
|
||||||
} else print $langs->trans('None');
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print $langs->trans('None');
|
||||||
|
}
|
||||||
print "</div><br>\n";
|
print "</div><br>\n";
|
||||||
|
|
||||||
$moreforfilter = '';
|
$moreforfilter = '';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user