Equipment Loan PHP Report



  • Hello,

    As always great product which keeps me fro going insane on a daily basis. What OI would like to know is on teh Equipment Loan report. I am able to change most things to what I want such as the following has been changed to suit my needs:

    Serial Number / Service Tag has been changed to Asset Tag / Computer Name and these autofill with the DB data.

    What I am trying to do now is change the Date of Checkout Field to autopopulate with the current date. Not quite sure what the code would be for this since I am really not a webdesigner nor programmer.

    Any help would be great here is the code that I am trying to change:

    $report->appendHTML( “<h4><u>”.(“Computer Information”)."</u></h4>" );
    $report->appendHTML( “<h4><b>”.
    (“Serial Number / Equip Name”).": </b><u>" . $ar[“iSysserial”] . " / " . $ar[“hostName”] . “</u></h4>" );
    $report->appendHTML( “<h4><b>”.
    (“Barcode Numbers”).": </b><u>" . $ar[“iOtherTag”] . "</u>
    </h4>" );
    $report->appendHTML( “<h4><b>”.
    (“Date of Checkout”).": </b>
    _________________________________________</h4>” );
    After “Date of Checkout” I was hoping I could use something like this :
    date([I]format[/I],[I]timestamp[/I])
    Keep in mind I am guessing here and dont know what I am doing.
    Again any help would be awesome.



  • [PHP]// Computer Information
    $report->appendHTML( “<h4><u>”.(“Computer Information”)."</u></h4>" );
    $report->appendHTML( “<h4><b>”.
    (“Serial Number / Equip Name”).": </b><u>" . $ar[“iSysserial”] . " / " . $ar[“hostName”] . “</u></h4>" );
    $report->appendHTML( “<h4><b>”.
    (“Barcode Numbers”).": </b><u>" . $ar[“iOtherTag”] . "</u>
    </h4>" );
    $report->appendHTML( “<h4><b>”.
    (“Date of Checkout”).": </b>".date(“Y/m/d”)." </h4>" );
    $report->appendHTML( “<h4><b>”.
    (“Notes / Miscellaneous / Included Items”).": </b></h4>" );
    $report->appendHTML( "<h4><b>
    </b></h4>" );
    $report->appendHTML( "<h4><b>
    </b></h4>" );
    $report->appendHTML( "<h4><b>
    ___________________________________________</b></h4>" );
    $report->appendHTML( “<hr />” );
    $report->appendHTML( “<h4><b>”.
    (“Releasing Staff Initials”).": </b>
    ".
    ("(To be released only by DPJ IT Dept.)")."</h4>" );
    $report->appendHTML( “<h4>”.
    (“I have read, understood, and agree to all the Terms and Condidtions on the following pages of this document.”)."</h4>" );
    $report->appendHTML( “<br />” );
    $report->appendHTML( “<h4><b>”.
    (“Signed”).": </b>X _____________________________ ".
    (“Date”).": //20
    </h4>" );
    $report->appendHTML( ("<!-- ".(“NEW PAGE”)." -->") );
    $report->appendHTML( "<!-- ".
    (“FOOTER CENTER”)." “” . ‘$PAGE’ . " ".
    (“of”)." " . ‘$PAGES’ . " - ".
    (“Printed”).": " . date(“D M j G:i:s T Y”) . “” -->" );
    $report->appendHTML( “<center><h3>”.
    (“Terms and Conditions”)."</h3></center>" );
    $report->appendHTML( “<hr />” );
    $report->appendHTML( “<h4>”.
    (“All loaned items should be returned in the same condition they were recieved, with all items included on this sheet.”)."</h4>" );
    $report->appendHTML( “<h4><b>”.
    (“Signed”).": </b>".
    (“X”)." _____________________________ ".
    (“Date”).": //20
    </h4>” );
    [/PHP]



  • Never mind I found it with the help of out application team. If any one wants to knwo how to do this here is the code I am using to output the date the day it is checked out and some other parts that I changed to make the report the way I wanted it:


Log in to reply
 

370
Online

38721
Users

10548
Topics

99849
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.