Funny Calculator

[ezcol_1half]

form_structure_1=[[{"name":"fieldname1","index":0,"title":"Check-in","ftype":"fdate","userhelp":"","csslayout":"","predefined":"","size":"medium","required":false,"dformat":"mm/dd/yyyy","showDropdown":false,"dropdownRange":"-10,+10","formats":["mm/dd/yyyy","dd/mm/yyyy"]},{"name":"fieldname2","index":1,"title":"Check-out","ftype":"fdate","userhelp":"","csslayout":"","predefined":"","size":"medium","required":false,"dformat":"mm/dd/yyyy","showDropdown":false,"dropdownRange":"-10,+10","formats":["mm/dd/yyyy","dd/mm/yyyy"]},{"choices":["Parking - $10","Breakfast - $20","Premium Internet Access - $3"],"choiceSelected":[false,false,false],"name":"fieldname3","index":2,"title":"Optional Services","ftype":"fcheck","userhelp":"","csslayout":"","layout":"one_column","required":false},{"name":"fieldname4","index":3,"title":"","userhelp":"Note: The cost of the optional services are per each night.","ftype":"fSectionBreak","csslayout":""},{"name":"fieldname5","index":4,"title":"Total Cost","eq":"abs(fieldname2-fieldname1) * (fieldname3+50)","userhelp":"The formula is: (checkout - checkin) * (optionals + base rate)u003Cbr /u003EWithout the optional services the formula would be: (checkout-checkin) * base rate","ftype":"fCalculated","csslayout":"","predefined":"","required":false,"size":"medium","readonly":false}],{"0":{"title":"Calculation with Dates","description":"The form below gives a quote for a stay in a hotel based in the check-in date, check-out date and some optional services. The base rate used is $50 per night.","formlayout":"top_aligned"},"formid":"cp_calculatedfieldsf_pform_1"}];

form_structure_2=[[{"name":"fieldname2","index":0,"title":"Height (mm)","userhelp":"","dformat":"number","min":"30","max":"250","predefined":"180","ftype":"fnumber","csslayout":"","required":false,"size":"small","formats":["digits","number"],"form_identifier":"","fBuild":{},"shortlabel":"","userhelpTooltip":false,"predefinedClick":false},{"choices":["Male","Female"],"name":"fieldname3","index":1,"choiceSelected":"Male","title":"Sex","ftype":"fdropdown","userhelp":"","csslayout":"","size":"medium","required":false,"form_identifier":"","fBuild":{},"choicesVal":["Male","Female"],"shortlabel":"","userhelpTooltip":false,"showDep":false},{"name":"fieldname5","index":2,"title":"","userhelp":"","ftype":"fSectionBreak","csslayout":"","form_identifier":"","fBuild":{},"shortlabel":"","userhelpTooltip":false},{"name":"fieldname4","index":3,"readonly":true,"title":"Ideal Weight (KG)","predefined":"","userhelp":"","eq":"(fieldname2-100)*(fieldname3=='Male'?0.90:0.85)","ftype":"fCalculated","csslayout":"","required":false,"size":"medium","form_identifier":"","fBuild":{},"shortlabel":"","userhelpTooltip":false,"toolbar":"default|mathematical","optimizeEq":true,"eq_factored":"","suffix":"","prefix":"","decimalsymbol":".","groupingsymbol":"","dependencies":[{"rule":"","complex":false,"fields":[""]}],"hidefield":false}],{"0":{"title":"Ideal Weight Calculator","description":"","formlayout":"left_aligned"},"formid":"cp_calculatedfieldsf_pform_2"}];

[/ezcol_1half] [ezcol_1half_end]

form_structure_3=[[{"name":"fieldname1","index":0,"title":"Enter the first day of last menstrual period","ftype":"fdate","userhelp":"","csslayout":"","predefined":"01/01/2013","size":"medium","required":false,"dformat":"mm/dd/yyyy","showDropdown":false,"dropdownRange":"-10,+10","formats":["mm/dd/yyyy","dd/mm/yyyy"]},{"name":"fieldname4","index":1,"title":"","userhelp":"Note: The dates below are approximate calculations. The real date may be slightly different.","ftype":"fSectionBreak","csslayout":""},{"name":"fieldname5","index":2,"title":"Conception Date","eq":"cdate(fieldname1+14)","userhelp":"","ftype":"fCalculated","csslayout":"","predefined":"","required":false,"size":"medium","readonly":false},{"name":"fieldname6","index":3,"title":"Due Date","eq":"cdate(fieldname1+40*7)","ftype":"fCalculated","userhelp":"","csslayout":"","predefined":"","required":false,"size":"medium","readonly":false}],{"0":{"title":"Pregnancy Calculator","description":"The form below calculates the conception date and due date based in the first day of last menstrual period. The calculated values are converted to date again after the calculation.","formlayout":"top_aligned"},"formid":"cp_calculatedfieldsf_pform_3"}];

[/ezcol_1half_end]

Link to this article:Funny Calculator

Reprint Statement: If there are no special instructions, all articles on this site are original. Please indicate the source for reprinting.:Silicone And Casting,Thanks!^^


Related Posts