$rowPC = getRows($rsPC);
            echo "<option value='{$rowPC['0']}'>{$rowPC['1']}</option>\n";
            $rowPC = NULL;
        }
        echo "</select>";
    } else {
        echo "<select name='pc' id='pc' style='width:170px;'></select>";
    }
    $num_rows = 0;
    $rsPC = NULL;
    unset($rsPC, $rowPC, $num_rows);
}
if ($opn == "prev_poststat") {
    $forpc_swp = isset($_GET["forpc_swp"]) ? $_GET["forpc_swp"] : "";
    $forsub_swp = isset($_GET["forsub_swp"]) ? $_GET["forsub_swp"] : "";
    $rs = fatch_post_stat_wise_dtl_transffered($forsub_swp, $forpc_swp);
    $num_rows = rowCount($rs);
    echo "Transffered &nbsp;: ";
    for ($i = 1; $i <= $num_rows; $i++) {
        $row = getRows($rs);
        echo $row['poststat'] . ": " . $row['total'] . "; \n";
        $row = NULL;
    }
    $num_rows = 0;
    $rs = NULL;
    unset($rs, $row, $num_rows);
}
if ($opn == "forpc_swp") {
    $subdiv = $_GET["subdiv_swp"];
    $rsPC = fatch_pc($subdiv);
    $num_rows = rowCount($rsPC);
        print $subdiv;
        ?>
','<?php 
        print $pccd;
        ?>
','<?php 
        print $i;
        ?>
');"><?php 
        print $i . ") " . $pcname;
        ?>
</label>&nbsp;&nbsp;-&nbsp;&nbsp;
<?php 
        //$pc_swp=$_GET["pc_swp"];
        //$sub_swp=$_GET["sub_swp"];
        $rs = fatch_post_stat_wise_dtl_transffered($subdiv, $pccd);
        //$num_rows=;
        for ($j = 1; $j <= rowCount($rs); $j++) {
            $row = getRows($rs);
            echo $row['poststat'] . ": " . $row['total'] . "; \n";
            $row = NULL;
        }
        unset($rs);
        //echo "<br />\n";
        ?>
<div class="office_details" id="office_details<?php 
        print $i;
        ?>
"></div></li>
<?php 
        $rowPC = NULL;