Welcome Guest, Not a member yet? Register   Sign In
problem count rows on table in pagination?
#2

[eluser]SaSa[/eluser]
More about this: I do not want that in each page of pagination, rows are counted from the beginning.
The next page will be counted on every prev page.

see this images:
http://i.stack.imgur.com/2QzSc.gif
http://i.stack.imgur.com/komL3.gif
http://i.stack.imgur.com/6RQIb.gif

my view:
Code:
<div class="table_show">
    <table>
        <tr>
                <th>&lt;input type="checkbox" name="remember_me" value="true" &gt;&lt;/th>
                <th>#</th>
                <th>نوع</th>
                <th>نام</th>
                <th>ستاره - نوع</th>
                <th>آدرس</th>
                <th>شماره تماس</th>
                <th>نمابر</th>
                <th>وب سایت</th>
                <th>ایمیل</th>
                <th>زمان ثبت</th>
        </tr>
    &lt;?php
    //echo $this->table->generate($results);    
        foreach ($results->result() as $row)
        {
                echo    '<tr><td>&lt;input type="checkbox" name="remember_me" value="true" &gt;&lt;/td>';
                echo    '<td>'.$row->rownum.'</td>';
                echo    '<td>'.$row->type.'</td>';
                echo    '<td>'.$row->name.'</td>';
                echo    '<td>'.$row->star.' - '.$row->type_star.'</td>';                                
                echo    '<td><span id="'.$row->address.'" class="tooltip">'.$row->address.'</span></td>';
                echo    '<td><span id="'.$row->number_phone.'" class="tooltip">'.$row->number_phone.'</span></td>';
                echo    '<td>'.$row->fax.'</td>';
                echo    '<td>'.$row->site.'</td>';
                echo    '<td>'.$row->email.'</td>';
                echo    '<td>'.$row->date.'</td></tr>';
            }
    ?&gt;

    </table>
    &lt;?= $pagination;?&gt;
</div>


Messages In This Thread
problem count rows on table in pagination? - by El Forum - 08-14-2011, 01:02 PM
problem count rows on table in pagination? - by El Forum - 08-14-2011, 05:00 PM
problem count rows on table in pagination? - by El Forum - 08-15-2011, 03:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB