473,769 Members | 1,929 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

add the value of multiple radio button onclick

vivekgs2007
60 New Member
Hi i am doing a application that add the rate of the staff evaluation please go through o=it and need help

Expand|Select|Wrap|Line Numbers
  1. <?php
  2. include("../db.php");
  3. session_start();
  4. ?>
  5. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
  6.     "http://www.w3.org/TR/html4/strict.dtd"
  7.     >
  8. <html lang="en">
  9. <head>
  10.     <title>Staff Evaluation</title>
  11. <script type="text/javascript">
  12. function stafeval(action)
  13.     var tot=document.steval.total.value;
  14.     //alert(tot);
  15.    if(action == '1')
  16.     {
  17.      for (var i=0; i < document.steval.is1.length; i++)
  18.       {
  19.        if (document.steval.is1[i].checked)
  20.        {
  21.           var a1 = parseInt(document.steval.is1[i].value);
  22.           tot=parseInt(a1)+parseInt(tot);
  23.           alert(tot);
  24.        }     
  25.       }
  26.  
  27.     } 
  28.     if(action == '2')
  29.     {
  30.      for (var i=0; i < document.steval.is2.length; i++)
  31.       {
  32.        if (document.steval.is2[i].checked)
  33.        {
  34.         var a2 = document.steval.is2[i].value;
  35.         tot=parseInt(a2)+parseInt(tot);
  36.         alert(tot);
  37.        }     
  38.       }
  39.     }
  40.     if(action == '3')
  41.     {
  42.      for (var i=0; i < document.steval.is3.length; i++)
  43.       {
  44.        if (document.steval.is3[i].checked)
  45.        {
  46.         var a3 = document.steval.is3[i].value;
  47.         tot=parseInt(a3)+parseInt(tot);
  48.         alert(tot);
  49.        }     
  50.       }
  51.     }
  52.     if(action == '4')
  53.     {
  54.      for (var i=0; i < document.steval.is4.length; i++)
  55.       {
  56.        if (document.steval.is4[i].checked)
  57.        {
  58.         var a4 = document.steval.is4[i].value;
  59.         alert(a4);
  60.        }     
  61.       }
  62.     }
  63.     if(action == '5')
  64.     {
  65.      for (var i=0; i < document.steval.is5.length; i++)
  66.       {
  67.        if (document.steval.is5[i].checked)
  68.        {
  69.         var a5 = document.steval.is5[i].value;
  70.         alert(a5);
  71.        }     
  72.       }
  73.     }
  74.     if(action == '6')
  75.     {
  76.      for (var i=0; i < document.steval.is6.length; i++)
  77.       {
  78.        if (document.steval.is6[i].checked)
  79.        {
  80.         var a = document.steval.is6[i].value;
  81.         alert(a);
  82.        }     
  83.       }
  84.     }
  85.     if(action == '7')
  86.     {
  87.      for (var i=0; i < document.steval.sgd1.length; i++)
  88.       {
  89.        if (document.steval.sgd1[i].checked)
  90.        {
  91.         var a = document.steval.sgd1[i].value;
  92.         alert(a);
  93.        }     
  94.       }
  95.     }
  96.     if(action == '8')
  97.     {
  98.      for (var i=0; i < document.steval.sgd2.length; i++)
  99.       {
  100.        if (document.steval.sgd2[i].checked)
  101.        {
  102.         var a = document.steval.sgd2[i].value;
  103.         alert(a);
  104.        }     
  105.       }
  106.     }
  107.     if(action == '9')
  108.     {
  109.      for (var i=0; i < document.steval.cmo1.length; i++)
  110.       {
  111.        if (document.steval.cmo1[i].checked)
  112.        {
  113.         var a = document.steval.cmo1[i].value;
  114.         alert(a);
  115.        }     
  116.       }
  117.     }
  118.     if(action == '10')
  119.     {
  120.      for (var i=0; i < document.steval.cmo2.length; i++)
  121.       {
  122.        if (document.steval.cmo2[i].checked)
  123.        {
  124.         var a = document.steval.cmo2[i].value;
  125.         alert(a);
  126.        }     
  127.       }
  128.     }
  129.     if(action == '11')
  130.     {
  131.      for (var i=0; i < document.steval.cmo3.length; i++)
  132.       {
  133.        if (document.steval.cmo3[i].checked)
  134.        {
  135.         var a = document.steval.cmo3[i].value;
  136.         alert(a);
  137.        }     
  138.       }
  139.     }
  140.     if(action == '12')
  141.     {
  142.      for (var i=0; i < document.steval.c1.length; i++)
  143.       {
  144.        if (document.steval.c1[i].checked)
  145.        {
  146.         var a = document.steval.c1[i].value;
  147.         alert(a);
  148.        }     
  149.       }
  150.     }
  151.     if(action == '13')
  152.     {
  153.      for (var i=0; i < document.steval.c2.length; i++)
  154.       {
  155.        if (document.steval.c2[i].checked)
  156.        {
  157.         var a = document.steval.c2[i].value;
  158.         alert(a);
  159.        }     
  160.       }
  161.     }
  162.     if(action == '14')
  163.     {
  164.      for (var i=0; i < document.steval.c3.length; i++)
  165.       {
  166.        if (document.steval.c3[i].checked)
  167.        {
  168.         var a = document.steval.c3[i].value;
  169.         alert(a);
  170.        }     
  171.       }
  172.     }
  173.     if(action == '15')
  174.     {
  175.      for (var i=0; i < document.steval.c4.length; i++)
  176.       {
  177.        if (document.steval.c4[i].checked)
  178.        {
  179.         var a = document.steval.c4[i].value;
  180.         alert(a);
  181.        }     
  182.       }
  183.     }
  184.     if(action == '16')
  185.     {
  186.      for (var i=0; i < document.steval.c5.length; i++)
  187.       {
  188.        if (document.steval.c5[i].checked)
  189.        {
  190.         var a = document.steval.c5[i].value;
  191.         alert(a);
  192.        }     
  193.       }
  194.     }
  195.     if(action == '17')
  196.     {
  197.      for (var i=0; i < document.steval.c6.length; i++)
  198.       {
  199.        if (document.steval.c6[i].checked)
  200.        {
  201.         var a = document.steval.c6[i].value;
  202.         alert(a);
  203.        }     
  204.       }
  205.     }
  206.     if(action == '18')
  207.     {
  208.      for (var i=0; i < document.steval.pgd1.length; i++)
  209.       {
  210.        if (document.steval.pgd1[i].checked)
  211.        {
  212.         var a = document.steval.pgd1[i].value;
  213.         alert(a);
  214.        }     
  215.       }
  216.     }
  217.     if(action == '19')
  218.     {
  219.      for (var i=0; i < document.steval.pgd2.length; i++)
  220.       {
  221.        if (document.steval.pgd2[i].checked)
  222.        {
  223.         var a = document.steval.pgd2[i].value;
  224.         alert(a);
  225.        }     
  226.       }
  227.     }
  228.     if(action == '20')
  229.     {
  230.      for (var i=0; i < document.steval.pgd3.length; i++)
  231.       {
  232.        if (document.steval.pgd3[i].checked)
  233.        {
  234.         var a = document.steval.pgd3[i].value;
  235.         alert(a);
  236.        }     
  237.       }
  238.     }
  239.     if(action == '21')
  240.     {
  241.      for (var i=0; i < document.steval.pda1.length; i++)
  242.       {
  243.        if (document.steval.pda1[i].checked)
  244.        {
  245.         var a = document.steval.pda1[i].value;
  246.         alert(a);
  247.        }     
  248.       }
  249.     }
  250.     if(action == '22')
  251.     {
  252.      for (var i=0; i < document.steval.pda2.length; i++)
  253.       {
  254.        if (document.steval.pda2[i].checked)
  255.        {
  256.         var a = document.steval.pda2[i].value;
  257.         alert(a);
  258.        }     
  259.       }
  260.     }
  261.     if(action == '23')
  262.     {
  263.      for (var i=0; i < document.steval.ci1.length; i++)
  264.       {
  265.        if (document.steval.ci1[i].checked)
  266.        {
  267.         var a = document.steval.ci1[i].value;
  268.         alert(a);
  269.        }     
  270.       }
  271.     }
  272.     if(action == '24')
  273.     {
  274.      for (var i=0; i < document.steval.ci2.length; i++)
  275.       {
  276.        if (document.steval.ci2[i].checked)
  277.        {
  278.         var a = document.steval.ci2[i].value;
  279.         alert(a);
  280.        }     
  281.       }
  282.     }
  283.     if(action == '25')
  284.     {
  285.      for (var i=0; i < document.steval.ci3.length; i++)
  286.       {
  287.        if (document.steval.ci3[i].checked)
  288.        {
  289.         var a = document.steval.ci3[i].value;
  290.         alert(a);
  291.        }     
  292.       }
  293.     }
  294.     if(action == '26')
  295.     {
  296.      for (var i=0; i < document.steval.cpr1.length; i++)
  297.       {
  298.        if (document.steval.cpr1[i].checked)
  299.        {
  300.         var a = document.steval.cpr1[i].value;
  301.         alert(a);
  302.        }     
  303.       }
  304.     }
  305.     if(action == '27')
  306.     {
  307.      for (var i=0; i < document.steval.cpr2.length; i++)
  308.       {
  309.        if (document.steval.cpr2[i].checked)
  310.        {
  311.         var a = document.steval.cpr2[i].value;
  312.         alert(a);
  313.        }     
  314.       }
  315.     }
  316.     if(action == '28')
  317.     {
  318.      for (var i=0; i < document.steval.cpr3.length; i++)
  319.       {
  320.        if (document.steval.cpr3[i].checked)
  321.        {
  322.         var a = document.steval.cpr3[i].value;
  323.         alert(a);
  324.        }     
  325.       }
  326.     }
  327.     if(action == '29')
  328.     {
  329.      for (var i=0; i < document.steval.cpr4.length; i++)
  330.       {
  331.        if (document.steval.cpr4[i].checked)
  332.        {
  333.         var a = document.steval.cpr4[i].value;
  334.         alert(a);
  335.        }     
  336.       }
  337.     }
  338.     if(action == '30')
  339.     {
  340.      for (var i=0; i < document.steval.cpr5.length; i++)
  341.       {
  342.        if (document.steval.cpr5[i].checked)
  343.        {
  344.         var a = document.steval.cpr5[i].value;
  345.         alert(a);
  346.        }     
  347.       }
  348.     }    
  349. }
  350. function addRadio(steval) {
  351.  
  352.     var radioResults = '0';
  353. alert(radioResults);
  354.     for (var i = 0; i < 31; i++ ) {
  355.         if (steval.elements[i].type == 'radio') {
  356.             if (steval.elements[i].checked == true) {
  357.                 radioResults += steval.elements[i].value + '|';
  358.             }
  359.         }
  360.     }
  361.  
  362.     alert(radioResults);
  363. }
  364. </script>
  365. </head>
  366. <body>
  367.     <form action="" method="post" name="steval">
  368.     <center>
  369. <table class='forumline' width='85%' style="text-align:center;font-family: Verdana, Arial, Helvetica, sans-serif;" cellpadding='1' cellspacing='0' border=1 >
  370.     <tr><td colspan='2' class='head'>JAFFERY ACADEMY</td></tr>
  371.     <tr><td colspan='2' class='head'>Staff Evaluation</td></tr>
  372.     <tr><td class='head'>Staff Name:</td><td class='head'>Staff-ID:</td></tr>
  373. </table>
  374. <table class='forumline' width='85%' style="text-align:center;" cellpadding='2' cellspacing='1' border=1 >
  375.     <tr>
  376.         <td style="font-size:16px;">Job Performance Statements</td>
  377.         <td width='40px' >Clearly Outstanding</td>
  378.         <td width='40px'>Exceeds Expectations</td>
  379.         <td width='40px' >Meets Expectations</td>
  380.         <td width='40px' >Below Expectations</td>
  381.         <td width='40px' >Unsatisfactory</td>
  382.     </tr>
  383.     <tr>
  384.         <td>&nbsp;</td>
  385.         <td width='40px'>5</td>
  386.         <td width='40px'>4</td>
  387.         <td width='40px'>3</td>
  388.         <td width='40px'>2</td>
  389.         <td width='40px'>1</td>
  390.     </tr>
  391.         <tr><td class="staffeval"colspan='6'>1. Instructional Strategies</td></tr>
  392.     <tr>
  393.         <td>Develops and implements lesson plans that fulfill the requirements of Curriculum and show written evidencs of preparation as requires.</td>
  394.         <td width='40px'><input type='radio' name='is1' onclick='stafeval(1)' value='5'></td>
  395.         <td width='40px'><input type='radio' name='is1' onclick='stafeval(1)' value='4'></td>
  396.         <td width='40px'><input type='radio' name='is1' onclick='stafeval(1)' value='3'></td>
  397.         <td width='40px'><input type='radio' name='is1' onclick='stafeval(1)' value='2'></td>
  398.         <td width='40px'><input type='radio' name='is1' onclick='stafeval(1)' value='1'></td>
  399.     </tr>
  400.         <tr>
  401.         <td>Plans and uses appropriate instructional and learning strategis, activeits, materials and equipment that reflect understanding of the learning styles and needs of students.</td>
  402.         <td width='40px'><input type='radio' name='is2' onclick='stafeval(2)' value='5'></td>
  403.         <td width='40px'><input type='radio' name='is2' onclick='stafeval(2)' value='4'></td>
  404.         <td width='40px'><input type='radio' name='is2' onclick='stafeval(2)' value='3'></td>
  405.         <td width='40px'><input type='radio' name='is2' onclick='stafeval(2)' value='2'></td>
  406.         <td width='40px'><input type='radio' name='is2' onclick='stafeval(2)' value='1'></td>
  407.     </tr>
  408.     <tr>
  409.         <td>Conducts assessment of students' learning styles and use results to plan instructional activites.</td>
  410.         <td width='40px'><input type='radio' name='is3' onclick='stafeval(3)' value='5'></td>
  411.         <td width='40px'><input type='radio' name='is3' onclick='stafeval(3)' value='4'></td>
  412.         <td width='40px'><input type='radio' name='is3' onclick='stafeval(3)' value='3'></td>
  413.         <td width='40px'><input type='radio' name='is3' onclick='stafeval(3)' value='2'></td>
  414.         <td width='40px'><input type='radio' name='is3' onclick='stafeval(3)' value='1'></td>
  415.     </tr>
  416.     <tr>
  417.         <td>Works with other members of staff to determine instructional goals, objects and methods according to curriculum requirements.</td>
  418.         <td width='40px'><input type='radio' name='is4' onclick='stafeval(4)' value='5'></td>
  419.         <td width='40px'><input type='radio' name='is4' onclick='stafeval(4)' value='4'></td>
  420.         <td width='40px'><input type='radio' name='is4' onclick='stafeval(4)' value='3'></td>
  421.         <td width='40px'><input type='radio' name='is4' onclick='stafeval(4)' value='2'></td>
  422.         <td width='40px'><input type='radio' name='is4' onclick='stafeval(4)' value='1'></td>
  423.     </tr>
  424.     <tr>
  425.         <td>Promotes application of learning through critical thinking and problem solving.</td>
  426.         <td width='40px'><input type='radio' name='is5' onclick='stafeval(5)' value='5'></td>
  427.         <td width='40px'><input type='radio' name='is5' onclick='stafeval(5)'  value='4'></td>
  428.         <td width='40px'><input type='radio' name='is5' onclick='stafeval(5)' value='3'></td>
  429.         <td width='40px'><input type='radio' name='is5' onclick='stafeval(5)' value='2'></td>
  430.         <td width='40px'><input type='radio' name='is5' onclick='stafeval(5)' value='1'></td>
  431.     </tr>
  432.     <tr>
  433.         <td>Uses technology to strengthen the teaching/learning process.</td>
  434.         <td width='40px'><input type='radio' name='is6' onclick='stafeval(6)' value='5'></td>
  435.         <td width='40px'><input type='radio' name='is6' onclick='stafeval(6)' value='4'></td>
  436.         <td width='40px'><input type='radio' name='is6' onclick='stafeval(6)' value='3'></td>
  437.         <td width='40px'><input type='radio' name='is6' onclick='stafeval(6)' value='2'></td>
  438.         <td width='40px'><input type='radio' name='is6' onclick='stafeval(6)' value='1'></td>
  439.     </tr>
  440.     <tr><td class="staffstafeval" colspan='6'>2. Stdents Growth and Development</td></tr>
  441.     <tr>
  442.         <td>Helps students analyze and improve study methods hodits.</td>
  443.         <td width='40px'><input type='radio' name='sgd1' onclick='stafeval(7)' value='5'></td>
  444.         <td width='40px'><input type='radio' name='sgd1' onclick='stafeval(7)' value='4'></td>
  445.         <td width='40px'><input type='radio' name='sgd1' onclick='stafeval(7)' value='3'></td>
  446.         <td width='40px'><input type='radio' name='sgd1' onclick='stafeval(7)' value='2'></td>
  447.         <td width='40px'><input type='radio' name='sgd1' onclick='stafeval(7)' value='1'></td>
  448.     </tr>
  449.     <tr>
  450.         <td>Conducts ongoing assessment of student achievement through formal and informal testing.</td>
  451.         <td width='40px'><input type='radio' name='sgd2'  onclick='stafeval(8)' value='5'></td>
  452.         <td width='40px'><input type='radio' name='sgd2' onclick='stafeval(8)' value='4'></td>
  453.         <td width='40px'><input type='radio' name='sgd2' onclick='stafeval(8)' value='3'></td>
  454.         <td width='40px'><input type='radio' name='sgd2' onclick='stafeval(8)' value='2'></td>
  455.         <td width='40px'><input type='radio' name='sgd2' onclick='stafeval(8)' value='1'></td>
  456.     </tr>
  457.     <tr><td class="staffstafeval" colspan='6'>3. Classroom Management and Organization</td></tr>
  458.     <tr>
  459.         <td>Creates classroom environment conducive to learning and appropriate for the physical, social and emotional developement of students.</td>
  460.         <td width='40px'><input type='radio' name='cmo1' onclick='stafeval(9)' value='5'></td>
  461.         <td width='40px'><input type='radio' name='cmo1' onclick='stafeval(9)' value='4'></td>
  462.         <td width='40px'><input type='radio' name='cmo1' onclick='stafeval(9)'value='3'></td>
  463.         <td width='40px'><input type='radio' name='cmo1' onclick='stafeval(9)'value='2'></td>
  464.         <td width='40px'><input type='radio' name='cmo1' onclick='stafeval(9)'value='1'></td>
  465.     </tr>
  466.     <tr>
  467.         <td>Manages student behaviour in accordance with student code of conduct and student dairy.</td>
  468.         <td width='40px'><input type='radio' name='cmo2' onclick='stafeval(10)' value='5'></td>
  469.         <td width='40px'><input type='radio' name='cmo2' onclick='stafeval(10)'value='4'></td>
  470.         <td width='40px'><input type='radio' name='cmo2' onclick='stafeval(10)'value='3'></td>
  471.         <td width='40px'><input type='radio' name='cmo2' onclick='stafeval(10)'value='2'></td>
  472.         <td width='40px'><input type='radio' name='cmo2' onclick='stafeval(10)'value='1'></td>
  473.     </tr>
  474.     <tr>
  475.         <td>Assists in selection of books, equipment and other instructional materials.</td>
  476.         <td width='40px'><input type='radio' name='cmo3' onclick='stafeval(11)' value='5'></td>
  477.         <td width='40px'><input type='radio' name='cmo3' onclick='stafeval(11)' value='4'></td>
  478.         <td width='40px'><input type='radio' name='cmo3' onclick='stafeval(11)' value='3'></td>
  479.         <td width='40px'><input type='radio' name='cmo3' onclick='stafeval(11)' value='2'></td>
  480.         <td width='40px'><input type='radio' name='cmo3' onclick='stafeval(11)' value='1'></td>
  481.     </tr>
  482.     <tr><td class="staffstafeval" colspan='6'>4.Communication</td></tr>
  483.     <tr>
  484.         <td>Maintains a professional relationship with colleagues, students and parents.</td>
  485.         <td width='40px'><input type='radio' name='c1' onclick='stafeval(12)' value='5'></td>
  486.         <td width='40px'><input type='radio' name='c1' onclick='stafeval(12)' value='4'></td>
  487.         <td width='40px'><input type='radio' name='c1' onclick='stafeval(12)' value='3'></td>
  488.         <td width='40px'><input type='radio' name='c1' onclick='stafeval(12)' value='2'></td>
  489.         <td width='40px'><input type='radio' name='c1' onclick='stafeval(12)' value='1'></td>
  490.     </tr>
  491.     <tr>
  492.         <td>Equitable teacher-student interaction.</td>
  493.         <td width='40px'><input type='radio' name='c2' onclick='stafeval(13)' value='5'></td>
  494.         <td width='40px'><input type='radio' name='c2' onclick='stafeval(13)' value='4'></td>
  495.         <td width='40px'><input type='radio' name='c2' onclick='stafeval(13)' value='3'></td>
  496.         <td width='40px'><input type='radio' name='c2' onclick='stafeval(13)' value='2'></td>
  497.         <td width='40px'><input type='radio' name='c2' onclick='stafeval(13)' value='1'></td>
  498.     </tr>
  499.     <tr>
  500.         <td>Uses effective communication skills to presnt information accurately and clearly.</td>
  501.         <td width='40px'><input type='radio' name='c3' onclick='stafeval(14)' value='5'></td>
  502.         <td width='40px'><input type='radio' name='c3' onclick='stafeval(14)' value='4'></td>
  503.         <td width='40px'><input type='radio' name='c3' onclick='stafeval(14)' value='3'></td>
  504.         <td width='40px'><input type='radio' name='c3' onclick='stafeval(14)' value='2'></td>
  505.         <td width='40px'><input type='radio' name='c3' onclick='stafeval(14)' value='1'></td>
  506.     </tr>
  507.     <tr>
  508.         <td>Works to establish and maintain communications with syudents, parents and colleagues concerning both the academic and behavioral progress of students.</td>
  509.         <td width='40px'><input type='radio' name='c4' onclick='stafeval(15)' value='5'></td>
  510.         <td width='40px'><input type='radio' name='c4' onclick='stafeval(15)' value='4'></td>
  511.         <td width='40px'><input type='radio' name='c4' onclick='stafeval(15)' value='3'></td>
  512.         <td width='40px'><input type='radio' name='c4' onclick='stafeval(15)' value='2'></td>
  513.         <td width='40px'><input type='radio' name='c4' onclick='stafeval(15)' value='1'></td>
  514.     </tr>
  515.     <tr>
  516.         <td>Speaking articulately and using grammar appropriately.</td>
  517.         <td width='40px'><input type='radio' name='c5' onclick='stafeval(16)' value='5'></td>
  518.         <td width='40px'><input type='radio' name='c5' onclick='stafeval(16)' value='4'></td>
  519.         <td width='40px'><input type='radio' name='c5' onclick='stafeval(16)' value='3'></td>
  520.         <td width='40px'><input type='radio' name='c5' onclick='stafeval(16)' value='2'></td>
  521.         <td width='40px'><input type='radio' name='c5' onclick='stafeval(16)' value='1'></td>
  522.     </tr>
  523.     <tr>
  524.         <td>Displays sensitivity to others and reponding to others in a timely manner.</td>
  525.         <td width='40px'><input type='radio' name='c6' onclick='stafeval(17)' value='5'></td>
  526.         <td width='40px'><input type='radio' name='c6' onclick='stafeval(17)' value='4'></td>
  527.         <td width='40px'><input type='radio' name='c6' onclick='stafeval(17)' value='3'></td>
  528.         <td width='40px'><input type='radio' name='c6' onclick='stafeval(17)' value='2'></td>
  529.         <td width='40px'><input type='radio' name='c6' onclick='stafeval(17)' value='1'></td>
  530.     </tr>
  531.     <tr><td class="staffstafeval" colspan='6'>5. Professional Growth and Development</td></tr>
  532.     <tr>
  533.         <td>Participates in staff development activites to improve job related skills.</td>
  534.         <td width='40px'><input type='radio' name='pgd1' onclick='stafeval(18)' value='5'></td>
  535.         <td width='40px'><input type='radio' name='pgd1' onclick='stafeval(18)' value='4'></td>
  536.         <td width='40px'><input type='radio' name='pgd1' onclick='stafeval(18)' value='3'></td>
  537.         <td width='40px'><input type='radio' name='pgd1' onclick='stafeval(18)' value='2'></td>
  538.         <td width='40px'><input type='radio' name='pgd1' onclick='stafeval(18)' value='1'></td>
  539.     </tr>
  540.     <tr>
  541.         <td>Setting and achieving professional goals.</td>
  542.         <td width='40px'><input type='radio' name='pgd2' onclick='stafeval(19)' value='5'></td>
  543.         <td width='40px'><input type='radio' name='pgd2' onclick='stafeval(19)' value='4'></td>
  544.         <td width='40px'><input type='radio' name='pgd2' onclick='stafeval(19)' value='3'></td>
  545.         <td width='40px'><input type='radio' name='pgd2' onclick='stafeval(19)' value='2'></td>
  546.         <td width='40px'><input type='radio' name='pgd2' onclick='stafeval(19)' value='1'></td>
  547.     </tr>
  548.     <tr>
  549.         <td>Maintains professional and ethical standards and follows a code of ethics.</td>
  550.         <td width='40px'><input type='radio' name='pgd3' onclick='stafeval(20)' value='5'></td>
  551.         <td width='40px'><input type='radio' name='pgd3' onclick='stafeval(20)' value='4'></td>
  552.         <td width='40px'><input type='radio' name='pgd3' onclick='stafeval(20)' value='3'></td>
  553.         <td width='40px'><input type='radio' name='pgd3' onclick='stafeval(20)' value='2'></td>
  554.         <td width='40px'><input type='radio' name='pgd3' onclick='stafeval(20)' value='1'></td>
  555.     </tr>
  556.     <tr><td class="staffstafeval" colspan='6'>6. Performance of Duties Assigned by the head.</td></tr>
  557.     <tr>
  558.         <td>Compliers, maintains and files all physical and computerized reports, records and other documents required.</td>
  559.         <td width='40px'><input type='radio' name='pda1' onclick='stafeval(21)' value='5'></td>
  560.         <td width='40px'><input type='radio' name='pda1' onclick='stafeval(21)' value='4'></td>
  561.         <td width='40px'><input type='radio' name='pda1' onclick='stafeval(21)' value='3'></td>
  562.         <td width='40px'><input type='radio' name='pda1' onclick='stafeval(21)' value='2'></td>
  563.         <td width='40px'><input type='radio' name='pda1' onclick='stafeval(21)' value='1'></td>
  564.     </tr>
  565.     <tr>
  566.         <td>Perofrms other duties assigned by the administration ion accordance with school policies and practicesm not interfering with classroom instructional time.</td>
  567.         <td width='40px'><input type='radio' name='pda2' onclick='stafeval(22)' value='5'></td>
  568.         <td width='40px'><input type='radio' name='pda2' onclick='stafeval(22)' value='4'></td>
  569.         <td width='40px'><input type='radio' name='pda2' onclick='stafeval(22)' value='3'></td>
  570.         <td width='40px'><input type='radio' name='pda2' onclick='stafeval(22)' value='2'></td>
  571.         <td width='40px'><input type='radio' name='pda2'onclick='stafeval(22)'  value='1'></td>
  572.     </tr>
  573.     <tr><td class="staffstafeval" colspan='6'>7. Confidentiality of Information</td></tr>
  574.     <tr>
  575.         <td>Respecting rights and confidentiality of students and staff.</td>
  576.         <td width='40px'><input type='radio' name='ci1' onclick='stafeval(23)' value='5'></td>
  577.         <td width='40px'><input type='radio' name='ci1' onclick='stafeval(23)' value='4'></td>
  578.         <td width='40px'><input type='radio' name='ci1' onclick='stafeval(23)' value='3'></td>
  579.         <td width='40px'><input type='radio' name='ci1' onclick='stafeval(23)' value='2'></td>
  580.         <td width='40px'><input type='radio' name='ci1' onclick='stafeval(23)' value='1'></td>
  581.     </tr>
  582.     <tr>
  583.         <td>Maintains confidentiality and privacy of different offices</td>
  584.         <td width='40px'><input type='radio' name='ci2' onclick='stafeval(24)' value='5'></td>
  585.         <td width='40px'><input type='radio' name='ci2' onclick='stafeval(24)' value='4'></td>
  586.         <td width='40px'><input type='radio' name='ci2' onclick='stafeval(24)' value='3'></td>
  587.         <td width='40px'><input type='radio' name='ci2' onclick='stafeval(24)' value='2'></td>
  588.         <td width='40px'><input type='radio' name='ci2' onclick='stafeval(24)' value='1'></td>
  589.     </tr>
  590.     <tr>
  591.         <td>Maintains confidentiality inforamtion.</td>
  592.         <td width='40px'><input type='radio' name='ci3' onclick='stafeval(25)' value='5'></td>
  593.         <td width='40px'><input type='radio' name='ci3' onclick='stafeval(25)' value='4'></td>
  594.         <td width='40px'><input type='radio' name='ci3' onclick='stafeval(25)' value='3'></td>
  595.         <td width='40px'><input type='radio' name='ci3' onclick='stafeval(25)' value='2'></td>
  596.         <td width='40px'><input type='radio' name='ci3' onclick='stafeval(25)' value='1'></td>
  597.     </tr>
  598.     <tr><td class="staffstafeval" colspan='6'>8. Campus Performance Rating(voluntary involvement in school life)</td></tr>
  599.     <tr>
  600.         <td>Leadreship and participation in co-curricular activites of the school.</td>
  601.         <td width='40px'><input type='radio' name='cpr1' onclick='stafeval(26)' value='5'></td>
  602.         <td width='40px'><input type='radio' name='cpr1' onclick='stafeval(26)' value='4'></td>
  603.         <td width='40px'><input type='radio' name='cpr1' onclick='stafeval(26)' value='3'></td>
  604.         <td width='40px'><input type='radio' name='cpr1' onclick='stafeval(26)' value='2'></td>
  605.         <td width='40px'><input type='radio' name='cpr1' onclick='stafeval(26)' value='1'></td>
  606.     </tr>
  607.     <tr>
  608.         <td>Participation in maintainging a clean and presentable school environment.</td>
  609.         <td width='40px'><input type='radio' name='cpr2' onclick='stafeval(27)' value='5'></td>
  610.         <td width='40px'><input type='radio' name='cpr2' onclick='stafeval(27)' value='4'></td>
  611.         <td width='40px'><input type='radio' name='cpr2' onclick='stafeval(27)' value='3'></td>
  612.         <td width='40px'><input type='radio' name='cpr2' onclick='stafeval(27)' value='2'></td>
  613.         <td width='40px'><input type='radio' name='cpr2' onclick='stafeval(27)' value='1'></td>
  614.     </tr>
  615.     <tr>
  616.         <td>Effective and efficient management of time and materials.</td>
  617.         <td width='40px'><input type='radio' name='cpr3' onclick='stafeval(28)' value='5'></td>
  618.         <td width='40px'><input type='radio' name='cpr3' onclick='stafeval(28)' value='4'></td>
  619.         <td width='40px'><input type='radio' name='cpr3' onclick='stafeval(28)' value='3'></td>
  620.         <td width='40px'><input type='radio' name='cpr3' onclick='stafeval(28)' value='2'></td>
  621.         <td width='40px'><input type='radio' name='cpr3' onclick='stafeval(28)' value='1'></td>
  622.     </tr>
  623.     <tr>
  624.         <td>Contributies in maintaining the school discipline.</td>
  625.         <td width='40px'><input type='radio' name='cpr4' onclick='stafeval(29)' value='5'></td>
  626.         <td width='40px'><input type='radio' name='cpr4' onclick='stafeval(29)' value='4'></td>
  627.         <td width='40px'><input type='radio' name='cpr4' onclick='stafeval(29)' value='3'></td>
  628.         <td width='40px'><input type='radio' name='cpr4' onclick='stafeval(29)' value='2'></td>
  629.         <td width='40px'><input type='radio' name='cpr4' onclick='stafeval(29)' value='1'></td>
  630.     </tr>
  631.     <tr>
  632.         <td>Contributies to make the whole school safe, orderly and an aesthetically pleasing learning environment.</td>
  633.         <td width='40px'><input type='radio' name='cpr5' onclick='stafeval(30)' value='5'></td>
  634.         <td width='40px'><input type='radio' name='cpr5' onclick='stafeval(30)' value='4'></td>
  635.         <td width='40px'><input type='radio' name='cpr5' onclick='stafeval(30)' value='3'></td>
  636.         <td width='40px'><input type='radio' name='cpr5' onclick='stafeval(30)' value='2'></td>
  637.         <td width='40px'><input type='radio' name='cpr5' onclick='stafeval(30)' value='1'></td>
  638.     </tr>
  639.     <tr>
  640.         <td>Total Points Scored(Out of 150)</td>
  641.         <td colspan='5' width='40px'><input type='text' name='total' value='0'>&nbsp;&nbsp;&nbsp;<input type='submit' name='add' value='Total' onclick="addRadio()"></td>
  642.  
  643.     </tr>
  644.     <tr><td class="staffstafeval" colspan='6'>Overall Performance Rating</td></tr>
  645.     <tr>
  646.         <td>Exemplary</td>
  647.         <td colspan='5' align='left'>125-150</td>
  648.     </tr>
  649.     <tr>
  650.         <td>Recognized</td>
  651.         <td colspan='5' align='left'>75-125</td>
  652.     </tr>
  653.     <tr>
  654.         <td>Acceptable</td>
  655.         <td colspan='5' align='left'>50-75</td>
  656.     </tr>
  657.     <tr>
  658.         <td>Below Exectations</td>
  659.         <td colspan='5' align='left'>Below 50</td>
  660.     </tr>
  661.     </table>
  662. <table class='forumline' width='85%' style="text-align:center;font-family: Verdana, Arial, Helvetica, sans-serif;" cellpadding='1' cellspacing='0' border=1 >
  663.     <tr>
  664.         <td align='right'>Principal's Comments:</td><td align="center"><textarea rows='5' cols='100' name='pri_commt'></textarea></td>
  665.     </tr>
  666.     <tr><td colspan='2' height="40"><input type='submit' name='submit' value='SUBMIT' class='bgbutton' ></td></tr>
  667.     </table>
  668.  
  669. </center>
  670. </form>
  671. </body>
  672. </html>
  673.  
