irm-1.6-b3/users/reports/tracking-detail-search.php
# It is based on a function by Jackson Yee (me@jacksoncomputing.com)
It is based on a function by Jackson Yee (me@jacksoncomputing.com)
It is based on a function by Jackson Yee ( me@jacksoncomputing . com )
function GetDateSelectString($Prefix = '')
{
 $date = sprintf("%04d-%02d-%02d", $_GET[$Prefix . 'Year'], $_GET[$Prefix . 'Month'], $_GET[$Prefix . 'Day']);
 if ($Prefix == "bd")
 {
  $date=strtotime($date); 
  $date=$date - 86400;
  $date=date("Y-m-d", $date);
 }
 if ($Prefix == "ed")
 { 
  $date=strtotime($date);
  $date=$date + 86400;
  $date=date("Y-m-d", $date);
 }
 return $date;
}
function GetDateSelectString ( $ Prefix = '' ) { $ date = sprintf ( " %04d-%02d-%02d " , $ _GET [ $ Prefix . 'Year' ] , $ _GET [ $ Prefix . 'Month' ] , $ _GET [ $ Prefix . 'Day' ] ) ; if ( $ Prefix == " bd " ) { $ date = strtotime ( $ date ) ; $ date = $ date - 86400 ; $ date = date ( " Y-m-d " , $ date ) ; } if ( $ Prefix == " ed " ) { $ date = strtotime ( $ date ) ; $ date = $ date + 86400 ; $ date = date ( " Y-m-d " , $ date ) ; } return $ date ; }
It is based on a function by Jackson Yee (me@jacksoncomputing.com)
It is based on a function by Jackson Yee ( me@jacksoncomputing . com )
# Subtract a day from the beginning date so the date dialogs behave # the way the user would expect. # Add a day to the ending date for the same reason