I am looking for someone to provide a basic template for a program that uses open source code.
I use a product from a third party provider that allows open source code. This third party allows users to upload and use their own templates. These templates will change the results that is displayed to the user. This template will run on a handheld/PDA device.
The data to manipulate is returned in only 5 fields. The basic template is shown below:
This sample uses a minimum of HTML markup
Result 1: $<lista/>
Result 2: $<used/> (<usedq/>)
Result 3: $<new/> (<newq/>)
Result 4: $<col/> (<colq/>)
Result 5: <rank/>
Of these five fields, I am only needing this script to use 2 fields to calculate a "final result" field.
The script should take the <rank> and <used> fields and evaluate them based upon criteria similar to what is shown below:
If <used> is less than 10.00 then the "result field" will display a text message.
If <used> is greater than 10.00 and the <rank> is less than 50,000 then the "result field" will show a numerical result of <used> multiplied by 25%.
Assuming the <used> is greater than 10.00, the "result field" will be calculated using the following factors:
0-50,000 - 25.0%
50,001-100,000 - 22.5%
100,001-400,000 - 20.0%
400,001-600,000 - 17.5%
700,001-1,000,000 - 15%
1,000,001 - 1,500,000 - 10%
Greater than 1,500,001 - Return lesser of 5% or flat result of $5.00
No Rank - Return text message rather than calculated result
I would also like to manipulate the text so that it is enlarged and centered. I would also like to use some font colors that change depending on the result. It would also be nice to add a sound notification for certain results. I can provide sample script that does all of the above, I just do not have the ability to put them together.
Please let me know if you have questions.