I know that inspite of the title a lot of dumb coders will still apply (sigh)... In any case, I need help writing a little routine that will provide a human readable list of available coupons. Attached is a list of files that contain coupon definitions for a given restaurant. each file represent a different type of coupon (new user coupon, mailer coupons, coupon code etc...) At this point all the routine has to do is to open/include each file, and the coupon definition for all the coupons contained and display a list of available coupons. The only catch is that all files were built assuming only one coupon file would be open at a time. Therefore all coupon files contain an array c and an array c_d. The c array is the main coupon file. Each coupon has restrictions stored in the c_d array. The c and c_d arrays are related in a one to many structure where c = index of the first relevant row in c_d c = the number of c_d rows that are relevant to that specific c contains the coupon description that must be displayed. To make sure your solution actually works: - coupon files must be read only once - you must build an interface displaying c for all coupons - user should be able to click on each coupon and get either a dialog box or some other implement like a text area box that will display the content of the relevant c_d row - coupons must be displayed grouped by coupon file. Each group should have the title coming from the coupon file ($promotitle) - all coupon information displayed should contained in one programming structure (e.g. an array or object) - you must assume there are many coupon files
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).