.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old January 30th, 2001, 02:23 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
Need to incorporate / write a "estimation calculator"...

<i><b>Originally posted by : Steve (stevet@ecreations.net)</b></i><br />I need the ability to incorporate a project estimation calculator. Viewer enters variables, server does math, and returns result to the viewer. Any help?<br /><br />Thanks!<br />

Reply With Quote
  #2  
Old February 8th, 2001, 07:38 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,578 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
<i><b>Originally posted by : Jim Rudnick (jrudnick@kkti.com)</b></i><br />Hey Steve...<br />Yup, did just such a little puppy for our securites folks up here in Ontario, Canada.<br /><br />I've dropped the code below...cut and paste and run! <br /><br />Lemmeee know if you've any trouble...<br /><br />Jim<br />KKT INTERACTIVE<br />www.kkti.com<br />jrudnick@kkti.com<br /><br />88888888888888888888888888888888888888<br />'code below...<br />88888888888888888888888888888888888888<br /><br /><%@ Language=VBScript %><br /><br /><% Response.Buffer = TRUE %><br /><!-- above makes CASE & redirects work --><br /><!-- also wont let things hold in cache --><br /><br /><br /><!-- OSC FEE SITE --><br /><!------------------------------------------------------------------------------><br /><!-- changes Copyright © KKT INTERACTIVE 8.17.00 --> <br /><!------------------------------------------------------------------------------><br /><!-- test to see if formulas work... --><br /><br /><%<br /><br />DIM nDate<br />DIM nTime<br /><br />nDate=date()<br />nTime=time()<br />'set var to the date and time functions built into asp<br /><br />%><br /><br /><html><head></head><br /><body background="pbBACK.jpg"><br /><br /><CENTER><br /><H2><br />WELCOME TO THE OSC FEE CALCULATOR<br /></H2><br /></CENTER><br /><BR><BR><br /><br /><ul><ul><ul><ul><br /><br />The current date is <%=nDate%>. The current time is now <%=nTime%><br /><BR><br /><HR><br /><B><u>USER ENTRY FORM</u></B><br /><br /><form action="calculator.asp" method=post><br /><br /><br /><table border="0" cellpadding="0" cellspacing="0"><br /><br /><tr><br /> <td width=265>Number of Directors:</td><br /> <td><input type="text" name="directors" size="10" value=""></td><br /> <TD width=50> </TD><br /> <td><font size=2>Each individual Director costs $500</font></td><br /> </tr><br /><br /> <tr><br /> <td>Number of Employees To Be Hired:</td><br /> <td><input type="text" name="employees" size="10" value=""></td><br /> <TD width=50></TD><br /> <td><font size=2>Each individual employee will cost $400</font></td><br /> </tr><br /><br /> <tr><br /> <td>Activities to be Undertaken:</td><br /> <td><input type="text" name="activities" size="10" value=""></td><br /> <TD width=50></TD><br /> <td><font size=2>Each Activity costs $333</font></td><br /> </tr><br /><br /></table><br /><p><br /><br /><input type="submit" name="btnView" value="CALCULATE"><br /></form><br /><hr><br /></ul></ul></ul></ul><br /><!------------------------- FORMULA SECTION ---------------------------------------------------------><br /><br /><ul><ul><ul><ul><br /><B><u>CALCULATED FEES</u></B><br /><P><br /><%<br /><br />DIM noEmployees<br />DIM jvr<br />DIM directors<br />DIM grandTotal<br /><br />noEmployees = 2<br />jvr = 5<br />directors = Request.Form("directors")<br />employees = Request.Form("employees")<br />activities = Request.Form("activities")<br /><br />' if (jvr * noEmployees) > 5 then<br />' conditional here...maybe use client-side validation to verify entries were made?<br />' now show html calculations for user to see their fees...<br /><br /> directorFees = (500 * directors)<br /> employeeFees = (400 * employees)<br /> activityFees = (333 * activities)<br /><br /> grandTotal = (directorFees + employeeFees + activityFees)<br /> <br /> %><br /><br /> Your fees for <%=directors%> Directors will be $<%=directorFees%><br /> <p><br /> Your fees for <%=employees%> Employees will be $<%=employeeFees%><br /> <p><br /> Your fees for <%=activities%> Activities will be $<%=activityFees%><br /> <br><br><br /> <br /> <ul><br /> And your Grand Total is <b>$<%=grandTotal%></b><br /> </ul><br /> <br /> <%<br />' end if<br />' above will let me use math...and test for same...<br />' now to try and capture the values entered by the user....<br /><br />%><br /><br /></ul></ul></ul></ul><br /></body><br /></html><br /><br />

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > Need to incorporate / write a "estimation calculator"...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway