All pastes #759534 Raw Edit

Someone

public text v1 · immutable
·published 2007-11-03 07:08 UTC
rendered paste body
<form id="filter" name="filter" method="post" action="<?php echo "ghost_license.php?filter='" . $fGhost_Hunt;
?>">

<table border="0" cellspacing="5" cellpadding="5">
<tr>
<td>

      <select name="fGhost_Hunt">
	  <option name="Ghost Hunt" value='all'>All Ghost Hunts</option>
        <?php
do {
				?>

        <option name="Ghost_Hunt" value="<?php echo $row_Ghost_Hunt_Dates['name']?>"><?php echo $row_Ghost_Hunt_Dates['name']?></option>
        <?php
				} while ( $row_Ghost_Hunt_Dates = mysql_fetch_assoc( $Ghost_Hunt_Dates ) );
 $rows = mysql_num_rows( $Ghost_Hunt_Dates );
?>
      </select>
</td>
<td><input type="submit"  value="Filter" name="filter"></td>
<td><input type="submit"  value="Labels" name="export"></td>
<td border=2   style="font-size:14px" style="font-weight:bold">Total Records = <?php echo $num_rows ;
?></td>
<td>
<?php
/*
Print the page traverse links. Remember to preserve the current filter
*/
$numberOfPages = ceil($num_rows / $numberPerPage);

$traverseLinks = array( 'First'=>1, 'Previous'=>($pageNumber == 1 ? 1 : $pageNumber-1), 
		'Next'=>($pageNumber == $numberOfPages ? $numberOfPages : $pageNumber+1), 'Last'=> $numberOfPages);

foreach($traverseLinks as $name => $page)
{
	print '<a href="ghost_license.php?'.( isset($fGhost_Hunt) ? 'fGhost_Hunt='.urlencode($fGhost_Hunt).'&' : '' ).'pageNumber='.$page.'">'.$name.'</a> ';
}

?>
</td>
<td>
<?php
print 'Page '.$pageNumber.' of '.$numberOfPages;
?>
</td>
<td>
<input type="text" name="records" value="<?php echo $numberPerPage;?>" size="5"><input type="submit" value="Records" name="records_Submit">
</td>
</tr>
</table>
</form>