Your IP : 216.73.216.26


Current Path : /home2/wtmwscom/public_html/admin/
Upload File :
Current File : /home2/wtmwscom/public_html/admin/product_user_list.php

<?php
$title = "admin sale report";
include 'header.php';  
?>
<h3>Product User List</h3>
<?php echo getMessage();?>
<table border="1" class="table_style">
    <thead>
        <tr>
            <th>
                S.no
            </th>
            <th>
                P Name
            </th>
            <th>
               Packing
            </th>
            <th>
                MRP
            </th>
            <th>
                BV
            </th>
            <th>
                P. Cost
            </th>
            <th>
                Delete
            </th>
        </tr>
    </thead>
    <tbody>
        <?php
        $query = "Select * from product_user order by pname";
        include_once('lib/ps_pagination.php');
	
	/*
	 * Create a PS_Pagination object
	 * 
	 * $conn = MySQL connection object
	 * $sql = SQl Query to paginate
	 * 10 = Number of rows per page
	 * 5 = Number of links
	 * "param1=valu1&param2=value2" = You can append your own parameters to paginations links
	 */
        $pager = new PS_Pagination($connection, $query, 20, 5);
	
	/*
	 * Enable debugging if you want o view query errors
	*/
	$pager->setDebug(true);
	
	/*
	 * The paginate() function returns a mysql result set
	 * or false if no rows are returned by the query
	*/
	$rs = $pager->paginate();
	if(!$rs) exit("");
        $sno=1;
        while($row = mysqli_fetch_object($rs)){
            echo "<tr><td>$sno</td> <td>$row->pname</td> <td>$row->pack</td> <td>$row->mrp</td> <td>$row->bv</td> 
                    <td>$row->cost</td>  
                    <td><a href='delete.php?table=product_user&recid=$row->recid&rfn=recid&file=1&redirect=product_user_list.php'>Delete</a></td>
                    <tr> ";
            $sno++;
        }
        ?>
    </tbody>
</table>
<?php 
//Display the full navigation in one go
echo $pager->renderFullNav();
?>
<br/>
<?php
include('footer.php');
?>