PHP Classes

replacing data in col with an image (chekmark) based on 0 or 1

Recommend this page to a friend!

      DrasticTools  >  All threads  >  replacing data in col with an image...  >  (Un) Subscribe thread alerts  
Subject:replacing data in col with an image...
Summary:how do i do that ???
Messages:4
Author:bud man
Date:2014-06-24 16:17:35
Update:2014-06-26 15:10:47
 

  1. replacing data in col with an image...   Reply   Report abuse  
Picture of bud man bud man - 2014-06-24 16:17:35
Hello i would like to replace the resulting 1's in a colum with a predefined unique checkmark image is it possible to do so, and is so how would i do that ??

thank you for your reply
btw great class :)

bud

  2. Re: replacing data in col with an image...   Reply   Report abuse  
Picture of dd dd - 2014-06-25 09:28:39 - In reply to message 1 from bud man
Hi Bud,

Sounds to me as if you can just use Mysql commands to replace 1s with the image you like. That can be done outside the drasticgrid package?

regards,

dd

  3. Re: replacing data in col with an image...   Reply   Report abuse  
Picture of bud man bud man - 2014-06-25 12:24:52 - In reply to message 2 from dd
i actually did it (if you want the code), but the thing was to tedious to work with, then i found your class :) wich saved my day, i managed to display chackboxes using bolean wich is an ok compromise for me, now i'm stuck on printing the output in a formated way i have 5 page to scroll in my grid that fit in one html page, but when i print using ff or chrome i get only what is displayed on the page not all the data, i tried to pagelength:1200 wich work, but is there a way to set pagelength: to the number of resulting rows ?? becose setting the number to high slow the display and add a tons of blank lines at the end :(

i dunno if i made my self understanable, im french from montreal, an a noob :)

thank you for your fast reply, and for this GREAT class

have a good day

bud

  4. Re: replacing data in col with an image...   Reply   Report abuse  
Picture of dd dd - 2014-06-26 15:10:47 - In reply to message 3 from bud man
Hi Bud,

No there is no way at the moment to specify to show all records at one page, you can only set a fixed number of records and the additional ones will be empty indeed.
Such functionality can of course be added, but it would require recoding the package, which I doubt is worth the trouble?
If you know the number of lines / records in advance you can just use that for the printing job?

regards,
dd