Размер файла: 10.79Kb
<? 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 //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"){ //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); //this is system of assessment if (result>=0 && result<=3){ document.forms[0].output.value = good; } else if (result>=4 && result<=8){ document.forms[0].output.value = pour; } else if (result>=9 && result<=12){ document.forms[0].output.value = bad; } } else { alert("Вы ответили не на все вопросы!"); } } </script> <meta name="Description" content="Добрый ли вы? Прикольные тесты"> <meta name="Keywords" content="Юмористические прикольные тесты"> </head> <form> <hr> <div align="left"><p style="margin-left: 100"><font face="Arial"> 1. У вас появились деньги. Могли бы вы истратить все, что у вас есть, на подарки друзьям? <br> <input name="q1" type="radio" value="1" checked>Да.<br> <input name="q1" type="radio" value="0">Нет.</p> </div><hr> <p style="margin-left: 100">2. Товарищ рассказывает вам о своих невзгодах. Дадите ли вы ему понять, что вас это мало интересует, даже если это так? <br> <input name="q2" type="radio" value="0" checked>Да.<br> <input name="q2" type="radio" value="1">Нет.</font></p> <hr> <p style="margin-left: 100"><font face="Arial">3. Если ваш партнер плохо играет в шахматы или другую игру, будете ли вы иногда ему поддаваться, чтобы сделать приятное? <br> <input name="q3" type="radio" value="1" checked>Да! <br> <input name="q3" type="radio" value="0">Нет.</font></p> <hr> <p style="margin-left: 100"><font face="Arial">4. Часто ли вы говорите приятное людям, просто чтобы поднять им настроение? <br> <input name="q4" type="radio" value="1" checked><span lang="ru">Да.</span><br> <input name="q4" type="radio" value="0"><span lang="ru">Нет.</span></font></p> <hr> <p style="margin-left: 100"><font face="Arial">5. Любите ли вы злые шутки? <br> <input name="q5" type="radio" value="0" checked>Да.<br> <input name="q5" type="radio" value="1">Нет.</font></p> <hr> <p style="margin-left: 100"><font face="Arial">6. Вы злопамятны? <br> <input name="q6" type="radio" value="1" checked>Да.<br> <input name="q6" type="radio" value="0">Нет.</font></p> <hr> <p style="margin-left: 100"><font face="Arial">7. Можете ли вы терпеливо выслушать даже то, что вас совершенно не интересует? <br> <input name="q7" type="radio" value="1" checked>Да.<br> <input name="q7" type="radio" value="0">Нет.</font></p> <hr> <p style="margin-left: 100"><font face="Arial">8. Умеете ли вы на практике применять свои способности? <br> <input name="q8" type="radio" value="0" checked>Да.<br> <input name="q8" type="radio" value="1">Нет.</font></p> <hr> <p style="margin-left: 100"><font face="Arial">9. Бросаете ли игру, когда начинаете проигрывать? <br> <input name="q9" type="radio" value="0" checked><span lang="ru">Да.</span><br> <input name="q9" type="radio" value="1"><span lang="ru">Нет.</span></font></p> <hr> <p style="margin-left: 100"><font face="Arial">10. Если вы уверены в своей правоте, отказываетесь ли выслушать аргументы оппонента? <br> <input name="q10" type="radio" value="0" checked>Да.<br> <input name="q10" type="radio" value="1">Нет.</font></p> <hr> <p style="margin-left: 100"><font face="Arial">11. Вы охотно выполняете просьбы? <br> <input name="q11" type="radio" value="1" checked>Да!<br> <input name="q11" type="radio" value="0">Нет.</font></p> <hr> <p style="margin-left: 100"><font face="Arial">12. Станете ли вы подтрунивать над кем-то, чтобы развеселить окружающих? <br> <input name="q12" type="radio" value="0" checked>Да.<br> <input name="q12" type="radio" value="1">Нет.</font></p> <hr> <div align="center"><center><font face="Arial">Нажмите на кнопку и получите результат<b> </b></font> </center></div><div align="center"><center><textarea cols="50" name="output" rows="3"></textarea></center></div><div align="center"><center><input type="button" onclick="count()" value="Проверьте себя"> <input type="reset" value="Очистить форму"></center></div> </form> <hr align="center"> <br> ' ; 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" ); ?>