Exemplo n.º 1
0
function get_qry_str($over_write_key = array(), $over_write_value = array())
{
    global $_GET;
    $m = $_GET;
    if (is_array($over_write_key)) {
        $i = 0;
        foreach ($over_write_key as $key) {
            $m[$key] = $over_write_value[$i];
            $i++;
        }
    } else {
        $m[$over_write_key] = $over_write_value;
    }
    $qry_str = qry_str($m);
    return $qry_str;
}
Exemplo n.º 2
0
<?php

if ($reccnt > $pagesize) {
    $num_pages = $reccnt / $pagesize;
    $PHP_SELF = $_SERVER['PHP_SELF'];
    $qry_str = $_SERVER['argv'][0];
    $m = $_REQUEST;
    unset($m['start']);
    $qry_str = qry_str($m);
    //echo "$qry_str : $p<br>";
    //$j=abs($num_pages/10)-1;
    $j = $start / $pagesize - 5;
    //echo("<br>$j");
    if ($j < 0) {
        $j = 0;
    }
    $k = $j + 10;
    if ($k > $num_pages) {
        $k = $num_pages;
    }
    $j = intval($j);
    ?>
<span class="black_txt">
<span class="black_txt">
      <?php 
    for ($i = $j; $i < $k; $i++) {
        if ($i == $j) {
            ?>
<span class="black_txt"><b>PAGE:&nbsp; </b></span><?php 
        }
        if ($pagesize * $i != $start) {