ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

multi step Item checkin/out

September 01, 2010 5:08pm

Subscribe [1]
  • #1 / Sep 01, 2010 5:08pm

    rchampagne

    212 posts

    hi,

    Has anyone built a checkin/out type of system? Something similar to a library checkout.

    I am doing this for demo items for a customer.

    What fields I have now are below:
    * title (item name)
    * serial
    * status (in/out)
    * history (matrix that includes a. checked out to, b. approved by, c. checkout date, d. checkin date)
    * Additional notes

    I want to have a list of the items with the title being the link to the detail page of the item (done), that then has the status and a button that will either “check in” or “check out” the item.

    I figure I can get rid of the status field if I can somehow possible use PHP (or something else that might already be built) to enter the proper info into the correct field when someone clicks the “check in/out” button.

    Example:
    the list page has a list of items. One Item shows that it is checked out. the button will then give the option to “check in”. When a user clicks the button, it will enter the current date and time into the current last row of the matrix’s “check in date” field.

    On the flip side, if the item in the list is “in”, the button will display the link/button “check out”. When the user clicks this, i need to somehow create a new row in the matrix, and enter the matrix info listed above, minus the checkin date obviously.

    Any one have any ideas if this is possible?
    I figure i will probably need to use a combination of php, javascript and the query tags to do this, but not too sure.

    Just trying to get ideas.

    Many thanks,

    Ryan

  • #2 / Sep 02, 2010 2:53pm

    rchampagne

    212 posts

    anyone have any ideas? I am starting the structure now. I will post my progress, as I think this could be pretty helpful to others.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases