<Doctype>
<Html>
<head>
<Meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<H1><Title>کارنامه شما</Title></H1>
<script>
var totalquestions=2
var correctchoices=new Array()
correctchoices[1]='b'
correctchoices[2]='a'
function gradeit(){
var incorrect=null
for (q=1;q<=totalquestions;q++){
var thequestion=eval("document.myquiz.question"+q)
for (c=0;c<thequestion.length;c++){
if (thequestion[c].checked==true)
actualchoices[q]=thequestion[c].value
}
if (actualchoices[q]!=correctchoices[q]){
if (incorrect==null)
incorrect=q
else
incorrect+="/"+q
}
}
if (incorrect==null)
incorrect="a/b"
document.cookie='q='+incorrect
if (document.cookie=='')
alert("متاسفانه کوکی های شما اجازه استفاده از این سرویس را نمی دهند")
else
window.location="http://codix.ir/page/quiz"
}
function showsolution(){
var win2=window.open("","win2","width=200,height=350, scrollbars")
win2.focus()
win2.document.open()
win2.document.write('<title>مشاهده پاسخ ها</title>')
win2.document.write('<body bgcolor="#FFFFFF">')
win2.document.write('<center><h3>مشاهده پاسخ ها</h3></center>')
win2.document.write('<center>')
for (i=1;i<=totalquestions;i++){
for (temp=0;temp<incorrect.length;temp++){
if (i==incorrect[temp])
wrong=1
}
if (wrong==1){
win2.document.write("سوال: "+i+"="+correctchoices.fontcolor("red")+"<br />")
wrong=0
}
else
win2.document.write("سوال: "+i+"="+correctchoices+"<br />")
}
win2.document.write('</center></font>')
win2.document.write("<h5>پاسخ سوالات</h5>")
win2.document.close()
}
</script>
<link rel="stylesheet" href="http://sistemfa.ir/temp/fonts/style.css" media="all" />
<link rel="stylesheet" href="http://up.sistemfa.ir/up/sistemfa/quiz/css.css" media="all" />
</head>
<body bgcolor="#FFFFFF" name="scores" ”) used on a non-void HTML element. Ignoring the slash and treating as a start tag." class="error">/>
<div align="center">
<div class="main">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%"><form method="POST" name="result"><table border="0" width="100%" cellpadding="0" height="115">
<tr>
<td bgcolor="#D3FFA8"><strong>تعداد سوالات صحیح:</strong></td>
<td><p><input type="text" name="p" /></td>
</tr>
<tr>
<td bgcolor="#D3FFA8"><strong>تعداد سوالات غلط:</strong></td>
<td><p><input name="T2" wrap="virtual" /></td>
</tr>
<tr>
<td bgcolor="#D3FFA8"><strong>نمره نسبی شما:</strong></td>
<td><input type="text" name="q" /></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</center></div>
<form method="POST"><div align="center"><center><p>
<script>
var wrong=0
for (e=0;e<=2;e++)
document.result[e].value=""
var results=document.cookie.split(";")
for (n=0;n<=results.length-1;n++){
if (results[n].charAt(1)=='q')
parse=n
}
var incorrect=results[parse].split("=")
incorrect=incorrect[1].split("/")
if (incorrect[incorrect.length-1]=='b')
incorrect=""
document.result[0].value=totalquestions-incorrect.length+" out of "+totalquestions
document.result[2].value=(totalquestions-incorrect.length)/totalquestions*100+"%"
for (temp=0;temp<incorrect.length;temp++)
document.result[1].value+=incorrect[temp]+", "
</script>
<input type="button" value="امتحان دوباره" name="B1" onClick="history.go(-1)" />
<input type="button" value="پاسخ سوالات" name="B2" onClick="showsolution()" /></p>
</center>
طراح:
All Right Reserved. CopyRight By: http://sistemfa.ir *
</div>
</form>
</body>
</html>