Jun 17 '10 #1
2 1893
NKTA
26 New Member
Honestly, if you had used switch(action) statement instead of those if's, the code would not only simplier as easier to spot any errors.
By the way, whats is what you want spefically to search for ?
Would help if could add your own doubts and questions.
Expand|Select|Wrap|Line Numbers
  1. switch(action){
  2.         case 0:
  3.              whatever you want to do
  4.         break;
  5.         case 1:
  6.         break;
  7.         default:
  8. // Usually in here you put whatever it should be done if any of the previous cases are not chosen, could be a error message.
  9. }
  10.  
Just noticed you are always using parseInt(), i would preter to use Number( ... ) to do what you are trying.
parseInt() will pickUp your var and decompose it to check for integers, Number() checks its value and sees if it is number. Two different things here.
Check W3s for examples:
parseInt()
&
Number()
Jun 17 '10 #2
vivekgs2007
60 New Member
thank q for ur replay..but problem is some wr else i got answer
Jul 22 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
1508
by: Ruskin | last post by:
Is there an easier way to do this (what I am trying to do, is have 3 radio buttons and when the submit button is clicked, easily determine which radio button was selcted). NOTE: the radio buttons are in 3 different cells of a table, so I can't use the <select></select> tags.... HTML: <form name="SelectOrder"> <tr><tr><input type="radio" name="OrderType" value="C">'C' Orders<br /></input></td></tr>
2
12349
by: jason | last post by:
The following (likely far from imperfect code), reports a value of NaN in the j4 display. I suppose the problem is I am not really passing the "checked" value of the radio button via .value ... without having to get this value via html, is there any way I can passed the checked value via html .. maybe with syntax like n4.checked.value or something.. Many thanks. <html>
1
2595
by: PeeZee | last post by:
I am having some trouble getting this done. I am able to get the value to display on a seperate page but not on the same page in the same form. I would like to display to set value of the radio button into a text field. Also, would need to multiply and add values of radio buttons as the are selected into seperate text field and have a subtotal display in the last of the fields.
3
4000
by: Thad | last post by:
On one page I have radio buttons below pictures, here is one picture... <img src="images/web-aroundworld458c.jpg" width="100" height="51" border="0" onclick="this.src='./images/web-aroundworld458c.jpg';this.height=102;this.width=200" ondblclick="this.src='./images/web-aroundworld458c.jpg';this.height=51;this.width=100" alt="" /><br /> <input type="radio" name="image_choice" value="lp15-web-aroundworld458c" style="width:...
3
3784
by: Abersparky | last post by:
I'm having a problem with multiple radio button groups within a while loop. I have the page made so it pulls from a database the row values - one of which is a Y or N value. I have a radio button group for the Y and N value for each row of the database that gets pulled but only the last row will populate the value retrieved from the db. I know that I have to create a unique name for the radio buttons for each row - but I don't know how...
1
2331
by: poopsy | last post by:
hi all, i' hav this question where i have a radio button and select one of 2 choices, whichever i select hav to display in the input box but it doesnt work here is the code <html> <head> <script language="JavaScript"> function display(){ { frm_browser.txt_display.value=frm_broswer.txt_browser.checked.options.value
5
14005
by: JohnDriver | last post by:
Hi, I am having a form which has a text box and 3 radio buttons. I am using GET method in Ajax to pass the value. I can pass the value of the textbox fine but how to pass the value of radio button? I searched a few things on Google but I find the javascript below most useful in my case but there is some problem that my code is not running: var test = document.getElementsByName("meal"); for (i = 0; i < test.length; i++) {
4
5721
by: CURTISLESPERANCE | last post by:
Hi, I am trying to figure out if this is possible. I need to display 4 radio buttons next to a question then 3 radio buttons after. The 2 different group radio buttons and questions are coming from a database. I have the questions being displayed right now using a repeater control but I am having an issue making 4 and 3 radio buttins per question for multiple questions. However some questions have sub questions so the parent question...
4
2265
by: Bernie | last post by:
Hello all, I am new to the group and new to javascripting, so I am hoping to find some good help here. Here is a snippet of my code: HTML: Name: <input type="text" name="ageName0" id="ageName0" /> <input type="radio" value="0" name="age0" onclick="getPrice();" /6
3
4660
by: rjlorenzo | last post by:
Hi to all, I have created a survey page that consists of 4 pages 10 question on each page. Each question are just answer using a radio button. Now my problem is i have to retain all the answer/value of radio button even the user click previous page then going back to current page. appreciate any idea please. thank you in advance
0
9579
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9416
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10032
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7393
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6661
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5293
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5433
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3551
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2810
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.