473,395 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

add the value of multiple radio button onclick

vivekgs2007
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 1860
NKTA
26
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
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
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...
2
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 ......
1
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...
3
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"...
3
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...
1
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>...
5
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...
4
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...
4
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"...
3
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.