Jump to content


Print with an specific layout

css print layout javascript jquery php

  • Please log in to reply
2 replies to this topic

#1 Meh

Meh

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 20 October 2016 - 05:13 PM

Hi to all.

 

I'm working on a system to register old videotapes information into a database, the idea of this is to print a label for each tape within it's content. I already create the CRUD based on the database, but now I need to print each record with an specific layout so that the information fits the label design.

 

I have a .css file with all the measures of how it have to look, but I don't know how to relate it to the print file in Grocery CRUD

 

This is a sample of the layout:

sample.png



#2 semsik

semsik

    Member

  • Members
  • PipPip
  • 11 posts

Posted 16 November 2016 - 08:53 PM

Maybe a bit late but i only started grocery crud recently.the api should provide the info you are looking for.


Personally i would unset print button like this
http://www.grocerycr...ons/unset_print

And add action like this
http://www.grocerycr...ions/add_action

With the added action u redirect to your controller containing the code that generates the label you like it print.

Regards
Semsik

greetz

Semsik

 

using:

codeigniter 3.+ - GC 1.5.7 - Bootstrap theme v3

 


#3 larasmith

larasmith

    Advanced Member

  • Members
  • PipPipPip
  • 188 posts
  • LocationPhilippines

Posted 23 November 2016 - 01:33 PM

Semsik is right. I use the same approach 😀





Also tagged with one or more of these keywords: css, print, layout, javascript, jquery, php

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users