Размер файла: 15.9Kb
<? php ###################################### ###################################### ### ### ### Автор:DemoNChatA ### ### Сайт: http://afi.h2m.ru ### ###--------------------------------### ### Мод под Rotor CMS: ЧисТый_Яд ### ### ICQ: 364-545-096 ### ### Сайт: http://all-wap.ru ### ### Дата: 21 декабря 2011г. ### ### ### ###################################### ###################################### require_once ( '../includes/start.php' ); require_once ( '../includes/functions.php' ); require_once ( '../includes/header.php' ); include_once ( '../themes/' . $config [ 'themes' ]. '/index.php' ); echo '<img src="../images/img/partners.gif" alt=""> <b>Есть ли у Вас в голове тараканы?</b><br><br>' ; echo ' <script language="JavaScript" type="text/javascript"> function count(){ //first we will check which answer was selected //and calculate points that person will get // start checking question 1 if (document.forms[0].q1[0].checked){ var a1 = document.forms[0].q1[0].value} if (document.forms[0].q1[1].checked){ var a1 = document.forms[0].q1[1].value} // end 1 // start 2 if (document.forms[0].q2[0].checked){ var a2 = document.forms[0].q2[0].value} if (document.forms[0].q2[1].checked){ var a2 = document.forms[0].q2[1].value} // end 2 // start 3 if (document.forms[0].q3[0].checked){ var a3 = document.forms[0].q3[0].value} if (document.forms[0].q3[1].checked){ var a3 = document.forms[0].q3[1].value} // end 3 // start 4 if (document.forms[0].q4[0].checked){ var a4 = document.forms[0].q4[0].value} if (document.forms[0].q4[1].checked){ var a4 = document.forms[0].q4[1].value} // end 4 // start 5 if (document.forms[0].q5[0].checked){ var a5 = document.forms[0].q5[0].value} if (document.forms[0].q5[1].checked){ var a5 = document.forms[0].q5[1].value} // end 5 // start 6 if (document.forms[0].q6[0].checked){ var a6 = document.forms[0].q6[0].value} if (document.forms[0].q6[1].checked){ var a6 = document.forms[0].q6[1].value} // end 6 // start 7 if (document.forms[0].q7[0].checked){ var a7 = document.forms[0].q7[0].value} if (document.forms[0].q7[1].checked){ var a7 = document.forms[0].q7[1].value} // end 7 // start 8 if (document.forms[0].q8[0].checked){ var a8 = document.forms[0].q8[0].value} if (document.forms[0].q8[1].checked){ var a8 = document.forms[0].q8[1].value} // end 8 // start 9 if (document.forms[0].q9[0].checked){ var a9 = document.forms[0].q9[0].value} if (document.forms[0].q9[1].checked){ var a9 = document.forms[0].q9[1].value} // end 9 // start 10 if (document.forms[0].q10[0].checked){ var a10 = document.forms[0].q10[0].value} if (document.forms[0].q10[1].checked){ var a10 = document.forms[0].q10[1].value} // end 10 // start 11 if (document.forms[0].q11[0].checked){ var a11 = document.forms[0].q11[0].value} if (document.forms[0].q11[1].checked){ var a11 = document.forms[0].q11[1].value} // end 11 // start 12 if (document.forms[0].q12[0].checked){ var a12 = document.forms[0].q12[0].value} if (document.forms[0].q12[1].checked){ var a12 = document.forms[0].q12[1].value} // end 12 // start 13 if (document.forms[0].q13[0].checked){ var a13 = document.forms[0].q13[0].value} if (document.forms[0].q13[1].checked){ var a13 = document.forms[0].q13[1].value} // end 13 // start 14 if (document.forms[0].q14[0].checked){ var a14 = document.forms[0].q14[0].value} if (document.forms[0].q14[1].checked){ var a14 = document.forms[0].q14[1].value} // end 14 // start 15 if (document.forms[0].q15[0].checked){ var a15 = document.forms[0].q15[0].value} if (document.forms[0].q15[1].checked){ var a15 = document.forms[0].q15[1].value} // end 15 // start 16 if (document.forms[0].q16[0].checked){ var a16 = document.forms[0].q16[0].value} if (document.forms[0].q16[1].checked){ var a16 = document.forms[0].q16[1].value} // end 16 // start 17 if (document.forms[0].q17[0].checked){ var a17 = document.forms[0].q17[0].value} if (document.forms[0].q17[1].checked){ var a17 = document.forms[0].q17[1].value} // end 17 // start 18 if (document.forms[0].q18[0].checked){ var a18 = document.forms[0].q18[0].value} if (document.forms[0].q18[1].checked){ var a18 = document.forms[0].q18[1].value} // end 18 // start 19 if (document.forms[0].q19[0].checked){ var a19 = document.forms[0].q19[0].value} if (document.forms[0].q19[1].checked){ var a19 = document.forms[0].q19[1].value} // end 19 // start 20 if (document.forms[0].q20[0].checked){ var a20 = document.forms[0].q20[0].value} if (document.forms[0].q20[1].checked){ var a20 = document.forms[0].q20[1].value} // end 20 // start 21 if (document.forms[0].q21[0].checked){ var a21 = document.forms[0].q21[0].value} if (document.forms[0].q21[1].checked){ var a21 = document.forms[0].q21[1].value} // end 21 // start 22 if (document.forms[0].q22[0].checked){ var a22 = document.forms[0].q22[0].value} if (document.forms[0].q22[1].checked){ var a22 = document.forms[0].q22[1].value} // end 22 // start 23 if (document.forms[0].q23[0].checked){ var a23 = document.forms[0].q23[0].value} if (document.forms[0].q23[1].checked){ var a23 = document.forms[0].q23[1].value} // end 23 // start 24 if (document.forms[0].q24[0].checked){ var a24 = document.forms[0].q24[0].value} if (document.forms[0].q24[1].checked){ var a24 = document.forms[0].q24[1].value} // end 24 // start 25 if (document.forms[0].q25[0].checked){ var a25 = document.forms[0].q25[0].value} if (document.forms[0].q25[1].checked){ var a25 = document.forms[0].q25[1].value} // end 25 //now we will check whether all questions were answered if (typeof a1=="string" && typeof a2=="string" && typeof a3=="string" && typeof a4=="string" && typeof a5=="string" && typeof a6=="string" && typeof a7=="string" && typeof a8=="string" && typeof a9=="string" && typeof a10=="string" && typeof a11=="string" && typeof a12=="string" && typeof a13=="string" && typeof a14=="string" && typeof a15=="string" && typeof a16=="string" && typeof a17=="string" && typeof a18=="string" && typeof a19=="string" && typeof a20=="string" && typeof a21=="string" && typeof a22=="string" && typeof a23=="string" && typeof a24=="string" && typeof a25=="string"){ //these are variants of conclusion good = "У Вас нет тараканов в голове! Поздравляем!"; pour = "Возможно, тараканов у Вас в голове нет. Но подозрение на их присутствие появилось..."; bad = "У Вас есть тараканы в голове! Но они Вам не мешают."; result = parseInt(a1)+parseInt(a2)+parseInt(a3)+parseInt(a4)+parseInt(a5)+parseInt(a6)+parseInt(a7)+parseInt(a8)+parseInt(a9)+parseInt(a10)+parseInt(a11)+parseInt(a12)+parseInt(a13)+parseInt(a14)+parseInt(a15)+parseInt(a16)+parseInt(a17)+parseInt(a18)+parseInt(a19)+parseInt(a20)+parseInt(a21)+parseInt(a22)+parseInt(a23)+parseInt(a24)+parseInt(a25); //this is system of assessment if (result>=0 && result<=7){ document.forms[0].output.value = good; } else if (result>=8 && result<=21){ document.forms[0].output.value = pour; } else if (result>=23 && result<=25){ document.forms[0].output.value = bad; } } else { alert("Вы ответили не на все вопросы!"); } } </script> <meta name="Description" content="Прикольные тесты"> <meta name="Keywords" content="Юмористические прикольные тесты"> </head> <p align="center"> </p> <form> <div align="left"><p style="margin-left: 100"><big>1. Роняли ли Вас в детстве на пол?</big><strong><br> <input name="q1" type="radio" value="1" checked>Не помню, но говорят, что да.<br> <input name="q1" type="radio" value="0">Говорят, что нет.</strong></p> </div><p style="margin-left: 100"><big>2. Бились ли Вы головой о стену? <br> </big><strong><input name="q2" type="radio" value="1" checked>Да.<br> <input name="q2" type="radio" value="0">Нет.</strong></p> <p style="margin-left: 100"><big>3. Состоите ли Вы на учете в психиатрической лечебнице?<br> </big><strong><input name="q3" type="radio" value="1" checked>Да. <br> <input name="q3" type="radio" value="0">Нет.</strong></p> <p style="margin-left: 100"><big>4. Живет ли в Вашей квартире Барабашка?<br> </big><strong><input name="q4" type="radio" value="1" checked>Да!<br> <input name="q4" type="radio" value="0">Нет, такая скука!</strong></p> <p style="margin-left: 100"><big>5. Верите ли Вы в коммунизм?<br> </big><strong><input name="q5" type="radio" value="1" checked>Да!<br> <input name="q5" type="radio" value="0">Нет.</strong></p> <p style="margin-left: 100"><big>6. Верите ли Вы в гороскопы?<br> </big><strong><input name="q6" type="radio" value="1" checked>Да.<br> <input name="q6" type="radio" value="0">Нет.</strong></p> <p style="margin-left: 100"><big>7. Верите ли Вы в хиромантию?<br> </big><strong><input name="q7" type="radio" value="1" checked>Да.<br> <input name="q7" type="radio" value="0">Нет.</strong></p> <p style="margin-left: 100"><big>8. Обращались ли Вы за помощью к экстрасенсу?<br> </big><strong><input name="q8" type="radio" value="1" checked>Да.<br> <input name="q8" type="radio" value="0">Нет.</strong></p> <p style="margin-left: 100"><big>9. Кажется ли Вам, что за Вами все время кто-то наблюдает?<br> </big><strong><input name="q9" type="radio" value="1" checked>Да.<br> <input name="q9" type="radio" value="0">Нет.</strong></p> <p style="margin-left: 100"><big>10. Пропадают ли вещи в Вашей квартире за время Вашего отсутствия?<br> </big><strong><input name="q10" type="radio" value="1" checked>Да.<br> <input name="q10" type="radio" value="0">Нет.</strong></p> <p style="margin-left: 100"><big>11. Вокруг Вас одни враги?<br> </big><strong><input name="q11" type="radio" value="1" checked>Да!<br> <input name="q11" type="radio" value="0">Нет.</strong></p> <p style="margin-left: 100"><big>12. Слышите ли Вы непонятные шумы или шорох в своей голове?<br> </big><strong><input name="q12" type="radio" value="1" checked>Да.<br> <input name="q12" type="radio" value="0">Нет.</strong></p> <p style="margin-left: 100"><big>13. Являетесь ли Вы заядлым спортивным болельщиком?<br> </big><strong><input name="q13" type="radio" value="1" checked>Да.<br> <input name="q13" type="radio" value="0">Нет.</strong></p> <p style="margin-left: 100"><big>14. Верите ли Вы, что Вас могут сглазить?<br> </big><strong><input name="q14" type="radio" value="1" checked>Да.<br> <input name="q14" type="radio" value="0">Нет.</strong></p> <p style="margin-left: 100"><big>15. Считаете ли Вы, что революция 1917 года была благом для России?<br> </big><strong><input name="q15" type="radio" value="1" checked>Да.<br> <input name="q15" type="radio" value="0">Нет.</strong></p> <p style="margin-left: 100"><big>16. Попадали ли Вы в авиакатастрофу?<br> </big><strong><input name="q16" type="radio" value="1" checked>Да.<br> <input name="q16" type="radio" value="0">Нет.</strong></p> <p style="margin-left: 100"><big>17. Считаете ли Вы, что инопланетяне среди нас?<br> </big><strong><input name="q17" type="radio" value="1" checked>Да.<br> <input name="q17" type="radio" value="0">Нет.</strong></p> <p style="margin-left: 100"><big>18. Верите ли Вы, что Алан Чумак может с телеэкрана заряжать воду?<br> </big><strong><input name="q18" type="radio" value="1" checked>Да.<br> <input name="q18" type="radio" value="0">Нет.</strong></p> <p style="margin-left: 100"><big>19. Считаете ли Вы, что евреи хотят погубить Россию?<br> </big><strong><input name="q19" type="radio" value="1" checked>Да.<br> <input name="q19" type="radio" value="0">Нет.</strong></p> <p style="margin-left: 100"><big>20. Увлекались ли Вы токсикоманией или наркотиками?<br> </big><strong><input name="q20" type="radio" value="1" checked>Да.<br> <input name="q20" type="radio" value="0">Нет.</strong></p> <p style="margin-left: 100"><big>21. Считаете ли Вы простых американцев нашими врагами?<br> </big><strong><input name="q21" type="radio" value="1" checked>Да.<br> <input name="q21" type="radio" value="0">Нет.</strong></p> <p style="margin-left: 100"><big>22. Верите ли Вы в жизнь после смерти?<br> </big><strong><input name="q22" type="radio" value="1" checked>Да.<br> <input name="q22" type="radio" value="0">Нет.</strong></p> <p style="margin-left: 100"><big>23. Считаете ли Вы, что все грешники попадут в ад?<br> </big><strong><input name="q23" type="radio" value="1" checked>Да.<br> <input name="q23" type="radio" value="0">Нет.</strong></p> <p style="margin-left: 100"><big>24. Верите ли Вы, что все человечество произошло от Адама и Евы?<br> </big><strong><input name="q24" type="radio" value="1" checked>Да.<br> <input name="q24" type="radio" value="0">Нет.</strong></p> <p style="margin-left: 100"><big>25. Если дорогу Вам перешла черная кошка, меняете ли Вы свой маршрут?<br> </big><strong><input name="q25" type="radio" value="1" checked>Да.<br> <input name="q25" type="radio" value="0">Нет.</strong></p> <hr> <div align="center"><center><strong>Нажмите на кнопку и получите результат</strong> </center></div><div align="center"><center><strong><textarea cols="50" name="output" rows="3"></textarea></strong></center></div><div align="center"><center><strong><input type="button" onclick="count()" value="Проверьте себя"> <input type="reset" value="Очистить форму"></strong></center></div> </form> <hr align="center"> </html> ' ; echo '<br><img src="../images/img/reload.gif" alt=""> <a href="../test/index.php?' . SID . '">К Тестам</a>' ; echo '<br><img src="../images/img/reload.gif" alt=""> <a href="../pages/index.php?act=arkada&' . SID . '">К Развлечениям</a>' ; echo '<br><img src="../images/img/homepage.gif" alt=""> <a href="../index.php?' . SID . '">На главную</a>' ; include_once ( "../themes/" . $config [ 'themes' ]. "/foot.php" ); ?>