the order_details.php page is in the admin folder.
the code is replacement SQL for the WADAorders recordset.
in the server behaviors list, double click the WADAorders recordset to edit the sql with what I gave you previously.
then go to the bindings panel, you should have a binding for the coupon code column that you can add to the orders display.