Buying $50 for PHP Object Wrapper for HTML Table

Discussion in 'Programming' started by BandonFlyer, Feb 27, 2010.

  1. #1
    I can pay $50 for this project, but I need it delivered within 24 hours.
    I will provide an environment for you to use for testing. You must provide a working sample that demonstrates each of the column types defined below. This will be a simple <table> HTML return - no display or CSS or anything like that. I will worry about all that later. What I want is a working solution - I can make it pretty later.

    I need someone to create me a <table> wrapper object for use with PHP. I do a bunch of reports that use the identical layout and style of table, etc… I don't want to have a ton of repeated code to maintain, but I'm not really that great with PHP's OO capabilities. Here's what I'm looking for:

    • I want to instantiate a table object, set it's column headers, define its columns and pass it an array of MySQL results and have the function return a string that I simply "echo".
    • I want to keep the code to a minimum on the calling side, whether or not it's perfect "OO Technique" or not. This is very important. If the table has 3 columns all I want to do on the calling side is something like this (please disregard syntax - this is only pseudo code)

    [INDENT]Set Object=New TableWrapperObject()
    Object.SetData (MySQLResultSet)
    Object.ColumnAdd (colname, type, links, images, etc…)
    Object.ColumnAdd (colname, type, links, images, etc…)
    Object.ColumnAdd (colname, type, links, images, etc…)
    Echo Object.GetTableText()  [/INDENT]
    Code (markup):
    // This would print out the entire <table>…</table> returned as one big string

    The whole point of this is to make the calling side extremely simple and very little code. I don't care if it requires some extra parsing work on the object side. So, if a concatenated string with a bunch of delimiters is required as one of these parameters in the .ColumnAdd example above, that's fine. But what I don't want is to turn the calling side into 50 lines of code. I want the calling side very simple.
    For the columns of data, there will be different scenarios that have to be accounted for.
    1. Text Only Column
    2. Text with Link
    3. True/False with either textual output or image output (for example, display a checkmark image for true, nothing for blank). The images will need to be able to be passed into the object. A simple string like "checkmark.jpg" is fine and the object can have the knowledge of where to get that image. But it has to be smart enough to handle the scenario mentioned where a "yes" might include an image and a "no" might not.
    4. Status ID represented by image - So, this is basically the same as the True/False, except there will be more than 0 and 1 - there might be 0 to n variations that would all be specified. Here's the practical implementation of this. I have a status code that might be a 0 ("open"), 1 ("Complete"), 2 ("Revise"), 3 ("Reviewed"), 4 ("Processed"), etc… I use the text "Open" for status=0, a single checkmark image for status=1, the text "Revise" in bold red for status=2, a checkmark and a plus sign for status=3 and a double checkmark image for status=4. This column type could easily absorb the True/False above - meaning, you only need to implement this one as it could be used with just 2 variations to implement the true/false scenario.
    5. A hyperlinked image only. For example, I might want the image of a red "X" to signify "deletion" of this row. Obviously I would have to pass in the image name and the link text.

    PM me for my Skype ID - do not ask for Yahoo Messenger, MSN, or anything else... you must be able to contact me via Skype.
     
    BandonFlyer, Feb 27, 2010 IP
  2. omgitsfletch

    omgitsfletch Well-Known Member

    Messages:
    1,222
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    145
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    Hey BandonFlyer,

    I see this post is old, do you still require this work done? I've worked with you before, would be a pleasure to do it again. Let me know, my skype is the same as my username.
     
    omgitsfletch, Apr 9, 2010 IP