home *** CD-ROM | disk | FTP | other *** search
/ sau9.org / sau9.org.zip / sau9.org / mathapp / dec_add.asp < prev    next >
Text File  |  2002-12-04  |  5KB  |  119 lines

  1. <HTML>
  2. <head>
  3. <title> How to Add Decimals
  4. </title>
  5. </HEAD>
  6. <body>
  7. <%
  8.  intStatus=request("intStatus")
  9. level=request ("level")
  10.  idStudent=request("idStudent")
  11.  
  12. filePath = Server.MapPath("math_proj.mdb")
  13.  set csdConn=server.createObject("ADODB.connection")
  14. csdConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & filePath
  15.  
  16.  
  17. sql ="SELECT tblPerformance.idStudent, tblPerformance.intStatus, tblPerformance.cntOperBAttempt, tblPerformance.cntOperIAttempt, tblPerformance.cntOperAAttempt, tblPerformance.cntPlaceAttempt FROM tblPerformance WHERE tblPerformance.idStudent="
  18. sql=sql & idStudent 
  19. set csdStudent=csdConn.execute (sql)
  20.  
  21. select case intstatus
  22.  
  23.     case 2
  24.     level= csdStudent("cntOPerBAttempt")
  25. if level= 0 then
  26. level=1
  27. end if
  28. %>    
  29. <FORM ACTION=DEC_levelB.ASP METHOD=POST><font face=tahoma> <h2>Adding Decimals</h2><p>
  30.  
  31.  
  32. <table align=center width='65%'><tr>
  33. <td> There's nothing too hard about adding decimals.  It's REALLY important that you LINE UP the decimal points before you start!</td></tr></table>
  34.     
  35. <!-- URL's used in the movie-->
  36. <!-- text used in the movie-->
  37. <!--98.452 237.8 + + + + + + + + + + + + + + + + + + + 5 + + + + + + + . + + + + + + 6 + + + + + + + + + + 3 + + + + + + + + + + + -->
  38. <OBJECT classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000
  39.  codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0 WIDTH=60% HEIGHT='60%'>
  40. <PARAM NAME=movie VALUE=dec_add.swf> <PARAM NAME=loop VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src=dec_add.swf loop=false quality=high  bgcolor=#FFFFFF  WIDTH='60%' HEIGHT='60%' TYPE=application/x-shockwave-flash PLUGINSPAGE=http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash></EMBED>
  41. </OBJECT>
  42. <p><align=center>
  43.  
  44. <%
  45. response.write "<input type=hidden name=level value="
  46. response.write level
  47. response.write ">"
  48. response.write "<input type=hidden name=idStudent value="
  49. response.write idStudent
  50. response.write "><input type=hidden name=difficulty value='B'>"
  51.  
  52. case 3
  53.  
  54.  
  55. level= csdStudent("cntOPerIAttempt")
  56. if level= 0 then
  57. level=1
  58. end if
  59. %>
  60. <FORM ACTION=DEC_leveli.ASP METHOD=POST><font face=tahoma> <h2>Adding Decimals</h2><p>
  61.  
  62. <table align=center width='65%'><tr> 
  63. <td> There's nothing too hard about adding decimals.  It's REALLY important that you LINE UP the decimal points before you start!</td></tr></table>
  64. <!-- URL's used in the movie-->
  65. <!-- text used in the movie-->
  66. <!--98.452 237.8 + + + + + + + + + + + + + + + + + + + 5 + + + + + + + . + + + + + + 6 + + + + + + + + + + 3 + + + + + + + + + + + -->
  67.  
  68. <OBJECT classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000
  69. codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0 WIDTH='60%' HEIGHT='60%'>
  70. <PARAM NAME=movie VALUE=dec_add.swf> <PARAM NAME=loop VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src=dec_add.swf loop=false quality=high  bgcolor=#FFFFFF  WIDTH='60%' HEIGHT='60%' TYPE=application/x-shockwave-flash PLUGINSPAGE=http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash></EMBED>
  71.  </OBJECT>
  72.  <p><align=center>
  73.  <%
  74. response.write "<input type=hidden name=level value="
  75. response.write level
  76. response.write ">"
  77. response.write "<input type=hidden name=idStudent value="
  78. response.write idStudent
  79. response.write "><input type=hidden name=difficulty value='I'>"
  80.  
  81.  
  82.     case 4
  83.     level= csdStudent("cntOPerAAttempt")
  84. if level= 0 then
  85. level=1
  86. end if
  87. %>
  88. <FORM ACTION=DEC_levela.ASP METHOD=POST><font face=tahoma> <h2>Adding Decimals</h2><p>
  89.  
  90. <table align=center width='65%'><tr> 
  91. <td> There's nothing too hard about adding decimals.  It's REALLY important that you LINE UP the decimal points before you start!</td></tr></table>
  92.     
  93.  <!-- URL's used in the movie-->
  94.  <!-- text used in the movie-->
  95.  <!--98.452 237.8 + + + + + + + + + + + + + + + + + + + 5 + + + + + + + . + + + + + + 6 + + + + + + + + + + 3 + + + + + + + + + + + -->
  96.  
  97.  <OBJECT classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000
  98. codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0 WIDTH='60%' HEIGHT='60%'>
  99.   <PARAM NAME=movie VALUE=dec_add.swf> <PARAM NAME=loop VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src=dec_add.swf loop=false quality=high  bgcolor=#FFFFFF  WIDTH='60%' HEIGHT='60%' TYPE=application/x-shockwave-flash PLUGINSPAGE=http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash></EMBED>"
  100.  </OBJECT>
  101.  <p><align=center>
  102.  
  103. <%
  104. response.write "<input type=hidden name=level value="
  105. response.write level
  106. response.write ">"
  107. response.write "<input type=hidden name=idStudent value="
  108. response.write idStudent
  109. response.write "><input type=hidden name=difficulty value='A'>"
  110.  
  111.     case 5
  112. response.write "You have completed all the modules so far!!!"
  113.  
  114. end select
  115. %>
  116. <table align=center><tr><td>
  117. <input type=submit value='OK, I am ready for the knowledge check!!'></form></td></tr></table>
  118. </BODY>
  119. </HTML>