• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Equipment Loan PHP Report

    Scheduled Pinned Locked Moved
    General
    1
    3
    2.9k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      Psycholiquid71
      last edited by

      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 :
      [FONT=courier new][COLOR=#444444]date([/COLOR][/FONT][I][FONT=courier new][COLOR=#444444]format[/COLOR][/FONT][/I][FONT=courier new][COLOR=#444444],[/COLOR][/FONT][I][FONT=courier new][COLOR=#444444]timestamp[/COLOR][/FONT][/I][FONT=courier new][COLOR=#444444]) [/COLOR][/FONT]
      [FONT=courier new][COLOR=#444444]Keep in mind I am guessing here and dont know what I am doing.[/COLOR][/FONT]
      [FONT=courier new][COLOR=#444444]Again any help would be awesome.[/COLOR][/FONT]

      1 Reply Last reply Reply Quote 0
      • P
        Psycholiquid71
        last edited by

        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:

        1 Reply Last reply Reply Quote 0
        • P
          Psycholiquid71
          last edited by

          [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]

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post

          177

          Online

          12.0k

          Users

          17.3k

          Topics

          155.2k

          Posts
          Copyright © 2012-2024 FOG Project