mercredi 30 décembre 2015

print on shown table using pdf-laravel

currently, i am using library of pdf-laravel to display the data in pdf file. it was working when i wrote data directly in new page to be shown. here, i got the problem on how to display the selected data to be printed. below is my report.blade.php.

<table class=" table-autosort table-autofilter " border="1" width="100%">
        <thead>
            <tr><br>
                <td>bil</td>
               <td class="table-filterable table-sortable:numeric table-sortable"> faculty</td>
                <td class="table-filterable table-sortable:numeric table-sortable"> programme</td>
        </tr>

        </thead>
        <tbody class="bottom-right" >

        @foreach($profiles as $profile)
        <tr>
            <!--<td class="student_id" width="15%">{{$profile->student_id }}</td>
            <td class="name" width="30%">{{$profile->student_name }}</td>-->
            <td class="number" width="7%%"></td>
            <td class="faculty" width="40%">{{$profile->faculty }} </td>
            <td class="program" width="53%%"> {{$profile->program }}</td>
        </tr>
            @endforeach
        </tbody>
    </table>
        </table>
    <br><p align="right"><a href="{{ url('print/') }}"  target="_blank">Print</a></p>
        </fieldset>
            </div>

    </div>

what should i do when i click on print button(just one print button ), it will print any data of current table shown (either filter:all ; or filter:program ) ?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1NQazOB
via IFTTT

Aucun commentaire:

Enregistrer un commentaire