irm-1.6-b3/users/reports/tracking-detail.php
# into a form.  It was written by Jackson Yee (me@jacksoncomputing.com)
into a form.  It was written by Jackson Yee (me@jacksoncomputing.com)
into a form . It was written by Jackson Yee ( me@jacksoncomputing . com )
function WriteDateSelect($BeginYear = 0, $EndYear = 0, $IsPosted = true, $Prefix = '')
{
  if (! $BeginYear)
  {
    $BeginYear = date('Y');
  }
  if (! $EndYear)
  {
    $EndYear = $BeginYear;
  }
  $Year = $IsPosted
          ? (int) $_POST[$Prefix . 'Year']
          : (int) $_GET[$Prefix . 'Year'];
  $Month = $IsPosted
          ? (int) $_POST[$Prefix . 'Month']
          : (int) $_GET[$Prefix . 'Month'];
  $Day = $IsPosted
          ? (int) $_POST[$Prefix . 'Day']
          : (int) $_GET[$Prefix . 'Day'];
  echo "<select name=\"${Prefix}Month\">\n";
  for ($i = 1; $i <= 12; $i++)
  {
    echo '<option ';
    if ($i == $Month)
      echo 'selected="yes"';
    echo '>', $i, '</option>
         ';
  }
  echo '</select>-
        <select name="', $Prefix, 'Day">
          ';
  for ($i = 1; $i <= 31; $i++)
  {
    echo '<option ';
    if ($i == $Day)
      echo 'selected="yes"';
    echo '>', $i, '</option>
         ';
  }
  echo '</select>
       ';
  echo '<select name="', $Prefix, 'Year">
         ';
  for ($i = $BeginYear; $i <= $EndYear; $i++)
  {
    echo '<option ';
    if ($i == $Year)
      echo 'selected="yes"';
    echo '>', $i, '</option>
         ';
  }
  echo '</select>';
 return;
}
function WriteDateSelect ( $ BeginYear = 0 , $ EndYear = 0 , $ IsPosted = true , $ Prefix = '' ) { if ( ! $ BeginYear ) { $ BeginYear = date ( 'Y' ) ; } if ( ! $ EndYear ) { $ EndYear = $ BeginYear ; } $ Year = $ IsPosted ? ( int ) $ _POST [ $ Prefix . 'Year' ] : ( int ) $ _GET [ $ Prefix . 'Year' ] ; $ Month = $ IsPosted ? ( int ) $ _POST [ $ Prefix . 'Month' ] : ( int ) $ _GET [ $ Prefix . 'Month' ] ; $ Day = $ IsPosted ? ( int ) $ _POST [ $ Prefix . 'Day' ] : ( int ) $ _GET [ $ Prefix . 'Day' ] ; echo " <select name= \" $ { Prefix } Month \" > \n " ; for ( $ i = 1 ; $ i <= 12 ; $ i ++ ) { echo '<option ' ; if ( $ i == $ Month ) echo 'selected="yes"' ; echo '>' , $ i , '</option>
         ' ; } echo '</select>-
        <select name="' , $ Prefix , 'Day">
          ' ; for ( $ i = 1 ; $ i <= 31 ; $ i ++ ) { echo '<option ' ; if ( $ i == $ Day ) echo 'selected="yes"' ; echo '>' , $ i , '</option>
         ' ; } echo '</select>
       ' ; echo '<select name="' , $ Prefix , 'Year">
         ' ; for ( $ i = $ BeginYear ; $ i <= $ EndYear ; $ i ++ ) { echo '<option ' ; if ( $ i == $ Year ) echo 'selected="yes"' ; echo '>' , $ i , '</option>
         ' ; } echo '</select>' ; return ; }
into a form.
into a form .